Skip to content

Commit

Permalink
added materials path to pltots
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Jun 9, 2023
1 parent 6de3ea4 commit f2ba5a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# openmc.deplete.Results.plot_atoms_vs_time()
# openmc.deplete.Results.plot_activity_vs_time()


def test_default_isotope_charts():
my_mat = openmc.Material()
my_mat.add_nuclide("Fe56", 1)
Expand All @@ -36,15 +37,16 @@ def test_default_time_plots():

results = openmc.deplete.ResultsList.from_hdf5("tests/depletion_results.h5")

plot = results.plot_atoms_vs_time(excluded_material=my_material)
plot = results.plot_atoms_vs_time(excluded_material=my_material, path='tests/materials.xml')
assert isinstance(plot, plotly.graph_objs._figure.Figure)

plot = results.plot_activity_vs_time()
plot = results.plot_activity_vs_time(path='tests/materials.xml')
assert isinstance(plot, plotly.graph_objs._figure.Figure)

plot = results.plot_decay_heat_vs_time()
plot = results.plot_decay_heat_vs_time(path='tests/materials.xml')
assert isinstance(plot, plotly.graph_objs._figure.Figure)


def produce_depletion_results_file():
# makes a simple material
my_material = openmc.Material()
Expand Down

0 comments on commit f2ba5a2

Please sign in to comment.