mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Defer a few more matplotlib imports
This commit is contained in:
parent
664ae00cdc
commit
f2549c9470
4 changed files with 11 additions and 11 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import numpy as np
|
||||
import openmc
|
||||
import pytest
|
||||
from matplotlib.figure import Figure
|
||||
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
|
|
@ -74,8 +73,10 @@ def test_calculate_cexs_with_materials(test_mat):
|
|||
|
||||
@pytest.mark.parametrize("this", ["Be", "Be9"])
|
||||
def test_plot_xs(this):
|
||||
assert isinstance(openmc.plotter.plot_xs(this, types=['total']), Figure)
|
||||
from matplotlib.figure import Figure
|
||||
assert isinstance(openmc.plot_xs(this, types=['total']), Figure)
|
||||
|
||||
|
||||
def test_plot_xs_mat(test_mat):
|
||||
assert isinstance(openmc.plotter.plot_xs(test_mat, types=['total']), Figure)
|
||||
from matplotlib.figure import Figure
|
||||
assert isinstance(openmc.plot_xs(test_mat, types=['total']), Figure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue