Skip to content

Commit 58aca88

Browse files
committed
Use the intended dtype for data of all-masked arrays.
1 parent feba264 commit 58aca88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iris/_merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ def merge(self, unique=True):
12791279
if some_are_dataless:
12801280
# Some parts were dataless: fill these with a lazy all-missing array.
12811281
missing_part = da.ma.masked_array(
1282-
data=da.zeros(part_shape, dtype=np.dtype("u1")),
1282+
data=da.zeros(part_shape, dtype=part_dtype),
12831283
mask=da.ones(part_shape, dtype=bool),
12841284
dtype=part_dtype,
12851285
)

0 commit comments

Comments
 (0)