Misc. typos

Found via `codespell`
Trivial typos

Found via `codespell`
This commit is contained in:
luz.paz
2018-08-09 14:43:09 -04:00
committed by wmayer
parent e31cac568e
commit 781d007321
11 changed files with 20 additions and 20 deletions

View File

@@ -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);
* }
* }

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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.'''

View File

@@ -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

View File

@@ -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();

View File

@@ -392,7 +392,7 @@ void SketcherGui::makeTangentToEllipseviaNewPoint(const Sketcher::SketchObject*
center2= (static_cast<const Part::GeomArcOfCircle *>(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<const Part::GeomArcOfCircle *>(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<SelIdPair> &
}
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);

View File

@@ -512,7 +512,7 @@ void DrawSketchHandler::createAutoConstraints(const std::vector<AutoConstraint>
void DrawSketchHandler::renderSuggestConstraintsCursor(std::vector<AutoConstraint> &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

View File

@@ -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) {

View File

@@ -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")