kwikteam / klusta

Automatic spike sorting up to 64 channels
BSD 3-Clause "New" or "Revised" License
54 stars 40 forks source link

Catch DivideByZero error when weak threshold == strong threshold #26

Open nippoo opened 8 years ago

nippoo commented 8 years ago

https://github.com/kwikteam/klusta/blob/master/klusta/traces/waveform.py#L94

If you feed in a data file consisting of zeros, this function returns errors. Probably best to detect (somewhere) that tw != ts and exit with a clean error

nippoo commented 8 years ago

(or, exclude that channel with a warning)