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

Add python3 compatibility for RelMon #36199

Merged
merged 3 commits into from Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Utilities/RelMon/python/directories2html.py
Expand Up @@ -14,7 +14,7 @@
from builtins import range
from os import chdir,getcwd,listdir,makedirs
from os.path import basename,join,exists
import cgi
import html

import sys
theargv=sys.argv
Expand Down Expand Up @@ -508,7 +508,7 @@ def build_gauge(total_success_rate,minrate=.80,small=False,escaped=False):
gauge_link+="&chma=10,10,10,0"
img_tag= '<img src="%s">'%gauge_link
if escaped:
img_tag=cgi.escape(img_tag)
img_tag=html.escape(img_tag)
return img_tag

#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -624,7 +624,7 @@ def make_categories_summary(dir_dict,aggregation_rules):
def make_twiki_table(dir_dict,aggregation_rules):

# decide the release
meta= dir_dict.items()[0][1].meta
meta= list(dir_dict.items())[0][1].meta
releases=sorted([meta.release1,meta.release2])
latest_release=releases[1].split("-")[0]

Expand Down
10 changes: 5 additions & 5 deletions Utilities/RelMon/scripts/ValidationMatrix.py
Expand Up @@ -14,7 +14,7 @@
from optparse import OptionParser

import os
import cPickle
import pickle
import glob
from re import search
from subprocess import call,PIPE
Expand Down Expand Up @@ -253,8 +253,8 @@ def get_filenames_from_pool(all_samples):

def get_clean_fileanames(ref_samples,test_samples):
# Process the samples starting from the names
ref_filenames=map(lambda s:s.strip(),ref_samples.split(","))
test_filenames=map(lambda s:s.strip(),test_samples.split(","))
ref_filenames=list(map(lambda s:s.strip(),ref_samples.split(",")))
test_filenames=list(map(lambda s:s.strip(),test_samples.split(",")))

if len(ref_filenames)!=len(test_filenames):
print("The numebr of reference and test files does not seem to be the same. Please check.")
Expand Down Expand Up @@ -325,8 +325,8 @@ def do_comparisons_threaded(options):
ref_filenames,test_filenames=get_clean_fileanames(options.ref_samples,options.test_samples)

# make the paths absolute
ref_filenames=map(os.path.abspath,ref_filenames)
test_filenames=map(os.path.abspath,test_filenames)
ref_filenames=list(map(os.path.abspath,ref_filenames))
test_filenames=list(map(os.path.abspath,test_filenames))

samples,cmssw_version1,cmssw_version2=guess_params(ref_filenames,test_filenames)

Expand Down