diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-04-14 12:25:09 -0500 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-04-14 12:25:09 -0500 |
| commit | e0b8d804b294c38f3e8d6e75ceb227378ec6c37c (patch) | |
| tree | 63f14ceaa53fb45dcfcf89f1efe56fa959e37af7 /sens.py | |
| parent | a9d381454eeb383209ac0d8d859e3f255840d083 (diff) | |
| download | GolemFlavor-e0b8d804b294c38f3e8d6e75ceb227378ec6c37c.tar.gz GolemFlavor-e0b8d804b294c38f3e8d6e75ceb227378ec6c37c.zip | |
Sun 14 Apr 12:25:09 CDT 2019
Diffstat (limited to 'sens.py')
| -rwxr-xr-x | sens.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -229,7 +229,7 @@ def main(): ) llh = '{0}'.format(args.likelihood).split('.')[1] data = '{0}'.format(args.data).split('.')[1] - src_string = solve_ratio(args.source_ratio) + src_string = misc_utils.solve_ratio(args.source_ratio) prefix = args.mn_output + '/DIM{0}/{1}/{2}/s{3}/{4}'.format( args.dimension, data, llh, src_string, identifier ) @@ -252,10 +252,14 @@ def main(): stat_arr[idx_sc] = np.array([scale, stat]) # Cleanup. - for f in glob.glob(prefix + '*'): - os.remove(f) if reset_range is not None: scale_prm.ranges = reset_range + try: + for f in glob.glob(prefix + '*'): + os.remove(f) + except: + print 'got error trying to cleanup, continuing' + pass misc_utils.make_dir(outfile) print 'Saving to {0}'.format(outfile+'.npy') |
