diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-04-14 18:25:57 +0100 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-04-14 18:25:57 +0100 |
| commit | 50729d20db0e832993a61dd8ae99993eaa3b73ea (patch) | |
| tree | bf27546c0d008ad988ddfbe118601c76a9445b9a /sens.py | |
| parent | 7a70c7a879311786e1836d4ab434949a67771a51 (diff) | |
| parent | e0b8d804b294c38f3e8d6e75ceb227378ec6c37c (diff) | |
| download | GolemFlavor-50729d20db0e832993a61dd8ae99993eaa3b73ea.tar.gz GolemFlavor-50729d20db0e832993a61dd8ae99993eaa3b73ea.zip | |
Merge branch 'refactor' of github.com:ShiveshM/flavour_ratio into refactor
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') |
