Removed remainign SpectrumDatasetOnOffStacker in pulsar_analysis.iypnb
"from gammapy.cube import fill_map_counts\n",
"from gammapy.data import DataStore\n",
"from gammapy.modeling.models import PowerLaw\n",
- "from gammapy.modeling import Fit\n",
+ "from gammapy.modeling import Fit, Datasets\n",
"from gammapy.spectrum import (\n",
" PhaseBackgroundEstimator,\n",
" SpectrumExtraction,\n",
"\n",
"from gammapy.spectrum import SpectrumDatasetOnOffStacker\n",
"\n",
- "stacker = SpectrumDatasetOnOffStacker(extraction.spectrum_observations)\n",
- "dataset = stacker.run()\n",
+ "dataset = Datasets(extraction.spectrum_observations).stack_reduce()\n",
"\n",
"dataset.model = model\n",
"\n",
