Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug related to missing output file #2566

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

jcohenadad
Copy link
Member

A bug likely introduced in #2331 makes the function crash when using the flag -initwarp, throwing an ugly "UnboundLocalError: local variable 'fname_dest2src' referenced before assignment".

This PR fixes the issue by making sure all output variables are defined.

Fixes #2565

@jcohenadad jcohenadad added bug category: fixes an error in the code sct_register_multimodal context: labels Jan 6, 2020
@jcohenadad jcohenadad added this to the 4.2.1 milestone Jan 6, 2020
@jcohenadad jcohenadad self-assigned this Jan 6, 2020
Copy link
Contributor

@olix86 olix86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@jcohenadad jcohenadad merged commit 69f6bfd into master Jan 6, 2020
@jcohenadad jcohenadad deleted the jca/2565-register-unboundlocalerror branch January 6, 2020 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code sct_register_multimodal context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnboundLocalError when using -initwarp flag
2 participants