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

Exclude empty blocks in BlockwiseCoreg and handle warnings. #186

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

erikmannerfelt
Copy link
Contributor

Closes #185.

Completely empty blocks are now skipped, and are not considered for the success percentage.

Also, a few warnings may occur before coreg approaches fail, so these are now caught and are by default not shown. For debug purposes, it can be shown by enabling the warn_failures attribute to True (can also be set as an argument to the __init__() method), whereby each failure and warning will be shown as warnings.

@erikmannerfelt erikmannerfelt added bug Something isn't working enhancement Feature improvement or request labels Jul 9, 2021
@erikmannerfelt erikmannerfelt requested a review from adehecq July 9, 2021 10:22
@erikmannerfelt erikmannerfelt self-assigned this Jul 9, 2021
Copy link
Member

@adehecq adehecq left a comment

Choose a reason for hiding this comment

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

Seems great! A simple fix for a much more intuitive use!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Feature improvement or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blockwise coregistration fails with large data gaps
2 participants