python 3 at least imports the damask module now
This commit is contained in:
parent
755501da69
commit
fa13aa30b0
|
@ -15,6 +15,7 @@ class Color():
|
||||||
__slots__ = [
|
__slots__ = [
|
||||||
'model',
|
'model',
|
||||||
'color',
|
'color',
|
||||||
|
'__dict__',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue