Skip to content

Commit e6ed85f

Browse files
Fix condition for negative bidiphase handling
1 parent a156b31 commit e6ed85f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

suite2p/registration/bidiphase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ def shift(frames: np.ndarray, bidiphase: int) -> None:
6262
"""
6363
if bidiphase > 0:
6464
frames[:, 1::2, bidiphase:] = frames[:, 1::2, :-bidiphase]
65-
else:
65+
elif bidiphase < 0:
6666
frames[:, 1::2, :bidiphase] = frames[:, 1::2, -bidiphase:]
6767
return frames

0 commit comments

Comments
 (0)