Skip to content

Commit

Permalink
update das-selected-lumis script to match the new das server format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored and cmsbuild committed Aug 29, 2017
1 parent 53f615e commit a67922f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Configuration/PyReleaseValidation/scripts/das-selected-lumis.py
Expand Up @@ -29,8 +29,14 @@ def check_lumi_ranges(given_lumi_list , sub_range):

def process_lumi(data):
for lumi_info in data:
lumi_rang = lumi_info['lumi'][0]['number']
lumi_file = lumi_info['file'][0]['name']
if type(lumi_info['lumi']) is list:
lumi_nums = lumi_info['lumi'][0]['number']
lumi_file = lumi_info['file'][0]['name']
else:
lumi_nums = lumi_info['lumi']['number']
lumi_file = lumi_info['file']['name']
if not type(lumi_nums[0]) is list: lumi_rang = [ [n,n] for n in lumi_nums ]
else: lumi_rang = lumi_nums
for sub_list in lumi_rang:
if check_lumi_ranges(input_range,tuple(sub_list)):
output_files_list.append(lumi_file)
Expand Down

0 comments on commit a67922f

Please sign in to comment.