getTaskInstrument#

lsst.ts.wep.utils.getTaskInstrument(camName, detectorName, instConfigFile=None)#

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:
  • camName (str) – The name of the camera

  • detectorName (str) – The name of the detector.

  • instConfigFile (str 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:

The instrument object

Return type:

Instrument