NeuralEnsemble / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://neo.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
325 stars 248 forks source link

python-neo fails to load unsorted spike channels from PL2 files #1549

Closed nikhilchandra closed 2 months ago

nikhilchandra commented 2 months ago

Describe the bug python-neo fails to load spike channels from PL2 (Plexon2) files containing only unsorted units.

To Reproduce Find a PL2 file that includes spike channels containing only unsorted units. One candidate is NC16FPSPKEVT_1m.pl2 included in the ephys_testing_data dataset. Upon loading the file using plexon2rawio, you will find that the 4 spike channels that contain spikes (SPK01, SPK05, SPK09, SPK13) are not loaded because they contain only unsorted spikes.

Expected behaviour I expect channels with unsorted spikes to be included.

Environment:

Additional context I have a potential fix and will submit it soon.

zm711 commented 2 months ago

thanks @nikhilchandra! We appreciate your work on this!