Fix source comment typos and whitespace
Found via `codespell -q 3 -S ./slvs -L vertexes,dof`
This commit is contained in:
parent
4a467bf670
commit
6a648cf66f
|
@ -2050,7 +2050,7 @@ class AsmConstraint(AsmGroup):
|
||||||
firstChild.Proxy.infos = order
|
firstChild.Proxy.infos = order
|
||||||
self.prevOrder = used
|
self.prevOrder = used
|
||||||
|
|
||||||
# now for thos instances that are 'out of place', lets assign some
|
# now for those instances that are 'out of place', lets assign some
|
||||||
# initial placement
|
# initial placement
|
||||||
|
|
||||||
partGroup = self.getAssembly().getPartGroup()
|
partGroup = self.getAssembly().getPartGroup()
|
||||||
|
@ -3759,7 +3759,7 @@ class Assembly(AsmGroup):
|
||||||
|
|
||||||
recursive: If True, continue finding the child of the next assembly.
|
recursive: If True, continue finding the child of the next assembly.
|
||||||
|
|
||||||
relativeToChild: If True, the returned subname is realtive to the child
|
relativeToChild: If True, the returned subname is relative to the child
|
||||||
object found, or else, it is relative to the assembly, i.e., including
|
object found, or else, it is relative to the assembly, i.e., including
|
||||||
the child's name
|
the child's name
|
||||||
|
|
||||||
|
@ -4483,4 +4483,3 @@ class ViewProviderAsmPlainGroup(object):
|
||||||
children = vobj.Object.Group + children
|
children = vobj.Object.Group + children
|
||||||
editGroup(parent,group)
|
editGroup(parent,group)
|
||||||
editGroup(vobj.Object,children)
|
editGroup(vobj.Object,children)
|
||||||
|
|
||||||
|
|
|
@ -286,7 +286,7 @@ def _c(solver,partInfo,subname,shape,requireArc=False,retAll=False):
|
||||||
if requireArc and not isinstance(r,tuple):
|
if requireArc and not isinstance(r,tuple):
|
||||||
return 'an arc edge'
|
return 'an arc edge'
|
||||||
return
|
return
|
||||||
return 'a cicular edge'
|
return 'a circular edge'
|
||||||
if requireArc:
|
if requireArc:
|
||||||
key = subname+'.a'
|
key = subname+'.a'
|
||||||
else:
|
else:
|
||||||
|
@ -353,7 +353,7 @@ def _c(solver,partInfo,subname,shape,requireArc=False,retAll=False):
|
||||||
pln = _w(solver,partInfo,subname,shape,True)
|
pln = _w(solver,partInfo,subname,shape,True)
|
||||||
r = utils.getElementCircular(shape)
|
r = utils.getElementCircular(shape)
|
||||||
if not r:
|
if not r:
|
||||||
raise RuntimeError('shape is not cicular')
|
raise RuntimeError('shape is not circular')
|
||||||
system.NameTag = nameTag + '.r'
|
system.NameTag = nameTag + '.r'
|
||||||
hr = system.addDistanceV(r)
|
hr = system.addDistanceV(r)
|
||||||
if requireArc or isinstance(r,(list,tuple)):
|
if requireArc or isinstance(r,(list,tuple)):
|
||||||
|
@ -1284,7 +1284,7 @@ class PlaneCoincident(BaseCascade):
|
||||||
_iconName = 'Assembly_ConstraintCoincidence.svg'
|
_iconName = 'Assembly_ConstraintCoincidence.svg'
|
||||||
_props = ['Multiply','Cascade','Offset','OffsetX','OffsetY'] + _AngleProps
|
_props = ['Multiply','Cascade','Offset','OffsetX','OffsetY'] + _AngleProps
|
||||||
_tooltip = \
|
_tooltip = \
|
||||||
'Add a "{}" constraint to conincide planar faces of two or more parts.\n'\
|
'Add a "{}" constraint to coincide planar faces of two or more parts.\n'\
|
||||||
'The faces are coincided at their centers with an optional distance.'
|
'The faces are coincided at their centers with an optional distance.'
|
||||||
|
|
||||||
|
|
||||||
|
@ -1380,7 +1380,7 @@ class PointsCoincident(Base):
|
||||||
_entityDef = (_p,_p)
|
_entityDef = (_p,_p)
|
||||||
_workplane = True
|
_workplane = True
|
||||||
_iconName = 'Assembly_ConstraintPointCoincident.svg'
|
_iconName = 'Assembly_ConstraintPointCoincident.svg'
|
||||||
_tooltips = 'Add a "{}" constraint to conincide two points in 2D or 3D'
|
_tooltips = 'Add a "{}" constraint to coincide two points in 2D or 3D'
|
||||||
|
|
||||||
|
|
||||||
class PointInPlane(BaseMulti):
|
class PointInPlane(BaseMulti):
|
||||||
|
@ -1786,7 +1786,7 @@ class MidPoint(BaseSketch):
|
||||||
if not func:
|
if not func:
|
||||||
return
|
return
|
||||||
params = cls.getPropertyValues(obj) + cls.getEntities(obj,solver)
|
params = cls.getPropertyValues(obj) + cls.getEntities(obj,solver)
|
||||||
# temparary fix of slvs.addMidPoint(), which should have made wrkpln
|
# temporary fix of slvs.addMidPoint(), which should have made wrkpln
|
||||||
# argument optional and defaults to 0
|
# argument optional and defaults to 0
|
||||||
if len(params)==2:
|
if len(params)==2:
|
||||||
params.append(0)
|
params.append(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user