Skip to content

extract_raw_waveforms crashes on empty waveform #365

@Sicheng-package

Description

@Sicheng-package

When running bc.run_bombcell(..., return_figures=True) on a Kilosort output, bombcell/extract_raw_waveforms.py can index a zero-length waveform and then calls np.max(...), which raises a ValueError:
“zero-size array to reduction operation maximum which has no identity”

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions