Skip to content

Commit

Permalink
add DMS89
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Oct 2, 2024
1 parent 229b164 commit 03ce0ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions romancal/regtest/test_wfi_image_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ def test_instrument_meta(output_model, meta_attribute):

@pytest.mark.soctests
def test_wcs_has_bounding_box(output_model):
# DMS89 WCS tests TODO not listed
# DMS89 WCS tests
assert len(output_model.meta.wcs.bounding_box) == 2


@pytest.mark.soctests
def test_repointed_matches_truth(
repointed_filename_and_delta, rtdata, ignore_asdf_paths
):
# DMS89 TODO not listed
# DMS89 WCS tests
repointed_filename, _ = repointed_filename_and_delta

rtdata.get_truth(f"truth/WFI/image/{Path(repointed_filename).name}")
Expand All @@ -192,7 +192,7 @@ def test_repointed_matches_truth(

@pytest.mark.soctests
def test_repointed_wcs_differs(repointed_filename_and_delta, output_model):
# DMS89 TODO not listed
# DMS89 WCS tests
repointed_filename, delta = repointed_filename_and_delta
orig_wcs = output_model.meta.wcs
with rdm.open(repointed_filename) as repointed_model:
Expand Down
5 changes: 5 additions & 0 deletions romancal/tests/dms_requirement_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"romancal.regtest.test_wfi_image_pipeline.test_has_exposure_time",
"romancal.regtest.test_wfi_grism_pipeline.test_has_exposure_time"
],
"DMS89": [
"romancal.regtest.test_wfi_image_pipeline.test_wcs_has_bounding_box",
"romancal.regtest.test_wfi_image_pipeline.test_repointed_matches_truth",
"romancal.regtest.test_wfi_image_pipeline.test_repointed_wcs_differs"
],
"DMS90": [
"romancal.regtest.test_wfi_grism_pipeline.test_step_status"
],
Expand Down

0 comments on commit 03ce0ad

Please sign in to comment.