@@ -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
198251class OutputsAbcWeightings (_Outputs ):
199252 """Intermediate class used to get outputs from
0 commit comments