Skip to content
Snippets Groups Projects
Commit e8181309 authored by Lukas Platz's avatar Lukas Platz
Browse files

add regression test

parent e48d3b6e
No related branches found
No related tags found
1 merge request!768Fix broken EnergyHistory plotting
Pipeline #129969 passed
...@@ -99,3 +99,12 @@ def test_iter_plot(): ...@@ -99,3 +99,12 @@ def test_iter_plot():
plot = ift.Plot() plot = ift.Plot()
plot.add(fld) plot.add(fld)
plot.output(title='Should be 4 plots', name=next(name)) plot.output(title='Should be 4 plots', name=next(name))
def test_EnergyHistory_plot():
eh = ift.minimization.iteration_controllers.EnergyHistory()
for i in range(5):
eh.append((i, (i + 1)**-2))
plot = ift.Plot()
plot.add(eh)
plot.output(title='EnergyHistory plot', name=next(name))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment