Skip to content

Commit 1fc6cf7

Browse files
committed
add note about NEP13/18 not applying
1 parent 9a87aac commit 1fc6cf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/iris/analysis/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,10 @@ def _rms(array, axis, **kwargs):
15891589

15901590

15911591
def _lazy_rms(array, axis, **kwargs):
1592+
# Note that, since we specifically need the ma version of average to handle
1593+
# weights correctly with masked data, we cannot rely on NEP13/18 and need
1594+
# to implement a separate lazy RMS function.
1595+
15921596
rval = da.sqrt(da.ma.average(array**2, axis=axis, **kwargs))
15931597

15941598
return rval

0 commit comments

Comments
 (0)