FEM: code formating, flake8

This commit is contained in:
Bernd Hahnebach 2016-12-20 18:11:45 +01:00 committed by Yorik van Havre
parent 7110a4e2c7
commit a826a6d2bf
2 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def makeFemBeamSection(width=20.0, height=20.0, name="BeamSection"):
obj.RectHeight = height
obj.CircRadius = height
obj.PipeRadius = height
obj.PipeThickness = 2.0
obj.PipeThickness = 2.0
if FreeCAD.GuiUp:
import _ViewProviderFemBeamSection
_ViewProviderFemBeamSection._ViewProviderFemBeamSection(obj.ViewObject)

View File

@ -30,7 +30,9 @@ __url__ = "http://www.freecadweb.org"
class _FemBeamSection:
"The FemBeamSection object"
known_beam_types = ['Rectangular', 'Circular', 'Pipe']
def __init__(self, obj):
obj.addProperty("App::PropertyLength", "RectWidth", "RectBeamSection", "set width of the rectangular beam elements")
obj.addProperty("App::PropertyLength", "RectHeight", "RectBeamSection", "set height of therectangular beam elements")