Correction¶
- class lsst.ts.ofc.Correction(*args: object)¶
Bases:
object
Container for corrections.
Parameters¶
- *args :
Sequence of values for the corrections. Must be possible to cast floats from the inputs.
Attributes¶
- correction
np.ndarray
Array with the corrections.
- correction_type
enum
The correction type.
- size_to_correction_type
dict
Dictionary that maps the size of the correction to the type of correction.
Notes¶
This class provides a easy way to convert a sequence of values into corrections. The inputs can be any array-like format, as long as their values can be casted into floats.
The following are all valid ways of creating a correction object:
>>> cam_hexapod = Correction(0., 0., 0., 0., 0., 0.) >>> m1m3 = Correction(np.zeros(156))
To get the corrections back users can simply call the object.
>>> cam_hexapod() array([0., 0., 0., 0., 0., 0.])
Attributes Summary
Methods Summary
__call__
()Calling a correction object will return the correction.
Attributes Documentation
- size_to_correction_type = {6: CorrectionType.POSITION, 72: CorrectionType.FORCE, 156: CorrectionType.FORCE}¶
Methods Documentation
- __call__() ndarray[float] ¶
Calling a correction object will return the correction.