From 433a553957c9c1c94a6b85b85efa5f8a6506e9e1 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Fri, 19 Jul 2024 16:15:49 -0700 Subject: [PATCH] fix: Missing mass argument, extranous print --- nhf/parts/fasteners.py | 3 --- nhf/parts/test.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/nhf/parts/fasteners.py b/nhf/parts/fasteners.py index eb251f7..c9c9e61 100644 --- a/nhf/parts/fasteners.py +++ b/nhf/parts/fasteners.py @@ -17,7 +17,6 @@ class FlatHeadBolt(Item): def generate(self) -> Cq.Assembly: - print(self.name) head = Cq.Solid.makeCylinder( radius=self.diam_head / 2, height=self.height_head, @@ -61,7 +60,6 @@ class ThreaddedKnob(Item): return f"Knob M{int(self.diam_thread)} h{int(self.height_thread)}mm" def generate(self) -> Cq.Assembly: - print(self.name) knob = Cq.Solid.makeCylinder( radius=self.diam_knob / 2, height=self.height_knob, @@ -110,7 +108,6 @@ class HexNut(Item): return Role.CONNECTION def generate(self) -> Cq.Workplane: - print(self.name) r = self.width / math.sqrt(3) result = ( Cq.Workplane("XY") diff --git a/nhf/parts/test.py b/nhf/parts/test.py index 27ae9a5..3af5eca 100644 --- a/nhf/parts/test.py +++ b/nhf/parts/test.py @@ -55,7 +55,7 @@ class TestJoints(unittest.TestCase): with self.subTest(slot=slot, right_handed=False): self.torsion_joint_case(j, slot) def test_torsion_joint_right_handed(self): - j = joints.TorsionJoint(springs.TorsionSpring(right_handed=True)) + j = joints.TorsionJoint(springs.TorsionSpring(mass=float('nan'), right_handed=True)) for slot in range(j.rider_n_slots): with self.subTest(slot=slot, right_handed=True): self.torsion_joint_case(j, slot)