Skip to content

Commit

Permalink
Merge pull request #137 from lsst/tickets/DM-24378
Browse files Browse the repository at this point in the history
DM-24378: Store instrument class name in registry
  • Loading branch information
timj committed Apr 8, 2020
2 parents 13f9125 + 4899133 commit e428dae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lsst/obs/decam/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from lsst.obs.base import Instrument
from lsst.obs.decam.decamFilters import DECAM_FILTER_DEFINITIONS

from lsst.daf.butler.core.utils import getFullTypeName
from lsst.utils import getPackageDir


Expand Down Expand Up @@ -62,7 +63,9 @@ def register(self, registry):
obsMax = 2**31
registry.insertDimensionData(
"instrument",
{"name": self.getName(), "detector_max": 64, "visit_max": obsMax, "exposure_max": obsMax}
{"name": self.getName(), "detector_max": 64, "visit_max": obsMax, "exposure_max": obsMax,
"class_name": getFullTypeName(self),
}
)

for detector in camera:
Expand Down

0 comments on commit e428dae

Please sign in to comment.