From 781d0073218fb9c3bbca8b181b937740277fa7a9 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Thu, 9 Aug 2018 14:43:09 -0400 Subject: [PATCH] Misc. typos Found via `codespell` Trivial typos Found via `codespell` --- src/Base/Persistence.h | 4 ++-- src/Mod/Arch/importIFC.py | 2 +- src/Mod/Draft/DraftGeomUtils.py | 4 ++-- src/Mod/PartDesign/WizardShaft/WizardShaft.py | 4 ++-- src/Mod/Path/PathScripts/PathCircularHoleBaseGui.py | 2 +- src/Mod/Raytracing/App/resources/FCAnimation.inc | 4 ++-- src/Mod/Sketcher/App/planegcs/GCS.cpp | 2 +- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 6 +++--- src/Mod/Sketcher/Gui/DrawSketchHandler.cpp | 2 +- src/Mod/TechDraw/Gui/MDIViewPage.cpp | 2 +- src/Mod/Test/Document.py | 8 ++++---- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/Base/Persistence.h b/src/Base/Persistence.h index b54dd3d95d..e845d554ed 100644 --- a/src/Base/Persistence.h +++ b/src/Base/Persistence.h @@ -117,7 +117,7 @@ public: */ virtual void SaveDocFile (Writer &/*writer*/) const; /** This method is used to restore large amounts of data from a file - * In this method you simply stream in your with SaveDocFile() saved data. + * In this method you simply stream in your SaveDocFile() saved data. * Again you have to apply for the call of this method in the Restore() call: * \code * void PropertyMeshKernel::Restore(Base::XMLReader &reader) @@ -131,7 +131,7 @@ public: * MeshCore::MeshDocXML restorer(*_pcMesh); * restorer.Restore(reader); * }else{ - * // initate a file read + * // initiate a file read * reader.addFile(file.c_str(),this); * } * } diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 56ca90b0e4..066cfa99a4 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -404,7 +404,7 @@ def insert(filename,docname,skip=[],only=[],root=None): filename = decode(filename,utf=True) ifcfile = ifcopenshell.open(filename) - # set default ifcopenshell optionss to work in brep mode + # set default ifcopenshell options to work in brep mode from ifcopenshell import geom settings = ifcopenshell.geom.settings() settings.set(settings.USE_BREP_DATA,True) diff --git a/src/Mod/Draft/DraftGeomUtils.py b/src/Mod/Draft/DraftGeomUtils.py index f24c374ac4..64c75caaa4 100755 --- a/src/Mod/Draft/DraftGeomUtils.py +++ b/src/Mod/Draft/DraftGeomUtils.py @@ -2482,7 +2482,7 @@ def outerSoddyCircle(circle1, circle2, circle3): z = q4 / (k4 + 0j) - # If the formula is not solveable, we return no circle. + # If the formula is not solvable, we return no circle. if (not z or not (1 / k4)): return None @@ -2534,7 +2534,7 @@ def innerSoddyCircle(circle1, circle2, circle3): z = q4 / (k4 + 0j) - # If the formula is not solveable, we return no circle. + # If the formula is not solvable, we return no circle. if (not z or not (1 / k4)): return None diff --git a/src/Mod/PartDesign/WizardShaft/WizardShaft.py b/src/Mod/PartDesign/WizardShaft/WizardShaft.py index 454e2997d9..a34c15cd6c 100644 --- a/src/Mod/PartDesign/WizardShaft/WizardShaft.py +++ b/src/Mod/PartDesign/WizardShaft/WizardShaft.py @@ -154,9 +154,9 @@ class TaskWizardShaft: def isAllowedAlterDocument(self): return False -# Work-around to allow a callback +# Workaround to allow a callback # Problem: From the FemConstraint ViewProvider, we need to tell the Shaft instance that the user finished editing the constraint -# We can find the Shaft Wizard dialog object from C++, but there is not way to reach the Shaft instance +# We can find the Shaft Wizard dialog object from C++, but there is no way to reach the Shaft instance # Also it seems to be impossible to access the active dialog from Python, so Gui::Command::runCommand() is not an option either # Note: Another way would be to create a hidden widget in the Shaft Wizard dialog and write some data to it, triggering a slot # in the python code diff --git a/src/Mod/Path/PathScripts/PathCircularHoleBaseGui.py b/src/Mod/Path/PathScripts/PathCircularHoleBaseGui.py index d930adf6e8..dbee10bed2 100644 --- a/src/Mod/Path/PathScripts/PathCircularHoleBaseGui.py +++ b/src/Mod/Path/PathScripts/PathCircularHoleBaseGui.py @@ -42,7 +42,7 @@ else: class TaskPanelHoleGeometryPage(PathOpGui.TaskPanelBaseGeometryPage): '''Controller class to be used for the BaseGeomtery page. - Circular holes don't just disply the feature, they also add a column + Circular holes don't just display the feature, they also add a column displaying the radius the feature describes. This page provides that UI and functionality for all circular hole based operations.''' diff --git a/src/Mod/Raytracing/App/resources/FCAnimation.inc b/src/Mod/Raytracing/App/resources/FCAnimation.inc index f16b638fc8..a9b66ea4ed 100644 --- a/src/Mod/Raytracing/App/resources/FCAnimation.inc +++ b/src/Mod/Raytracing/App/resources/FCAnimation.inc @@ -23,8 +23,8 @@ // Vers: 3.6 // Desc: Provides functionality to create povray animations with freecad // Povray clock variable counts 0 to 1 -// Kamera positions must be defined before including this file -// Date: 03-Mar-2005 +// Camera positions must be defined before including this file +// Date: 03-Mar-2005 // Auth: Dr. Georg Wiora // FreeCAD Povray standard file diff --git a/src/Mod/Sketcher/App/planegcs/GCS.cpp b/src/Mod/Sketcher/App/planegcs/GCS.cpp index 5dde956f38..02539a4a60 100644 --- a/src/Mod/Sketcher/App/planegcs/GCS.cpp +++ b/src/Mod/Sketcher/App/planegcs/GCS.cpp @@ -1474,7 +1474,7 @@ int System::solve_BFGS(SubSystem *subsys, bool /*isFine*/, bool isRedundantsolvi subsys->getParams(x); subsys->calcGrad(grad); - // Initial search direction oposed to gradient (steepest-descent) + // Initial search direction opposed to gradient (steepest-descent) xdir = -grad; lineSearch(subsys, xdir); double err = subsys->error(); diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 82b3cfc69f..87fd0243e9 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -392,7 +392,7 @@ void SketcherGui::makeTangentToEllipseviaNewPoint(const Sketcher::SketchObject* center2= (static_cast(geom2))->getCenter(); Base::Vector3d direction=center2-center; - double tapprox=atan2(direction.y,direction.x)-phi; // we approximate the eccentric anomally by the polar + double tapprox=atan2(direction.y,direction.x)-phi; // we approximate the eccentric anomaly by the polar Base::Vector3d PoE = Base::Vector3d(center.x+majord*cos(tapprox)*cos(phi)-minord*sin(tapprox)*sin(phi), center.y+majord*cos(tapprox)*sin(phi)+minord*sin(tapprox)*cos(phi), 0); @@ -456,7 +456,7 @@ void SketcherGui::makeTangentToArcOfEllipseviaNewPoint(const Sketcher::SketchObj center2= (static_cast(geom2))->getCenter(); Base::Vector3d direction=center2-center; - double tapprox=atan2(direction.y,direction.x)-phi; // we approximate the eccentric anomally by the polar + double tapprox=atan2(direction.y,direction.x)-phi; // we approximate the eccentric anomaly by the polar Base::Vector3d PoE = Base::Vector3d(center.x+majord*cos(tapprox)*cos(phi)-minord*sin(tapprox)*sin(phi), center.y+majord*cos(tapprox)*sin(phi)+minord*sin(tapprox)*cos(phi), 0); @@ -4211,7 +4211,7 @@ void CmdSketcherConstrainPerpendicular::applyConstraint(std::vector & } else { Base::Vector3d direction=point1-center; - double tapprox=atan2(direction.y,direction.x)-phi; // we approximate the eccentric anomally by the polar + double tapprox=atan2(direction.y,direction.x)-phi; // we approximate the eccentric anomaly by the polar PoO = Base::Vector3d(center.x+majord*cos(tapprox)*cos(phi)-minord*sin(tapprox)*sin(phi), center.y+majord*cos(tapprox)*sin(phi)+minord*sin(tapprox)*cos(phi), 0); diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandler.cpp b/src/Mod/Sketcher/Gui/DrawSketchHandler.cpp index 67018f658e..474d85774a 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandler.cpp +++ b/src/Mod/Sketcher/Gui/DrawSketchHandler.cpp @@ -512,7 +512,7 @@ void DrawSketchHandler::createAutoConstraints(const std::vector void DrawSketchHandler::renderSuggestConstraintsCursor(std::vector &suggestedConstraints) { - // Auto Constrait icon size in px + // Auto Constraint icon size in px int iconSize = 16; // Create a pixmap that will contain icon and each autoconstraint icon diff --git a/src/Mod/TechDraw/Gui/MDIViewPage.cpp b/src/Mod/TechDraw/Gui/MDIViewPage.cpp index d48c74d3e6..58f08a5625 100644 --- a/src/Mod/TechDraw/Gui/MDIViewPage.cpp +++ b/src/Mod/TechDraw/Gui/MDIViewPage.cpp @@ -971,7 +971,7 @@ void MDIViewPage::onSelectionChanged(const Gui::SelectionChanges& msg) } //! update Tree Selection from QGraphicsScene selection -//trigged by m_view->scene() signal +//triggered by m_view->scene() signal void MDIViewPage::sceneSelectionChanged() { if(isSelectionBlocked) { diff --git a/src/Mod/Test/Document.py b/src/Mod/Test/Document.py index 7ec0af1256..292f8144f1 100644 --- a/src/Mod/Test/Document.py +++ b/src/Mod/Test/Document.py @@ -98,7 +98,7 @@ class DocumentBasicCases(unittest.TestCase): self.failUnless(L1.Float-47.11<0.001) self.failUnless(L1.Bool == True) self.failUnless(L1.String == "4711") - #temporarily not checked because of strange behavior of boost::fielesystem JR + #temporarily not checked because of strange behavior of boost::filesystem JR #self.failUnless(L1.Path == "c:/temp") self.failUnless(float(L1.Angle)-3.0<0.001) self.failUnless(float(L1.Distance)-47.11<0.001) @@ -191,7 +191,7 @@ class DocumentBasicCases(unittest.TestCase): del L2 def testExtensions(self): - #we try to create a normal python object and add a extension to it + #we try to create a normal python object and add an extension to it obj = self.Doc.addObject("App::DocumentObject", "Extension_1") grp = self.Doc.addObject("App::DocumentObject", "Extension_2") #we should have all methods we need to handle extensions @@ -415,8 +415,8 @@ class DocumentSaveRestoreCases(unittest.TestCase): # saving and restoring SaveName = self.TempPath + os.sep + "SaveRestoreExtensions.FCStd" Doc = FreeCAD.newDocument("SaveRestoreExtensions") - #we try to create a normal python object and add a extension to it - obj = Doc.addObject("App::DocumentObject", "Obj") + #we try to create a normal python object and add an extension to it + obj = Doc.addObject("App::DocumentObject", "Obj") grp1 = Doc.addObject("App::DocumentObject", "Extension_1") grp2 = Doc.addObject("App::FeaturePython", "Extension_2")