Reverse order of BackgroundMaker and SafeMaskMaker in analysis_2
" )\n",
" # A MapDataset is filled in this cutout geometry\n",
" dataset = maker.run(cutout, obs)\n",
+ " # The data quality cut is applied\n",
+ " dataset = maker_safe_mask.run(dataset, obs)\n",
" # fit background model\n",
" dataset = maker_fov.run(dataset)\n",
" print(\n",
" f\"Background norm obs {obs.obs_id}: {dataset.background_model.norm.value:.2f}\"\n",
" )\n",
- " # The data quality cut is applied\n",
- " dataset = maker_safe_mask.run(dataset, obs)\n",
" # The resulting dataset cutout is stacked onto the final one\n",
" stacked.stack(dataset)"
]
