![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
This optimizer class handles all the modal basis and DM Influence functions related operations. More...
Public Member Functions | |
def | __init__ (self, config, tel, atmos, dms, target, rtc, wfs) |
def | apply_volts_and_get_slopes (self, int controller_index, *bool noise=False, bool turbu=False, bool reset=True) |
Apply voltages, raytrace, compute WFS image, compute slopes and returns it. More... | |
np.ndarray | do_imat_modal (self, int controller_index, np.ndarray ampli, np.ndarray modal_basis, *bool noise=False, int nmodes_max=0, bool with_turbu=False, bool push_pull=False) |
Computes an interaction matrix from provided modal basis. More... | |
np.ndarray | do_imat_phase (self, int controller_index, np.ndarray cube_phase, *bool noise=False, int nmodes_max=0, bool with_turbu=False, bool push_pull=False, int wfs_index=0) |
Computes an interaction matrix with the provided cube phase. More... | |
np.ndarray | compute_modal_residuals (self, np.ndarray projection_matrix, *np.ndarray selected_actus=None) |
Computes the modal residual coefficients of the residual phase. More... | |
Public Attributes | |
config | |
tel | |
atmos | |
dms | |
target | |
rtc | |
wfs | |
Instantiate a ModalBasis object. More... | |
This optimizer class handles all the modal basis and DM Influence functions related operations.
Definition at line 44 of file calibration.py.
def shesha.supervisor.optimizers.calibration.Calibration.__init__ | ( | self, | |
config, | |||
tel, | |||
atmos, | |||
dms, | |||
target, | |||
rtc, | |||
wfs | |||
) |
Definition at line 95 of file calibration.py.
def shesha.supervisor.optimizers.calibration.Calibration.apply_volts_and_get_slopes | ( | self, | |
int | controller_index, | ||
*bool | noise = False , |
||
bool | turbu = False , |
||
bool | reset = True |
||
) |
Apply voltages, raytrace, compute WFS image, compute slopes and returns it.
Definition at line 117 of file calibration.py.
np.ndarray shesha.supervisor.optimizers.calibration.Calibration.compute_modal_residuals | ( | self, | |
np.ndarray | projection_matrix, | ||
*np.ndarray | selected_actus = None |
||
) |
Computes the modal residual coefficients of the residual phase.
/!\ It supposed that roket is enabled, and the associated GEO controller is index 1. Uses the projection matrix computed from compute_modes_to_volts_basis (modalBasis module)
Definition at line 244 of file calibration.py.
np.ndarray shesha.supervisor.optimizers.calibration.Calibration.do_imat_modal | ( | self, | |
int | controller_index, | ||
np.ndarray | ampli, | ||
np.ndarray | modal_basis, | ||
*bool | noise = False , |
||
int | nmodes_max = 0 , |
||
bool | with_turbu = False , |
||
bool | push_pull = False |
||
) |
Computes an interaction matrix from provided modal basis.
Definition at line 150 of file calibration.py.
np.ndarray shesha.supervisor.optimizers.calibration.Calibration.do_imat_phase | ( | self, | |
int | controller_index, | ||
np.ndarray | cube_phase, | ||
*bool | noise = False , |
||
int | nmodes_max = 0 , |
||
bool | with_turbu = False , |
||
bool | push_pull = False , |
||
int | wfs_index = 0 |
||
) |
Computes an interaction matrix with the provided cube phase.
Definition at line 202 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.atmos |
(AtmosScompass) : AtmosCompass instance
Definition at line 98 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.config |
(config) : Configuration parameters module
Definition at line 96 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.dms |
(DmCompass) : DmCompass instance
Definition at line 99 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.rtc |
(RtcCompass) : RtcCompass instance
Definition at line 101 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.target |
(TargetCompass) : TargetCompass instance
Definition at line 100 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.tel |
(TelescopeCompass) : TelescopeCompass instance
Definition at line 97 of file calibration.py.
shesha.supervisor.optimizers.calibration.Calibration.wfs |
Instantiate a ModalBasis object.
(WfsCompass) : WfsCompass instance
Definition at line 102 of file calibration.py.