Skip to content

Commit 830a5f9

Browse files
bug fix python 3.11
1 parent dfb11d8 commit 830a5f9

File tree

1 file changed

+2
-3
lines changed
  • pm4py/algo/evaluation/earth_mover_distance/variants

1 file changed

+2
-3
lines changed

pm4py/algo/evaluation/earth_mover_distance/variants/pyemd.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ def emd(
158158

159159
if res.status != 0:
160160
raise ValueError(
161-
f"Linear programming failed. Status: {
162-
res.status}, Message: {
163-
res.message}")
161+
"Linear programming failed. Status: {}, Message: {}".format(
162+
res.status, res.message))
164163

165164
# The optimal value is the EMD
166165
return res.fun

0 commit comments

Comments
 (0)