8000 Update Operators for DPF 232 on master by github-actions[bot] · Pull Request #889 · ansys/pydpf-core · GitHub
[go: up one dir, main page]

Skip to content

Update Operators for DPF 232 on master #889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/_static/dpf_operators.html

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions src/ansys/dpf/core/operators/math/accumulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ class accumulate(Operator):
fieldA : Field or FieldsContainer
Field or fields container with only one field
is expected
ponderation : Field
Field
time_scoping : Scoping
ponderation : Field, optional
Field containing weights, one weight per
entity
time_scoping : Scoping, optional
Time_scoping


Expand Down Expand Up @@ -81,13 +82,14 @@ def _spec():
1: PinSpecification(
name="ponderation",
type_names=["field"],
optional=False,
document="""Field""",
optional=True,
document="""Field containing weights, one weight per
entity""",
),
2: PinSpecification(
name="time_scoping",
type_names=["scoping"],
optional=False,
optional=True,
document="""Time_scoping""",
),
},
Expand All @@ -96,7 +98,8 @@ def _spec():
name="field",
type_names=["field"],
optional=False,
document="""""",
document="""Field containing the (weighted) sum for each
component in an elementary data""",
),
},
)
Expand Down Expand Up @@ -189,7 +192,8 @@ def fieldA(self):
def ponderation(self):
"""Allows to connect ponderation input to the operator.

Field
Field containing weights, one weight per
entity

Parameters
----------
Expand Down
20 changes: 12 additions & 8 deletions src/ansys/dpf/core/operators/math/accumulate_fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ class accumulate_fc(Operator):
fields_container : FieldsContainer
Field or fields container with only one field
is expected
ponderation : Field
Field
time_scoping : Scoping
ponderation : Field, optional
Field containing weights, one weight per
entity
time_scoping : Scoping, optional
Time_scoping


Expand Down Expand Up @@ -86,13 +87,14 @@ def _spec():
1: PinSpecification(
name="ponderation",
type_names=["field"],
optional=False,
document="""Field""",
optional=True,
document="""Field containing weights, one weight per
entity""",
),
2: PinSpecification(
name="time_scoping",
type_names=["scoping"],
optional=False,
optional=True,
document="""Time_scoping""",
),
},
Expand All @@ -101,7 +103,8 @@ def _spec():
name="fields_container",
type_names=["fields_container"],
optional=False,
document="""""",
document="""Field containing the (weighted) sum for each
component in an elementary data""",
),
},
)
Expand Down Expand Up @@ -194,7 +197,8 @@ def fields_container(self):
def ponderation(self):
"""Allows to connect ponderation input to the operator.

Field
Field containing weights, one weight per
entity

Parameters
----------
Expand Down
0