diff --git a/changes/542.bugfix.rst b/changes/542.bugfix.rst new file mode 100644 index 00000000..ea83ab3c --- /dev/null +++ b/changes/542.bugfix.rst @@ -0,0 +1 @@ +Reorder anyOf items in apcorr schema to work around asdf bug. diff --git a/src/rad/resources/schemas/reference_files/apcorr-1.0.0.yaml b/src/rad/resources/schemas/reference_files/apcorr-1.0.0.yaml index 00185adf..5c43ec16 100644 --- a/src/rad/resources/schemas/reference_files/apcorr-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/apcorr-1.0.0.yaml @@ -28,32 +28,32 @@ properties: description: The aperture correction for each enclosed energy fraction, corresponding to 1 / ee_fractions. anyOf: + - type: "null" - tag: tag:stsci.edu:asdf/core/ndarray-1.* datatype: float64 exact_datatype: true ndim: 1 - - type: "null" ee_fractions: title: Enclosed Energy Fractions description: Fractions of the enclosed energy of the PSF at which to estimate the aperture correction and enclosed energy radii. anyOf: + - type: "null" - tag: tag:stsci.edu:asdf/core/ndarray-1.* datatype: float64 exact_datatype: true ndim: 1 - - type: "null" ee_radii: title: Enclosed Energy Radii description: Radius, in pixels, within which the enclosed energy fractions are met. The indexing matches that of "ee_fractions". anyOf: + - type: "null" - tag: tag:stsci.edu:asdf/core/ndarray-1.* datatype: float64 exact_datatype: true ndim: 1 - - type: "null" sky_background_rin: title: Inner Radius for the Sky Background description: Inner radius, in pixels, to use when estimating the