DeformableMirrorProxy
- class catkit2.testbed.proxies.DeformableMirrorProxy(testbed, service_id)
Bases:
catkit2.testbed.service_proxy.ServiceProxy
Attributes Summary
The positions of the actuators of the DM(s).
The length of a DM command.
A mask describing the physical actuators on all DMs.
The shape of the DM.
The number of device actuators per DM.
The number of DMs.
Methods Summary
apply_shape
(channel, dm_shape)Apply a shape to a DM channel.
command_to_dm_maps
(command)Convert a DM command into DM maps.
dm_maps_to_command
(dm_map)Convert a 2D Dm map or cube of 2D DM maps to a DM command.
flatten_channels
(channel_names)Flatten the designated channels.
write_dm_shape
(fname, dm_shape)Write a DM shape to a file.
Attributes Documentation
- actuator_grid
The positions of the actuators of the DM(s).
- command_length
The length of a DM command.
- device_actuator_mask
A mask describing the physical actuators on all DMs.
- dm_shape
The shape of the DM.
- num_actuators
The number of device actuators per DM.
- num_dms
The number of DMs.
Methods Documentation
- apply_shape(channel, dm_shape)
Apply a shape to a DM channel.
- channelstr
The channel to apply the shape to.
- dm_shapendarray
Either a DM command or DM maps.
- command_to_dm_maps(command)
Convert a DM command into DM maps.
- commandndarray
A 1D array containing the DM command.
- ndarray
The DM maps for each device.
- dm_maps_to_command(dm_map)
Convert a 2D Dm map or cube of 2D DM maps to a DM command.
- dm_maparray
The DM map for each device.
- array
A 1D array containing the DM command.
- flatten_channels(channel_names)
Flatten the designated channels.
- channel_nameslist of str, or str
The channel name(s) which to flatten.
- ndarray
The summed DM command of the flattened channels.
- write_dm_shape(fname, dm_shape)
Write a DM shape to a file.
- fnamestr
The path where to write the DM shape.
- dm_shapendarray
Either a DM command or DM maps.