tRemoved exceptions as dinosaur python distributions on grendel do not support them - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 2c93b68798d09861455c6f050c0f4374cbf57574
DIR parent 838ab5a7172daca802dfb5f095f7969b0dc546b6
HTML Author: Anders Damsgaard <adc@geo.au.dk>
Date: Thu, 13 Dec 2012 10:51:49 +0100
Removed exceptions as dinosaur python distributions on grendel do not support them
Diffstat:
M python/sphere.py | 5 -----
1 file changed, 0 insertions(+), 5 deletions(-)
---
DIR diff --git a/python/sphere.py b/python/sphere.py
t@@ -1327,8 +1327,6 @@ def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
sigma[i]/1000.0,
tau[i]/1000.0,
dilation[i]/L*100.0))
- except (EnvironmentError, ValueError) as err:
- print("{0}: export error: {1}".format(os.path.basename(sys.argv[0]), err))
finally :
if fh is not None:
fh.close()
t@@ -1365,9 +1363,6 @@ def status(project):
data = fh.read()
#print(data)
return int(data.split()[2]) # Return last file number
- except (EnvironmentError, ValueError, KeyError) as err:
- print("status.py: import error: {0}".format(err))
- return False
finally :
if fh is not None:
fh.close()