Correction¶
- class lsst.ts.ofc.Correction(*args)¶
Bases:
object
Container for corrections.
- Parameters
- *args
Sequence of values for the corrections. Must be possible to cast floats from the inputs.
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
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__()¶
Calling a correction object will return the correction.