From 1f81107da4306eb9b75e04c566e1cd4af8cb77e5 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Sat, 10 Aug 2019 11:57:21 -0400 Subject: [PATCH] Fix misc. typos Found via `codespell -q 3 -L ba,of,od,ang,vertexes` --- CUtils.py | 2 +- fCmd.py | 2 +- pCmd.py | 10 +++++----- pFeatures.py | 10 +++++----- pForms.py | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CUtils.py b/CUtils.py index ca098af..5b1bcc7 100644 --- a/CUtils.py +++ b/CUtils.py @@ -105,7 +105,7 @@ def Activated(self): FreeCADGui.Control.showDialog(uForms.dpCalcDialog()) def GetResources(self): - return{'Pixmap':os.path.join(os.path.dirname(os.path.abspath(__file__)),"iconz","delta.svg"),'MenuText':'Pressure loss calculator','ToolTip':'Calculate pressure loss in "pypes" using ChEDL libraries.\n See __doc__ of the module for futher information.'} + return{'Pixmap':os.path.join(os.path.dirname(os.path.abspath(__file__)),"iconz","delta.svg"),'MenuText':'Pressure loss calculator','ToolTip':'Calculate pressure loss in "pypes" using ChEDL libraries.\n See __doc__ of the module for further information.'} class selectSolids: diff --git a/fCmd.py b/fCmd.py index 92ffba0..aa617ac 100644 --- a/fCmd.py +++ b/fCmd.py @@ -219,7 +219,7 @@ def beamAx(beam, vShapeRef=None): return beam.Placement.Rotation.multVec(vShapeRef).normalize() def getDistance(shapes=None): - 'measure the lenght of an edge or the distance of two shapes' + 'measure the length of an edge or the distance of two shapes' if not shapes: shapes=[y for x in FreeCADGui.Selection.getSelectionEx() for y in x.SubObjects if hasattr(y,'ShapeType')] if len(shapes)==1 and shapes[0].ShapeType=='Edge': diff --git a/pCmd.py b/pCmd.py index 9ba2205..c35b973 100644 --- a/pCmd.py +++ b/pCmd.py @@ -350,9 +350,9 @@ def makeFlange(propList=[], pos=None, Z=None): f (float): bolts holes diameter t (float): flange thickness n (int): nr. of bolts - trf (float): raised-face thikness - OPTIONAL - + trf (float): raised-face thickness - OPTIONAL - drf (float): raised-face diameter - OPTIONAL - - twn (float): welding-neck thikness - OPTIONAL - + twn (float): welding-neck thickness - OPTIONAL - dwn (float): welding-neck diameter - OPTIONAL - ODp (float): outside diameter of pipe for wn flanges - OPTIONAL - Default is "DN50 (PN16)" @@ -386,9 +386,9 @@ def doFlanges(propList=["DN50", "SO", 160, 60.3, 132, 14, 15, 4, 0, 0, 0, 0, 0], f (float): bolts holes diameter t (float): flange thickness n (int): nr. of bolts - trf (float): raised-face thikness - OPTIONAL - + trf (float): raised-face thickness - OPTIONAL - drf (float): raised-face diameter - OPTIONAL - - twn (float): welding-neck thikness - OPTIONAL - + twn (float): welding-neck thickness - OPTIONAL - dwn (float): welding-neck diameter - OPTIONAL - ODp (float): outside diameter of pipe for wn flanges - OPTIONAL - pypeline = string @@ -935,7 +935,7 @@ def getElbowPort(elbow, portId=0): def rotateTheElbowPort(curve=None, port=0, ang=45): ''' rotateTheElbowPort(curve=None, port=0, ang=45) - Rotates one curve aroud one of its circular edges. + Rotates one curve around one of its circular edges. ''' if curve==None: try: diff --git a/pFeatures.py b/pFeatures.py index 878eb5e..9898d68 100644 --- a/pFeatures.py +++ b/pFeatures.py @@ -168,9 +168,9 @@ class Flange(pypeType): f (float): bolts holes diameter t (float): flange thickness n (int): nr. of bolts - trf (float): raised-face thikness - OPTIONAL - + trf (float): raised-face thickness - OPTIONAL - drf (float): raised-face diameter - OPTIONAL - - twn (float): welding-neck thikness - OPTIONAL - + twn (float): welding-neck thickness - OPTIONAL - dwn (float): welding-neck diameter - OPTIONAL - ODp (float): outside diameter of pipe for wn flanges - OPTIONAL - ''' @@ -250,7 +250,7 @@ def __init__(self, obj,DN="DN50",OD=60.3,OD2=48.3,thk=3, thk2=None, H=None, conc obj.thk2=thk else: obj.thk2=thk2 - obj.addProperty("App::PropertyBool","calcH","Reduct","Make the lenght variable") + obj.addProperty("App::PropertyBool","calcH","Reduct","Make the length variable") obj.addProperty("App::PropertyLength","Height","Reduct","Length of reduct") if not H: obj.calcH=True @@ -468,8 +468,8 @@ def __init__(self,obj,L=800,W=400,H=500,thk1=6, thk2=8): obj.addProperty("App::PropertyLength","L","Tank","Tank's length").L=L obj.addProperty("App::PropertyLength","W","Tank","Tank's width").W=W obj.addProperty("App::PropertyLength","H","Tank","Tank's height").H=H - obj.addProperty("App::PropertyLength","thk1","Tank","Thikness of tank's shell").thk1=thk1 - obj.addProperty("App::PropertyLength","thk2","Tank","Thikness of tank's top").thk2=thk2 + obj.addProperty("App::PropertyLength","thk1","Tank","Thickness of tank's shell").thk1=thk1 + obj.addProperty("App::PropertyLength","thk2","Tank","Thickness of tank's top").thk2=thk2 def onChanged(self, fp, prop): return None def execute(self, fp): diff --git a/pForms.py b/pForms.py index a3b27f2..184154c 100644 --- a/pForms.py +++ b/pForms.py @@ -530,7 +530,7 @@ class insertUboltForm(dodoDialogs.protoPypeForm): For position and orientation you can select - one or more circular edges, - nothing. - In case one pipe is selected, its properties are aplied to the U-bolt. + In case one pipe is selected, its properties are applied to the U-bolt. Available one button to reverse the orientation of the last or selected tubes. ''' def __init__(self):