Skip to content

Commit

Permalink
Bugfix: Correct time label in log parser (#656)
Browse files Browse the repository at this point in the history
Fix time key in get_history
  • Loading branch information
Steven-Roberts authored Jan 29, 2025
1 parent 8e3df31 commit b2db253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/suntools/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def get_history(log, key, step_status=None, time_range=None, step_range=None):
for entry in log:

step = np.longlong(entry["step"])
time = np.double(entry["t_n"])
time = np.double(entry["tn"])

if time_range is not None:
if time < time_range[0] or time > time_range[1]:
Expand Down

0 comments on commit b2db253

Please sign in to comment.