fix light_curve notebook
"from gammapy.data import DataStore\n",
"from gammapy.modeling.models import PowerLawSpectralModel\n",
"from gammapy.modeling.models import PointSpatialModel\n",
- "from gammapy.modeling.models import SkyModel\n",
+ "from gammapy.modeling.models import SkyModel, SkyModels\n",
"from gammapy.time import LightCurveEstimator\n",
"from gammapy.analysis import Analysis, AnalysisConfig"
]
"metadata": {},
"outputs": [],
"source": [
- "model = {}\n",
- "model[\"components\"] = [sky_model.to_dict()]\n",
- "analysis_3d.set_model(model=model)"
+ "#model = {}\n",
+ "#model[\"components\"] = [sky_model.to_dict()]\n",
+ "#analysis_3d.set_model(model=model)\n",
+ "models = SkyModels([sky_model])\n",
+ "analysis_3d.set_model(models)"
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "model = {}\n",
- "model[\"components\"] = [sky_model.to_dict()]\n",
- "analysis_1d.set_model(model=model)"
+ "#model = {}\n",
+ "#model[\"components\"] = [sky_model.to_dict()]\n",
+ "#analysis_1d.set_model(model=model)\n",
+ "models = SkyModels([sky_model])\n",
+ "analysis_1d.set_model(models)"
]
},
{
