Skip to content

Commit 07339c1

Browse files
committedAug 25, 2024·
Update checks.
There was an inconcistency between my environment and GitHub, so the action fails while things pass here.
1 parent 1ac97fc commit 07339c1

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed
 

‎src/osmg/line.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from typing import Optional
1717
import numpy as np
1818
import numpy.typing as npt
19-
from . import common
19+
from osmg import common
2020

2121
# pylint: disable=no-else-return
2222

@@ -54,8 +54,8 @@ def length(self):
5454
Example:
5555
>>> from osmg.line import Line
5656
>>> l1 = Line('l1', np.array([0, 0]), np.array([2, 2]))
57-
>>> l1.length()
58-
2.8284271247461903
57+
>>> l1.length() == 2.8284271247461903
58+
True
5959
6060
"""
6161

‎src/osmg/mesh.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ def direction(self):
398398
>>> edge = Edge(v1, v2)
399399
>>> halfedge1 = Halfedge(v1, edge)
400400
>>> halfedge2 = Halfedge(v2, edge)
401-
>>> halfedge1.direction()
402-
0.7853981633974483
403-
>>> halfedge2.direction()
404-
-2.356194490192345
401+
>>> halfedge1.direction() == 0.7853981633974483
402+
True
403+
>>> halfedge2.direction() == -2.356194490192345
404+
True
405405
406406
"""
407407

@@ -560,16 +560,16 @@ def polygon_inertia(coords):
560560
Example:
561561
>>> coords = np.array([[-2, -1], [-2, 1], [1, 1], [1, -1]])
562562
>>> res = polygon_inertia(coords)
563-
>>> res['ixx']
564-
-2.0
565-
>>> res['iyy']
566-
-6.0
567-
>>> res['ixy']
568-
0.0
569-
>>> res['ir']
570-
-8.0
571-
>>> res['ir_mass']
572-
1.3333333333333333
563+
>>> res['ixx'] == -2.0
564+
True
565+
>>> res['iyy'] == -6.0
566+
True
567+
>>> res['ixy'] == 0.00
568+
True
569+
>>> res['ir'] == -8.0
570+
True
571+
>>> res['ir_mass'] == 1.33333333333333333333
572+
True
573573
574574
"""
575575

0 commit comments

Comments
 (0)
Please sign in to comment.