Skip to content

Commit

Permalink
Autodetect meta when creating lazy data
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Mar 4, 2024
1 parent c6151e8 commit 3752b42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/iris/_lazy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def as_lazy_data(
raise ValueError(
f"Dask chunking chosen, but chunks already assigned value {chunks}"
)
lazy_params = {"asarray": asarray, "meta": np.ndarray}
lazy_params = {"asarray": asarray}
else:
if chunks is None:
# No existing chunks : Make a chunk the shape of the entire input array
Expand All @@ -284,7 +284,6 @@ def as_lazy_data(
lazy_params = {
"chunks": chunks,
"asarray": asarray,
"meta": np.ndarray,
}
if isinstance(data, ma.core.MaskedConstant):
data = ma.masked_array(data.data, mask=data.mask)
Expand Down

0 comments on commit 3752b42

Please sign in to comment.