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 in position refinement parameter parsing #245

Merged
merged 7 commits into from
Apr 24, 2020
Merged

Conversation

daurer
Copy link
Contributor

@daurer daurer commented Mar 6, 2020

I found that in the current version of the position correction engine, that defaults and user-provided parameters are not updated properly. Position correction only works if all posref parameters are provided in the configuration.

I've made a quick fix for this. @pierrethibault is there are more elegant way of solving this?

I've also included new tests.

@daurer daurer requested a review from pierrethibault March 6, 2020 18:28
@daurer daurer added the bug label Mar 10, 2020
@bjoernenders
Copy link
Contributor

This is a general issue. It looks like all subclasses read the parameters again. Subclasses shouldn't need to read the parameter tree. Needs to be a separate issue. Thanks for finding this bug Benedikt!

@daurer
Copy link
Contributor Author

daurer commented Apr 22, 2020

Removed the second reading of the parameter tree in DM and ML. But this does not fix the issues with the position refinement subtree, which needs to read sepearately. I have moved that part now into the init() of the PositionCorrection engine.

@daurer daurer merged commit 869e8d1 into master Apr 24, 2020
@daurer daurer deleted the posref_bugfix branch April 24, 2020 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

updating defaults in parameter subtree does not work properly
2 participants