From 4e41e7d1a645fb084d438915529c2e5b008d11a2 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Mon, 16 May 2022 18:00:25 -0400 Subject: [PATCH] Improved formatting --- follow_focus_ring.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/follow_focus_ring.py b/follow_focus_ring.py index 2f9d4a7..b94483b 100644 --- a/follow_focus_ring.py +++ b/follow_focus_ring.py @@ -11,15 +11,18 @@ follow_focus_width=10.0 # Constants follow_focus_mod=0.8 follow_focus_inner_thickness=5.0 -follow_focus_num_teeth=int(math.ceil((follow_focus_inner_thickness+lens_ring_diameter)/follow_focus_mod)) +follow_focus_num_teeth=int(math.ceil((follow_focus_inner_thickness+lens_ring_diameter) + /follow_focus_mod)) # Create follow focus ring -ring = SpurGear(module=follow_focus_mod, teeth_number=follow_focus_num_teeth,\ - width=follow_focus_width, bore_d=lens_ring_diameter) +ring = SpurGear(module=follow_focus_mod, + teeth_number=follow_focus_num_teeth, + width=follow_focus_width, + bore_d=lens_ring_diameter) # Render wp = cq.Workplane('XY').gear(ring) show_object(wp) # Export STL -cq.exporters.export(wp, 'follow_focus_ring{}.stl'.format(lens_name)) \ No newline at end of file +cq.exporters.export(wp, 'follow_focus_ring{}.stl'.format(lens_name))