Updated spectrum_analysis.ipynb
"from gammapy.modeling.models import PowerLaw, create_crab_spectral_model\n",
"from gammapy.spectrum import (\n",
" SpectrumExtraction,\n",
- " SpectrumDatasetOnOff,\n",
" FluxPointsEstimator,\n",
" FluxPointsDataset,\n",
" ReflectedRegionsBackgroundEstimator,\n",
"metadata": {},
"outputs": [],
"source": [
- "dataset_stacked = Datasets(datasets_joint).stack_reduce()"
+ "stacker = SpectrumDatasetOnOffStacker(datasets_joint)\n",
+ "dataset_stacked = stacker.run()"
]
},
{
