Skip to content

Commit

Permalink
Fix: Dense OOC Concat With Aligned Elements Memory Issue (#1169)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
selmanozleyen and pre-commit-ci[bot] authored Oct 10, 2023
1 parent c66a463 commit 08ef471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anndata/experimental/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def write_concat_dense(
"""
import dask.array as da

darrays = (da.from_array(a, chunks="auto") for a in arrays)
darrays = (
da.from_array(a, chunks="auto" if a.chunks is None else a.chunks)
for a in arrays
)

res = da.concatenate(
[
Expand Down

0 comments on commit 08ef471

Please sign in to comment.