Skip to content

Commit

Permalink
removed h5ad files after successful check
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetbansal committed Oct 22, 2024
1 parent 9b27360 commit 34b0dbe
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
Binary file removed tests/data/input/slice1.h5ad
Binary file not shown.
Binary file removed tests/data/input/slice2.h5ad
Binary file not shown.
Binary file removed tests/data/input/slice3.h5ad
Binary file not shown.
Binary file removed tests/data/input/slice4.h5ad
Binary file not shown.
20 changes: 3 additions & 17 deletions tests/test_align.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pandas as pd
import anndata as ad
import pytest
from pandas.testing import assert_frame_equal
import scanpy as sc
from pathlib import Path
Expand All @@ -16,25 +15,12 @@
output_dir = test_dir / "data/output"


@pytest.mark.parametrize(
"gene_fpath, spatial_fpath",
(
(
[f"{input_dir}/slice{i}.csv" for i in range(1, 4)],
[f"{input_dir}/slice{i}_coor.csv" for i in range(1, 4)],
),
(
[f"{input_dir}/slice{i}.h5ad" for i in range(1, 4)],
None,
),
),
)
def test_cmd_line_center(tmp_path, gene_fpath, spatial_fpath):
def test_cmd_line_center(tmp_path):
print(f"Running command in {tmp_path}")
result = align(
"center",
gene_fpath,
spatial_fpath,
[f"{input_dir}/slice{i}.csv" for i in range(1, 4)],
[f"{input_dir}/slice{i}_coor.csv" for i in range(1, 4)],
f"{tmp_path}",
0.1,
"kl",
Expand Down

0 comments on commit 34b0dbe

Please sign in to comment.