Coverage for python/lsst/obs/rubinGenericCamera/rawFormatter.py: 100%
20 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-11 03:59 -0700
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-11 03:59 -0700
1__all__ = ["StarTrackerNarrowRawFormatter", "StarTrackerWideRawFormatter", "StarTrackerFastRawFormatter",]
3from .translator import StarTrackerNarrowTranslator, StarTrackerWideTranslator, StarTrackerFastTranslator
4from lsst.obs.base import FitsRawFormatterBase
5from .filters import RUBIN_GENERIC_CAMERA_FILTER_DEFINITIONS
6from ._instrument import StarTrackerNarrow, StarTrackerWide, StarTrackerFast
9class RubinGenericCameraRawFormatter(FitsRawFormatterBase):
10 cameraClass = None
11 translatorClass = None
12 filterDefinitions = RUBIN_GENERIC_CAMERA_FILTER_DEFINITIONS
14 def getDetector(self, id):
15 return self.cameraClass().getCamera()[id]
18class StarTrackerNarrowRawFormatter(RubinGenericCameraRawFormatter):
19 cameraClass = StarTrackerNarrow
20 translatorClass = StarTrackerNarrowTranslator
23class StarTrackerWideRawFormatter(RubinGenericCameraRawFormatter):
24 cameraClass = StarTrackerWide
25 translatorClass = StarTrackerWideTranslator
28class StarTrackerFastRawFormatter(RubinGenericCameraRawFormatter):
29 cameraClass = StarTrackerFast
30 translatorClass = StarTrackerFastTranslator