Skip to content

Commit

Permalink
Minor meta construction cleanup in concatenate (dask#4937)
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev authored and mrocklin committed Jun 14, 2019
1 parent 1f821f4 commit 419d27e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dask/array/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2985,9 +2985,7 @@ def concatenate(seq, axis=0, allow_unknown_chunksizes=False):
raise ValueError("Need array(s) to concatenate")

from .utils import meta_from_array
metas = [s._meta for s in seq]
metas = [meta_from_array(m, m.ndim) for m in metas]
meta = np.concatenate(metas)
meta = np.concatenate([meta_from_array(s, s.ndim) for s in seq])

# Promote types to match meta
seq = [a.astype(meta.dtype) for a in seq]
Expand Down

0 comments on commit 419d27e

Please sign in to comment.