navigate.model.features.remove_empty_tiles.RemoveEmptyPositions
- class navigate.model.features.remove_empty_tiles.RemoveEmptyPositions(model, position_flags=[])
Bases:
object
Remove 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:
- modelobject
The model object representing the microscope.
- position_flagslist, 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
The model object representing the microscope.
A list of position flags to remove.
- 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:
- bool
True indicating the successful execution of the signal function.
- model
The model object representing the microscope.
- Type:
navigate.model.Model
- position_records
A list of position flags to remove.
- Type:
list