getTaskInstrument¶
- lsst.ts.wep.utils.getTaskInstrument(camName: str, detectorName: str, offset: Optional[float] = None, instConfigFile: Optional[str] = None) Instrument ¶
Get the instrument to use for the task.
The camera name is used to load a default instrument, and then the defocalOffset is override using the offset value, if provided. If instConfigFile is provided, that file is used instead of camName to load the instrument, and offset is only used if instConfigFile does not contain information for calculating the defocalOffset.
Parameters¶
- camNamestr
The name of the camera
- detectorNamestr
The name of the detector.
- offsetfloat or None, optional
The true offset for the exposure in mm. For LSSTCam this corresponds to the offset of the detector, while for AuxTel it corresponds to the offset of M2. (the default is None)
- instConfigFilestr or None
An instrument config file to override the default instrument for the camName. If begins with “policy:”, this path is understood as relative to the ts_wep policy directory. (the default is None)
Returns¶
- Instrument
The instrument object