Skip to content

Commit

Permalink
Rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHuwe committed Jan 22, 2024
2 parents 7d44f0b + 2c6ffc4 commit 33892c3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ repos:
args: ["--py38-plus"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.7'
rev: 'v0.1.13'
hooks:
- id: ruff
args: ["--fix"]

- repo: https://github.com/pycqa/isort
rev: 5.13.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 23.11.0
rev: 23.12.1
hooks:
- id: black

Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ A0.18.1 (unreleased)
- Remove the unused ``variance-1.0.0`` schema. [#344]
>>>>>>> 274a10bbc4c95d8835d926192f3da032c079883c

- Add wcs tag to wfi_image and wfi_mosaic schemas. [#351]

0.18.0 (2023-11-06)
-------------------

Expand Down
7 changes: 6 additions & 1 deletion src/rad/resources/schemas/wfi_image-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ properties:
- $ref: common-1.0.0
- type: object
properties:
wcs:
title: WCS object
anyOf:
- tag: tag:stsci.edu:gwcs/wcs-*
- type: "null"
photometry:
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
source_detection:
tag: asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0
required: [photometry]
required: [photometry, wcs]
data:
title: Science data, excluding border reference pixels.
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
Expand Down
9 changes: 6 additions & 3 deletions src/rad/resources/schemas/wfi_mosaic-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ properties:
tag: asdf://stsci.edu/datamodels/roman/tags/program-1.0.0
resample:
tag: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0
wcsinfo:
tag: asdf://stsci.edu/datamodels/roman/tags/mosaic_wcsinfo-1.0.0
required: [basic, individual_image_meta, program, resample, wcsinfo]
wcs:
title: WCS object
anyOf:
- tag: tag:stsci.edu:gwcs/wcs-*
- type: "null"
required: [basic, individual_image_meta, program, resample, wcs]
data:
title: Science data, excluding border reference pixels.
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
Expand Down
4 changes: 4 additions & 0 deletions tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def valid_tag_uris(manifest):
"tag:stsci.edu:asdf/unit/quantity-1.1.0",
"tag:stsci.edu:asdf/unit/unit-1.0.0",
"tag:astropy.org:astropy/units/unit-1.0.0",
"tag:stsci.edu:gwcs/wcs-1.0.0",
"tag:stsci.edu:gwcs/wcs-1.1.0",
"tag:stsci.edu:gwcs/wcs-1.2.0",
"tag:stsci.edu:gwcs/wcs-*",
]
)
return uris
Expand Down

0 comments on commit 33892c3

Please sign in to comment.