From f43b68bbcc9865feea8892c28b9f6cab437daed1 Mon Sep 17 00:00:00 2001 From: Patrick Nicodemus Date: Fri, 3 Jan 2025 12:52:51 -0500 Subject: [PATCH] Fixed numerical bug in mass/rho conversion. --- src/cajal/ugw/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cajal/ugw/__init__.py b/src/cajal/ugw/__init__.py index 534f519..b28fcf9 100644 --- a/src/cajal/ugw/__init__.py +++ b/src/cajal/ugw/__init__.py @@ -80,7 +80,7 @@ def rho_of(gw_cost: float, mass_kept: float): this formula is written for the case where the cells and the GW transport plan have unit mass. This function is the inverse of mass_lower_bound. """ - return -gw_cost / log(mass_kept) + return -gw_cost / (4*log(mass_kept)) _rho1_docstring = """:param rho1: The first marginal penalty coefficient, controls how much the