Skip to content

Commit e385202

Browse files
authored
Merge branch 'main' into ig/cu13
2 parents 09aa3c3 + 4a62c2e commit e385202

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/test-gpu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ jobs:
5252
- name: Nvidia SMI sanity check
5353
run: nvidia-smi
5454

55-
- name: Install yq
55+
- name: Install yq # https://cirun.slack.com/archives/C09SNDRB3A8/p1766512487317849?thread_ts=1766512112.938459&cid=C09SNDRB3A8
5656
run: |
57-
sudo snap install yq
57+
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
58+
sudo chmod +x /usr/local/bin/yq
5859
5960
- name: Extract max Python version from classifiers
6061
run: |

docs/release-notes/2267.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Actually copy single zarr store input in {func}`anndata.experimental.concat_on_disk` {user}`ilan-gold`

src/anndata/experimental/merge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,10 @@ def concat_on_disk( # noqa: PLR0913
618618

619619
if (
620620
len(in_files) == 1
621-
and isinstance(in_files[0], str | PathLike)
621+
and isinstance(in_file := in_files[0], str | PathLike)
622622
and is_out_path_like
623623
):
624-
shutil.copy2(in_files[0], out_file)
624+
(shutil.copytree if in_file.is_dir() else shutil.copy2)(in_file, out_file)
625625
return
626626

627627
if keys is None:

tests/test_concatenate_disk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def visit(key: str, arr: zarr.Array | zarr.Group):
278278
check_all_sharded(g)
279279

280280

281+
def test_singleton(xxxm_adatas, tmp_path, file_format):
282+
assert_eq_concat_on_disk(xxxm_adatas[:1], tmp_path, file_format=file_format)
283+
284+
281285
def test_output_dir_exists(tmp_path):
282286
in_pth = tmp_path / "in.h5ad"
283287
out_pth = tmp_path / "does_not_exist" / "out.h5ad"

0 commit comments

Comments
 (0)