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 bug in CoregPipeline.fit() #450

Merged
merged 6 commits into from
Nov 28, 2023
Merged

Conversation

rhugonnet
Copy link
Contributor

@rhugonnet rhugonnet commented Nov 28, 2023

This PR fixes a bug in CoregPipeline that made all fits erroneous (using the original tba_dem instead of the updated one).

This was only 4 characters, but not easy to find.

@rhugonnet
Copy link
Contributor Author

Will fix the documentation error with #451, merging.

@rhugonnet rhugonnet merged commit 33b1ee2 into GlacioHack:main Nov 28, 2023
2 of 11 checks passed
@rhugonnet rhugonnet deleted the fix_pipeline branch November 28, 2023 05:58
@@ -1516,7 +1516,7 @@ def fit(

main_args_fit = {
"reference_dem": ref_dem,
"dem_to_be_aligned": tba_dem,
"dem_to_be_aligned": tba_dem_mod,
Copy link
Member

Choose a reason for hiding this comment

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

Good catch !

@@ -676,6 +676,44 @@ def test_coreg_add(self) -> None:
vshift5 = vshift3 + vshift3
assert vshift5.to_matrix()[2, 3] == vshift * 4

def test_pipeline_consistency(self) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Good idea to add tests for this!

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.

Thanks for fixing the bug !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coregistration: Tilt and VerticalShift pipelines in 0.0.16
2 participants