Skip to content

Commit 6d77cab

Browse files
committed
Use an operator from a plugin available with 222
1 parent ad108fe commit 6d77cab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ansys/dpf/core/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,11 +1046,11 @@ def required_plugins(self) -> list[str]:
10461046
--------
10471047
>>> from ansys.dpf import core as dpf
10481048
>>> wf = dpf.Workflow()
1049-
>>> op1 = dpf.Operator("html_doc") # from 'documentation' plugin
1049+
>>> op1 = dpf.Operator("csv_to_field") # from 'csv' plugin
10501050
>>> op2 = dpf.Operator("U") # from 'core' plugin
10511051
>>> wf.add_operators([op1, op2])
10521052
>>> wf.required_plugins()
1053-
['core', 'documentation']
1053+
['core', 'csv']
10541054
"""
10551055
num = self._api.work_flow_number_of_operators(self)
10561056
out = []

tests/test_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def test_workflow_get_output_derived_class(server_type):
11031103

11041104
def test_required_plugins(server_type):
11051105
wf = dpf.core.Workflow(server=server_type)
1106-
op1 = dpf.core.Operator("html_doc", server=server_type) # from 'documentation' plugin
1106+
op1 = dpf.core.Operator("csv_to_field", server=server_type) # from 'csv' plugin
11071107
op2 = dpf.core.Operator("U", server=server_type) # from 'core' plugin
11081108
wf.add_operators([op1, op2])
11091109
plugins = wf.required_plugins()

0 commit comments

Comments
 (0)