Extracting flux points with a compound or a naima model in gammapy v0.19 #3705
registerrier
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As you may have experienced, a bug in gammapy v0.19 (#3690) make it impossible to run
FluxPointsEstimator
on a model that contains aCompoundSpectralModel
or aNaimaSpectralModel
. While this will be corrected in the next gammapy release, this can be solved with the following trick:If your compound model or
NaimaSpectralModel
is calledspectrum
simply add theamplitude
attribute to it doing:Here is a working (stupid) example:
Beta Was this translation helpful? Give feedback.
All reactions