Skip to content

Commit bb86913

Browse files
committed
fix: review suggestions
1 parent ade1703 commit bb86913

File tree

582 files changed

+1790
-1808
lines changed

Some content is hidden

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

582 files changed

+1790
-1808
lines changed

src/ansys/dpf/core/inputs.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,7 @@ def __init__(self, spec, pin, operator, count_ellipsis=-1):
7474
self._update_doc_str(docstr, self.name)
7575

7676
def connect(self, inpt: T):
77-
"""Connect any input (entity or operator output) to a specified input pin of this operator.
78-
79-
Parameters
80-
----------
81-
inpt : str, int, float, bool, list[float], list[int], dict, Operator, PropertyField, ScopingsContainer,
82-
DataSources, UnitSystem, CyclicSupport, DataTree, Workflow, StreamsContainer, FieldsContainer, Field,
83-
CustomTypeField, MeshedRegion, Any, GenericDataContainer, Scoping, StringField, MeshesContainer, ResultInfo,
84-
TimeFreqSupport, Output, Outputs, os.PathLike, UnitSystem, Enum # noqa: E501
85-
Input of the operator.
86-
87-
"""
77+
"""Connect any input (entity or operator output) to a specified input pin of this operator."""
8878
from pathlib import Path
8979

9080
# always convert ranges to lists
@@ -246,15 +236,6 @@ def connect(self, inpt):
246236
247237
.. deprecated::
248238
Deprecated in favor of explicit output-to-input connections.
249-
250-
Parameters
251-
----------
252-
inpt : str, int, float, bool, list[float], list[int], dict, Operator, PropertyField, ScopingsContainer,
253-
DataSources, UnitSystem, CyclicSupport, DataTree, Workflow, StreamsContainer, FieldsContainer, Field,
254-
CustomTypeField, MeshedRegion, Any, GenericDataContainer, Scoping, StringField, MeshesContainer, ResultInfo,
255-
TimeFreqSupport, Output, Outputs, os.PathLike, UnitSystem, Enum # noqa: E501
256-
Input of the operator.
257-
258239
"""
259240
warnings.warn(
260241
message="Use explicit output-to-input connections.", category=DeprecationWarning

src/ansys/dpf/core/operators/averaging/elemental_difference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19-
from ansys.dpf.core.scoping import Scoping
19+
from ansys.dpf.core.field import Field
2020
from ansys.dpf.core.fields_container import FieldsContainer
2121
from ansys.dpf.core.meshed_region import MeshedRegion
22-
from ansys.dpf.core.field import Field
22+
from ansys.dpf.core.scoping import Scoping
2323

2424

2525
class elemental_difference(Operator):

src/ansys/dpf/core/operators/averaging/elemental_difference_fc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.scopings_container import ScopingsContainer
21-
from ansys.dpf.core.meshes_container import MeshesContainer
2219
from ansys.dpf.core.fields_container import FieldsContainer
2320
from ansys.dpf.core.meshed_region import MeshedRegion
21+
from ansys.dpf.core.meshes_container import MeshesContainer
22+
from ansys.dpf.core.scoping import Scoping
23+
from ansys.dpf.core.scopings_container import ScopingsContainer
2424

2525

2626
class elemental_difference_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_mean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19-
from ansys.dpf.core.scoping import Scoping
2019
from ansys.dpf.core.field import Field
20+
from ansys.dpf.core.scoping import Scoping
2121

2222

2323
class elemental_mean(Operator):

src/ansys/dpf/core/operators/averaging/elemental_mean_fc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.scopings_container import ScopingsContainer
21-
from ansys.dpf.core.meshes_container import MeshesContainer
2219
from ansys.dpf.core.fields_container import FieldsContainer
2320
from ansys.dpf.core.meshed_region import MeshedRegion
21+
from ansys.dpf.core.meshes_container import MeshesContainer
22+
from ansys.dpf.core.scoping import Scoping
23+
from ansys.dpf.core.scopings_container import ScopingsContainer
2424

2525

2626
class elemental_mean_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.property_field import PropertyField
19+
from ansys.dpf.core.field import Field
2120
from ansys.dpf.core.fields_container import FieldsContainer
2221
from ansys.dpf.core.meshed_region import MeshedRegion
23-
from ansys.dpf.core.field import Field
22+
from ansys.dpf.core.property_field import PropertyField
23+
from ansys.dpf.core.scoping import Scoping
2424

2525

2626
class elemental_nodal_to_nodal(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_elemental.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19+
from ansys.dpf.core.field import Field
1920
from ansys.dpf.core.fields_container import FieldsContainer
2021
from ansys.dpf.core.scoping import Scoping
21-
from ansys.dpf.core.field import Field
2222

2323

2424
class elemental_nodal_to_nodal_elemental(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_fc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.scopings_container import ScopingsContainer
21-
from ansys.dpf.core.meshes_container import MeshesContainer
2219
from ansys.dpf.core.fields_container import FieldsContainer
2320
from ansys.dpf.core.meshed_region import MeshedRegion
21+
from ansys.dpf.core.meshes_container import MeshesContainer
22+
from ansys.dpf.core.scoping import Scoping
23+
from ansys.dpf.core.scopings_container import ScopingsContainer
2424

2525

2626
class elemental_nodal_to_nodal_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_to_elemental_nodal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19+
from ansys.dpf.core.field import Field
1920
from ansys.dpf.core.fields_container import FieldsContainer
2021
from ansys.dpf.core.meshed_region import MeshedRegion
2122
from ansys.dpf.core.scoping import Scoping
22-
from ansys.dpf.core.field import Field
2323

2424

2525
class elemental_to_elemental_nodal(Operator):

src/ansys/dpf/core/operators/averaging/elemental_to_nodal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from ansys.dpf.core.server_types import AnyServerType
1717

1818
if TYPE_CHECKING:
19+
from ansys.dpf.core.field import Field
1920
from ansys.dpf.core.fields_container import FieldsContainer
2021
from ansys.dpf.core.scoping import Scoping
21-
from ansys.dpf.core.field import Field
2222

2323

2424
class elemental_to_nodal(Operator):

0 commit comments

Comments
 (0)