In [1]: import dask.array as da
...: from iris.util import array_equal
In [2]: array_equal(da.array([1, 2]), da.ma.masked_array([1, 3], mask=[0, 1]))
Out[2]: True
Expected behaviour
The return value should be False because the arrays have different masks.
For numpy arrays, this work fine:
In [1]: import numpy as np
...: from iris.util import array_equal
In [2]: array_equal(np.array([1, 2]), np.ma.masked_array([1, 3], mask=[0, 1]))
Out[2]: False
🐛 Bug Report
How To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The return value should be
False
because the arrays have different masks.For numpy arrays, this work fine:
so I would expect the same for dask arrays.
Screenshots
Environment