Skip to content

Commit f58edaf

Browse files
committed
Merge branch 'main' into release/0.5
2 parents e929e5f + 7b41697 commit f58edaf

File tree

17 files changed

+688
-12
lines changed

17 files changed

+688
-12
lines changed

doc/changelog.d/1204.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump requests from 2.31.0 to 2.32.2

doc/changelog.d/1205.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
chore: update CHANGELOG for v0.5.5

doc/changelog.d/1208.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat: add new arc constructors

doc/changelog.d/1210.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump ansys-sphinx-theme[autoapi] from 0.16.0 to 0.16.2 in the docs-deps group

doc/changelog.d/1211.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump docker from 7.0.0 to 7.1.0

doc/changelog.d/1212.dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build: bump scipy from 1.13.0 to 1.13.1

doc/source/examples/02_sketching/basic_usage.mystnb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,31 @@ sketch.select("Arc")
105105
sketch.plot_selection()
106106
```
107107

108+
There are also additional ways to draw arcs, such as by specifying the start, center point, and angle.
109+
110+
```{code-cell} ipython3
111+
start_point = Point2D([2, 1], unit=u.m)
112+
center_point = Point2D([1, 1], unit=u.m)
113+
angle = 90
114+
sketch.arc_from_start_center_and_angle(
115+
start_point, center_point, angle=90, tag="Arc_from_start_center_angle"
116+
)
117+
sketch.select("Arc_from_start_center_angle")
118+
sketch.plot_selection()
119+
```
120+
121+
Or by specifying the start, end point, and radius.
122+
123+
```{code-cell} ipython3
124+
start_point, end_point = Point2D([2, 1], unit=u.m), Point2D([0, 1], unit=u.meter)
125+
radius = 1 * u.m
126+
sketch.arc_from_start_end_and_radius(
127+
start_point, end_point, radius, tag="Arc_from_start_end_radius"
128+
)
129+
sketch.select("Arc_from_start_end_radius")
130+
sketch.plot_selection()
131+
```
132+
108133
### Draw a slot
109134

110135
You draw a slot by specifying the center, width, and height.

doc/source/examples/04_applied/01_naca_airfoils.mystnb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def naca_airfoil_4digits(number: Union[int, str], n_points: int = 200) -> List[P
7878
# near the leading edge
7979
x = (1 - np.cos(i / (n_points - 1) * np.pi)) / 2
8080

81-
# Check if it is a symmetric airfoil or not
81+
# Check if it is a symmetric airfoil
8282
if p == 0 and m == 0:
8383
# Camber line is zero in this case
8484
yc = 0

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies = [
3333
"Pint>=0.18,<1",
3434
"protobuf>=3.20.2,<6",
3535
"pyvista>=0.37.0,<1",
36-
"requests>=2,<2.32",
36+
"requests>=2,<3",
3737
"scipy>=1.7.3,<2",
3838
"semver>=3,<4",
3939
"six>=1.16.0,<2",
@@ -50,7 +50,7 @@ tests = [
5050
"ansys-platform-instancemanagement==1.1.2",
5151
"ansys-tools-path==0.5.2",
5252
"beartype==0.18.5",
53-
"docker==7.0.0",
53+
"docker==7.1.0",
5454
"grpcio==1.64.0",
5555
"grpcio-health-checking==1.60.0",
5656
"numpy==1.26.4",
@@ -61,8 +61,8 @@ tests = [
6161
"pytest-pyvista==0.1.9",
6262
"pytest-xvfb==3.0.0",
6363
"pyvista[jupyter]==0.43.8",
64-
"requests==2.31.0",
65-
"scipy==1.13.0",
64+
"requests==2.32.2",
65+
"scipy==1.13.1",
6666
"semver==3.0.2",
6767
"six==1.16.0",
6868
"vtk==9.3.0",
@@ -74,9 +74,9 @@ tests-minimal = [
7474
"pytest-xvfb==3.0.0",
7575
]
7676
doc = [
77-
"ansys-sphinx-theme[autoapi]==0.16.0",
77+
"ansys-sphinx-theme[autoapi]==0.16.2",
7878
"beartype==0.18.5",
79-
"docker==7.0.0",
79+
"docker==7.1.0",
8080
"ipyvtklink==0.2.3",
8181
"jupyter_sphinx==0.5.3",
8282
"jupytext==1.16.2",
@@ -87,7 +87,7 @@ doc = [
8787
"numpydoc==1.7.0",
8888
"panel==1.4.2",
8989
"pyvista[jupyter]==0.43.8",
90-
"requests==2.31.0",
90+
"requests==2.32.2",
9191
"sphinx==7.3.7",
9292
"sphinx-autodoc-typehints==1.24.0",
9393
"sphinx-copybutton==0.5.2",

src/ansys/geometry/core/connection/product_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def _wait_for_backend(host: str, port: int, timeout: int):
363363

364364
def _is_port_available(port: int, host: str = "localhost") -> bool:
365365
"""
366-
Check whether the argument port is available or not.
366+
Check whether the argument port is available.
367367
368368
The optional argument is the ip address where to check port availability.
369369
Its default is ``localhost``.

0 commit comments

Comments
 (0)