Skip to content

Commit 3594bd5

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent 6951992 commit 3594bd5

File tree

5 files changed

+35
-7
lines changed

5 files changed

+35
-7
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14851,9 +14851,15 @@ <h2>LaTeX</h2>
1485114851
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="meshA"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="meshB"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="small_value"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>define what is a small value for numeric comparison (default value:1.0e-14).</p>
1485214852
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="tolerance"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>define the relative tolerance ceil for numeric comparison (default is 0.001).</p>
1485314853
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="4" ellipsis = "false"></pin-number></td><td><pin-name name="compare_auxiliary"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>compare auxiliary data (i.e property fields, scopings...). Default value is 'false'.</p>
14854-
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="are_identical"></pin-name></td><td><req-type typeName="(bool)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="identical_meshes" license="none" cat="logic" plugin="core" cpp-name="compare::mesh"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="same fields?" scripting_name="identical_fields"plugin="core"cat="logic"><h1 class="op-des-h1">logic: same fields?</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Check if two fields are identical.</p>
14854+
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="are_identical"></pin-name></td><td><req-type typeName="(bool)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="identical_meshes" license="none" cat="logic" plugin="core" cpp-name="compare::mesh"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="same fields?" scripting_name="identical_fields"plugin="core"cat="logic"><h1 class="op-des-h1">logic: same fields?</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Check if two fields are identical according to the following behavior:</p>
14855+
<ul>
14856+
<li>double_value (input pin 2) parameter is a significance threshold, not an absolute tolerance</li>
14857+
<li>Values below double_value are considereded 'negligible', values above are considered 'significant'</li>
14858+
<li>Both fields are considered different if the data for at least one entity in one field is negligible and the data for the same entity in the other is significant</li>
14859+
<li>When the data for the same entity in both fields is significant, they are compared based on double_tolerance (input pin 3) with the expression given in the pin documentation.</li>
14860+
</ul>
1485514861
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="fieldA"></pin-name></td><td><req-type typeName="(field)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="fieldB"></pin-name></td><td><req-type typeName="(field)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="double_value"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Double positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14).</p>
14856-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="double_tolerance"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 &lt; relativeTol. Default is 0.001.</p>
14862+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="double_tolerance"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 &lt; double_tolerance. Default is 0.001.</p>
1485714863
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="boolean"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>bool (true if identical...)</p>
1485814864
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="message"></pin-name></td><td><req-type typeName="(string)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="identical_fields" license="none" cat="logic" plugin="core" cpp-name="AreFieldsIdentical"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="same scopings?" scripting_name="identical_scopings"plugin="core"cat="logic"><h1 class="op-des-h1">logic: same scopings?</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Check if two scopings are identical.</p>
1485914865
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="scopingA"></pin-name></td><td><req-type typeName="(scoping)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="scopingB"></pin-name></td><td><req-type typeName="(scoping)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="boolean"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>bool (true if identical...)</p>

src/ansys/dpf/core/operators/logic/identical_fields.py

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@
2020

2121

2222
class identical_fields(Operator):
23-
r"""Check if two fields are identical.
23+
r"""Check if two fields are identical according to the following behavior:
24+
25+
- double_value (input pin 2) parameter is a significance threshold, not
26+
an absolute tolerance
27+
- Values below double_value are considereded ‘negligible’, values above
28+
are considered ‘significant’
29+
- Both fields are considered different if the data for at least one
30+
entity in one field is negligible and the data for the same entity in
31+
the other is significant
32+
- When the data for the same entity in both fields is significant, they
33+
are compared based on double_tolerance (input pin 3) with the
34+
expression given in the pin documentation.
2435
2536
2637
Inputs
@@ -30,7 +41,7 @@ class identical_fields(Operator):
3041
double_value: float, optional
3142
Double positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14).
3243
double_tolerance: float, optional
33-
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.
44+
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.
3445
3546
Outputs
3647
-------
@@ -95,7 +106,18 @@ def __init__(
95106

96107
@staticmethod
97108
def _spec() -> Specification:
98-
description = r"""Check if two fields are identical.
109+
description = r"""Check if two fields are identical according to the following behavior:
110+
111+
- double_value (input pin 2) parameter is a significance threshold, not
112+
an absolute tolerance
113+
- Values below double_value are considereded ‘negligible’, values above
114+
are considered ‘significant’
115+
- Both fields are considered different if the data for at least one
116+
entity in one field is negligible and the data for the same entity in
117+
the other is significant
118+
- When the data for the same entity in both fields is significant, they
119+
are compared based on double_tolerance (input pin 3) with the
120+
expression given in the pin documentation.
99121
"""
100122
spec = Specification(
101123
description=description,
@@ -122,7 +144,7 @@ def _spec() -> Specification:
122144
name="double_tolerance",
123145
type_names=["double"],
124146
optional=True,
125-
document=r"""Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.""",
147+
document=r"""Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.""",
126148
),
127149
},
128150
map_output_pin_spec={
@@ -286,7 +308,7 @@ def double_value(self) -> Input[float]:
286308
def double_tolerance(self) -> Input[float]:
287309
r"""Allows to connect double_tolerance input to the operator.
288310
289-
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.
311+
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.
290312
291313
Returns
292314
-------
1 KB
Binary file not shown.
0 Bytes
Binary file not shown.
24 KB
Binary file not shown.

0 commit comments

Comments
 (0)