aboutsummaryrefslogtreecommitdiffstats
path: root/sens.py
diff options
context:
space:
mode:
Diffstat (limited to 'sens.py')
-rwxr-xr-xsens.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/sens.py b/sens.py
index 9e58c2f..963a33b 100755
--- a/sens.py
+++ b/sens.py
@@ -227,6 +227,16 @@ def main():
else: continue
print '|||| SCALE = {0:.0E}'.format(np.power(10, scale))
+ if not args.overwrite and os.path.isfile(outfile+'.npy'):
+ print 'FILE EXISTS {0}'.format(outfile+'.npy')
+ t = np.load(outfile+'.npy')
+ if np.any(~np.isfinite(t)):
+ print 'nan found, rerunning...'
+ pass
+ else:
+ print 'Exiting...'
+ return
+
# Lower scale boundary for first (NULL) point and set the scale param.
reset_range = None
if scale < scale_prm.ranges[0]: