![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Initialization of a Rtc object. More...
Functions | |
def | rtc_init (carmaWrap_context context, Telescope tel, Sensors wfs, Dms dms, Atmos atmos, list p_wfss, conf.Param_tel p_tel, conf.Param_geom p_geom, conf.Param_atmos p_atmos, float ittime, p_centroiders=None, p_controllers=None, p_dms=None, do_refslp=False, brahma=False, cacao=False, tar=None, dataBase={}, use_DB=False) |
Initialize all the SutraRtc objects : centroiders and controllers. More... | |
Rtc | rtc_standalone (carmaWrap_context context, int nwfs, list nvalid, int nactu, list centroider_type, list delay, list offset, list scale, bool brahma=False, bool fp16=False, bool cacao=False) |
TODO docstring. More... | |
def | init_centroider (context, int nwfs, conf.Param_wfs p_wfs, conf.Param_centroider p_centroider, conf.Param_tel p_tel, conf.Param_atmos p_atmos, Sensors wfs, Rtc rtc) |
Initialize a centroider object in Rtc. More... | |
def | comp_weights (conf.Param_centroider p_centroider, conf.Param_wfs p_wfs, int npix) |
Compute the weights used by centroider wcog and corr. More... | |
def | init_controller (context, int i, conf.Param_controller p_controller, list p_wfss, conf.Param_geom p_geom, list p_dms, conf.Param_atmos p_atmos, float ittime, conf.Param_tel p_tel, Rtc rtc, Dms dms, Sensors wfs, Telescope tel, Atmos atmos, List[conf.Param_centroider] p_centroiders, do_refslp=False, dataBase={}, use_DB=False) |
Initialize the controller part of rtc. More... | |
def | init_controller_geo (int i, Rtc rtc, Dms dms, conf.Param_geom p_geom, conf.Param_controller p_controller, list p_dms, roket=False) |
Initialize geometric controller. More... | |
def | init_controller_ls (int i, conf.Param_controller p_controller, list p_wfss, conf.Param_geom p_geom, list p_dms, conf.Param_atmos p_atmos, float ittime, conf.Param_tel p_tel, Rtc rtc, Dms dms, Sensors wfs, Telescope tel, Atmos atmos, dict dataBase={}, bool use_DB=False) |
def | init_controller_cured (int i, Rtc rtc, conf.Param_controller p_controller, list p_dms, list p_wfss) |
def | init_controller_mv (int i, conf.Param_controller p_controller, list p_wfss, conf.Param_geom p_geom, list p_dms, conf.Param_atmos p_atmos, conf.Param_tel p_tel, Rtc rtc, Dms dms, Sensors wfs, Atmos atmos) |
Initialize the MV controller. More... | |
def | init_controller_generic (int i, conf.Param_controller p_controller, list p_dms, Rtc rtc) |
Initialize the generic controller. More... | |
Initialization of a Rtc object.
This file is part of COMPASS https://anr-compass.github.io/compass/
Copyright (C) 2011-2019 COMPASS Team https://github.com/ANR-COMPASS All rights reserved. Distributed under GNU - LGPL
COMPASS is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
COMPASS: End-to-end AO simulation tool using GPU acceleration The COMPASS platform was designed to meet the need of high-performance for the simulation of AO systems.
The final product includes a software package for simulating all the critical subcomponents of AO, particularly in the context of the ELT and a real-time core based on several control approaches, with performances consistent with its integration into an instrument. Taking advantage of the specific hardware architecture of the GPU, the COMPASS tool allows to achieve adequate execution speeds to conduct large simulation campaigns called to the ELT.
The COMPASS platform can be used to carry a wide variety of simulations to both testspecific components of AO of the E-ELT (such as wavefront analysis device with a pyramid or elongated Laser star), and various systems configurations such as multi-conjugate AO.
COMPASS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with COMPASS. If not, see https://www.gnu.org/licenses/lgpl-3.0.txt.
def shesha.init.rtc_init.comp_weights | ( | conf.Param_centroider | p_centroider, |
conf.Param_wfs | p_wfs, | ||
int | npix | ||
) |
Compute the weights used by centroider wcog and corr.
:parameters: p_centroider (Param_centroider) : centroider settings p_wfs (Param_wfs) : wfs settings npix (int):
Definition at line 279 of file rtc_init.py.
def shesha.init.rtc_init.init_centroider | ( | context, | |
int | nwfs, | ||
conf.Param_wfs | p_wfs, | ||
conf.Param_centroider | p_centroider, | ||
conf.Param_tel | p_tel, | ||
conf.Param_atmos | p_atmos, | ||
Sensors | wfs, | ||
Rtc | rtc | ||
) |
Initialize a centroider object in Rtc.
:parameters: context (carmaWrap_context): context nwfs (int) : index of wfs p_wfs (Param_wfs): wfs settings p_centroider (Param_centroider) : centroider settings wfs (Sensors): Sensor object rtc (Rtc) : Rtc object
Definition at line 203 of file rtc_init.py.
def shesha.init.rtc_init.init_controller | ( | context, | |
int | i, | ||
conf.Param_controller | p_controller, | ||
list | p_wfss, | ||
conf.Param_geom | p_geom, | ||
list | p_dms, | ||
conf.Param_atmos | p_atmos, | ||
float | ittime, | ||
conf.Param_tel | p_tel, | ||
Rtc | rtc, | ||
Dms | dms, | ||
Sensors | wfs, | ||
Telescope | tel, | ||
Atmos | atmos, | ||
List[conf.Param_centroider] | p_centroiders, | ||
do_refslp = False , |
|||
dataBase = {} , |
|||
use_DB = False |
|||
) |
Initialize the controller part of rtc.
:parameters: context (carmaWrap_context): context i (int) : controller index p_controller (Param_controller) : controller settings p_wfss (list of Param_wfs) : wfs settings p_geom (Param_geom) : geom settings p_dms (list of Param_dms) : dms settings p_atmos (Param_atmos) : atmos settings ittime (float) : iteration time [s] p_tel (Param_tel) : telescope settings rtc (Rtc) : Rtc objet dms (Dms) : Dms object wfs (Sensors) : Sensors object tel (Telescope) : Telescope object atmos (Atmos) : Atmos object p_centroiders (list of Param_centroider): centroiders settings
Definition at line 346 of file rtc_init.py.
def shesha.init.rtc_init.init_controller_cured | ( | int | i, |
Rtc | rtc, | ||
conf.Param_controller | p_controller, | ||
list | p_dms, | ||
list | p_wfss | ||
) |
def shesha.init.rtc_init.init_controller_generic | ( | int | i, |
conf.Param_controller | p_controller, | ||
list | p_dms, | ||
Rtc | rtc | ||
) |
Initialize the generic controller.
:parameters: i (int): controller index p_controller (Param_controller): controller settings p_dms (list of Param_dm): dms settings rtc (Rtc): Rtc object
Definition at line 579 of file rtc_init.py.
def shesha.init.rtc_init.init_controller_geo | ( | int | i, |
Rtc | rtc, | ||
Dms | dms, | ||
conf.Param_geom | p_geom, | ||
conf.Param_controller | p_controller, | ||
list | p_dms, | ||
roket = False |
|||
) |
Initialize geometric controller.
:parameters: i (int): controller index rtc (Rtc): rtc object dms (Dms): Dms object p_geom (Param_geom): geometry settings p_controller (Param_controller): controller settings p_dms (list of Param_dms): dms settings roket (bool): Flag to initialize ROKET
Definition at line 430 of file rtc_init.py.
def shesha.init.rtc_init.init_controller_ls | ( | int | i, |
conf.Param_controller | p_controller, | ||
list | p_wfss, | ||
conf.Param_geom | p_geom, | ||
list | p_dms, | ||
conf.Param_atmos | p_atmos, | ||
float | ittime, | ||
conf.Param_tel | p_tel, | ||
Rtc | rtc, | ||
Dms | dms, | ||
Sensors | wfs, | ||
Telescope | tel, | ||
Atmos | atmos, | ||
dict | dataBase = {} , |
||
bool | use_DB = False |
||
) |
def shesha.init.rtc_init.init_controller_mv | ( | int | i, |
conf.Param_controller | p_controller, | ||
list | p_wfss, | ||
conf.Param_geom | p_geom, | ||
list | p_dms, | ||
conf.Param_atmos | p_atmos, | ||
conf.Param_tel | p_tel, | ||
Rtc | rtc, | ||
Dms | dms, | ||
Sensors | wfs, | ||
Atmos | atmos | ||
) |
Initialize the MV controller.
:parameters: i (int) : controller index p_controller (Param_controller) : controller settings p_wfss (list of Param_wfs) : wfs settings p_geom (Param_geom) : geom settings p_dms (list of Param_dms) : dms settings p_atmos (Param_atmos) : atmos settings p_tel (Param_tel) : telescope settings rtc (Rtc) : Rtc objet dms (Dms) : Dms object wfs (Sensors) : Sensors object atmos (Atmos) : Atmos object
Definition at line 554 of file rtc_init.py.
def shesha.init.rtc_init.rtc_init | ( | carmaWrap_context | context, |
Telescope | tel, | ||
Sensors | wfs, | ||
Dms | dms, | ||
Atmos | atmos, | ||
list | p_wfss, | ||
conf.Param_tel | p_tel, | ||
conf.Param_geom | p_geom, | ||
conf.Param_atmos | p_atmos, | ||
float | ittime, | ||
p_centroiders = None , |
|||
p_controllers = None , |
|||
p_dms = None , |
|||
do_refslp = False , |
|||
brahma = False , |
|||
cacao = False , |
|||
tar = None , |
|||
dataBase = {} , |
|||
use_DB = False |
|||
) |
Initialize all the SutraRtc objects : centroiders and controllers.
:parameters: context (carmaWrap_context): context tel (Telescope) : Telescope object wfs (Sensors) : Sensors object dms (Dms) : Dms object atmos (Atmos) : Atmos object p_wfss (list of Param_wfs) : wfs settings p_tel (Param_tel) : telescope settings p_geom (Param_geom) : geom settings p_atmos (Param_atmos) : atmos settings ittime (float) : iteration time [s] p_centroiders (list of Param_centroider): (optional) centroiders settings p_controllers (list of Param_controller): (optional) controllers settings p_dms (list of Param_dms) : (optional) dms settings do_refslp (bool): (optional) do ref slopes flag, default=False brahma (bool) : (optional) brahma flag cacao (bool) : (optional) cacao flag tar (Target) : (optional) dataBase (dict): (optional) dict containig paths to files to load use_DB (bool): use dataBase flag :return: Rtc (Rtc) : Rtc object
Definition at line 79 of file rtc_init.py.
Rtc shesha.init.rtc_init.rtc_standalone | ( | carmaWrap_context | context, |
int | nwfs, | ||
list | nvalid, | ||
int | nactu, | ||
list | centroider_type, | ||
list | delay, | ||
list | offset, | ||
list | scale, | ||
bool | brahma = False , |
||
bool | fp16 = False , |
||
bool | cacao = False |
||
) |