Skip to content

Commit db86faf

Browse files
committed
Raise an error when plotting shells on ElementalNodal location.
1 parent 43cf93d commit db86faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/dpf/core/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def plot_contour(
10491049
eshell_layers.topbottommid,
10501050
]:
10511051
if location == locations.elemental_nodal:
1052-
print("trying to plot ElementalNodal values for shells.")
1052+
raise TypeError("Trying to plot ElementalNodal values for shells.")
10531053
changeOp.inputs.fields_container.connect(fields_container)
10541054
sl = eshell_layers.top
10551055
if shell_layers is not None:

0 commit comments

Comments
 (0)