Add edispkernel option to DatasetMaker
@@ -245,4 +245,9 @@ class MapDatasetMaker:
edisp = self.make_edisp(dataset.edisp.edisp_map.geom, observation)
kwargs["edisp"] = edisp
+ if "edispkernel" in self.selection:
+ edisp = self.make_edisp(dataset.edisp.edisp_map.geom, observation)
+ edisp = edisp.to_edisp_kernel_map(dataset.counts.geom.get_axis_by_name("energy"))
+ kwargs["edisp"] = edisp
+
return MapDataset(name=dataset.name, **kwargs)
