FEM: code formating, flake8
This commit is contained in:
parent
7110a4e2c7
commit
a826a6d2bf
|
@ -39,7 +39,7 @@ def makeFemBeamSection(width=20.0, height=20.0, name="BeamSection"):
|
||||||
obj.RectHeight = height
|
obj.RectHeight = height
|
||||||
obj.CircRadius = height
|
obj.CircRadius = height
|
||||||
obj.PipeRadius = height
|
obj.PipeRadius = height
|
||||||
obj.PipeThickness = 2.0
|
obj.PipeThickness = 2.0
|
||||||
if FreeCAD.GuiUp:
|
if FreeCAD.GuiUp:
|
||||||
import _ViewProviderFemBeamSection
|
import _ViewProviderFemBeamSection
|
||||||
_ViewProviderFemBeamSection._ViewProviderFemBeamSection(obj.ViewObject)
|
_ViewProviderFemBeamSection._ViewProviderFemBeamSection(obj.ViewObject)
|
||||||
|
|
|
@ -30,7 +30,9 @@ __url__ = "http://www.freecadweb.org"
|
||||||
|
|
||||||
class _FemBeamSection:
|
class _FemBeamSection:
|
||||||
"The FemBeamSection object"
|
"The FemBeamSection object"
|
||||||
|
|
||||||
known_beam_types = ['Rectangular', 'Circular', 'Pipe']
|
known_beam_types = ['Rectangular', 'Circular', 'Pipe']
|
||||||
|
|
||||||
def __init__(self, obj):
|
def __init__(self, obj):
|
||||||
obj.addProperty("App::PropertyLength", "RectWidth", "RectBeamSection", "set width of the rectangular beam elements")
|
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")
|
obj.addProperty("App::PropertyLength", "RectHeight", "RectBeamSection", "set height of therectangular beam elements")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user