From 5a3db7fa4592f8f08132f648a5dc4f83ceaea03e Mon Sep 17 00:00:00 2001 From: Alessandro Berti Date: Wed, 6 Nov 2024 09:12:31 +0100 Subject: [PATCH] fix(pm4py): bug fix --- pm4py/util/vis_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pm4py/util/vis_utils.py b/pm4py/util/vis_utils.py index 401ce73ec..5de8ab5ed 100644 --- a/pm4py/util/vis_utils.py +++ b/pm4py/util/vis_utils.py @@ -46,11 +46,11 @@ def human_readable_stat(timedelta, stat_locale: Optional[Dict[str, str]] = None) elif seconds > 0: return str(seconds) + stat_locale.get("second", "s") else: - c = int(float(timedelta*1000)) + c = int(float(timedelta) * 1000) if c > 0: return str(c) + stat_locale.get("millisecond", "ms") else: - return str(int(float(timedelta * 10**9))) + stat_locale.get("nanosecond", "ns") + return str(int(float(timedelta) * 10**9)) + stat_locale.get("nanosecond", "ns") def get_arc_penwidth(arc_measure, min_arc_measure, max_arc_measure):