Skip to content

Commit

Permalink
fixups from review
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jan 10, 2025
1 parent 96fe344 commit 816a727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions yt/frontends/gamer/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion yt/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


#
Expand Down

0 comments on commit 816a727

Please sign in to comment.