Remove PSF integration warning
@@ -167,12 +167,6 @@ class TablePSF:
rad_max = Angle(np.linspace(0, self.rad[-1].value, 10 * len(self.rad)), "rad")
containment = self.containment(rad_max=rad_max)
- if not np.allclose(containment.max(), 1, atol=0.01):
- log.warn(
- "PSF does not integrate to unity within a precision of 1%."
- " Containment radius computation might give biased results."
- )
-
fraction = np.atleast_1d(fraction)
fraction_idx = np.argmin(np.abs(containment - fraction[:, np.newaxis]), axis=1)
@@ -460,12 +454,6 @@ class EnergyDependentTablePSF:
rad_max = Angle(np.linspace(0, self.rad[-1].value, 10 * len(self.rad)), "rad")
containment = self.containment(energy=energy, rad_max=rad_max)
- if not np.allclose(containment.max(axis=1), 1, atol=0.01):
- log.warning(
- "PSF does not integrate to unity within a precision of 1% in each energy bin."
- " Containment radius computation might give biased results."
- )
-
# find nearest containment value
fraction_idx = np.argmin(np.abs(containment - fraction), axis=1)
return rad_max[fraction_idx].to("deg")
