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

Reuse FluxPointsEstimator in LightCurveEstimator #2993

Merged
merged 3 commits into from Aug 31, 2020

Conversation

adonath
Copy link
Member

@adonath adonath commented Aug 26, 2020

Description

This pull request is a proof of concept to re-use the FluxPointsEstimator in the LightCurveEstimator. Therein arguments for this are the following:

  • Consistency in configuration parameters
  • Code-reuse
  • Possibility to compute light-curves in energy bins

However this change modifies the current method, because by introducing the FluxPointsEstimator the fit range is limited to the specified energy range. Previously the fit was always done on the full energy range and then flux was derived from the best fit model in the specified energy range.

@adonath adonath self-assigned this Aug 26, 2020
@adonath adonath added this to the 0.18 milestone Aug 26, 2020
@adonath adonath force-pushed the reuse_flux_points_estimator branch from 298a14a to ae448e4 Compare August 26, 2020 09:33
Copy link
Contributor

@registerrier registerrier left a comment

Choose a reason for hiding this comment

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

Thanks @adonath ! This looks good to me.

@adonath
Copy link
Member Author

adonath commented Aug 31, 2020

Thanks @registerrier! I'll go ahead and merge now...

@adonath adonath merged commit 737c519 into gammapy:master Aug 31, 2020
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.

None yet

2 participants