Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update das-selected-lumis script to match the new das server format #20302

Merged
merged 1 commit into from
Aug 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Configuration/PyReleaseValidation/scripts/das-selected-lumis.py
Original file line number Diff line number Diff line change
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