From 55254efd9c160189ba7dacaa7492e3eaaaf3dd8a Mon Sep 17 00:00:00 2001 From: shivesh Date: Sun, 20 Oct 2019 13:35:09 -0500 Subject: finish thesis plots --- sens.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sens.py') 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]: -- cgit v1.2.3