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

Fix BlockwiseCoreg.stats() KeyError and improved tests. #192

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

erikmannerfelt
Copy link
Contributor

Closes #189.

The blocks that were empty are now correctly skipped.

Also, I found that there were infs in the stats! That is because the Coreg.residuals() for some reason calculated an incorrect mask sometimes. I fixed that as well, so all of the statistics are finite.

These two issues are now fixed and correctly tested, so they should not reoccur.

@erikmannerfelt erikmannerfelt added the bug Something isn't working label Jul 19, 2021
@erikmannerfelt erikmannerfelt requested a review from adehecq July 19, 2021 11:30
@erikmannerfelt erikmannerfelt self-assigned this Jul 19, 2021
Copy link
Member

@rhugonnet rhugonnet left a comment

Choose a reason for hiding this comment

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

👍

@erikmannerfelt erikmannerfelt merged commit a5036f3 into GlacioHack:main Jul 19, 2021
@erikmannerfelt erikmannerfelt deleted the fix-blockwise-stats branch July 19, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blockwise coregistration example fails with large gaps
2 participants