Add log.info for data reduction loops in the Analysis
@@ -130,8 +130,9 @@ class Analysis:
else:
ids.extend(selected_obs["OBS_ID"].tolist())
self.observations = self.datastore.get_observations(ids, skip_missing=True)
+ log.info(f"{len(self.observations.list)} observations were selected.")
for obs in self.observations.list:
- log.info(obs)
+ log.debug(obs)
def get_datasets(self):
"""Produce reduced datasets."""
@@ -258,6 +259,7 @@ class Analysis:
if self.settings["datasets"]["stack-datasets"]:
for obs in self.observations:
+ log.info(f"Processing observation: {obs.obs_id}")
dataset = maker.run(stacked, obs)
dataset = maker_safe_mask.run(dataset, obs)
stacked.stack(dataset)
@@ -266,6 +268,7 @@ class Analysis:
else:
datasets = []
for obs in self.observations:
+ log.info(f"Processing observation: {obs.obs_id}")
dataset = maker.run(stacked, obs)
dataset = maker_safe_mask.run(dataset, obs)
self._extract_irf_kernels(dataset)
@@ -339,6 +342,7 @@ class Analysis:
datasets = []
for obs in self.observations:
+ log.info(f"Processing observation: {obs.obs_id}")
selection = ["counts", "aeff", "edisp"]
dataset = dataset_maker.run(obs, selection=selection)
dataset = reflected_bkg_maker.run(dataset, obs)
