python 3 at least imports the damask module now

This commit is contained in:
Martin Diehl 2016-06-29 20:49:01 +02:00
parent 755501da69
commit fa13aa30b0
3 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ class Color():
__slots__ = [ __slots__ = [
'model', 'model',
'color', 'color',
'__dict__',
] ]

View File

@ -13,7 +13,7 @@ class Abaqus(Solver):
import subprocess import subprocess
process = subprocess.Popen(['abaqus', 'information=release'],stdout = subprocess.PIPE,stderr = subprocess.PIPE) process = subprocess.Popen(['abaqus', 'information=release'],stdout = subprocess.PIPE,stderr = subprocess.PIPE)
self.version = process.stdout.readlines()[1].split()[1] self.version = process.stdout.readlines()[1].split()[1]
print self.version print(self.version)
else: else:
self.version = version self.version = version

View File

@ -415,7 +415,7 @@ def leastsqBound(func, x0, args=(), bounds=None, Dfun=None, full_output=0,
try: try:
cov_x = inv(np.dot(np.transpose(R), R)) cov_x = inv(np.dot(np.transpose(R), R))
except LinAlgError as inverror: except LinAlgError as inverror:
print inverror print(inverror)
pass pass
return (x, cov_x) + retval[1:-1] + (mesg, info) return (x, cov_x) + retval[1:-1] + (mesg, info)
else: else: