Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Nicodemus committed Jan 2, 2025
1 parent e287499 commit a1094db
Show file tree
Hide file tree
Showing 8 changed files with 281,773 additions and 281,765 deletions.
5 changes: 3 additions & 2 deletions src/cajal/ugw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,14 @@ def ugw_armijo_pairwise(
pt_cloud=False,
):

if not pt_cloud:
if pt_cloud:
pt_clouds = dmats
dmats = np.stack(
[squareform(pdist(a), force="tomatrix") for a in pt_clouds], axis=0
)
if isinstance(dmats, str):
_, icdms = zip(*cell_iterator_csv(dmats))
dmats = np.stack(icdms, axis=0)
dmats = np.stack(list(icdms), axis=0)

if rho is None:
gw_cost = estimate_distr(dmats, sample_size, quantile)
Expand All @@ -406,6 +406,7 @@ def ugw_armijo_pairwise(
tol_sinkhorn,
tol_outerloop,
)
print("Done first pass, cleaning up errors.")
else: # dmats is pt_clouds
ugw_dmat = self._ugw_armijo_euclidean(
rho,
Expand Down
47,220 changes: 23,612 additions & 23,608 deletions src/cajal/ugw/c/unbalanced_gw_c.c

Large diffs are not rendered by default.

67,320 changes: 33,662 additions & 33,658 deletions src/cajal/ugw/cuda/unbalanced_gw_cuda.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/cajal/ugw/cuda/unbalanced_gw_cuda.json

Large diffs are not rendered by default.

Loading

0 comments on commit a1094db

Please sign in to comment.