![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
This class implements generic supervisor to handle compass simulation. More...
Public Member Functions | |
def | __init__ (self, config, bool cacao=False) |
None | next (self, *bool move_atmos=True, int nControl=0, Iterable[int] tar_trace=None, Iterable[int] wfs_trace=None, bool do_control=True, bool apply_control=True, bool compute_tar_psf=True) |
Iterates the AO loop, with optional parameters. More... | |
def | record_ao_circular_buffer (self, int cb_count, np.ndarray projection_matrix, int sub_sample=1, int controller_index=0, int tar_index=0, bool see_atmos=True, str cube_data_type=None, str cube_data_file_path="", int ncpa=0, np.ndarray ncpa_wfs=None, np.ndarray ref_slopes=None, bool ditch_strehl=True) |
Used to record a synchronized circular buffer AO loop data. More... | |
![]() | |
def | __init__ (self, config) |
def | get_config (self) |
Returns the configuration in use, in a supervisor specific format ? More... | |
int | get_frame_counter (self) |
Return the current iteration number of the loop. More... | |
None | force_context (self) |
Active all the GPU devices specified in the parameters file. More... | |
def | loop (self, int number_of_iter, *int monitoring_freq=100, bool compute_tar_psf=True, **kwargs) |
Perform the AO loop for <number_of_iter> iterations. More... | |
def | reset (self) |
Reset the simulation to return to its original state. More... | |
Public Attributes | |
cacao | |
Instantiates a CompassSupervisor object. More... | |
basis | |
calibration | |
tel | |
atmos | |
dms | |
target | |
wfs | |
rtc | |
![]() | |
context | |
config | |
telescope | |
atmos | |
target | |
wfs | |
dms | |
rtc | |
is_init | |
iter | |
Init the a supervisor. More... | |
This class implements generic supervisor to handle compass simulation.
Definition at line 57 of file compassSupervisor.py.
def shesha.supervisor.compassSupervisor.CompassSupervisor.__init__ | ( | self, | |
config, | |||
bool | cacao = False |
||
) |
Definition at line 119 of file compassSupervisor.py.
None shesha.supervisor.compassSupervisor.CompassSupervisor.next | ( | self, | |
*bool | move_atmos = True , |
||
int | nControl = 0 , |
||
Iterable[int] | tar_trace = None , |
||
Iterable[int] | wfs_trace = None , |
||
bool | do_control = True , |
||
bool | apply_control = True , |
||
bool | compute_tar_psf = True |
||
) |
Iterates the AO loop, with optional parameters.
Overload the GenericSupervisor next() method to handle the GEO controller specific raytrace order operations
Reimplemented from shesha.supervisor.genericSupervisor.GenericSupervisor.
Definition at line 201 of file compassSupervisor.py.
def shesha.supervisor.compassSupervisor.CompassSupervisor.record_ao_circular_buffer | ( | self, | |
int | cb_count, | ||
np.ndarray | projection_matrix, | ||
int | sub_sample = 1 , |
||
int | controller_index = 0 , |
||
int | tar_index = 0 , |
||
bool | see_atmos = True , |
||
str | cube_data_type = None , |
||
str | cube_data_file_path = "" , |
||
int | ncpa = 0 , |
||
np.ndarray | ncpa_wfs = None , |
||
np.ndarray | ref_slopes = None , |
||
bool | ditch_strehl = True |
||
) |
Used to record a synchronized circular buffer AO loop data.
Definition at line 290 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.atmos |
(AtmosComponent) : An AtmosComponent instance
Definition at line 142 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.basis |
Definition at line 122 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.cacao |
Instantiates a CompassSupervisor object.
(bool) : CACAO features enabled in the RTC
Definition at line 120 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.calibration |
Definition at line 123 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.dms |
(DmComponent) : A DmComponent instance
Definition at line 149 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.rtc |
(RtcComponent) : A Rtc component instance
Definition at line 177 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.target |
(targetComponent) : A TargetComponent instance
Definition at line 157 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.tel |
Definition at line 135 of file compassSupervisor.py.
shesha.supervisor.compassSupervisor.CompassSupervisor.wfs |
(WfsComponent) : A WfsComponent instance
Definition at line 167 of file compassSupervisor.py.