Skip to content

Commit 988349c

Browse files
Update generated code for DPF 261_daily on main (#2752)
Co-authored-by: PProfizi <100710998+PProfizi@users.noreply.github.com>
1 parent 9993ff0 commit 988349c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2756
-410
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 216 additions & 117 deletions
Large diffs are not rendered by default.

src/ansys/dpf/core/operators/filter/abc_weightings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class abc_weightings(Operator):
2626
Inputs
2727
------
2828
fields_container: FieldsContainer
29-
data to be weighted in dB units.
29+
data to be weighted in dB units equipped with cumulative ids in the scoping.
3030
weighting_type: int
3131
if this pin is set to 0, the A-weighting is computed, 1 the B-weigting is computed and 2 the C-weightings is computed.
3232
shape_by_tf_scoping: bool
@@ -95,7 +95,7 @@ def _spec() -> Specification:
9595
name="fields_container",
9696
type_names=["fields_container"],
9797
optional=False,
98-
document=r"""data to be weighted in dB units.""",
98+
document=r"""data to be weighted in dB units equipped with cumulative ids in the scoping.""",
9999
),
100100
1: PinSpecification(
101101
name="weighting_type",
@@ -200,7 +200,7 @@ def __init__(self, op: Operator):
200200
def fields_container(self) -> Input[FieldsContainer]:
201201
r"""Allows to connect fields_container input to the operator.
202202
203-
data to be weighted in dB units.
203+
data to be weighted in dB units equipped with cumulative ids in the scoping.
204204
205205
Returns
206206
-------

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@
2121

2222

2323
class absolute_value_by_component(Operator):
24-
r"""Compute the absolute value of each data value of the input field, no
25-
norm performed.
24+
r"""Computes the absolute value of each data value in the input field
25+
component-wise, without performing vector norm operations.
2626
2727
2828
Inputs
2929
------
3030
field: Field or FieldsContainer or float
31-
field or fields container with only one field is expected
31+
Field, fields container, or numeric data for which to compute absolute values
3232
3333
Outputs
3434
-------
3535
field: Field
36+
Field with absolute values applied to each component
3637
3738
Examples
3839
--------
@@ -68,8 +69,8 @@ def __init__(self, field=None, config=None, server=None):
6869

6970
@staticmethod
7071
def _spec() -> Specification:
71-
description = r"""Compute the absolute value of each data value of the input field, no
72-
norm performed.
72+
description = r"""Computes the absolute value of each data value in the input field
73+
component-wise, without performing vector norm operations.
7374
"""
7475
spec = Specification(
7576
description=description,
@@ -83,15 +84,15 @@ def _spec() -> Specification:
8384
"vector<double>",
8485
],
8586
optional=False,
86-
document=r"""field or fields container with only one field is expected""",
87+
document=r"""Field, fields container, or numeric data for which to compute absolute values""",
8788
),
8889
},
8990
map_output_pin_spec={
9091
0: PinSpecification(
9192
name="field",
9293
type_names=["field"],
9394
optional=False,
94-
document=r"""""",
95+
document=r"""Field with absolute values applied to each component""",
9596
),
9697
},
9798
)
@@ -166,7 +167,7 @@ def __init__(self, op: Operator):
166167
def field(self) -> Input[Field | FieldsContainer | float]:
167168
r"""Allows to connect field input to the operator.
168169
169-
field or fields container with only one field is expected
170+
Field, fields container, or numeric data for which to compute absolute values
170171
171172
Returns
172173
-------
@@ -207,6 +208,8 @@ def __init__(self, op: Operator):
207208
def field(self) -> Output[Field]:
208209
r"""Allows to get field output of the operator
209210
211+
Field with absolute values applied to each component
212+
210213
Returns
211214
-------
212215
output:

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@
2020

2121

