fixing wrong change
@@ -23,7 +23,7 @@ from gammapy.utils.testing import requires_data, requires_dependency
# TODO: use pregenerate data instead
def simulate_spectrum_dataset(model, random_state=0):
energy_edges = np.logspace(-0.5, 1.5, 21) * u.TeV
- energy_axis = MapAxis.from_edges(energy_edges, interp="log", name="energy")
+ energy_axis = MapAxis.from_edges(edges, interp="log", name="energy")
aeff = EffectiveAreaTable.from_parametrization(energy=energy_edges).to_region_map()
bkg_model = SkyModel(
@@ -81,7 +81,7 @@ def simulate_map_dataset(random_state=0, name=None):
skydir = SkyCoord("0 deg", "0 deg", frame="galactic")
energy_edges = np.logspace(-1, 2, 15) * u.TeV
- energy_axis = MapAxis.from_edges(energy_edges=energy_edges, name="energy", interp="log")
+ energy_axis = MapAxis.from_edges(edges=energy_edges, name="energy", interp="log")
geom = WcsGeom.create(
skydir=skydir, width=(4, 4), binsz=0.1, axes=[energy_axis], frame="galactic"
