TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self, config, infMat) |
def | save_injection_matrix (self) |
def | load_injection_matrix (self) |
def | find_actuator_ring (self, innerRadius, outerRadius) |
def | find_master_slave_actuators (self) |
def | find_slaved_actuator_commands (self, slaveIdx, actCmd) |
def | build_zernike_injection_matrix (self, display=False) |
def | init_mode_response_display (self) |
def | display_mode_response (self, j) |
def | __init__ (self, config, infMat) |
def | save_injection_matrix (self) |
def | load_injection_matrix (self) |
def | find_actuator_ring (self, innerRadius, outerRadius) |
def | find_master_slave_actuators (self) |
def | find_slaved_actuator_commands (self, slaveIdx, actCmd) |
def | build_zernike_injection_matrix (self, display=False) |
def | init_mode_response_display (self) |
def | display_mode_response (self, j) |
Public Attributes | |
infMat | |
useBrim | |
config | |
actMap | |
actCoords | |
m2c | |
slavedActIdx | |
masterActIdx | |
numModes | |
slaveGain | |
dmShape | |
Private Attributes | |
_modImg1 | |
_modColorbar1 | |
_modNote1 | |
_modImg2 | |
_modColorbar2 | |
_modNote2 | |
_modImg3 | |
_modColorbar3 | |
_modNote3 | |
Deals with the generation and analysis of injection matrices.
def laospy.injection.InjectionMatrix.__init__ | ( | self, | |
config, | |||
infMat | |||
) |
Parameters ---------- config : configuration tree node the configuration for the injection infMat : ActuatorInfluence object the influence matrix the injection will be based on
def laospy.injection.InjectionMatrix.__init__ | ( | self, | |
config, | |||
infMat | |||
) |
Parameters ---------- config : configuration tree node the configuration for the injection infMat : ActuatorInfluence object the influence matrix the injection will be based on
def laospy.injection.InjectionMatrix.build_zernike_injection_matrix | ( | self, | |
display = False |
|||
) |
Creates a new injection matrix. Parameters ---------- display : boolean True if results should be displayed in graphs Property Tree Parameters: ------------------------ INJ.NUMMODES Number of modes INJ.SLAVEGAIN gain factor applied to the value of the nearest master actuator.
def laospy.injection.InjectionMatrix.build_zernike_injection_matrix | ( | self, | |
display = False |
|||
) |
Creates a new injection matrix. Parameters ---------- display : boolean True if results should be displayed in graphs Property Tree Parameters: ------------------------ INJ.NUMMODES Number of modes INJ.SLAVEGAIN gain factor applied to the value of the nearest master actuator.
def laospy.injection.InjectionMatrix.display_mode_response | ( | self, | |
j | |||
) |
def laospy.injection.InjectionMatrix.display_mode_response | ( | self, | |
j | |||
) |
def laospy.injection.InjectionMatrix.find_actuator_ring | ( | self, | |
innerRadius, | |||
outerRadius | |||
) |
Returns the indices of actuators that have the same radial distance to the center of the DM All actuators with at least a the given radius but less than the outer radius in actuator spacing units are returned Parameters ---------- innerRadius : float inner radius of the ring in actuator grid spacing outerRadius : float outer radius of the ring in actuator grid spacing Returns ------- actuatorIdx = ndarray array of indices of actuators which are inside the ring
def laospy.injection.InjectionMatrix.find_actuator_ring | ( | self, | |
innerRadius, | |||
outerRadius | |||
) |
Returns the indices of actuators that have the same radial distance to the center of the DM All actuators with at least a the given radius but less than the outer radius in actuator spacing units are returned Parameters ---------- innerRadius : float inner radius of the ring in actuator grid spacing outerRadius : float outer radius of the ring in actuator grid spacing Returns ------- actuatorIdx = ndarray array of indices of actuators which are inside the ring
def laospy.injection.InjectionMatrix.find_master_slave_actuators | ( | self | ) |
Returns the indices of master and slaved actuators The influence functions of the outermost actuators may not be properly measured, as the FISBA does not fully see them. They should be excluded when building the injection matrix. Property Tree Parameters: ------------------------ INJ.SLAVEDRAD radius of the ring of actuators that should be "slaved" Returns ------- masterActIdx, slavedActIdx : ndarray, ndarray arrays with master actuators and slaved actuators
def laospy.injection.InjectionMatrix.find_master_slave_actuators | ( | self | ) |
Returns the indices of master and slaved actuators The influence functions of the outermost actuators may not be properly measured, as the FISBA does not fully see them. They should be excluded when building the injection matrix. Property Tree Parameters: ------------------------ INJ.SLAVEDRAD radius of the ring of actuators that should be "slaved" Returns ------- masterActIdx, slavedActIdx : ndarray, ndarray arrays with master actuators and slaved actuators
def laospy.injection.InjectionMatrix.find_slaved_actuator_commands | ( | self, | |
slaveIdx, | |||
actCmd | |||
) |
def laospy.injection.InjectionMatrix.find_slaved_actuator_commands | ( | self, | |
slaveIdx, | |||
actCmd | |||
) |
def laospy.injection.InjectionMatrix.init_mode_response_display | ( | self | ) |
def laospy.injection.InjectionMatrix.init_mode_response_display | ( | self | ) |
def laospy.injection.InjectionMatrix.load_injection_matrix | ( | self | ) |
def laospy.injection.InjectionMatrix.load_injection_matrix | ( | self | ) |
def laospy.injection.InjectionMatrix.save_injection_matrix | ( | self | ) |
Saves the injection matrix (m2c) to a FITS file
def laospy.injection.InjectionMatrix.save_injection_matrix | ( | self | ) |
Saves the injection matrix (m2c) to a FITS file
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
laospy.injection.InjectionMatrix.actCoords |
laospy.injection.InjectionMatrix.actMap |
laospy.injection.InjectionMatrix.config |
laospy.injection.InjectionMatrix.dmShape |
laospy.injection.InjectionMatrix.infMat |
laospy.injection.InjectionMatrix.m2c |
laospy.injection.InjectionMatrix.masterActIdx |
laospy.injection.InjectionMatrix.numModes |
laospy.injection.InjectionMatrix.slavedActIdx |
laospy.injection.InjectionMatrix.slaveGain |
laospy.injection.InjectionMatrix.useBrim |