From 8fb4874d91295a5e4e248b44a1b915b58e023204 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 translator. Update to dos and serial number mapping. Update comments. --- python/lsst/obs/fiberspectrograph/translator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/lsst/obs/fiberspectrograph/translator.py b/python/lsst/obs/fiberspectrograph/translator.py index 4fcfd4b..6621227 100644 --- a/python/lsst/obs/fiberspectrograph/translator.py +++ b/python/lsst/obs/fiberspectrograph/translator.py @@ -32,11 +32,12 @@ class FiberSpectrographTranslator(LsstBaseTranslator): DETECTOR_MAX = 1 _const_map = { + # TODO: DM-43041 DATE, detector name and controller should be put + # in file header and add to mapping "detector_num": 0, - "detector_name": "0", + "detector_name": "ccd0", "object": None, "physical_filter": "empty", - "detector_serial": "1606191U1", "detector_group": "None", "relative_humidity": None, "pressure": None, @@ -53,6 +54,7 @@ class FiberSpectrographTranslator(LsstBaseTranslator): _trivial_map = { "observation_id": "OBSID", "science_program": ("PROGRAM", dict(default="unknown")), + "detector_serial": "SERIAL", } """One-to-one mappings""" @@ -75,6 +77,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