features.DartParameters
features.DartParameters()Configuration parameters for Dartsort backend.
This class defines the parameters used for spike detection and feature extraction using the Dartsort algorithm.
Attributes: localization_radius (float): Radius in micrometers for spike localization. Defaults to 150. chunk_length_samples (int): Length of data chunks in samples for processing. Defaults to 2^15 (32768). trough_offset (int): Offset in samples from spike peak to trough. Defaults to 42. scratch_dir (Path or str, optional): Scratch directory for temporary files. If None, uses tempfile.gettempdir()/dartsort. Created if missing; raises OSError if it cannot be created. n_jobs (int): DARTsort worker count used to build its ComputationConfig. 0 runs in the main process; positive values select that many workers. Defaults to 0. detection_threshold (float): Peak detection threshold, in units of channel RMS. Passed to DARTsort as voltage_threshold. Defaults to 4.0. spatial_dedup_radius_um (float): Radius in micrometres within which only the largest simultaneous peak is kept. Defaults to 150.0. positive_temporal_dedup_radius_samples (int): Samples around a trough in which positive peaks are suppressed. Defaults to 7. residnorm_decrease_threshold (float): Minimum residual-norm decrease for a detected spike to be subtracted. Passed to DARTsort as subtraction_threshold. Defaults to 3.162 (sqrt(10)).