Skip to content

Commit 7e8eeaa

Browse files
typo in register messing up meanImg in align_by_chan=2 (#541)
1 parent 936cc83 commit 7e8eeaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suite2p/registration/register.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def register_binary(ops: Dict[str, Any], refImg=None, raw=True):
359359
mean_img_sum += frames.mean(axis=0)
360360

361361
print('Registered second channel in %0.2f sec.' % (time.time() - t0))
362-
meanImg_key = 'meanImag' if ops['functional_chan'] != ops['align_by_chan'] else 'meanImg_chan2'
362+
meanImg_key = 'meanImg' if ops['functional_chan'] != ops['align_by_chan'] else 'meanImg_chan2'
363363
ops[meanImg_key] = mean_img_sum / (k + 1)
364364

365365
# compute valid region

0 commit comments

Comments
 (0)