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 for i
in range(
int(sub_list[0]),
int(sub_list[1])+1):
20 if i >=
int(lumi_list[0])
and i <=
int(lumi_list[1]):
return True 24 for lumi_r
in given_lumi_list:
30 for lumi_info
in data:
31 if isinstance(lumi_info[
'lumi'], list):
32 lumi_nums = lumi_info[
'lumi'][0][
'number']
33 lumi_file = lumi_info[
'file'][0][
'name']
35 lumi_nums = lumi_info[
'lumi'][
'number']
36 lumi_file = lumi_info[
'file'][
'name']
37 if not isinstance(lumi_nums[0], list): lumi_rang = [ [n,n]
for n
in lumi_nums ]
38 else: lumi_rang = lumi_nums
39 for sub_list
in lumi_rang:
41 output_files_list.append(lumi_file)
43 for out_file_name
in output_files_list:
std::vector< std::string_view > split(std::string_view, const char *)
def check_lumi_ranges(given_lumi_list, sub_range)
S & print(S &os, JobReport::InputFile const &f)
def match_in(sub_list, lumi_list)