FEM: pep8

This commit is contained in:
Bernd Hahnebach
2020-03-27 06:39:24 +01:00
parent 598e46cb18
commit 44c5b2fa21
2 changed files with 7 additions and 6 deletions

View File

@@ -486,7 +486,8 @@ class GeometryElementsSelection(QtGui.QWidget):
else:
# could be more than two solids, think of polar pattern
FreeCAD.Console.PrintMessage(
" Edge belongs to at least two solids: Solid{}, Solid{}\n"
" Edge belongs to at least two solids: "
" Solid{}, Solid{}\n"
.format(solid_to_add, str(i + 1))
)
solid_to_add = None
@@ -542,7 +543,11 @@ class GeometryElementsSelection(QtGui.QWidget):
.format(self.get_item_text(selection))
)
FreeCAD.Console.PrintMessage(message)
QtGui.QMessageBox.critical(None, "Geometry already in list", message.lstrip(" "))
QtGui.QMessageBox.critical(
None,
"Geometry already in list",
message.lstrip(" ")
)
else:
# selected shape will not added to the list
FreeCADGui.Selection.clearSelection()

View File

@@ -27,8 +27,6 @@ __url__ = "http://www.freecadweb.org"
import FreeCAD
from . import femutils
# ************************************************************************************************
def find_element_in_shape(
@@ -248,5 +246,3 @@ def get_cylindrical_coords(
B_coords = str(B[0]) + "," + str(B[1]) + "," + str(B[2])
coords = A_coords + "," + B_coords
return coords