FEM: code formating, flake8

This commit is contained in:
Bernd Hahnebach
2017-08-02 05:53:26 +01:00
parent 8341e0ea4a
commit a28ffd64bc
2 changed files with 2 additions and 2 deletions

View File

@@ -1019,7 +1019,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter):
f.write('** Outputs --> frd file\n')
f.write('** written by {} function\n'.format(sys._getframe().f_code.co_name))
if self.beamsection_objects or self.shellthickness_objects or self.fluidsection_objects:
if self.solver_obj.BeamShellResultOutput3D == False:
if self.solver_obj.BeamShellResultOutput3D is False:
f.write('*NODE FILE, OUTPUT=2d\n')
else:
f.write('*NODE FILE, OUTPUT=3d\n')

View File

@@ -143,7 +143,7 @@ class _FemSolverCalculix():
obj.MatrixSolverType = known_ccx_solver_types
solver_type = ccx_prefs.GetInt("Solver", 0)
obj.MatrixSolverType = known_ccx_solver_types[solver_type]
obj.addProperty("App::PropertyBool", "BeamShellResultOutput3D", "Fem", "Output 3D results for 1D and 2D anlysis ")
dimout = ccx_prefs.GetBool("BeamShellOutput", False)
obj.BeamShellResultOutput3D = dimout