Skip to content

Commit

Permalink
Fixed unit test breakage for py2
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert committed Dec 4, 2020
1 parent cc0ba34 commit 134fe23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Mod/Path/PathScripts/PathThreadMilling.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# ***************************************************************************
# * *
# * Copyright (c) 2019 sliptonic <shopinthewoods@gmail.com> *
Expand Down Expand Up @@ -63,7 +62,7 @@ def radiiInternal(majorDia, minorDia, toolDia, toolCrest = None):
outerTip = majorDia / 2.0 + H / 8.0
# Compensate for the crest of the tool
toolTip = outerTip - toolCrest * 0.8660254037844386 # math.sqrt(3)/2 ... 60deg triangle height
return ((minorDia - toolDia) / 2, toolTip - toolDia / 2)
return ((minorDia - toolDia) / 2.0, toolTip - toolDia / 2.0)

def threadPasses(count, radii, majorDia, minorDia, toolDia, toolCrest = None):
PathLog.track(count, radii, majorDia, minorDia, toolDia, toolCrest)
Expand Down

0 comments on commit 134fe23

Please sign in to comment.