From 816a727251ffed502e8d576da2e46fa791fc725c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 10 Jan 2025 17:51:09 +0100 Subject: [PATCH] fixups from review --- yt/frontends/gamer/data_structures.py | 4 ++-- yt/funcs.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yt/frontends/gamer/data_structures.py b/yt/frontends/gamer/data_structures.py index 9ce4c0cf16..729cb11e52 100644 --- a/yt/frontends/gamer/data_structures.py +++ b/yt/frontends/gamer/data_structures.py @@ -177,14 +177,14 @@ def _validate_parent_children_relationship(self): raise ValueError( f"Grid {grid.id}, Child {c.id}, " f"Grid->EdgeL {grid.LeftEdge[d]:14.7e}, " - f"Children->EdgeL {c.LeftEdge:14.7e}" + f"Children->EdgeL {c.LeftEdge[d]:14.7e}" ) if not grid.RightEdge[d] >= c.RightEdge[d]: raise ValueError( f"Grid {grid.id}, Child {c.id}, " f"Grid->EdgeR {grid.RightEdge[d]:14.7e}, " - f"Children->EdgeR {c.RightEdge:14.7e}" + f"Children->EdgeR {c.RightEdge[d]:14.7e}" ) mylog.info("Check passed") diff --git a/yt/funcs.py b/yt/funcs.py index 4351a40095..edb9e666f0 100644 --- a/yt/funcs.py +++ b/yt/funcs.py @@ -137,7 +137,7 @@ def humanize_time(secs): """ mins, secs = divmod(secs, 60) hours, mins = divmod(mins, 60) - return ":".join(f"{t:02}" for t in (hours, mins, secs)) + return ":".join(f"{int(t):02}" for t in (hours, mins, secs)) #