Closed mdenker closed 3 years ago
So, to be clear, the waveform sizes differed across different experimental sessions, or within different spiketrains in one session? I would then accordingly check if waveforms in different sessions have different lengths, or if the waveforms for different spiketrains within one session are different.
SWAN should throw an error for now. Probably this should be done Neodata.py
. @shashwatsridhar please check if you fixed this already.
Fixed for 0.2.x branch. Todo: Backport to 0.1.0.
Backported to 0.1.0 with PR #38. Closing this issue.
The number of samples per waveform can be set by the Blackrock recording software. Typical values could be 38 or 48 samples (in the 1/30000 s time resolution). SWAN however, does not check for this and crashes when trying to plot waveforms of different dimensions, e.g., the mean wave form plot exits with
The easiest solution would be to throw an error when trying to load files with incompatible waveform sizes.