Skip to content

Commit

Permalink
[DQM] Fix to compareDQMOutput since python3
Browse files Browse the repository at this point in the history
As pointed out in cms-sw#34374 (comment)
  • Loading branch information
jfernan2 authored and sifuluo committed Aug 6, 2021
1 parent a69b055 commit 4db4061
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DQMServices/FileIO/scripts/compareDQMOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def compare(base_dir, pr_dir, output_dir, files, pr_number, test_number, release
print('Running comparison:')
print(' '.join(command))

output = subprocess.check_output(command)
output = subprocess.check_output(command).decode()

output_elements = output.split('\n')[1:]
base_output_filename = output_elements[0]
pr_output_filename = output_elements[1]
base_output_filename = output_elements[3]
pr_output_filename = output_elements[4]
run_nr = base_output_filename.split('_')[2].lstrip('R').lstrip('0')
output_numbers = output_elements[2].split(' ')
output_numbers = output_elements[5].split(' ')

workflow = os.path.basename(os.path.dirname(os.path.join(base_dir, file_name))).split('_')[0]
base_dataset = '/' + '/'.join(base_output_filename.rstrip('.root').split('__')[1:])
Expand Down

0 comments on commit 4db4061

Please sign in to comment.