2222
class absolute_value_by_component_fc(Operator):
23-
r"""Compute the absolute value of each data value of the input field, no
24-
norm performed.
23+
r"""Computes the absolute value of each data value in the input field
24+
component-wise, without performing vector norm operations.
2525
2626
2727
Inputs
2828
------
2929
fields_container: FieldsContainer
30-
field or fields container with only one field is expected
30+
Field, fields container, or numeric data for which to compute absolute values
3131
3232
Outputs
3333
-------
3434
fields_container: FieldsContainer
35+
Field with absolute values applied to each component
3536
3637
Examples
3738
--------
@@ -67,8 +68,8 @@ def __init__(self, fields_container=None, config=None, server=None):
6768

6869
@staticmethod
6970
def _spec() -> Specification:
70-
description = r"""Compute the absolute value of each data value of the input field, no
71-
norm performed.
71+
description = r"""Computes the absolute value of each data value in the input field
72+
component-wise, without performing vector norm operations.
7273
"""
7374
spec = Specification(
7475
description=description,
@@ -77,15 +78,15 @@ def _spec() -> Specification:
7778
name="fields_container",
7879
type_names=["fields_container"],
7980
optional=False,
80-
document=r"""field or fields container with only one field is expected""",
81+
document=r"""Field, fields container, or numeric data for which to compute absolute values""",
8182
),
8283
},
8384
map_output_pin_spec={
8485
0: PinSpecification(
8586
name="fields_container",
8687
type_names=["fields_container"],
8788
optional=False,
88-
document=r"""""",
89+
document=r"""Field with absolute values applied to each component""",
8990
),
9091
},
9192
)
@@ -160,7 +161,7 @@ def __init__(self, op: Operator):
160161
def fields_container(self) -> Input[FieldsContainer]:
161162
r"""Allows to connect fields_container input to the operator.
162163
163-
field or fields container with only one field is expected
164+
Field, fields container, or numeric data for which to compute absolute values
164165
165166
Returns
166167
-------
@@ -201,6 +202,8 @@ def __init__(self, op: Operator):
201202
def fields_container(self) -> Output[FieldsContainer]:
202203
r"""Allows to get fields_container output of the operator
203204
205+
Field with absolute values applied to each component
206+
204207
Returns
205208
-------
206209
output:

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class add(Operator):
3838
Outputs
3939
-------
4040
field: Field
41+
Field containing the element-wise sum of the two input fields
4142
4243
Examples
4344
--------
@@ -113,7 +114,7 @@ def _spec() -> Specification:
113114
name="field",
114115
type_names=["field"],
115116
optional=False,
116-
document=r"""""",
117+
document=r"""Field containing the element-wise sum of the two input fields""",
117118
),
118119
},
119120
)
@@ -252,6 +253,8 @@ def __init__(self, op: Operator):
252253
def field(self) -> Output[Field]:
253254
r"""Allows to get field output of the operator
254255
256+
Field containing the element-wise sum of the two input fields
257+
255258
Returns
256259
-------
257260
output:

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class add_fc(Operator):
3434
Outputs
3535
-------
3636
fields_container: FieldsContainer
37+
FieldsContainer with summed fields by label space
3738
3839
Examples
3940
--------
@@ -109,7 +110,7 @@ def _spec() -> Specification:
109110
name="fields_container",
110111
type_names=["fields_container"],
111112
optional=False,
112-
document=r"""""",
113+
document=r"""FieldsContainer with summed fields by label space""",
113114
),
114115
},
115116
)
@@ -246,6 +247,8 @@ def __init__(self, op: Operator):
246247
def fields_container(self) -> Output[FieldsContainer]:
247248
r"""Allows to get fields_container output of the operator
248249
250+
FieldsContainer with summed fields by label space
251+
249252
Returns
250253
-------
251254
output:

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class centroid(Operator):
3737
Outputs
3838
-------
3939
field: Field
40+
Field with centroid calculation: fieldA*(1-factor) + fieldB*factor
4041
4142
Examples
4243
--------
@@ -110,7 +111,7 @@ def _spec() -> Specification:
110111
name="field",
111112
type_names=["field"],
112113
optional=False,
113-
document=r"""""",
114+
document=r"""Field with centroid calculation: fieldA*(1-factor) + fieldB*factor""",
114115
),
115116
},
116117
)
@@ -274,6 +275,8 @@ def __init__(self, op: Operator):
274275
def field(self) -> Output[Field]:
275276
r"""Allows to get field output of the operator
276277
278+
Field with centroid calculation: fieldA*(1-factor) + fieldB*factor
279+
277280
Returns
278281
-------
279282
output:

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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@ class centroid_fc(Operator):
2929
Inputs
3030
------
3131
fields_container: FieldsContainer
32+
FieldsContainer with fields for centroid calculation
3233
time_freq: float
34+
Time or frequency value for field selection
3335
step: int, optional
36+
Optional step specification
3437
time_freq_support: TimeFreqSupport, optional
38+
Optional TimeFreqSupport for field resolution
3539
3640
Outputs
3741
-------
3842
fields_container: FieldsContainer
43+
FieldsContainer with centroid calculation results at specified time/frequency
3944
4045
Examples
4146
--------
@@ -103,33 +108,33 @@ def _spec() -> Specification:
103108
name="fields_container",
104109
type_names=["fields_container"],
105110
optional=False,
106-
document=r"""""",
111+
document=r"""FieldsContainer with fields for centroid calculation""",
107112
),
108113
1: PinSpecification(
109114
name="time_freq",
110115
type_names=["double"],
111116
optional=False,
112-
document=r"""""",
117+
document=r"""Time or frequency value for field selection""",
113118
),
114119
2: PinSpecification(
115120
name="step",
116121
type_names=["int32"],
117122
optional=True,
118-
document=r"""""",
123+
document=r"""Optional step specification""",
119124
),
120125
8: PinSpecification(
121126
name="time_freq_support",
122127
type_names=["time_freq_support"],
123128
optional=True,
124-
document=r"""""",
129+
document=r"""Optional TimeFreqSupport for field resolution""",
125130
),
126131
},
127132
map_output_pin_spec={
128133
0: PinSpecification(
129134
name="fields_container",
130135
type_names=["fields_container"],
131136
optional=False,
132-
document=r"""""",
137+
document=r"""FieldsContainer with centroid calculation results at specified time/frequency""",
133138
),
134139
},
135140
)
@@ -218,6 +223,8 @@ def __init__(self, op: Operator):
218223
def fields_container(self) -> Input[FieldsContainer]:
219224
r"""Allows to connect fields_container input to the operator.
220225
226+
FieldsContainer with fields for centroid calculation
227+
221228
Returns
222229
-------
223230
input:
@@ -237,6 +244,8 @@ def fields_container(self) -> Input[FieldsContainer]:
237244
def time_freq(self) -> Input[float]:
238245
r"""Allows to connect time_freq input to the operator.
239246
247+
Time or frequency value for field selection
248+
240249
Returns
241250
-------
242251
input:
@@ -256,6 +265,8 @@ def time_freq(self) -> Input[float]:
256265
def step(self) -> Input[int]:
257266
r"""Allows to connect step input to the operator.
258267
268+
Optional step specification
269+
259270
Returns
260271
-------
261272
input:
@@ -275,6 +286,8 @@ def step(self) -> Input[int]:
275286
def time_freq_support(self) -> Input[TimeFreqSupport]:
276287
r"""Allows to connect time_freq_support input to the operator.
277288
289+
Optional TimeFreqSupport for field resolution
290+
278291
Returns
279292
-------
280293
input:
@@ -314,6 +327,8 @@ def __init__(self, op: Operator):
314327
def fields_container(self) -> Output[FieldsContainer]:
315328
r"""Allows to get fields_container output of the operator
316329
330+
FieldsContainer with centroid calculation results at specified time/frequency
331+
317332
Returns
318333
-------
319334
output:

0 commit comments

Comments
 (0)