From b441789c9f9231491888adccc68a01b8daaca323 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Tue, 9 Jul 2024 21:34:06 -0700 Subject: [PATCH] refactor: Use proper "mount" terminology --- nhf/parts/handle.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nhf/parts/handle.py b/nhf/parts/handle.py index 5a61bed..19fe15a 100644 --- a/nhf/parts/handle.py +++ b/nhf/parts/handle.py @@ -6,7 +6,10 @@ from typing import Union, Optional import cadquery as Cq import nhf.parts.metric_threads as metric_threads -class TubeJoint: +class Mount: + """ + Describes the internal connection between two cylinders + """ def diam_insertion_internal(self): """ @@ -26,7 +29,7 @@ class TubeJoint: """ @dataclass -class ThreadedJoint(TubeJoint): +class ThreadedJoint(Mount): pitch: float = 3 @@ -59,7 +62,7 @@ class ThreadedJoint(TubeJoint): length) @dataclass -class BayonetJoint(TubeJoint): +class BayonetMount(Mount): """ Bayonet type joint """ @@ -81,7 +84,7 @@ class Handle: diam: float = 38 diam_inner: float = 33 - joint: Optional[TubeJoint] = field(default_factory=lambda: ThreadedJoint()) + joint: Optional[Mount] = field(default_factory=lambda: ThreadedJoint()) # Internal cavity diameter. This determines the wall thickness of the connector diam_connector_internal: float = 18.0