-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Python3: Changes needed to run runTheMatrix with python2/3 #28021
Python3: Changes needed to run runTheMatrix with python2/3 #28021
Conversation
FYI @davidlange6 |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28021/11932
|
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages: Configuration/Applications @smuzaffar, @Dr15Jones, @chayanit, @zhenhu, @kpedro88, @pgunnell, @franzoni, @cmsbuild, @fabiocos, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
The code-checks are being triggered in jenkins. |
@@ -16,8 +16,8 @@ | |||
lumi_data = lumi_data['data'] | |||
|
|||
def match_in(sub_list,lumi_list): | |||
sub_list = map(int,sub_list) | |||
lumi_list = map(int,lumi_list) | |||
sub_list = list(map(int,sub_list)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this starts to be a complicated way of writing
for i in range(int(sub_list[0]),int(sub_list[1])+1):
if i >= int(lumi_list[0]) and i <= int(lumi_list[1]): return True
return False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for suggestion. I have updated it
please test |
The tests are being triggered in jenkins. |
I have moved back to old commit so that we can integrate this PR. I will create a separate PR to fix some more python3 related errors. |
Comparison job queued. |
unhold |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
Comparison is ready Comparison Summary:
|
+1 it looks ready to be integrated, and with this a py3-based IB may be prepared for further tests |
PR description:
Changes needed to run runTheMatrix with python3
PR validation:
Locally runing of runTheMatix (to dump relval commands) was successful. Order of command-line arguments to cmsDriver.py is not identical (because of change of
dict
behaviour in python3)