Update tutorials/models.ipynb
"from astropy import units as u\n",
"from astropy.coordinates import Angle\n",
"from gammapy.maps import Map, WcsGeom\n",
- "import gammapy.modeling.models as gm\n",
- "from gammapy.modeling import Parameter, Parameters, Model"
+ "import gammapy.modeling.models as gm"
]
},
{
"franceschini = gm.Absorption.read_builtin(\"franceschini\").table_model(redshift)\n",
"finke = gm.Absorption.read_builtin(\"finke\").table_model(redshift)\n",
"\n",
+ "plt.figure()\n",
"energy_range = [0.08, 3] * u.TeV\n",
"opts = dict(energy_range=energy_range, energy_unit=\"TeV\", flux_unit=\"\")\n",
"franceschini.plot(label=\"Franceschini 2008\", **opts)\n",
