FEM: code formating, flake8, trailing ws and typo in comment

This commit is contained in:
Bernd Hahnebach
2017-11-29 11:09:13 +01:00
parent b210eccf09
commit 112ce0c4cb
3 changed files with 6 additions and 6 deletions

View File

@@ -345,7 +345,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
self.get_element_geometry2D_elements()
elif len(self.beamsection_objects) > 1:
self.get_element_geometry1D_elements()
# we will need to split the beams even for one beamobj
# we will need to split the beams even for one beamobj
# because no beam in z-direction can be used in ccx without a special adjustment
# thus they need an own ccx_elset --> but this is ccx specific and thus should not be in input writer!
elif len(self.fluidsection_objects) > 1:
@@ -358,7 +358,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
# create the ccx_elsets
if len(self.material_objects) == 1:
if self.femmesh.Volumes:
# we only could do this for volumes, if a mesh contains volumes
# we only could do this for volumes, if a mesh contains volumes
# we're going to use them in the analysis
# but a mesh could contain the element faces of the volumes as faces
# and the edges of the faces as edges, there we have to check for some geometric objects
@@ -377,11 +377,11 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
self.get_ccx_elsets_single_mat_multiple_fluid()
elif len(self.material_objects) > 1:
if self.femmesh.Volumes:
# we only could do this for volumes, if a mseh contains volumes
# we only could do this for volumes, if a mseh contains volumes
# we're going to use them in the analysis
# but a mesh could contain the element faces of the volumes as faces
# and the edges of the faces as edges, there we have to check for some geometric objects
self.get_ccx_elsets_multiple_mat_solid() # volume is a bit special, because retriving ids from group mesh data is implemented
self.get_ccx_elsets_multiple_mat_solid() # volume is a bit special, because retrieving ids from group mesh data is implemented
elif len(self.shellthickness_objects) == 1:
self.get_ccx_elsets_multiple_mat_single_shell()
elif len(self.shellthickness_objects) > 1:

View File

@@ -1050,7 +1050,7 @@ def get_analysis_group_elements(aAnalysis, aPart):
group_elements = {} # { name : [element, element, ... , element]}
empty_references = []
for m in aAnalysis.Group:
if hasattr(m, "References") and "ReadOnly" not in m.getEditorMode("References"):
if hasattr(m, "References") and "ReadOnly" not in m.getEditorMode("References"):
# some C++ Constraints have a not used References Property, it is set to Hidden in ReadOnly and PropertyEditor
if m.References:
grp_ele = get_reference_group_elements(m, aPart)

View File

@@ -1067,7 +1067,7 @@ def collect_python_modules(femsubdir=None):
if not femsubdir:
collected_modules.append(os.path.splitext(os.path.basename(pyfile))[0])
else:
collected_modules.append(femsubdir.replace('/','.') + '.' + os.path.splitext(os.path.basename(pyfile))[0])
collected_modules.append(femsubdir.replace('/', '.') + '.' + os.path.splitext(os.path.basename(pyfile))[0])
return collected_modules