Skip to content

Commit

Permalink
CHORE: Update codespell version (#4734)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored May 28, 2024
1 parent 793b53d commit 5759fa0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
- --max-line-length=120

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions pyaedt/emit_core/results/revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,10 @@ def set_emi_category_filter_enabled(self, category: EmiCategoryFilter, enabled:
def get_license_session(self):
"""Get a license session.
A license session can be started with checkout(), and ended with checkin().
The `with` keyword can also be used, where checkout() is called on enter, and checkin() is called on exit.
A license session can be started with checkout(), and ended with check in().
The `with` keyword can also be used, where checkout() is called on enter, and check in() is called on exit.
Avoids having to wait for license checkin and checkout when doing many runs.
Avoids having to wait for license check in and checkout when doing many runs.
Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/generic/compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def reports(self, val):

@property
def parameters(self):
"""Parameters available in the Virtual complaince.
"""Parameters available in the Virtual compliance.
Returns
-------
Expand Down
12 changes: 6 additions & 6 deletions pyaedt/modeler/cad/Primitives3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -1287,20 +1287,20 @@ def create_spiral(self, internal_radius=10, spacing=1, faces=8, turns=10, width=
dtheta = 2 * pi / faces
theta = pi / 2
pts = [(internal_radius, 0, elevation), (internal_radius, internal_radius * tan(dtheta / 2), elevation)]
rin = internal_radius * tan(dtheta / 2) * 2
x = rin
r = rin
r_in = internal_radius * tan(dtheta / 2) * 2
x = r_in
r = r_in
for i in range(faces):
r += 1
theta += dtheta
x = x + r * cos(theta)
dr = (width + spacing) / (x - rin)
dr = (width + spacing) / (x - r_in)

for i in range(turns * faces - int(faces / 2) - 1):
rin += dr
r_in += dr
theta += dtheta
x0, y0 = pts[-1][:2]
x1, y1 = x0 + rin * cos(theta), y0 + rin * sin(theta)
x1, y1 = x0 + r_in * cos(theta), y0 + r_in * sin(theta)
pts.append((x1, y1, elevation))

pts.append((x1, 0, elevation))
Expand Down

0 comments on commit 5759fa0

Please sign in to comment.