navigate.model.features.remove_empty_tiles.RemoveEmptyPositions
- class navigate.model.features.remove_empty_tiles.RemoveEmptyPositions(model, position_flags=[])
Bases:
FeatureBaseRemove Empty Positions from the Model.
This class is used to remove empty positions from the model based on the specified position flags.
- __init__(model, position_flags=[])
Initialize the RemoveEmptyPositions class.
- Parameters:
model (object) – The model object representing the microscope.
position_flags (list, optional) – A list of position flags to remove. Default is an empty list.
Methods
__init__(model[, position_flags])Initialize the RemoveEmptyPositions class.
Main signal processing function to remove empty positions.
Attributes
- signal_func()
Main signal processing function to remove empty positions.
This method processes the signal to remove empty positions from the model based on the specified position flags. It puts a “remove_positions” event into the model’s event queue to trigger the removal.
- Returns:
True indicating the successful execution of the signal function.
- Return type:
bool
- model
The model object representing the microscope.
- Type:
navigate.model.Model
- parameter_schema = {'position_flags': SettingSpec(value_type=<class 'list'>, default=[], label='Position Flags', help_text='Boolean flags identifying which multi-position rows should be removed (True: keep; False: delete).', choices=None, choice_values=None, minimum=None, exclusive_minimum=None, maximum=None, step=None, required=False, dynamic_source=None, depends_on=None)}
- position_records
A list of position flags to remove.
- Type:
list