Skip to content

Commit

Permalink
Fix hdf path for time_of_simulation in sdec plot (#2684)
Browse files Browse the repository at this point in the history
fix transport path
  • Loading branch information
sarthak-dv authored Jul 1, 2024
1 parent 140bb96 commit e88a31a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tardis/visualization/tools/sdec_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ def from_hdf(cls, hdf_fpath, packets_mode):
hdf["/simulation/simulation_state/scalars"].t_inner, "K"
)
time_of_simulation = u.Quantity(
hdf["/simulation/transport/scalars"].time_of_simulation, "s"
hdf[
"/simulation/transport/transport_state/scalars"
].time_of_simulation,
"s",
)

if packets_mode == "virtual":
Expand Down

0 comments on commit e88a31a

Please sign in to comment.