FEM: Use brackets for print
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
e3c081be54
commit
d58ccf7fd3
|
@ -245,7 +245,7 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
|
||||||
self.working_dir)
|
self.working_dir)
|
||||||
self.inp_file_name = inp_writer.write_calculix_input_file()
|
self.inp_file_name = inp_writer.write_calculix_input_file()
|
||||||
except:
|
except:
|
||||||
print "Unexpected error when writing CalculiX input file:", sys.exc_info()[0]
|
print("Unexpected error when writing CalculiX input file:", sys.exc_info()[0])
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def start_ccx(self):
|
def start_ccx(self):
|
||||||
|
@ -442,15 +442,15 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
|
||||||
self.finished.emit(ret_code)
|
self.finished.emit(ret_code)
|
||||||
progress_bar.stop()
|
progress_bar.stop()
|
||||||
else:
|
else:
|
||||||
print "Running analysis failed! " + message
|
print("Running analysis failed! {}".format(message))
|
||||||
if ret_code or self.ccx_stderr:
|
if ret_code or self.ccx_stderr:
|
||||||
print "Analysis failed with exit code {}".format(ret_code)
|
print("Analysis failed with exit code {}".format(ret_code))
|
||||||
print "--------start of stderr-------"
|
print("--------start of stderr-------")
|
||||||
print self.ccx_stderr
|
print(self.ccx_stderr)
|
||||||
print "--------end of stderr---------"
|
print("--------end of stderr---------")
|
||||||
print "--------start of stdout-------"
|
print("--------start of stdout-------")
|
||||||
print self.ccx_stdout
|
print(self.ccx_stdout)
|
||||||
print "--------end of stdout---------"
|
print("--------end of stdout---------")
|
||||||
|
|
||||||
## Returns minimum, average and maximum value for provided result type
|
## Returns minimum, average and maximum value for provided result type
|
||||||
# @param self The python object self
|
# @param self The python object self
|
||||||
|
|
Loading…
Reference in New Issue
Block a user