Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbore committed Feb 13, 2024
1 parent f2b1c11 commit daf42c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scilpy/utils/metrics_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def weighted_mean_std(weights, data):
a tuple containing the mean and standard deviation of the data
"""

masked_data = np.ma.masked_array(data, np.logical_or(np.isnan(a), np.isinf(a)))
masked_data = np.ma.masked_array(data, np.logical_or(np.isnan(data),
np.isinf(data)))
mean = np.ma.average(masked_data, weights=weights)
variance = np.ma.average((masked_data-mean)**2, weights=weights)

Expand Down

0 comments on commit daf42c5

Please sign in to comment.