Skip to content

Commit

Permalink
fix: uu-chi2 incorrect return
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Oct 21, 2021
1 parent dd3be73 commit e259d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popmon/stats/numpy.py
Expand Up @@ -248,7 +248,7 @@ def uu_chi2(n, m, verbose=False):
warnings.warn(
"Input histogram(s) is empty and cannot be renormalized. Chi2 is undefined."
)
return np.nan, np.nan, np.nan, [0] * len(n)
return np.nan, np.nan, np.nan, np.nan, [0] * len(n)

# remove all zero entries in the sum, to present division by zero for individual bins
z = n + m
Expand Down

0 comments on commit e259d3e

Please sign in to comment.