BendModeToForce

class lsst.ts.ofc.BendModeToForce(component: str, ofc_data: OFCData)

Bases: object

Transform Bend mode to forces.

Parameters

componentstring

Name of the component. Must be in the ofc_data.bend_mode dictionary.

ofc_dataOFCData

Data container class.

Attributes

componentstring

Name of the component in the ofc_data.bend_mode dictionary.

ofc_dataOFCData

OFC data container class.

RCONDfloat

Cutoff for small singular values, used when computing pseudo-inverse matrix.

rot_matnp.ndarray[float]

Rotation matrix.

Raises

RuntimeError

If the component attribute string is not a valid entry in the ofc_data.bend_mode dictionary. If the component name does not map into a valid entry in the ofc_data.comp_dof_idx dictionary.

Attributes Summary

RCOND

Methods Summary

bending_mode(force)

Compute the bending mode.

force(dof)

Calculate the actuator forces in N based on the degree of freedom (DOF).

Attributes Documentation

RCOND = 0.0001

Methods Documentation

bending_mode(force: ndarray[float]) ndarray[float]

Compute the bending mode.

Parameters

forcenumpy.ndarray

Actuator forces in N.

Returns

numpy.ndarray

Estimated bending mode in um.

force(dof: ndarray[float]) ndarray[float]

Calculate the actuator forces in N based on the degree of freedom (DOF).

Parameters

dofnumpy.ndarray

Mirror DOF in um.

Returns

numpy.ndarray

Actuator forces in N.