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