8.3.2. Scanner module and classes
Summary of the classes in the scanner module
|
|
|
Container class for a given scan details |
|
Main Object to define a PyMoDAQ scan and create a UI to set it |
The scanner module contains all functionalities to defines a particular scan see Scanner.
- pymodaq.utils.scanner.utils.ScanType = <enum 'ScanType'>
- class pymodaq.utils.scanner.utils.ScanInfo(Nsteps=0, positions=None, axes_indexes=None, axes_unique=None, selected_actuators=[], **kwargs)[source]
Container class for a given scan details
It includes the number of steps and all the positions for the selected actuators. It also contains these positions as scan axes for easier use.
- Parameters:
Nsteps (
int) – Number of steps of the scanpositions (
ndarray) – multidimensional array. the first dimension has a length of Nsteps and each element is an actuator positionpositions_indexes (
ndarray) – multidimensional array of Nsteps 0th dimension length where each element is the index of the corresponding positions within the axis_uniqueaxes_unique (
listofndarray) – list of sorted (and with unique values) 1D arrays of unique positions of each defined axesselected_actuators (
List[str]) – The actuators to be used for this scankwargs (
dictofother named parameterstobe saved as attributes)
- positions
multidimensional array. the first dimension has a length of Nsteps and each element is an actuator position
- Type:
ndarray
- positions_indexes
multidimensional array of Nsteps 0th dimension length where each element is the index of the corresponding positions within the axis_unique
- Type:
ndarray
- class pymodaq.utils.scanner.scanner.Scanner(parent_widget=None, scanner_items={}, actuators=[])[source]
Main Object to define a PyMoDAQ scan and create a UI to set it
- Parameters:
See also
ScanSelector,ScannerBase,TableModelSequential,TableModelTabular,pymodaq_types.TableViewCustom- Attributes:
actuatorslist of str: Returns as a list the name of the selected actuators to describe the actual scan
- axes_indexes
- axes_unique
- distribution
- n_axes
- n_steps
- positions
- scan_sub_type
- scan_type
- scanner
Methods
get_indexes_from_scan_index(scan_index)To be reimplemented.
Get a summary of the configured scan as a ScanInfo object
Get the current ScannerBase implementation's settings
positions_at(index)Extract the actuators positions at a given index in the scan as a DataToExport of DataActuators
set_scan()Process the settings options to calculate the scan positions
set_scan_type_and_subtypes(scan_type, ...)Convenience function to set the main scan type
value_changed(param)connect_things
get_nav_axes
get_scan_shape
save_scanner_settings
scanner_updated_signal
set_scan_from_settings
set_scanner
setup_ui
update_from_scan_selector
- get_indexes_from_scan_index(scan_index)[source]
To be reimplemented. Calculations of indexes within the scan
- positions_at(index)[source]
Extract the actuators positions at a given index in the scan as a DataToExport of DataActuators
- Return type:
- set_scan()[source]
Process the settings options to calculate the scan positions
- Returns:
bool
- Return type:
True if the processed numberofsteps if **higher** than the configured numberofsteps