37 from typing
import List
40 """ Source handler for compass simulation
43 sources : (List) : List of SutraSource instances
46 """ Initialize a SourceCompass component for target and wfs source related supervision
49 sources : (List) : List of SutraSource instances
53 def raytrace(self, index, *, tel=None, atm=None, dms=None, ncpa : bool=
True, reset : bool =
True, comp_avg_var : bool =
True) ->
None:
54 """ Performs the raytracing operation through provided object phase screens
55 to obtain the phase screen of the SutraSource
58 index : (int) : Index of the source to raytrace in self.sources list
61 tel : (TelescopeCompass) : TelescopeCompass instance.
62 If provided, raytrace through the telescope aberration phase in the pupil
64 atm : (AtmosCompass) : AtmosCompass instance.
65 If provided, raytrace through the layers phase screens
67 dms : (dmsCompass) : DmCompass instance.
68 If provided, raytrace through the DM shapes
70 ncpa : (bool) : If True (default), raytrace through NCPA phase screen of the source (default is array of 0, i.e. no impact)
72 reset: (bool): reset the phase screen before raytracing. Default is True
75 self.
sourcessources[index].d_phase.reset()
84 self.
sourcessources[index].
raytrace(dms._dms, do_phase_var=comp_avg_var)
Source handler for compass simulation.
def __init__(self, List sources)
None raytrace(self, index, *tel=None, atm=None, dms=None, bool ncpa=True, bool reset=True, bool comp_avg_var=True)
Performs the raytracing operation through provided object phase screens to obtain the phase screen of...
sources
(List) : List of SutraSource instances