SciTools / biggus

:no_entry: [DEPRECATED] Virtual large arrays and lazy evaluation.
http://biggus.readthedocs.io/
GNU Lesser General Public License v3.0
54 stars 27 forks source link

Array Adapter Issue with single-point masked arrays #192

Closed corinnebosley closed 7 years ago

corinnebosley commented 8 years ago

A bug was spotted in iris in which a single-point array of the type np.ma.MaskedConstant is not handled correctly by iris.util.new_axis (the resulting mask is not attributed with the new axis when the data is, so the point cannot be transposed; https://github.com/SciTools/iris/pull/2143).

A temporary fix has been implemented in which the MaskedConstant is turned into a MaskedArray which is then handled correctly, but this can only apply to loaded data; any lazy data in a single-point array will still be converted to a MaskedConstant and not get its extra dimension with new_axis.

This requires a fix in Biggus for the lazy data.

pelson commented 7 years ago

Closing this one out as:

a) I don't think we are going to fix it, due to our general preference for dask.array b) There isn't enough info to reproduce this easily