Coverage for python/lsst/obs/rubinGenericCamera/rawFormatter.py: 100%

20 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-05-04 11:32 +0000

1__all__ = ["StarTrackerNarrowRawFormatter", "StarTrackerWideRawFormatter", "StarTrackerFastRawFormatter",] 

2 

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 

7 

8 

9class RubinGenericCameraRawFormatter(FitsRawFormatterBase): 

10 cameraClass = None 

11 translatorClass = None 

12 filterDefinitions = RUBIN_GENERIC_CAMERA_FILTER_DEFINITIONS 

13 

14 def getDetector(self, id): 

15 return self.cameraClass().getCamera()[id] 

16 

17 

18class StarTrackerNarrowRawFormatter(RubinGenericCameraRawFormatter): 

19 cameraClass = StarTrackerNarrow 

20 translatorClass = StarTrackerNarrowTranslator 

21 

22 

23class StarTrackerWideRawFormatter(RubinGenericCameraRawFormatter): 

24 cameraClass = StarTrackerWide 

25 translatorClass = StarTrackerWideTranslator 

26 

27 

28class StarTrackerFastRawFormatter(RubinGenericCameraRawFormatter): 

29 cameraClass = StarTrackerFast 

30 translatorClass = StarTrackerFastTranslator