Skip to content

Commit ebfffa4

Browse files
github-actions[bot]PProfizi
authored andcommitted
update operators (#889)
Co-authored-by: rlagha <[email protected]> (cherry picked from commit c8ee4f3)
1 parent 009e5a4 commit ebfffa4

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
lines changed

docs/source/_static/dpf_operators.html

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

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class accumulate(Operator):
1919
fieldA : Field or FieldsContainer
2020
Field or fields container with only one field
2121
is expected
22-
ponderation : Field
23-
Field
24-
time_scoping : Scoping
22+
ponderation : Field, optional
23+
Field containing weights, one weight per
24+
entity
25+
time_scoping : Scoping, optional
2526
Time_scoping
2627
2728
@@ -81,13 +82,14 @@ def _spec():
8182
1: PinSpecification(
8283
name="ponderation",
8384
type_names=["field"],
84-
optional=False,
85-
document="""Field""",
85+
optional=True,
86+
document="""Field containing weights, one weight per
87+
entity""",
8688
),
8789
2: PinSpecification(
8890
name="time_scoping",
8991
type_names=["scoping"],
90-
optional=False,
92+
optional=True,
9193
document="""Time_scoping""",
9294
),
9395
},
@@ -96,7 +98,8 @@ def _spec():
9698
name="field",
9799
type_names=["field"],
98100
optional=False,
99-
document="""""",
101+
document="""Field containing the (weighted) sum for each
102+
component in an elementary data""",
100103
),
101104
},
102105
)
@@ -189,7 +192,8 @@ def fieldA(self):
189192
def ponderation(self):
190193
"""Allows to connect ponderation input to the operator.
191194
192-
Field
195+
Field containing weights, one weight per
196+
entity
193197
194198
Parameters
195199
----------

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class accumulate_fc(Operator):
1919
fields_container : FieldsContainer
2020
Field or fields container with only one field
2121
is expected
22-
ponderation : Field
23-
Field
24-
time_scoping : Scoping
22+
ponderation : Field, optional
23+
Field containing weights, one weight per
24+
entity
25+
time_scoping : Scoping, optional
2526
Time_scoping
2627
2728
@@ -86,13 +87,14 @@ def _spec():
8687
1: PinSpecification(
8788
name="ponderation",
8889
type_names=["field"],
89-
optional=False,
90-
document="""Field""",
90+
optional=True,
91+
document="""Field containing weights, one weight per
92+
entity""",
9193
),
9294
2: PinSpecification(
9395
name="time_scoping",
9496
type_names=["scoping"],
95-
optional=False,
97+
optional=True,
9698
document="""Time_scoping""",
9799
),
98100
},
@@ -101,7 +103,8 @@ def _spec():
101103
name="fields_container",
102104
type_names=["fields_container"],
103105
optional=False,
104-
document="""""",
106+
document="""Field containing the (weighted) sum for each
107+
component in an elementary data""",
105108
),
106109
},
107110
)
@@ -194,7 +197,8 @@ def fields_container(self):
194197
def ponderation(self):
195198
"""Allows to connect ponderation input to the operator.
196199
197-
Field
200+
Field containing weights, one weight per
201+
entity
198202
199203
Parameters
200204
----------

0 commit comments

Comments
 (0)