Skip to content

Commit b22e2dc

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent e055e67 commit b22e2dc

File tree

6 files changed

+40
-11
lines changed

6 files changed

+40
-11
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ansys/dpf/core/operators/math/min_max_over_time.py

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class min_max_over_time(Operator):
2727
2828
Returns
2929
-------
30-
fields_container: FieldsContainer
30+
field_container_1: FieldsContainer
31+
field_container_2: FieldsContainer, optional
3132
3233
Examples
3334
--------
@@ -49,7 +50,8 @@ class min_max_over_time(Operator):
4950
... )
5051
5152
>>> # Get output data
52-
>>> result_fields_container = op.outputs.fields_container()
53+
>>> result_field_container_1 = op.outputs.field_container_1()
54+
>>> result_field_container_2 = op.outputs.field_container_2()
5355
"""
5456

5557
def __init__(self, fields_container=None, int32=None, config=None, server=None):
@@ -85,11 +87,17 @@ def _spec() -> Specification:
8587
},
8688
map_output_pin_spec={
8789
0: PinSpecification(
88-
name="fields_container",
90+
name="field_container_1",
8991
type_names=["fields_container"],
9092
optional=False,
9193
document=r"""""",
9294
),
95+
1: PinSpecification(
96+
name="field_container_2",
97+
type_names=["fields_container"],
98+
optional=True,
99+
document=r"""""",
100+
),
93101
},
94102
)
95103
return spec
@@ -213,17 +221,20 @@ class OutputsMinMaxOverTime(_Outputs):
213221
>>> from ansys.dpf import core as dpf
214222
>>> op = dpf.operators.math.min_max_over_time()
215223
>>> # Connect inputs : op.inputs. ...
216-
>>> result_fields_container = op.outputs.fields_container()
224+
>>> result_field_container_1 = op.outputs.field_container_1()
225+
>>> result_field_container_2 = op.outputs.field_container_2()
217226
"""
218227

219228
def __init__(self, op: Operator):
220229
super().__init__(min_max_over_time._spec().outputs, op)
221-
self._fields_container = Output(min_max_over_time._spec().output_pin(0), 0, op)
222-
self._outputs.append(self._fields_container)
230+
self._field_container_1 = Output(min_max_over_time._spec().output_pin(0), 0, op)
231+
self._outputs.append(self._field_container_1)
232+
self._field_container_2 = Output(min_max_over_time._spec().output_pin(1), 1, op)
233+
self._outputs.append(self._field_container_2)
223234

224235
@property
225-
def fields_container(self) -> Output:
226-
r"""Allows to get fields_container output of the operator
236+
def field_container_1(self) -> Output:
237+
r"""Allows to get field_container_1 output of the operator
227238
228239
Returns
229240
-------
@@ -235,6 +246,24 @@ def fields_container(self) -> Output:
235246
>>> from ansys.dpf import core as dpf
236247
>>> op = dpf.operators.math.min_max_over_time()
237248
>>> # Get the output from op.outputs. ...
238-
>>> result_fields_container = op.outputs.fields_container()
249+
>>> result_field_container_1 = op.outputs.field_container_1()
239250
"""
240-
return self._fields_container
251+
return self._field_container_1
252+
253+
@property
254+
def field_container_2(self) -> Output:
255+
r"""Allows to get field_container_2 output of the operator
256+
257+
Returns
258+
-------
259+
output:
260+
An Output instance for this pin.
261+
262+
Examples
263+
--------
264+
>>> from ansys.dpf import core as dpf
265+
>>> op = dpf.operators.math.min_max_over_time()
266+
>>> # Get the output from op.outputs. ...
267+
>>> result_field_container_2 = op.outputs.field_container_2()
268+
"""
269+
return self._field_container_2
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)