Skip to content

Commit 74b0c06

Browse files
author
Pierre-Louis Barbarant
committed
Fix logging statements in Sinkhorn solvers to remove unnecessary print function
1 parent 8e09f6e commit 74b0c06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fugw/solvers/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def get_pi_sparse(alpha, beta, u, v):
736736
if err < tol:
737737
if verbose:
738738
progress.console.log(
739-
print(f"Reached tolerance threshold: {err}")
739+
f"Reached tolerance threshold: {err}"
740740
)
741741
break
742742

@@ -854,7 +854,7 @@ def get_reg(idx):
854854
if err < tol and idx > numItermin:
855855
if verbose:
856856
progress.console.log(
857-
print(f"Reached tolerance threshold: {err}")
857+
f"Reached tolerance threshold: {err}"
858858
)
859859
break
860860

@@ -970,7 +970,7 @@ def get_reg(idx):
970970
if err < tol and idx > numItermin:
971971
if verbose:
972972
progress.console.log(
973-
print(f"Reached tolerance threshold: {err}")
973+
f"Reached tolerance threshold: {err}"
974974
)
975975
break
976976

0 commit comments

Comments
 (0)