Skip to content

Commit

Permalink
add pragma, I've tested this and it's hard to trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmidt23 committed May 29, 2024
1 parent 56e60c4 commit 415a9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rail/estimation/algos/bpz_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _find_fractions(self):
tmpfo = frac_results[:self.ntyp - 1]
# minimizer can sometimes give fractions greater than one, if so normalize
fracnorm = np.sum(tmpfo)
if fracnorm > 1.:
if fracnorm > 1.: # pragma: no cover
print("bad norm for f0, normalizing")
tmpfo /= fracnorm
self.fo_arr = tmpfo
Expand Down

0 comments on commit 415a9fb

Please sign in to comment.