Commit 4a2f5012 authored by Kelvin Loh's avatar Kelvin Loh

Test 3.

parent 104a511e
Pipeline #25622 failed with stages
in 8 minutes and 8 seconds
......@@ -135,6 +135,7 @@ def test_matplotlib_plot():
color_opts = ['k', (lambda site: site.tag[0]),
lambda site: (abs(site.tag[0] / 100),
abs(site.tag[1] / 100), 0)]
engine = plotter.engine
with tempfile.NamedTemporaryFile('w+b', suffix=plotter_file_suffix(engine)) as out:
for color in color_opts:
for syst in (syst2d, syst3d):
......@@ -180,6 +181,7 @@ def test_plotly_plot():
color_opts = ['black', (lambda site: site.tag[0]),
lambda site: (abs(site.tag[0] / 100),
abs(site.tag[1] / 100), 0)]
engine = plotter.engine
with tempfile.NamedTemporaryFile('w+b', suffix=plotter_file_suffix(engine)) as out:
for color in color_opts:
for syst in (syst2d, syst3d):
......@@ -619,7 +621,7 @@ def test_current():
current = J(kwant.wave_function(syst, energy=1)(1)[0])
# Test good codepath
with tempfile.NamedTemporaryFile('w+b', suffix=plotter_file_suffix(engine)) as out:
with tempfile.NamedTemporaryFile('w+b') as out:
plotter.current(syst, current, file=out)
fig = pyplot.Figure()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment