Skip to content

Commit 766f79d

Browse files
committed
Use latest fix for connection of Enums to operators
1 parent b774bc1 commit 766f79d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ansys/dpf/core/plotter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ def add_field(
286286
]:
287287
change_shell_layer_op = core.operators.utility.change_shell_layers()
288288
change_shell_layer_op.inputs.fields_container.connect(field)
289-
change_shell_layer_op.inputs.e_shell_layer.connect(
290-
shell_layer.value
291-
) # top layers taken
289+
change_shell_layer_op.inputs.e_shell_layer.connect(shell_layer) # top layer taken
292290
field = change_shell_layer_op.get_output(0, core.types.field)
293291

294292
component_count = field.component_count

0 commit comments

Comments
 (0)