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
Freeze source parameters in FluxEstimator #4567
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4567 +/- ##
=======================================
Coverage 75.77% 75.77%
=======================================
Files 227 227
Lines 33310 33311 +1
=======================================
+ Hits 25240 25241 +1
Misses 8070 8070 ☔ View full report in Codecov by Sentry. |
This is the issue reported in #4472 @adonath suggested we leave it to the user to freeze all spatial parameters before running the estimator. |
The suggestion of @adonath is wise, indeed. However, are the non-expert aware of the issue? Is there properly documented? |
877dff5
to
d2f937c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote to merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, this behaviour seems very reasonable and logical. So, I do approuve this PR.
One should however precise this behaviour in the docstring (and maybe in global rst page), and precising also that a global fit is needed as prior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no good reason to not merge this, so +1 from my side as well.
But this should be added in the estimator user guide, and the change in behaviour specifically mentioned in the release notes.
Signed-off-by: Régis Terrier <rterrier@apc.in2p3.fr>
d2f937c
to
9010be3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @QRemy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @QRemy ! Merging this
Description
This pull request modifies the behaviour of
FluxEstimator
freezing all the source of interest parameters to only leave thenorm
of theScaleSpectralModel
free.This was discussed in #2877 but we never implemented it. It does not seem meaningful to leave the source spatial parameters free. Can we guarantee that it does not fit a different source?
Because the
Fit
and theEstimator
classes are stateless, it does not seem possible to properly test that the source spatial parameters do not change during the various steps. Could there be a way to test this?Dear reviewer
This changes the behavior rather strongly, but I can't really see a good reason to leave the non spectral parameters of the source of interest free. Opinions?