Commit 63e23157 authored by Kelvin Loh's avatar Kelvin Loh

Test 4.

parent 4a2f5012
Pipeline #25625 failed with stages
in 7 minutes and 34 seconds
......@@ -135,7 +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
engine = plotter.get_engine()
with tempfile.NamedTemporaryFile('w+b', suffix=plotter_file_suffix(engine)) as out:
for color in color_opts:
for syst in (syst2d, syst3d):
......@@ -181,7 +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
engine = plotter.get_engine()
with tempfile.NamedTemporaryFile('w+b', suffix=plotter_file_suffix(engine)) as out:
for color in color_opts:
for syst in (syst2d, syst3d):
......@@ -219,6 +219,7 @@ def test_plot_more_site_families_than_colors(engine):
plotter.set_engine(engine)
with tempfile.NamedTemporaryFile('w+b', suffix=plotter_file_suffix(engine)) as out:
print(out)
plotter.plot(syst, file=out, show=False)
......
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