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

Add peak energy property to some spectral models #1087

Merged
merged 2 commits into from Jul 24, 2017

Conversation

Projects
None yet
2 participants
@adonath
Member

adonath commented Jul 21, 2017

This PR adds a e_peak property to the LogParabola and ExponentialCutoffPowerLaw spectral models. It computes the peak energy of the spectral model and returns it as a quantity.

@adonath adonath requested a review from joleroi Jul 21, 2017

@adonath adonath self-assigned this Jul 21, 2017

@adonath adonath added the feature label Jul 21, 2017

@cdeil

One small suggestion for the docstring. Otherwise 👍 , thanks!

Show outdated Hide outdated gammapy/spectrum/models.py Outdated

@adonath adonath merged commit e764d5f into gammapy:master Jul 24, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@cdeil cdeil changed the title from Add `e_peak` property to some spectral models to Add peak energy property to some spectral models Aug 31, 2017

@cdeil cdeil added this to the 0.7 milestone Aug 31, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment