nubs01 / blechpy

Python package for extraction, spike clustering and processing of Intan recorded neural data for Katz Lab
MIT License
11 stars 5 forks source link

log(0) error when rate is 0 #60

Closed danielsvedberg closed 1 year ago

danielsvedberg commented 1 year ago

https://github.com/nubs01/blechpy/blob/de2319a20cd299fef5423e003bdf8ad67699c30f/blechpy/analysis/poissonHMM.py#L53

currently prohibits any state from having a firing rate of 0. Need to add condition to detect indices with 0 rate and replace with 0 for indices where events k > 0 and replace with 1 where events k == 0

danielsvedberg commented 1 year ago

solved with commit #61