BoundedBlockageFinder¶
class BoundedBlockageFinder(settings: Optional[dict] = None)
Bases: ClassicBlockageFinder
Subclass of ClassicBlockageFinder that adds baseline range constraints for event detection.
This event finder enforces a user-defined minimum and maximum baseline range and refines the Gaussian baseline fitting procedure accordingly. It filters data outside the specified baseline window and raises errors if the computed baseline falls outside those bounds.
Public Methods¶
- BoundedBlockageFinder.get_empty_settings(globally_available_plugins=None, standalone=False)¶
Get a dict populated with keys needed to initialize the filter if they are not set yet. This dict must have the following structure, but Min, Max, and Options can be skipped or explicitly set to None if they are not used. Value and Type are required. All values provided must be consistent with Type. EventFinder objects MUST include a MetaReader object in settings
settings = {'Parameter 1': {'Type': <int, float, str, bool>, 'Value': <value> or None, 'Options': [<option_1>, <option_2>, ... ] or None, 'Min': <min_value> or None, 'Max': <max_value> or None }, ... }
Private Methods¶
- BoundedBlockageFinder._get_baseline_stats(data)¶
Get the local amplitude, mean, and standard deviation for a chunk of data.
- BoundedBlockageFinder._validate_settings(settings)¶
Validate that the settings dict contains the correct information for use by the subclass.
- Parameters:
settings (dict) – Parameters for event detection.
- Raises:
ValueError – If the settings dict does not contain the correct information.