def save_selection(label, preselection): with open('plots_ul/%s/selection.py' % label, 'w') as ff: total_expected = 0. print("selection = ' & '.join([", file=ff) for isel in preselection.split(' & '): print(" '%s'," % isel, file=ff) print('])', file=ff)
def save_selection(label, preselection): with open('multi_plots/%s/selection.py' %label, 'w') as ff: total_expected = 0. print("selection = ' & '.join([", file=ff) for isel in preselection.split(' & '): print(" '%s'," %isel, file=ff) print('])', file=ff) print('pass: %s'%pass_id, file=ff) print('fail: %s'%fail_id, file=ff)
def save_selection(label, preselection, pass_id, fail_id): with open('plots_pf_comparison/%s/selection.py' % label, 'w') as ff: total_expected = 0. print("selection = ' & '.join([", file=ff) for isel in preselection.split(' & '): print(" '%s'," % isel, file=ff) print('])', file=ff) print("pass_id = '%s'" % pass_id, file=ff) print("fail_id = '%s'" % fail_id, file=ff)
def save_selection(label, preselection, pass_id, fail_id): ''' Save preselections in a txt file ''' with open('plots_closuretest/%s/selection.py' % label, 'w') as ff: total_expected = 0. print("selection = ' & '.join([", file=ff) for isel in preselection.split(' & '): print(" '%s'," % isel, file=ff) print('])', file=ff) print("pass_id = '%s'" % pass_id, file=ff) print("fail_id = '%s'" % fail_id, file=ff)