Skip to content

Commit

Permalink
Added last set of translator test keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
Snyder005 committed Jan 9, 2024
1 parent f9ce690 commit 4e0b4da
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
1 change: 0 additions & 1 deletion python/lsst/obs/lsst/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ def addFilter(filter_dict, band, physical_filter):
*LsstCamFiltersGeneric,
*UCDFilters,
)

# LATISS filters include a grating in the name so we need to construct
# filters for each combination of filter+grating.

Expand Down
22 changes: 20 additions & 2 deletions tests/test_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,32 +1238,50 @@ def test_ucdcam_translator(self):
dict(telescope=None,
instrument="LSST-UCDCam",
dark_time=2.07859*u.s,
detector_exposure_id=2023103100227,
detector_group="R21",
detector_name="S01",
detector_num=10,
detector_serial="E2V-CCD250-112-09",
exposure_id=2023103100227,
exposure_group="2023103100227",
exposure_time=1.0*u.s,
focus_z=0.0*u.mm,
group_counter_end=227,
group_counter_start=227,
has_simulated_content=False,
observation_counter=227,
observation_id="UCD-E2V-CCD250-20231031_000227_R21_S01",
observation_type="flat",
observation_reason="flat",
observing_day=20231031,
physical_filter="r",
science_program="2023-10-31"))
science_program="unknown",
visit_id=2023103100227)),
("UCD-ITL-3800C-TS_C_20230730_000237_R22_S01.yaml",
dict(telescope=None,
instrument="LSST-UCDCam",
dark_time=3.082*u.s,
detector_exposure_id=2023073000237,
detector_group="R22",
detector_name="S01",
detector_num=1,
detector_serial="ITL-3800C-002",
exposure_id=2023073000237,
exposure_group="2023073000237",
exposure_time=2.0*u.s,
focus_z=0.0*u.mm,
group_counter_end=237,
group_counter_start=237,
has_simulated_content=False,
observation_counter=237,
observation_id="UCD-ITL-3800C-TS_C_20230730_000237_R22_S01",
observation_type="flat",
observation_reason="flat",
observing_day=20230730,
physical_filter="r",
science_program="2023-07-30"))
science_program="unknown",
visit_id=20230730_000237)),
)
for filename, expected in test_data:
with self.subTest(f"Testing {filename}"):
Expand Down

0 comments on commit 4e0b4da

Please sign in to comment.