Skip to content

Commit 9306c1b

Browse files
chore: auto fixes from pre-commit hooks
1 parent 68f0981 commit 9306c1b

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

src/ansys/geometry/core/_grpc/_services/v0/designs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def serialize_beam(beam):
428428
"properties": serialize_beam_properties(beam.properties),
429429
"cross_section": serialize_beam_cross_section(beam.cross_section),
430430
}
431-
431+
432432
def serialize_design_point(design_point):
433433
return {
434434
"id": design_point.id,

src/ansys/geometry/core/_grpc/_services/v0/named_selection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ansys.geometry.core.errors import protect_grpc
2727

2828
from ..base.named_selection import GRPCNamedSelectionService
29-
from .conversions import build_grpc_id, from_grpc_point_to_point3d
29+
from .conversions import build_grpc_id
3030

3131

3232
class GRPCNamedSelectionServiceV0(GRPCNamedSelectionService):

src/ansys/geometry/core/designer/designpoint.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ class DesignPoint:
5050
Parent component to place the new design point under within the design assembly.
5151
"""
5252

53-
def __init__(
54-
self, id: str, name: str, point: Point3D, parent_component: Union["Component"]
55-
):
53+
def __init__(self, id: str, name: str, point: Point3D, parent_component: Union["Component"]):
5654
"""Initialize the ``DesignPoints`` class."""
5755
self._id = id
5856
self._name = name
@@ -89,7 +87,7 @@ def get_named_selections(self) -> list["NamedSelection"]:
8987
"""
9088
if self.parent_component is None:
9189
raise ValueError("Design point does not have a parent component.")
92-
90+
9391
included_ns = []
9492
for ns in get_design_from_component(self.parent_component).named_selections:
9593
if self.id in [dp.id for dp in ns.design_points]:

src/ansys/geometry/core/designer/vertex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
from ansys.geometry.core.math.point import Point3D
2929
from ansys.geometry.core.misc.auxiliary import get_design_from_body
30-
from ansys.geometry.core.misc.checks import ensure_design_is_active
3130
from ansys.geometry.core.typing import RealSequence
3231

3332
if TYPE_CHECKING: # pragma: no cover

src/ansys/geometry/core/misc/auxiliary.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ def get_beams_from_ids(design: "Design", beam_ids: list[str]) -> list["Beam"]:
311311
return [beam for beam in __traverse_all_beams(design) if beam.id in beam_ids] # noqa: E501
312312

313313

314-
def get_design_points_from_ids(design: "Design", design_point_ids: list[str]) -> list["DesignPoint"]:
314+
def get_design_points_from_ids(
315+
design: "Design", design_point_ids: list[str]
316+
) -> list["DesignPoint"]:
315317
"""Find the ``DesignPoint`` objects inside a ``Design`` from its ids.
316318
317319
Parameters

0 commit comments

Comments
 (0)