properly catching the LinAlgError. also, prepping to change the run_baker method (more generic)
This commit is contained in:
@@ -30,7 +30,6 @@ phis = get_phis_3D(X, R.points)
|
||||
print "phi values (should all be positive): ", phis, sum(phis)
|
||||
if [i for i in phis if i < 0.0]:
|
||||
print "problems"
|
||||
sys.exit(1)
|
||||
|
||||
r = run_baker_3D(X, R, S)
|
||||
|
||||
@@ -40,7 +39,5 @@ print 'final', r['final']
|
||||
|
||||
if abs(r['final'] - exact) <= abs(r['qlin'] - exact):
|
||||
print "win"
|
||||
sys.exit(0)
|
||||
else:
|
||||
print "failure"
|
||||
sys.exit(2)
|
||||
|
||||
Reference in New Issue
Block a user