Skip to content

Commit

Permalink
Update checks.
Browse files Browse the repository at this point in the history
There was an inconcistency between my environment and GitHub, so the
action fails while things pass here.
  • Loading branch information
ioannis-vm committed Aug 25, 2024
1 parent 1ac97fc commit 07339c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/osmg/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing import Optional
import numpy as np
import numpy.typing as npt
from . import common
from osmg import common

# pylint: disable=no-else-return

Expand Down Expand Up @@ -54,8 +54,8 @@ def length(self):
Example:
>>> from osmg.line import Line
>>> l1 = Line('l1', np.array([0, 0]), np.array([2, 2]))
>>> l1.length()
2.8284271247461903
>>> l1.length() == 2.8284271247461903
True
"""

Expand Down
28 changes: 14 additions & 14 deletions src/osmg/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ def direction(self):
>>> edge = Edge(v1, v2)
>>> halfedge1 = Halfedge(v1, edge)
>>> halfedge2 = Halfedge(v2, edge)
>>> halfedge1.direction()
0.7853981633974483
>>> halfedge2.direction()
-2.356194490192345
>>> halfedge1.direction() == 0.7853981633974483
True
>>> halfedge2.direction() == -2.356194490192345
True
"""

Expand Down Expand Up @@ -560,16 +560,16 @@ def polygon_inertia(coords):
Example:
>>> coords = np.array([[-2, -1], [-2, 1], [1, 1], [1, -1]])
>>> res = polygon_inertia(coords)
>>> res['ixx']
-2.0
>>> res['iyy']
-6.0
>>> res['ixy']
0.0
>>> res['ir']
-8.0
>>> res['ir_mass']
1.3333333333333333
>>> res['ixx'] == -2.0
True
>>> res['iyy'] == -6.0
True
>>> res['ixy'] == 0.00
True
>>> res['ir'] == -8.0
True
>>> res['ir_mass'] == 1.33333333333333333333
True
"""

Expand Down

0 comments on commit 07339c1

Please sign in to comment.