[skip ci] Fix typos

Found via `codespell`
This commit is contained in:
luz.paz
2020-03-08 15:14:47 -04:00
committed by wwmayer
parent 2d1be0aa59
commit 696ed42635
7 changed files with 10 additions and 10 deletions

View File

@@ -1160,7 +1160,7 @@ class FemInputWriterCcx(writerbase.FemInputWriter):
f.write("*DLOAD\n")
for ref_shape in femobj["PressureFaces"]:
# the loop is needed for compatibility reason
# in depreciated method get_pressure_obj_faces_depreciated
# in deprecated method get_pressure_obj_faces_depreciated
# the face ids where per ref_shape
f.write("** " + ref_shape[0] + "\n")
for face, fno in ref_shape[1]:

View File

@@ -279,7 +279,7 @@ class FemInputWriter():
# it applies here too. Mhh it applies to all constraints ...
"""
# depreciated version
# deprecated version
# get the faces and face numbers
for femobj in self.pressure_objects:
# femobj --> dict, FreeCAD document object is femobj["Object"]
@@ -308,9 +308,9 @@ class FemInputWriter():
self.femelement_table,
self.femnodes_ele_table, femobj
)
# the data model is for compatibility reason with depreciated version
# the data model is for compatibility reason with deprecated version
# get_pressure_obj_faces_depreciated returns the face ids in a tuple per ref_shape
# some_string was the reference_shape_element_string in depreciated method
# some_string was the reference_shape_element_string in deprecated method
# [(some_string, [ele_id, ele_face_id], [ele_id, ele_face_id], ...])]
some_string = "{}: face load".format(femobj["Object"].Name)
femobj["PressureFaces"] = [(some_string, pressure_faces)]