![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
This class defines generic methods and behavior of a supervisor It is not intended to be instantiated as it is : prefer to build a supervisor class inheriting from it. More...
Public Member Functions | |
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... | |
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 | 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 | |
context | |
config | |
telescope | |
atmos | |
target | |
wfs | |
dms | |
rtc | |
is_init | |
iter | |
Init the a supervisor. More... | |
This class defines generic methods and behavior of a supervisor It is not intended to be instantiated as it is : prefer to build a supervisor class inheriting from it.
This approach allows to build multiple supervisors with various components and less effort
Definition at line 53 of file genericSupervisor.py.
def shesha.supervisor.genericSupervisor.GenericSupervisor.__init__ | ( | self, | |
config | |||
) |
Definition at line 107 of file genericSupervisor.py.
None shesha.supervisor.genericSupervisor.GenericSupervisor.force_context | ( | self | ) |
Active all the GPU devices specified in the parameters file.
Definition at line 138 of file genericSupervisor.py.
def shesha.supervisor.genericSupervisor.GenericSupervisor.get_config | ( | self | ) |
Returns the configuration in use, in a supervisor specific format ?
Reimplemented in shesha.supervisor.canapassSupervisor.CanapassSupervisor.
Definition at line 125 of file genericSupervisor.py.
int shesha.supervisor.genericSupervisor.GenericSupervisor.get_frame_counter | ( | self | ) |
Return the current iteration number of the loop.
Definition at line 133 of file genericSupervisor.py.
def shesha.supervisor.genericSupervisor.GenericSupervisor.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.
Definition at line 316 of file genericSupervisor.py.
None shesha.supervisor.genericSupervisor.GenericSupervisor.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.
Reimplemented in shesha.supervisor.compassSupervisor.CompassSupervisor.
Definition at line 240 of file genericSupervisor.py.
def shesha.supervisor.genericSupervisor.GenericSupervisor.reset | ( | self | ) |
Reset the simulation to return to its original state.
Definition at line 352 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.atmos |
(AtmosComponent) : An AtmosComponent instance
Definition at line 111 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.config |
(config) : Parameters structure
Definition at line 109 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.context |
(CarmaContext) : a CarmaContext instance
Definition at line 108 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.dms |
(DmComponent) : A DmComponent instance
Definition at line 114 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.is_init |
(bool) : Flag equals to True if the supervisor has already been initialized
Definition at line 116 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.iter |
Init the a supervisor.
(int) : Frame counter
Definition at line 117 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.rtc |
(RtcComponent) : A Rtc component instance
Definition at line 115 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.target |
(targetComponent) : A TargetComponent instance
Definition at line 112 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.telescope |
(TelescopeComponent) : a TelescopeComponent instance
Definition at line 110 of file genericSupervisor.py.
shesha.supervisor.genericSupervisor.GenericSupervisor.wfs |
(WfsComponent) : A WfsComponent instance
Definition at line 113 of file genericSupervisor.py.