Describe the issue:
Calling register.assign_reg_io with save_path=None (default), results in:
UnboundLocalError: cannot access local variable 'tif_root_align' where it is not associated with a value
Reproduce the code example:
registration_outputs = register.registration_wrapper(f_reg, f_raw=f_raw, f_reg_chan2=f_reg_chan2, f_raw_chan2=f_raw_chan2, refImg=ref_imgs, align_by_chan2=settings_reg["align_by_chan2"], settings=settings_reg, device=device)
Example input dataset used to reproduce the issue:
No response
Error message:
UnboundLocalError: cannot access local variable 'tif_root_align' where it is not associated with a value
Version information:
suite2p v1.0.0.2.dev11+g20ea7e15e
Context for the issue:
No response