We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1a1f7 commit 79cf828Copy full SHA for 79cf828
echopype/tests/calibrate/test_env_params.py
@@ -103,8 +103,9 @@ def test_harmonize_env_param_time():
103
p_new = harmonize_env_param_time(p=p, ping_time=ping_time_target)
104
assert (p_new["ping_time"] == ping_time_target).all()
105
assert isinstance(p_new.data, dask.array.Array)
106
- # np.array_equal() computes dask array under the hood
107
- assert np.array_equal(p_new.data, p.data)
+ # We must compute dask array or else we will get the warning:
+ # Warning: The `numpy.array_equal` function is not implemented by Dask array.
108
+ assert np.array_equal(p_new.data.compute(), p.data.compute())
109
110
# ping_time target requires actual interpolation
111
ping_time_target = xr.DataArray(
0 commit comments