Skip to content

Commit 4e8b2a0

Browse files
github-actions[bot]rlaghaPProfizi
authored
update operators (#1117)
Co-authored-by: rlagha <[email protected]> Co-authored-by: Paul Profizi <[email protected]>
1 parent 1b92149 commit 4e8b2a0

File tree

197 files changed

+3513
-1202
lines changed

Some content is hidden

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

197 files changed

+3513
-1202
lines changed

docs/source/_static/dpf_operators.html

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from .field_low_pass_fc import field_low_pass_fc
88
from .field_signed_high_pass import field_signed_high_pass
99
from .field_signed_high_pass_fc import field_signed_high_pass_fc
10+
from .filtering_max_over_time import filtering_max_over_time
1011
from .scoping_band_pass import scoping_band_pass
1112
from .scoping_high_pass import scoping_high_pass
1213
from .scoping_low_pass import scoping_low_pass

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

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ class abc_weightings(Operator):
2222
computed, 1 the b-weigting is
2323
computed and 2 the c-weightings is
2424
computed.
25+
shape_by_tf_scoping : bool
26+
If this pin is set to true, each field of the
27+
input fields container is defined by
28+
time freq scoping and not by ids.
29+
default is false
2530
2631
2732
Examples
@@ -36,19 +41,27 @@ class abc_weightings(Operator):
3641
>>> op.inputs.fields_container.connect(my_fields_container)
3742
>>> my_weighting_type = int()
3843
>>> op.inputs.weighting_type.connect(my_weighting_type)
44+
>>> my_shape_by_tf_scoping = bool()
45+
>>> op.inputs.shape_by_tf_scoping.connect(my_shape_by_tf_scoping)
3946
4047
>>> # Instantiate operator and connect inputs in one line
4148
>>> op = dpf.operators.filter.abc_weightings(
4249
... fields_container=my_fields_container,
4350
... weighting_type=my_weighting_type,
51+
... shape_by_tf_scoping=my_shape_by_tf_scoping,
4452
... )
4553
4654
>>> # Get output data
4755
>>> result_weightings = op.outputs.weightings()
4856
"""
4957

5058
def __init__(
51-
self, fields_container=None, weighting_type=None, config=None, server=None
59+
self,
60+
fields_container=None,
61+
weighting_type=None,
62+
shape_by_tf_scoping=None,
63+
config=None,
64+
server=None,
5265
):
5366
super().__init__(name="abc_weightings", config=config, server=server)
5467
self._inputs = InputsAbcWeightings(self)
@@ -57,6 +70,8 @@ def __init__(
5770
self.inputs.fields_container.connect(fields_container)
5871
if weighting_type is not None:
5972
self.inputs.weighting_type.connect(weighting_type)
73+
if shape_by_tf_scoping is not None:
74+
self.inputs.shape_by_tf_scoping.connect(shape_by_tf_scoping)
6075

6176
@staticmethod
6277
def _spec():
@@ -81,6 +96,15 @@ def _spec():
8196
computed and 2 the c-weightings is
8297
computed.""",
8398
),
99+
2: PinSpecification(
100+
name="shape_by_tf_scoping",
101+
type_names=["bool"],
102+
optional=False,
103+
document="""If this pin is set to true, each field of the
104+
input fields container is defined by
105+
time freq scoping and not by ids.
106+
default is false""",
107+
),
84108
},
85109
map_output_pin_spec={
86110
0: PinSpecification(
@@ -142,6 +166,8 @@ class InputsAbcWeightings(_Inputs):
142166
>>> op.inputs.fields_container.connect(my_fields_container)
143167
>>> my_weighting_type = int()
144168
>>> op.inputs.weighting_type.connect(my_weighting_type)
169+
>>> my_shape_by_tf_scoping = bool()
170+
>>> op.inputs.shape_by_tf_scoping.connect(my_shape_by_tf_scoping)
145171
"""
146172

147173
def __init__(self, op: Operator):
@@ -150,6 +176,10 @@ def __init__(self, op: Operator):
150176
self._inputs.append(self._fields_container)
151177
self._weighting_type = Input(abc_weightings._spec().input_pin(1), 1, op, -1)
152178
self._inputs.append(self._weighting_type)
179+
self._shape_by_tf_scoping = Input(
180+
abc_weightings._spec().input_pin(2), 2, op, -1
181+
)
182+
self._inputs.append(self._shape_by_tf_scoping)
153183

154184
@property
155185
def fields_container(self):
@@ -194,6 +224,29 @@ def weighting_type(self):
194224
"""
195225
return self._weighting_type
196226

227+
@property
228+
def shape_by_tf_scoping(self):
229+
"""Allows to connect shape_by_tf_scoping input to the operator.
230+
231+
If this pin is set to true, each field of the
232+
input fields container is defined by
233+
time freq scoping and not by ids.
234+
default is false
235+
236+
Parameters
237+
----------
238+
my_shape_by_tf_scoping : bool
239+
240+
Examples
241+
--------
242+
>>> from ansys.dpf import core as dpf
243+
>>> op = dpf.operators.filter.abc_weightings()
244+
>>> op.inputs.shape_by_tf_scoping.connect(my_shape_by_tf_scoping)
245+
>>> # or
246+
>>> op.inputs.shape_by_tf_scoping(my_shape_by_tf_scoping)
247+
"""
248+
return self._shape_by_tf_scoping
249+
197250

198251
class OutputsAbcWeightings(_Outputs):
199252
"""Intermediate class used to get outputs from

0 commit comments

Comments
 (0)