the entry matching code raises an error when attempting to write to an empty file:
Traceback (most recent call last):
File "/home/dmeliza/.virtualenvs/mspikes/bin/mspikes", line 9, in <module>
load_entry_point('mspikes==3.0.0-SNAPSHOT', 'console_scripts', 'mspikes')()
File "/home/dmeliza/src/mspikes/mspikes/main.py", line 172, in mspikes
for chunk in chain(*root):
File "/home/dmeliza/src/mspikes/mspikes/modules/klusters.py", line 208, in __iter__
Node.send(self, chunk)
File "/home/dmeliza/src/mspikes/mspikes/types.py", line 87, in send
if filt is None or filt(data): tgt.send(data)
File "/home/dmeliza/src/mspikes/mspikes/modules/arf_io.py", line 250, in send
self._write_events(chunk)
File "/home/dmeliza/src/mspikes/mspikes/modules/arf_io.py", line 350, in _write_events
entry = self._entries[cut_idx]
the entry matching code raises an error when attempting to write to an empty file: