navigate.model.features.common_features.MoveToNextPositionInMultiPositionTable
- class navigate.model.features.common_features.MoveToNextPositionInMultiPositionTable(model)
Bases:
object
MoveToNextPositionInMultiPositionTable class for advancing in a multi-position table.
This class provides functionality to move to the next position in a multi-position table and control the data thread accordingly.
Notes:
This class is used to advance to the next position in a multi-position table,
controlling the data thread based on stage distance thresholds.
The MoveToNextPositionInMultiPositionTable class is typically used to automate
position changes during microscopy experiments, ensuring proper data thread management.
The position control process involves moving to the next position in the table,
pausing the data thread if necessary, and resuming it after the movement.
The config_table attribute defines the configuration for the position control
process, including signal acquisition and cleanup steps.
- __init__(model)
Initialize the MoveToNextPositionInMultiPositionTable class.
Parameters:
- modelMicroscopeModel
The microscope model object used for position control.
Methods
__init__
(model)Initialize the MoveToNextPositionInMultiPositionTable class.
cleanup
()Cleanup method to resume the data thread.
Move to the next position in the multi-position table and control the data thread.
Attributes
The microscope model associated with position control.
A dictionary defining the configuration for the position control
The current index of the position being acquired in the multi-position
The current index of the position being acquired in the multi-position
A dictionary defining the configuration for the position control
The total number of positions in the multi-position table.
The stage distance threshold for pausing the data thread.
- cleanup()
Cleanup method to resume the data thread.
This method is responsible for resuming the data thread after position control.
- signal_func()
Move to the next position in the multi-position table and control the data thread.
This method advances to the next position in the multi-position table, controls the data thread based on stage distance thresholds, and updates position-related information.
Returns:
- bool
A boolean value indicating whether to continue the position control process.
- config_table
A dictionary defining the configuration for the position control
- Type:
dict
- current_idx
The current index of the position being acquired in the multi-position
- Type:
int
- model
The microscope model associated with position control.
- Type:
MicroscopeModel
- multiposition_table
A dictionary defining the configuration for the position control
- Type:
dict
- position_count
The total number of positions in the multi-position table.
- Type:
int
- pre_z
The current index of the position being acquired in the multi-position
- Type:
int
- stage_distance_threshold
The stage distance threshold for pausing the data thread.
- Type:
int