2 from __future__
import print_function
6 lumi_ranges = sys.argv[1].
split(
':')
7 for lumi_range
in lumi_ranges:
8 input_range.append(tuple(lumi_range.split(
',')))
10 jdata = sys.stdin.read()
12 lumi_data = json.loads(jdata)
16 lumi_data = lumi_data[
'data']
19 sub_list =
map(int,sub_list)
20 lumi_list =
map(int,lumi_list)
21 for i
in range(sub_list[0],sub_list[1]+1):
22 if i >= lumi_list[0]
and i <= lumi_list[1]:
return True 26 for lumi_r
in given_lumi_list:
32 for lumi_info
in data:
33 if isinstance(lumi_info[
'lumi'], list):
34 lumi_nums = lumi_info[
'lumi'][0][
'number']
35 lumi_file = lumi_info[
'file'][0][
'name']
37 lumi_nums = lumi_info[
'lumi'][
'number']
38 lumi_file = lumi_info[
'file'][
'name']
39 if not isinstance(lumi_nums[0], list): lumi_rang = [ [n,n]
for n
in lumi_nums ]
40 else: lumi_rang = lumi_nums
41 for sub_list
in lumi_rang:
43 output_files_list.append(lumi_file)
45 for out_file_name
in output_files_list:
def check_lumi_ranges(given_lumi_list, sub_range)
S & print(S &os, JobReport::InputFile const &f)
def match_in(sub_list, lumi_list)