Skip to content

Commit

Permalink
Fix small issues found in two schemas (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Jan 17, 2025
2 parents 4774fa9 + 3e09cf2 commit 009e17d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
1 change: 1 addition & 0 deletions changes/532.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix some inconsistencies in the ``msos_step`` and ``sky_background`` schemas.
42 changes: 20 additions & 22 deletions src/rad/resources/schemas/msos_stack-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,42 @@ properties:
meta:
allOf:
- $ref: asdf://stsci.edu/datamodels/roman/schemas/common-1.0.0
- image_list:
type: string
- type: object
properties:
image_list:
type: string
data:
title: Flux Data
description: |
Flux array of stacked image data.
value:
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 2
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 2
uncertainty:
title: Uncertainty Data
description: |
Uncertainty array of stacked image data.
value:
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 2
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 2
mask:
title: Mask Data
description: |
Mask array of stacked image data.
value:
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: uint8
exact_datatype: true
ndim: 2
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: uint8
exact_datatype: true
ndim: 2
coverage:
title: Coverage Data
description: |
Coverage array of stacked image data.
value:
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: uint8
exact_datatype: true
ndim: 2
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: uint8
exact_datatype: true
ndim: 2
propertyOrder: [meta, data, uncertainty, mask, coverage]
flowStyle: block
required: [meta, data, uncertainty, mask, coverage]
Expand Down
7 changes: 3 additions & 4 deletions src/rad/resources/schemas/sky_background-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ properties:
title: Sky Background Level
description: |
The sky background level in DN / s or MJy.sr**-1.
value:
anyOf:
- type: number
- type: null
anyOf:
- type: number
- type: "null"
unit: ["DN / s", "MJy.sr**-1"]
method:
title: Sky Background Method
Expand Down

0 comments on commit 009e17d

Please sign in to comment.