aboutsummaryrefslogtreecommitdiffstats
path: root/sens.py
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2019-10-20 13:35:09 -0500
committershivesh <s.p.mandalia@qmul.ac.uk>2019-10-20 13:35:09 -0500
commit55254efd9c160189ba7dacaa7492e3eaaaf3dd8a (patch)
treef6b7cf9296cd7115b63345c8b000850bcba1851b /sens.py
parent0a9dd1a00e0ed2801b2c1a3549ed64e1444a6832 (diff)
downloadGolemFlavor-55254efd9c160189ba7dacaa7492e3eaaaf3dd8a.tar.gz
GolemFlavor-55254efd9c160189ba7dacaa7492e3eaaaf3dd8a.zip
finish thesis plots
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]: