BendModeToForce

class lsst.ts.ofc.BendModeToForce(component, ofc_data)

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.

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
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

Rotation matrix.

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)

Compute the bending mode.

Parameters
forcenumpy.ndarray

Actuator forces in N.

Returns
numpy.ndarray

Estimated bending mode in um.

force(dof)

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.