From 8b9bed6c80bde554028c4a7c07d2078177bcffb9 Mon Sep 17 00:00:00 2001 From: shivesh Date: Wed, 17 Apr 2019 09:28:31 -0500 Subject: Wed 17 Apr 09:28:30 CDT 2019 --- sens.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'sens.py') diff --git a/sens.py b/sens.py index 7213381..cafbf10 100755 --- a/sens.py +++ b/sens.py @@ -205,7 +205,8 @@ def main(): ) + misc_utils.gen_identifier(args) # Setup Golemfit. - gf_utils.setup_fitter(args, asimov_paramset) + if args.run_mn: + gf_utils.setup_fitter(args, asimov_paramset) # Initialise data structure. stat_arr = np.full((eval_dim, 2), np.nan) @@ -254,13 +255,15 @@ def main(): # Cleanup. if reset_range is not None: scale_prm.ranges = reset_range - try: - for f in glob.glob(prefix + '*'): - print 'cleaning file {0}'.format(f) - os.remove(f) - except: - print 'got error trying to cleanup, continuing' - pass + + if args.run_mn and not args.debug: + try: + for f in glob.glob(prefix + '*'): + print 'cleaning file {0}'.format(f) + os.remove(f) + except: + print 'got error trying to cleanup, continuing' + pass misc_utils.make_dir(outfile) print 'Saving to {0}'.format(outfile+'.npy') -- cgit v1.2.3