COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
shesha.supervisor.canapassSupervisor Namespace Reference

Initialization and execution of a CANAPASS supervisor. More...

Classes

class  CanapassSupervisor
 
class  loopHandler
 

Variables

 arguments = docopt(__doc__)
 
 config = ParamConfig(arguments["<parameters_filename>"])
 
 rMod = int(arguments["--rmod"])
 
 nbPtMod = int(np.ceil(int(rMod * 2 * 3.141592653589793) / 4.) * 4)
 
 supervisor = CanapassSupervisor(config, cacao=True)
 
 REQUIRE_EXPOSE
 
 p = Popen("whoami", shell=True, stdout=PIPE, stderr=PIPE)
 
 out
 
 err
 
 user = out.split(b"\n")[0].decode("utf-8")
 
 coro2pyro = PyroEmptyClass()
 
list devices
 
list names
 
list nname = []
 
 server = PyroServer(listDevices=devices, listNames=nname)
 

Detailed Description

Initialization and execution of a CANAPASS supervisor.

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.4.4
Date
2022/01/24

This file is part of COMPASS https://anr-compass.github.io/compass/

Copyright (C) 2011-2023 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.

Initialization and execution of a CANAPASS supervisor

Usage
canapassSupervisor.py <parameters_filename> [options]
with 'parameters_filename' the path to the parameters file
Options
-h, –help Show this help message and exit -f, –freq freq change the frequency of the loop -d, –delay delay change the delay of the loop -s, –spiders spiders change the spiders size -n, –nxsub nxsub change the number of pixels in subap -p, –pupsep pupsep change the distance between subap center and frame center -g, –gsmag gsmag change guide star magnitude -r, –rmod rmod change modulation radius -x, –offaxis offaxis change all targets position along x axis -r0,–setr0 setr0 change the global r0

Variable Documentation

◆ arguments

shesha.supervisor.canapassSupervisor.arguments = docopt(__doc__)

Definition at line 129 of file canapassSupervisor.py.

◆ config

shesha.supervisor.canapassSupervisor.config = ParamConfig(arguments["<parameters_filename>"])

Definition at line 130 of file canapassSupervisor.py.

◆ coro2pyro

shesha.supervisor.canapassSupervisor.coro2pyro = PyroEmptyClass()

Definition at line 181 of file canapassSupervisor.py.

◆ devices

list shesha.supervisor.canapassSupervisor.devices
Initial value:
1 = [
2  supervisor, supervisor.rtc, supervisor.wfs, supervisor.target,
3  supervisor.tel, supervisor.basis, supervisor.calibration,
4  supervisor.atmos, supervisor.dms, supervisor.config, supervisor.modalgains, coro2pyro
5  ]

Definition at line 184 of file canapassSupervisor.py.

◆ err

shesha.supervisor.canapassSupervisor.err

Definition at line 172 of file canapassSupervisor.py.

◆ names

list shesha.supervisor.canapassSupervisor.names
Initial value:
1 = [
2  "supervisor", "supervisor_rtc", "supervisor_wfs", "supervisor_target",
3  "supervisor_tel", "supervisor_basis", "supervisor_calibration",
4  "supervisor_atmos", "supervisor_dms", "supervisor_config", "supervisor_modalgains", "supervisor_corono",
5  ]

Definition at line 189 of file canapassSupervisor.py.

◆ nbPtMod

shesha.supervisor.canapassSupervisor.nbPtMod = int(np.ceil(int(rMod * 2 * 3.141592653589793) / 4.) * 4)

Definition at line 155 of file canapassSupervisor.py.

◆ nname

list shesha.supervisor.canapassSupervisor.nname = []

Definition at line 194 of file canapassSupervisor.py.

◆ out

shesha.supervisor.canapassSupervisor.out

Definition at line 172 of file canapassSupervisor.py.

◆ p

shesha.supervisor.canapassSupervisor.p = Popen("whoami", shell=True, stdout=PIPE, stderr=PIPE)

Definition at line 171 of file canapassSupervisor.py.

◆ REQUIRE_EXPOSE

shesha.supervisor.canapassSupervisor.REQUIRE_EXPOSE

Definition at line 170 of file canapassSupervisor.py.

◆ rMod

shesha.supervisor.canapassSupervisor.rMod = int(arguments["--rmod"])

Definition at line 154 of file canapassSupervisor.py.

◆ server

shesha.supervisor.canapassSupervisor.server = PyroServer(listDevices=devices, listNames=nname)

Definition at line 197 of file canapassSupervisor.py.

◆ supervisor

shesha.supervisor.canapassSupervisor.supervisor = CanapassSupervisor(config, cacao=True)

Definition at line 164 of file canapassSupervisor.py.

◆ user

shesha.supervisor.canapassSupervisor.user = out.split(b"\n")[0].decode("utf-8")

Definition at line 177 of file canapassSupervisor.py.