Skip to content

Commit

Permalink
(fix): as_group mode arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Jan 15, 2025
1 parent 3856c9f commit d953f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/anndata/experimental/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def concat_on_disk(
_, alt_axis_name = _resolve_axis(1 - axis)

output_group = as_group(out_file, mode="w")
groups = [as_group(f) for f in in_files]
groups = [as_group(f, mode="r") for f in in_files]

use_reindexing = False

Expand Down
2 changes: 1 addition & 1 deletion tests/test_concatenate_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def assert_eq_concat_on_disk(
if max_loaded_elems is not None:
kwargs["max_loaded_elems"] = max_loaded_elems
concat_on_disk(paths, out_name, *args, **kwargs)
res2 = read_elem(as_group(out_name))
res2 = read_elem(as_group(out_name, mode="r"))
assert_equal(res1, res2, exact=False)


Expand Down

0 comments on commit d953f93

Please sign in to comment.