diff --git a/ndcube/asdf/converters/compoundwcs_converter.py b/ndcube/asdf/converters/compoundwcs_converter.py index b812fd051..3cbd9430b 100644 --- a/ndcube/asdf/converters/compoundwcs_converter.py +++ b/ndcube/asdf/converters/compoundwcs_converter.py @@ -8,10 +8,10 @@ class CompoundConverter(Converter): def from_yaml_tree(self, node, tag, ctx): from ndcube.wcs.wrappers import CompoundLowLevelWCS - return(CompoundLowLevelWCS(*node["wcs"], mapping = node.get("mapping"), pixel_atol = node.get("atol"))) + return(CompoundLowLevelWCS(*node["wcs"], mapping=node.get("mapping"), pixel_atol=node.get("atol"))) def to_yaml_tree(self, compoundwcs, tag, ctx): - node={} + node = {} node["wcs"] = compoundwcs._wcs node["mapping"] = compoundwcs.mapping.mapping node["atol"] = compoundwcs.atol diff --git a/ndcube/asdf/converters/reorderedwcs_converter.py b/ndcube/asdf/converters/reorderedwcs_converter.py index 4fb2264a3..0ce5ca3e8 100644 --- a/ndcube/asdf/converters/reorderedwcs_converter.py +++ b/ndcube/asdf/converters/reorderedwcs_converter.py @@ -9,12 +9,12 @@ def from_yaml_tree(self, node, tag, ctx): from ndcube.wcs.wrappers import ReorderedLowLevelWCS reorderedwcs = ReorderedLowLevelWCS(wcs=node["wcs"], - pixel_order = node.get("pixel_order"), - world_order = node.get("world_order") + pixel_order=node.get("pixel_order"), + world_order=node.get("world_order") ) return reorderedwcs def to_yaml_tree(self, reorderedwcs, tag, ctx): - node={} + node = {} node["wcs"] = reorderedwcs._wcs node["pixel_order"] = reorderedwcs._pixel_order node["world_order"] = reorderedwcs._world_order diff --git a/ndcube/asdf/converters/resampled_converter.py b/ndcube/asdf/converters/resampled_converter.py index da9545545..ab41c1d70 100644 --- a/ndcube/asdf/converters/resampled_converter.py +++ b/ndcube/asdf/converters/resampled_converter.py @@ -9,12 +9,12 @@ def from_yaml_tree(self, node, tag, ctx): from ndcube.wcs.wrappers import ResampledLowLevelWCS resampledwcs = ResampledLowLevelWCS(wcs=node["wcs"], - offset = node.get("offset"), - factor = node.get("factor"), + offset=node.get("offset"), + factor=node.get("factor"), ) return resampledwcs def to_yaml_tree(self, resampledwcs, tag, ctx): - node={} + node = {} node["wcs"] = resampledwcs._wcs node["factor"] = resampledwcs._factor node["offset"] = resampledwcs._offset diff --git a/ndcube/asdf/resources/schemas/ndcube-0.1.0.yaml b/ndcube/asdf/resources/schemas/ndcube-0.1.0.yaml index 1981f07fb..0b2a414e0 100644 --- a/ndcube/asdf/resources/schemas/ndcube-0.1.0.yaml +++ b/ndcube/asdf/resources/schemas/ndcube-0.1.0.yaml @@ -16,9 +16,9 @@ properties: wcs: anyOf: - tag: "tag:stsci.edu:gwcs/wcs-1.*" - - tag: "tag:sunpy.org:ndcube/resampledwcs-0.1.0" - - tag: "tag:sunpy.org:ndcube/reorderedwcs-0.1.0" - - tag: "tag:sunpy.org:ndcube/compoundwcs-0.1.0" + - tag: "tag:sunpy.org:ndcube/resampledwcs-*" + - tag: "tag:sunpy.org:ndcube/reorderedwcs-*" + - tag: "tag:sunpy.org:ndcube/compoundwcs-*" extra_coords: tag: "tag:sunpy.org:ndcube/extra_coords/extra_coords/extracoords-0.*" global_coords: