Skip to content
Merged
Prev Previous commit
Next Next commit
minor
  • Loading branch information
Chilipp committed Dec 3, 2021
commit 9a63efad0821ac5bb4954d6d7ae1468dfa0641d9
4 changes: 3 additions & 1 deletion psyplot/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3136,7 +3136,9 @@ def notnull(a):
axis=tuple(map(dims.index, sdims)), keepdims=True
)
else:
summed_weights = weights.sum(axis=tuple(map(dims.index, sdims)))
summed_weights = weights.sum(
axis=tuple(map(dims.index, sdims))
)
weights = weights / summed_weights
else:
dims = arr.dims
Expand Down