Skip to content

Commit f976340

Browse files
increase tolerance
1 parent bc9478c commit f976340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skyllh/analyses/i3/publicdata_ps/signalpdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def __init__(
285285

286286
self._logger.debug(f'det_prob = {det_prob}, sum = {np.sum(det_prob)}')
287287

288-
if not np.isclose(np.sum(det_prob), 1):
288+
if not np.isclose(np.sum(det_prob), 1, rtol=1e-3, atol=0):
289289
self._logger.warning(f'The sum of the detection probabilities is not unity! It is {np.sum(det_prob)}.')
290290

291291
psi_edges_bw = sm.psi_upper_edges - sm.psi_lower_edges

0 commit comments

Comments
 (0)