Fix detect tutorial
" PowerLawSpectralModel,\n",
" PointSpatialModel,\n",
")\n",
- "from gammapy.irf import PSFMap, EnergyDependentTablePSF\n",
+ "from gammapy.irf import PSFMap, EnergyDependentTablePSF, EDispKernelMap\n",
"from astropy.coordinates import SkyCoord\n",
"import astropy.units as u\n",
"import numpy as np"
")\n",
"psfmap = PSFMap.from_energy_dependent_table_psf(psf)\n",
"\n",
+ "edisp = EDispKernelMap.from_diagonal_response(\n",
+ " energy_axis=counts.geom.get_axis_by_name(\"energy\"),\n",
+ " energy_axis_true=exposure.geom.get_axis_by_name(\"energy_true\"),\n",
+ " )\n",
+ "\n",
"dataset = MapDataset(\n",
" counts=counts,\n",
" models=[background],\n",
" psf=psfmap,\n",
" mask_safe=mask_safe,\n",
" name=\"fermi-3fhl-gc\",\n",
+ " edisp=edisp\n",
")\n",
"\n",
"dataset = dataset.to_image()"
