Skip to content

Commit

Permalink
Merge pull request #112 from lsst/tickets/DM-42636
Browse files Browse the repository at this point in the history
DM-42636: Attach translator class to Instrument
  • Loading branch information
timj committed Feb 29, 2024
2 parents ef70c04 + 3813b71 commit 7368d4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/obs/cfht/_instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import os
from functools import lru_cache

from astro_metadata_translator import MegaPrimeTranslator
from lsst.afw.cameraGeom import makeCameraFromPath, CameraConfig
from lsst.obs.base import Instrument, VisitSystem
from .cfhtFilters import MEGAPRIME_FILTER_DEFINITIONS
Expand All @@ -39,6 +40,7 @@ class MegaPrime(Instrument):
filterDefinitions = MEGAPRIME_FILTER_DEFINITIONS
policyName = "megacam"
obsDataPackage = None
translatorClass = MegaPrimeTranslator

def __init__(self, **kwargs):
super().__init__(**kwargs)
Expand Down

0 comments on commit 7368d4d

Please sign in to comment.