Skip to content

Commit

Permalink
rename uncertainty to nddata
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 6, 2024
1 parent ba5b9df commit 837fcbb
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 50 deletions.
2 changes: 1 addition & 1 deletion asdf_astropy/converters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
SpectralCoordConverter,
)
from .fits import AsdfFitsConverter, AstropyFitsConverter, FitsConverter
from .nddata import StdDevUncertaintyConverter, UnknownUncertaintyConverter
from .table import AsdfTableConverter, AstropyTableConverter, ColumnConverter, NdarrayMixinConverter
from .time import TimeConverter, TimeDeltaConverter
from .transform import (
Expand All @@ -75,5 +76,4 @@
TransformConverterBase,
UnitsMappingConverter,
)
from .uncertainty import StdDevUncertaintyConverter, UnknownUncertaintyConverter
from .unit import EquivalencyConverter, MagUnitConverter, QuantityConverter, UnitConverter
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def to_yaml_tree(self, nddata_uncertainty, tag, ctx):


class StdDevUncertaintyConverter(_UncertaintyBaseConverter):
tags = ("tag:astropy.org:astropy/uncertainty/stddevuncertainty-*",)
tags = ("tag:astropy.org:astropy/nddata/stddevuncertainty-*",)
types = ("astropy.nddata.nduncertainty.StdDevUncertainty",)

def from_yaml_tree(self, node, tag, ctx):
Expand All @@ -24,7 +24,7 @@ def from_yaml_tree(self, node, tag, ctx):


class UnknownUncertaintyConverter(_UncertaintyBaseConverter):
tags = ("tag:astropy.org:astropy/uncertainty/unknownuncertainty-*",)
tags = ("tag:astropy.org:astropy/nddata/unknownuncertainty-*",)
types = ("astropy.nddata.nduncertainty.UnknownUncertainty",)

def from_yaml_tree(self, node, tag, ctx):
Expand Down
2 changes: 1 addition & 1 deletion asdf_astropy/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from .converters.coordinates.sky_coord import SkyCoordConverter
from .converters.coordinates.spectral_coord import SpectralCoordConverter
from .converters.fits.fits import AsdfFitsConverter, AstropyFitsConverter
from .converters.nddata.uncertainty import StdDevUncertaintyConverter, UnknownUncertaintyConverter
from .converters.table.table import AsdfTableConverter, AstropyTableConverter, ColumnConverter, NdarrayMixinConverter
from .converters.time.time import TimeConverter
from .converters.time.time_delta import TimeDeltaConverter
Expand All @@ -26,7 +27,6 @@
from .converters.transform.rotations import Rotate3DConverter, RotationSequenceConverter
from .converters.transform.spline import SplineConverter
from .converters.transform.tabular import TabularConverter
from .converters.uncertainty.uncertainty import StdDevUncertaintyConverter, UnknownUncertaintyConverter
from .converters.unit.equivalency import EquivalencyConverter
from .converters.unit.magunit import MagUnitConverter
from .converters.unit.quantity import QuantityConverter
Expand Down
15 changes: 0 additions & 15 deletions asdf_astropy/resources/manifests/astropy-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,3 @@ tags:
This transform operates on the units of the input, first converting to
the expected input units, then assigning replacement output units without
further conversion.
- tag_uri: tag:astropy.org:astropy/uncertainty/uncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/uncertainty-1.0.0
title: Represent the nddata.uncertainty.NDUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.NDUncertainty object
- tag_uri: tag:astropy.org:astropy/uncertainty/unknownuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/unknownuncertainty-1.0.0
title: Represent the nddata.uncertainty.UnknownUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.UnknownUncertainty object
- tag_uri: tag:astropy.org:astropy/uncertainty/stddevuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/stddevuncertainty-1.0.0
title: Represent the nddata.uncertainty.StdDevUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.StdDevUncertainty object
8 changes: 4 additions & 4 deletions asdf_astropy/resources/manifests/astropy-1.2.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ tags:
title: NdarrayMixin column.
description: |-
Represents an astropy.table.NdarrayMixin instance.
- tag_uri: tag:astropy.org:astropy/uncertainty/unknownuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/unknownuncertainty-1.0.0
- tag_uri: tag:astropy.org:astropy/nddata/unknownuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/nddata/unknownuncertainty-1.0.0
title: Represent the nddata.uncertainty.UnknownUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.UnknownUncertainty object
- tag_uri: tag:astropy.org:astropy/uncertainty/stddevuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/stddevuncertainty-1.0.0
- tag_uri: tag:astropy.org:astropy/nddata/stddevuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/nddata/stddevuncertainty-1.0.0
title: Represent the nddata.uncertainty.StdDevUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.StdDevUncertainty object
8 changes: 4 additions & 4 deletions asdf_astropy/resources/manifests/astropy-1.3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ tags:
title: NdarrayMixin column.
description: |-
Represents an astropy.table.NdarrayMixin instance.
- tag_uri: tag:astropy.org:astropy/uncertainty/unknownuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/unknownuncertainty-1.0.0
- tag_uri: tag:astropy.org:astropy/nddata/unknownuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/nddata/unknownuncertainty-1.0.0
title: Represent the nddata.uncertainty.UnknownUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.UnknownUncertainty object
- tag_uri: tag:astropy.org:astropy/uncertainty/stddevuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/uncertainty/stddevuncertainty-1.0.0
- tag_uri: tag:astropy.org:astropy/nddata/stddevuncertainty-1.0.0
schema_uri: http://astropy.org/schemas/astropy/nddata/stddevuncertainty-1.0.0
title: Represent the nddata.uncertainty.StdDevUncertainty object
description: |-
Represents an instance of the nddata.uncertainty.StdDevUncertainty object
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://astropy.org/schemas/astropy/uncertainty/stddevuncertainty-1.0.0"
id: "http://astropy.org/schemas/astropy/nddata/stddevuncertainty-1.0.0"

title:
Represents the astropy.nddata.StdDevUncertainty class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://astropy.org/schemas/astropy/uncertainty/unknownuncertainty-1.0.0"
id: "http://astropy.org/schemas/astropy/nddata/unknownuncertainty-1.0.0"

title:
Represents the astropy.nddata.UnknownUncertainty class
Expand Down
21 changes: 0 additions & 21 deletions asdf_astropy/resources/schemas/uncertainty/uncertainty-1.0.0.yaml

This file was deleted.

0 comments on commit 837fcbb

Please sign in to comment.