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
The line compares xoff and yoff (probably movement correction values for each frame) with frames_include.
Those two variables have the matching size of frames_include, but the n_frames parameter is loaded from suite2p/run_s2p.py#L500, and has the total number of frame number instead.
Reproduce the code example:
fromsuite2pimportdefault_opsfromsuite2p.run_s2pimportrun_s2base_ops=default_ops()
# with other necessary options..base_ops.update({'frames_include': 100})
run_s2p(base_ops)
Error message:
Traceback (most recent call last):
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/suite2p/run_s2p.py", line 336, in run_plane
ops = pipeline(f_reg, f_raw, f_reg_chan2, f_raw_chan2, run_registration, ops,
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/suite2p/run_s2p.py", line 108, in pipeline
registration_outputs = registration.registration_wrapper(
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/suite2p/registration/register.py", line 652, in registration_wrapper
mean_img_alt = shift_frames_and_write(f_alt_in, f_alt_out, yoff, xoff, yoff1,
File "/home/jihoon_jeong/miniforge3/envs/2p_prep/lib/python3.9/site-packages/suite2p/registration/register.py", line 492, in shift_frames_and_write
raise ValueError(
ValueError: rigid registration offsets are not the same size as input frames
Version information:
0.14.0
Context for the issue:
No response
The text was updated successfully, but these errors were encountered:
Describe the issue:
Behavior
In the latest document,
frames_include
option is implemented for the following reason.However this option does not work and also is not implemented in the GUI.
The source of the error : suite2p/registration/register.py#L493
Cause
The line compares
xoff
andyoff
(probably movement correction values for each frame) withframes_include
.Those two variables have the matching size of
frames_include
, but then_frames
parameter is loaded from suite2p/run_s2p.py#L500, and has the total number of frame number instead.Reproduce the code example:
Error message:
Version information:
0.14.0
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: