From ad4eac3c89c10a9cff53519ac2dd459b0f6f640c Mon Sep 17 00:00:00 2001 From: Hiroki Yoneda Date: Fri, 25 Oct 2024 11:04:48 -0700 Subject: [PATCH] Used logger for line_background_estimation --- cosipy/background_estimation/LineBackgroundEstimation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosipy/background_estimation/LineBackgroundEstimation.py b/cosipy/background_estimation/LineBackgroundEstimation.py index a303c1ff..03065ebe 100644 --- a/cosipy/background_estimation/LineBackgroundEstimation.py +++ b/cosipy/background_estimation/LineBackgroundEstimation.py @@ -196,7 +196,7 @@ def _get_weight_indices(self, energy_range): energy_indices = np.where((energy_range[0] <= self.energy_axis.bounds[:, 1]) & (self.energy_axis.bounds[:, 0] <= energy_range[1]))[0] integrate_energy_range = [self.energy_axis.lower_bounds[energy_indices[0]].value, self.energy_axis.lower_bounds[energy_indices[-1]].value] if integrate_energy_range[0] != energy_range[0].value or integrate_energy_range[1] != energy_range[1].value: - print(f"The energy range {energy_range.value} is modified to {integrate_energy_range}") + logger.info(f"The energy range {energy_range.value} is modified to {integrate_energy_range}") weight = integrate.quad(lambda x: self.bkg_spectrum_model(x, *self.bkg_spectrum_model_parameter), *integrate_energy_range)[0] return weight, energy_indices