Skip to content

Commit

Permalink
FEM: replace input with frd_file in ccxFrdReader.py
Browse files Browse the repository at this point in the history
input is a built-in function name and should not be used as variable name

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF committed Jun 2, 2015
1 parent 05cb44b commit f5863b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Fem/ccxFrdReader.py
Expand Up @@ -36,7 +36,7 @@

# read a calculix result file and extract the nodes, displacement vectores and stress values.
def readResult(frd_input):
input = pyopen(frd_input, "r")
frd_file = pyopen(frd_input, "r")
nodes = {}
disp = {}
stress = {}
Expand All @@ -50,7 +50,7 @@ def readResult(frd_input):
elemType = 0

while True:
line = input.readline()
line = frd_file.readline()
if not line:
break
#Check if we found nodes section
Expand Down Expand Up @@ -113,7 +113,7 @@ def readResult(frd_input):
stress_found = False
elements_found = False

input.close()
frd_file.close()
FreeCAD.Console.PrintLog('Read CalculiX result: {} Nodes, {} Displacements and {} Stress values\n'.format(len(nodes), len(disp), len(stress)))

return {'Nodes': nodes, 'Tet10Elem': elements, 'Displacement': disp, 'Stress': stress}
Expand Down

0 comments on commit f5863b6

Please sign in to comment.