Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
anushka255 committed Aug 6, 2024
1 parent 6327f83 commit b53c7be
Show file tree
Hide file tree
Showing 7 changed files with 1,292 additions and 1,037 deletions.
30 changes: 15 additions & 15 deletions tests/data/output/H_center.csv

Large diffs are not rendered by default.

508 changes: 254 additions & 254 deletions tests/data/output/W_center.csv

Large diffs are not rendered by default.

510 changes: 255 additions & 255 deletions tests/data/output/center_slice1_pairwise.csv

Large diffs are not rendered by default.

510 changes: 255 additions & 255 deletions tests/data/output/center_slice2_pairwise.csv

Large diffs are not rendered by default.

510 changes: 255 additions & 255 deletions tests/data/output/center_slice3_pairwise.csv

Large diffs are not rendered by default.

255 changes: 255 additions & 0 deletions tests/data/output/center_slice4_pairwise.csv

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tests/test_paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def test_center_alignment(slices):
distributions=[slices[i].obsm["weights"] for i in range(len(slices))],
)
pd.DataFrame(center_slice.uns["paste_W"], index=center_slice.obs.index).to_csv(
output_dir / "W_center.csv"
temp_dir / "W_center.csv"
)
pd.DataFrame(center_slice.uns["paste_H"], columns=center_slice.var.index).to_csv(
output_dir / "H_center.csv"
temp_dir / "H_center.csv"
)

# assert_checksum_equals(temp_dir / "W_center.csv", output_dir / "W_center.csv")
Expand All @@ -70,7 +70,7 @@ def test_center_alignment(slices):
for i, pi in enumerate(pairwise_info):
pd.DataFrame(
pi, index=center_slice.obs.index, columns=slices[i].obs.index
).to_csv(temp_dir / f"center_slice{i}_pairwise.csv")
).to_csv(temp_dir / f"center_slice{i+1}_pairwise.csv")
# assert_checksum_equals(
# temp_dir / f"center_slice{i}_pairwise.csv",
# output_dir / f"center_slice{i}_pairwise.csv",
Expand Down

0 comments on commit b53c7be

Please sign in to comment.