Numpy 1.22.4 (specifically, https://github.com/numpy/numpy/pull/21446) changed the way that arrays are created from buffers. It is causing tests here to fail specifically in the case where a dask array is requested without using the "ResourceBackedArray" protocol, the underlying file is closed, and then the array is computed.
To be sure, this was a risky operation to begin with :joy: ... so the numpy error is good.
This fixes the copy operation that should prevent it
Numpy 1.22.4 (specifically, https://github.com/numpy/numpy/pull/21446) changed the way that arrays are created from buffers. It is causing tests here to fail specifically in the case where a dask array is requested without using the "ResourceBackedArray" protocol, the underlying file is closed, and then the array is computed.
To be sure, this was a risky operation to begin with :joy: ... so the numpy error is good.
This fixes the copy operation that should prevent it