Skip to content

Commit

Permalink
checking if the grand sum of pi is less than 1 in case of partial pro…
Browse files Browse the repository at this point in the history
…crustes analysis
  • Loading branch information
anushka255 committed Nov 15, 2024
1 parent 2794160 commit feb2d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def test_partial_procrustes_analysis(slices):
np.genfromtxt(input_dir / "center_slice1_pairwise.csv", delimiter=",")
).double()

assert torch.sum(pairwise_info) < 0.99999999

aligned_center, aligned_slice = generalized_procrustes_analysis(
torch.Tensor(center_slice.obsm["spatial"]).double(),
torch.Tensor(slices[0].obsm["spatial"]).double(),
Expand Down

0 comments on commit feb2d84

Please sign in to comment.