We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e3e7b commit 1233d9fCopy full SHA for 1233d9f
tests/test_plotter.py
@@ -280,6 +280,16 @@ def test_dpf_plotter_add_field_throw_shell_layer(multishells):
280
plt.add_field(field=field, shell_layer="test")
281
282
283
+@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
284
+def test_dpf_plotter_add_field_change_shell_layer(multishells):
285
+ field: core.Field = core.operators.result.stress(
286
+ data_sources=core.DataSources(multishells),
287
+ requested_location=core.locations.elemental,
288
+ ).eval()[1]
289
+ plt = DpfPlotter()
290
+ plt.add_field(field=field)
291
+
292
293
@pytest.mark.skipif(not HAS_PYVISTA, reason="Please install pyvista")
294
def test_plot_fieldscontainer_on_mesh_scoping(multishells):
295
model = core.Model(multishells)
0 commit comments