summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorngayraud <nat.gayraud@gmail.com>2019-08-12 17:01:14 -0400
committerngayraud <nat.gayraud@gmail.com>2019-08-12 17:01:14 -0400
commit2633116175a09c468d953489c3fc7bab6aa69057 (patch)
tree90c4fc9c9c5fe992698382948ddc85b39e8b8aac
parentb536be73326e20fd3959ba4fe28cc45a344f47d3 (diff)
Attempting to fix docstyle
-rw-r--r--ot/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ot/utils.py b/ot/utils.py
index b0d95f9..d4127e3 100644
--- a/ot/utils.py
+++ b/ot/utils.py
@@ -189,9 +189,9 @@ def cost_normalization(C, norm=None):
elif norm == "loglog":
C = np.log1p(np.log1p(C))
else:
- raise ValueError(f'Norm {norm} is not a valid option.\n'
- f'Valid options are:\n'
- f'median, max, log, loglog')
+ raise ValueError('Norm %s is not a valid option.\n'
+ 'Valid options are:\n'
+ 'median, max, log, loglog' % norm)
return C