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

Namespaces

 ltao
 
 mcao
 
 writer
 

Functions

def check ()
 Checks that variable are initialized. More...
 
def init (sup, mod, *wfs="all", dm_use_tt=False, n_filt=None)
 Set up the compass loop. More...
 
def reconstructor (mod)
 Compute the TAO reconstructor for a given AO mode. More...
 
def run (sup, mod, *n_iter=1000, initialisation=True, reset=True, wfs="all", dm_use_tt=False, n_filt=None)
 Computes a tao reconstructor and run a compass loop with it. More...
 

Variables

string TILE_SIZE = "1000"
 
string STARPU_FLAGS = ""
 
dictionary TAO_SETTINGS
 

Function Documentation

◆ check()

def shesha.util.tao.check ( )

Checks that variable are initialized.

Definition at line 30 of file util/tao/__init__.py.

Here is the caller graph for this function:

◆ init()

def shesha.util.tao.init (   sup,
  mod,
wfs = "all",
  dm_use_tt = False,
  n_filt = None 
)

Set up the compass loop.

set the interaction matrix, loop gain and write parameter files for TAO

Parameters
sup(CompassSupervisor) : current supervisor
mod(module) : AO mode requested (among: ltao , mcao)
wfs(str) : (optional), default "all" wfs used by tao ( among "all", "lgs", "ngs")
dm_use_tt(bool) :(optional), default False using a TT DM
n_filt(int) : (optional), default None number of meta interaction matrix singular values filtered out

Definition at line 85 of file util/tao/__init__.py.

Here is the caller graph for this function:

◆ reconstructor()

def shesha.util.tao.reconstructor (   mod)

Compute the TAO reconstructor for a given AO mode.

Parameters
mod(module) : AO mode requested (among: ltao , mcao)

Definition at line 100 of file util/tao/__init__.py.

Here is the caller graph for this function:

◆ run()

def shesha.util.tao.run (   sup,
  mod,
n_iter = 1000,
  initialisation = True,
  reset = True,
  wfs = "all",
  dm_use_tt = False,
  n_filt = None 
)

Computes a tao reconstructor and run a compass loop with it.

Parameters
sup(CompassSupervisor) : current supervisor
mod(module) : AO mode requested (among: ltao , mcao)
Kwargs
n_iter(int) : (optional), default 1000 number of iteration of the ao loop
initialisation(bool) : (optional), default True initialise tao (include comptation of meta matrices of interaction/command)
reset(bool) : (optional), default True reset the supervisor before the loop
wfs(str) : (optional), default "all" wfs used by tao ( among "all", "lgs", "ngs")
dm_use_tt(bool) :(optional), default False using a TT DM
n_filt(int) : (optional), default None number of meta interaction matrix singular values filtered out

Definition at line 124 of file util/tao/__init__.py.

Here is the call graph for this function:

Variable Documentation

◆ STARPU_FLAGS

string shesha.util.tao.STARPU_FLAGS = ""

Definition at line 16 of file util/tao/__init__.py.

◆ TAO_SETTINGS

dictionary shesha.util.tao.TAO_SETTINGS
Initial value:
1 = {"SCHED":"dmdas",
2  "STARPU_FLAGS":"",
3  "GPU_IDS":0,
4  "TILE_SIZE":TILE_SIZE,
5  "INPUT_PATH":0,
6  "TAO_PATH":0
7  }

Definition at line 19 of file util/tao/__init__.py.

◆ TILE_SIZE

string shesha.util.tao.TILE_SIZE = "1000"

Definition at line 14 of file util/tao/__init__.py.