-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Description
Describe the issue:
When running suite2p after I performed a recent upgrade I often times get the following error when the ROI detection starts running on dendritic calcium imaging videos. However the error does not always occur. OverflowError: cannot convert float infinity to integer. (see below for more details).
Running suite2p from GUI
suite2p v0.14.5
Windows 11
running on Python 3.9
Reproduce the code example:
see ops file attached above. suite2p is run with python -m suite2pExample input dataset used to reproduce the issue:
No response
Error message:
>>>ERROR<<<
Traceback (most recent call last):
File "C:\Users\user\anaconda3\envs\suite2p\lib\runpy.py", line 197, in _run_module_as_main
>>>ERROR<<<
return _run_code(code, main_globals, None,
File "C:\Users\user\anaconda3\envs\suite2p\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 84, in <module>
main()
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 77, in main
run_s2p(ops, db)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 550, in run_s2p
op = run_plane(op, ops_path=ops_path)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 342, in run_plane
>>>ERROR<<<
ops = pipeline(f_reg, f_raw, f_reg_chan2, f_raw_chan2, run_registration, ops,
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 171, in pipeline
>>>ERROR<<<
ops, stat = detection.detection_wrapper(f_reg, ops=ops, classfile=classfile)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\detect.py", line 178, in detection_wrapper
stat = select_rois(
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\detect.py", line 246, in select_rois
ops, stat = sourcery.sourcery(mov=mov, ops=ops)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 405, in sourcery
S, StU, StS = getStU(ops, U)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 67, in getStU
S = create_neuropil_basis(ops, Lyc, Lxc)
File "C:\Users\user\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 128, in create_neuropil_basis
ntilesY = 1 + 2 * int(
OverflowError: cannot convert float infinity to integer
Interrupted by error (not finished)Version information:
suite2p v0.14.5
Context for the issue:
No response
Metadata
Metadata
Assignees
Labels
No labels
