Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Changing functional detect settings produces an error #1077

Closed
kyesther00 opened this issue Jan 15, 2024 · 0 comments
Closed

BUG: Changing functional detect settings produces an error #1077

kyesther00 opened this issue Jan 15, 2024 · 0 comments

Comments

@kyesther00
Copy link

Describe the issue:

I've been changing the parameters on Suite2p to see what works best with my current images, but recently, when I change spare_mode to 0, it gives me an error, but when I leave it as it is (which is = 1 at the moment), it processes my images without any errors.

Reproduce the code example:

>>>ERROR<<<
Traceback (most recent call last):
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\runpy.py", line 197, in _run_module_as_main
>>>ERROR<<<
    return _run_code(code, main_globals, None,
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\runpy.py", line 87, in _run_code
>>>ERROR<<<
    exec(code, run_globals)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 84, in <module>
>>>ERROR<<<
    main()
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 77, in main
>>>ERROR<<<
    run_s2p(ops, db)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 521, in run_s2p
>>>ERROR<<<
    op = run_plane(op, ops_path=ops_path)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 336, in run_plane
>>>ERROR<<<
    ops = pipeline(f_reg, f_raw, f_reg_chan2, f_raw_chan2, run_registration, ops,
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 165, in pipeline
    ops, stat = detection.detection_wrapper(f_reg, ops=ops, classfile=classfile)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\detect.py", line 172, in detection_wrapper
>>>ERROR<<<
    stat = select_rois(
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\detect.py", line 240, in select_rois
    ops, stat = sourcery.sourcery(mov=mov, ops=ops)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 405, in sourcery
    S, StU, StS = getStU(ops, U)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 67, in getStU
    S = create_neuropil_basis(ops, Lyc, Lxc)
  File "C:\Users\yk623\AppData\Local\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)

Error message:

>>>ERROR<<<
Traceback (most recent call last):
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\runpy.py", line 197, in _run_module_as_main
>>>ERROR<<<
    return _run_code(code, main_globals, None,
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\runpy.py", line 87, in _run_code
>>>ERROR<<<
    exec(code, run_globals)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 84, in <module>
>>>ERROR<<<
    main()
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\__main__.py", line 77, in main
>>>ERROR<<<
    run_s2p(ops, db)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 521, in run_s2p
>>>ERROR<<<
    op = run_plane(op, ops_path=ops_path)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 336, in run_plane
>>>ERROR<<<
    ops = pipeline(f_reg, f_raw, f_reg_chan2, f_raw_chan2, run_registration, ops,
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\run_s2p.py", line 165, in pipeline
    ops, stat = detection.detection_wrapper(f_reg, ops=ops, classfile=classfile)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\detect.py", line 172, in detection_wrapper
>>>ERROR<<<
    stat = select_rois(
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\detect.py", line 240, in select_rois
    ops, stat = sourcery.sourcery(mov=mov, ops=ops)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 405, in sourcery
    S, StU, StS = getStU(ops, U)
  File "C:\Users\yk623\AppData\Local\anaconda3\envs\suite2p\lib\site-packages\suite2p\detection\sourcery.py", line 67, in getStU
    S = create_neuropil_basis(ops, Lyc, Lxc)
  File "C:\Users\yk623\AppData\Local\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.2

Context for the issue:

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant