Skip to content

Commit

Permalink
BUG: fix string interpolation (units double-printing) in GridIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jul 25, 2023
1 parent a0758c6 commit 9720156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yt/frontends/ramses/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def print_stats(self):
except Exception:
pass
print(
"t = {:0.8e} = {:0.8e} s = {:0.8e} years".format(
"t = {:0.8e} = {:0.8e} = {:0.8e}".format(
self.ds.current_time.in_units("code_time"),
self.ds.current_time.in_units("s"),
self.ds.current_time.in_units("yr"),
Expand Down
2 changes: 1 addition & 1 deletion yt/geometry/grid_geometry_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def print_stats(self):
except Exception:
pass
print(
"t = {:0.8e} = {:0.8e} s = {:0.8e} years".format(
"t = {:0.8e} = {:0.8e} = {:0.8e}".format(
self.ds.current_time.in_units("code_time"),
self.ds.current_time.in_units("s"),
self.ds.current_time.in_units("yr"),
Expand Down

0 comments on commit 9720156

Please sign in to comment.