-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3281 from adonath/workflow_overview
Refactor and shorten overview docs page
- Loading branch information
Showing
12 changed files
with
141 additions
and
232 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
"""Plot an energy dispersion using a gaussian parametrisation""" | ||
import numpy as np | ||
import astropy.units as u | ||
import matplotlib.pyplot as plt | ||
from gammapy.irf import EDispKernel | ||
from gammapy.maps import MapAxis | ||
|
||
energy = np.logspace(0, 1, 101) * u.TeV | ||
edisp = EDispKernel.from_gauss(energy=energy, energy_true=energy, sigma=0.1, bias=0,) | ||
energy_axis = MapAxis.from_energy_bounds("1 TeV", "10 TeV", nbin=10) | ||
energy_axis_true = MapAxis.from_energy_bounds( | ||
"0.5 TeV", "30 TeV", nbin=10, per_decade=True, name="energy_true" | ||
) | ||
|
||
|
||
edisp = EDispKernel.from_gauss( | ||
energy_axis=energy_axis, | ||
energy_axis_true=energy_axis_true, | ||
sigma=0.1, | ||
bias=0 | ||
) | ||
edisp.peek() | ||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.