Add warning on Analysis class for empty OFF
@@ -352,6 +352,8 @@ class Analysis:
selection = ["counts", "aeff", "edisp"]
dataset = dataset_maker.run(obs, selection=selection)
dataset = reflected_bkg_maker.run(dataset, obs)
+ if dataset.counts_off is None:
+ log.info(f"No OFF region found for observation {obs.obs_id}")
dataset = safe_mask_maker.run(dataset, obs)
log.debug(dataset)
datasets.append(dataset)
