-
Notifications
You must be signed in to change notification settings - Fork 194
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Improve gammapy.spectrum.cosmic_ray_flux #2213
Comments
I agree the |
Looks like some methods do work, and some don't for spectral models per solid angle:
So I'm not sure returning a @adonath - Thoughts? |
@cdeil The |
I am also +1 for that solution. |
OK, I'll try to change to return a |
Actually it's unlikely that I'll get to this before going on vacation tomorrow. So I'm un-assigning myself here and will ask for volunteers for this in the weekly dev call tomorrow. To summarise the outcome of the discussion above: the task here is to make a PR that updates gammapy/spectrum/cosmic_ray.py and gammapy/spectrum/tests/test_cosmic_ray.py. The function The tests should execute
If anyone is interested in this task, please leave a comment here any time. |
This was done by @JouvinLea in #2282 Following the suggestion in #1788 (comment) we now have create_crab_spectral_model I will do a follow-up commit in master to change |
Done in b09efaf |
We have gammapy.spectrum.cosmic_ray_flux which needs to be removed or improved.
It's not well-tested, see coverage report.
This is a bit related to the case of crab spectrum and the API question there, see #1788 .
Can SpectralModel represent fluxes per solid angle, i.e. CR surface brightness in
m^-2 s^-1 TeV^-1 sr^-1
?If yes, we could return
SpectralModel
objects here and use the existing classes. If no, then we could keep as-is and evaluate directly and just improve docs and tests.But the first question is whether to remove completely, or whether to keep and polish.
-> I'm +1 to keep and polish and am volunteering to do this for v0.13 in this case, because I think the CR electron and proton spectrum is quite commonly used by gamma-ray people (e.g. I used the electron spectrum once to do a rough estimate if HESS can see the Fermi bubbles, that's when I added this).
@adonath @registerrier - Thoughts?
The text was updated successfully, but these errors were encountered: