Skip to content

BUG: Error in register.assign_reg_io: variable not assigned #1210

@sylviaschroeder

Description

@sylviaschroeder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions