Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
do not modify weights in-place
  • Loading branch information
Chilipp committed Dec 2, 2021
commit 696b545ac8ed43b961303e29d163160c0fb472dd
2 changes: 1 addition & 1 deletion psyplot/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3131,7 +3131,7 @@ def notnull(a):
# large arrays since it involves a copy of the entire `arr`
weights = weights * notnull(arr)
# normalize the weights
weights /= weights.sum(axis=tuple(map(dims.index, sdims)))
weights = weights / weights.sum(axis=tuple(map(dims.index, sdims)))
else:
dims = arr.dims
coords = arr.isel(
Expand Down