You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the adaptive window code it tries to find the win_size by taking the initial threshold set by the user and if that doesn't work then it divides by 2 to try a smaller threshold and continues. But if there is no threshold then we end up with reaching the maximum recursion depth because 0/2 will keep being 0. I don't know this bit of the code well enough to know what our base condition should be in the case that there are no peaks (maybe if a unit with bad correlograms?) so I'm no completely sure how to fix this. What do think @yger since you've updated this extensively.
In the adaptive window code it tries to find the
win_size
by taking the initial threshold set by the user and if that doesn't work then it divides by 2 to try a smaller threshold and continues. But if there is no threshold then we end up with reaching the maximum recursion depth because 0/2 will keep being 0. I don't know this bit of the code well enough to know what our base condition should be in the case that there are no peaks (maybe if a unit with bad correlograms?) so I'm no completely sure how to fix this. What do think @yger since you've updated this extensively.function below for convenient check:
spikeinterface/src/spikeinterface/curation/auto_merge.py
Lines 717 to 755 in 6fde997
The text was updated successfully, but these errors were encountered: