Skip to content

Commit

Permalink
Merge pull request #92 from nschloe/vtk
Browse files Browse the repository at this point in the history
add vtk dependency for test coverage
  • Loading branch information
nschloe committed Nov 24, 2020
2 parents d20dbc6 + 9d5fbe5 commit 25fb0ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion meshplex/mesh_tetra.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,4 +853,3 @@ def get_sphere_actor(x0, r, rgba):
del render_window, render_window_interactor
else:
render_window_interactor.Start()
return
8 changes: 6 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ setup_requires =
wheel

[options.extras_require]
all = matplotlib
plot = matplotlib
all =
matplotlib
vtk
plot =
matplotlib
vtk
8 changes: 4 additions & 4 deletions test/test_mesh_tetra.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def test_signed_volume():
assert numpy.all(abs(abs(vols) - mesh.cell_volumes) < 1.0e-12 * mesh.cell_volumes)


def test_show_cell():
def test_show_cell(render=False):
pytest.importorskip("vtk")
# filename = download_mesh("toy.vtk", "f48abda972822bab224b91a74d695573")
# mesh = meshplex.read(filename)
Expand Down Expand Up @@ -515,11 +515,11 @@ def test_show_cell():
control_volume_boundaries_rgba=(1.0, 0.0, 0.0, 1.0),
line_width=3.0,
close=True,
render=False,
render=render,
)


if __name__ == "__main__":
# test_show_cell()
test_regular_tet0(0.5)
test_show_cell(render=True)
# test_regular_tet0(0.5)
# test_toy_geometric()

0 comments on commit 25fb0ae

Please sign in to comment.