Skip to content

Commit

Permalink
Remove unnecessary extra creation of StateHistory.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 669319133
  • Loading branch information
Nush395 authored and Torax team committed Aug 30, 2024
1 parent 1873c51 commit 5047477
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torax/simulation_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def main(
output_file = write_simulation_output_to_file(output_dir, ds)

if log_sim_output:
history = output.StateHistory(torax_outputs)
log_simulation_output_to_stdout(history.core_profiles, geo, history.times)
log_simulation_output_to_stdout(
state_history.core_profiles, geo, state_history.times
)

return ds, output_file

0 comments on commit 5047477

Please sign in to comment.