From 656239948dfd6d247f608ba3ddd0cd28d7e4eb28 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Sun, 10 Sep 2017 23:15:31 +0200 Subject: [PATCH] FEM: py3, set prints in brackets --- src/Mod/Fem/FemTools.py | 2 +- src/Mod/Fem/FemToolsCcx.py | 4 ++-- src/Mod/Fem/ObjectsFem.py | 4 ++-- src/Mod/Fem/importCcxFrdResults.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Fem/FemTools.py b/src/Mod/Fem/FemTools.py index a874f41a2f..037cf6c4fa 100644 --- a/src/Mod/Fem/FemTools.py +++ b/src/Mod/Fem/FemTools.py @@ -312,7 +312,7 @@ class FemTools(QtCore.QRunnable, QtCore.QObject): mat_obj = m['Object'] if mat_obj.Category == 'Solid': if 'YoungsModulus' in mat_map: - # print Units.Quantity(mat_map['YoungsModulus']).Value + # print(Units.Quantity(mat_map['YoungsModulus']).Value) if not Units.Quantity(mat_map['YoungsModulus']).Value: message += "Value of YoungsModulus is set to 0.0.\n" else: diff --git a/src/Mod/Fem/FemToolsCcx.py b/src/Mod/Fem/FemToolsCcx.py index 68b5bc2eaa..e567d73b1a 100644 --- a/src/Mod/Fem/FemToolsCcx.py +++ b/src/Mod/Fem/FemToolsCcx.py @@ -251,8 +251,8 @@ class FemToolsCcx(FemTools.FemTools): nonpositive_jacobian_elenodes = [] for line in self.ccx_stdout.splitlines(): if 'determinant in element' in line: - # print line - # print line.split() + # print(line) + # print(line.split()) non_posjac_ele = int(line.split()[3]) # print(non_posjac_ele) if non_posjac_ele not in nonpositive_jacobian_elements: diff --git a/src/Mod/Fem/ObjectsFem.py b/src/Mod/Fem/ObjectsFem.py index 04ee4bfd9a..e70a470a39 100644 --- a/src/Mod/Fem/ObjectsFem.py +++ b/src/Mod/Fem/ObjectsFem.py @@ -334,13 +334,13 @@ def makeSolverZ88(name="Z88"): ''' -# print supportedTypes +# get the supportedTypes App.newDocument() module = 'Fem' FreeCADGui.doCommand('import ' + module) for s in sorted(App.ActiveDocument.supportedTypes()): if s.startswith(module): - print s + print(s) ''' ## @} diff --git a/src/Mod/Fem/importCcxFrdResults.py b/src/Mod/Fem/importCcxFrdResults.py index e9e6baa7ab..97b30ab599 100644 --- a/src/Mod/Fem/importCcxFrdResults.py +++ b/src/Mod/Fem/importCcxFrdResults.py @@ -260,7 +260,7 @@ def readResult(frd_input): # hexa20 import works with the following frd file node assignment elements_hexa20[elem] = (nd8, nd5, nd6, nd7, nd4, nd1, nd2, nd3, nd20, nd17, nd18, nd19, nd12, nd9, nd10, nd11, nd16, nd13, nd14, nd15) - # print elements_hexa20[elem] + # print(elements_hexa20[elem]) elif elemType == 5 and input_continues is False: # first line # C3D15 Calculix --> penta15 FreeCAD