COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
common.dm Namespace Reference

Functions

def get_actu_pos_pixel (dm)
 return the coordinates in pixel of a given DM actuators More...
 
def get_actu_pos_meter (sup, dm_id)
 return the coordinates in meters of a given DM actuators More...
 
def dm_to_json (dm, geom)
 return a json description of a dm More...
 

Function Documentation

◆ dm_to_json()

def common.dm.dm_to_json (   dm,
  geom 
)

return a json description of a dm

Parameters
dm(Param_dm) : dm to represent as json

Definition at line 46 of file common/dm.py.

◆ get_actu_pos_meter()

def common.dm.get_actu_pos_meter (   sup,
  dm_id 
)

return the coordinates in meters of a given DM actuators

Parameters
sup(compasSSupervisor) : supervisor
dm_id(int) : index of the DM
Returns
xpos (np.ndarray[ndim=1, dtype=np.float32]) : actuators positions along axis x
ypos (np.ndarray[ndim=1, dtype=np.float32]) : actuators positions along axis y

Definition at line 31 of file common/dm.py.

◆ get_actu_pos_pixel()

def common.dm.get_actu_pos_pixel (   dm)

return the coordinates in pixel of a given DM actuators

Parameters
dm(Param_dm) : Dm to get the actuators position from
Returns
xpos (np.ndarray[ndim=1, dtype=np.float32]) : actuators positions along axis x
ypos (np.ndarray[ndim=1, dtype=np.float32]) : actuators positions along axis y

Definition at line 14 of file common/dm.py.