From 02dc553f26cbc07b6e3bf9fd08feca9fcbd4ba05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Fert=C3=A9?= Date: Mon, 26 Feb 2024 16:53:48 -0800 Subject: [PATCH] Update to dos and serial number mapping. --- python/lsst/obs/fiberspectrograph/translator.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/lsst/obs/fiberspectrograph/translator.py b/python/lsst/obs/fiberspectrograph/translator.py index 4fcfd4b..f440508 100644 --- a/python/lsst/obs/fiberspectrograph/translator.py +++ b/python/lsst/obs/fiberspectrograph/translator.py @@ -33,10 +33,11 @@ class FiberSpectrographTranslator(LsstBaseTranslator): _const_map = { "detector_num": 0, - "detector_name": "0", + "detector_name": "ccd0", + # TODO: DM-43041 serial number should be put + # in header when using several fiber spec "object": None, "physical_filter": "empty", - "detector_serial": "1606191U1", "detector_group": "None", "relative_humidity": None, "pressure": None, @@ -47,12 +48,14 @@ class FiberSpectrographTranslator(LsstBaseTranslator): "tracking_radec": None, "telescope": SIMONYI_TELESCOPE, "observation_type": "spectrum", # IMGTYPE is '' + # "controller": 'O', } """Constant mappings""" _trivial_map = { "observation_id": "OBSID", "science_program": ("PROGRAM", dict(default="unknown")), + "detector_serial": "SERIAL", } """One-to-one mappings""" @@ -75,6 +78,7 @@ def can_translate(cls, header, filename=None): otherwise. """ + # TODO: DM-43041 need to be updated with new fiber spec return "INSTRUME" in header and header["INSTRUME"] in ["FiberSpectrograph.Broad"] @cache_translation