Skip to content

Commit

Permalink
wasserstein distance return type float (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
eroell authored Oct 1, 2023
1 parent a625208 commit 3bd9e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pertpy/tools/_distances/_distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def solve_ot_problem(self, geom: Geometry, **kwargs):
solver = Sinkhorn()
# Solve OT problem
ot = solver(ot_prob, **kwargs)
return ot.reg_ot_cost
return ot.reg_ot_cost.item()


class PseudobulkDistance(AbstractDistance):
Expand Down

0 comments on commit 3bd9e56

Please sign in to comment.