-
Notifications
You must be signed in to change notification settings - Fork 21
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
Python 3 compatibility #151
Milestone
Comments
One of the last outstanding issues is def _expand_lumi_ranges(lumi_ranges):
'''
Expands `[[1,4], [10,12]` to `[1,2,3,4,10,11,12]`
'''
result = np.array(map(_expand_lumi_range, lumi_ranges))
> return np.concatenate(result).ravel()
E TypeError: len() of unsized object |
Turns out that result = list(map(_expand_lumi_range, lumi_ranges))
return np.concatenate(result).ravel() works |
It seems I will have to revise the target. |
Python 2.7 tests are now dropped on the |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As CMS is preparing to support Python 3, so should we.
The first culprit is
→ https://github.com/cms-l1t-offline/cms-l1t-analysis/blob/master/bin/get_l1Analysis#L117
The text was updated successfully, but these errors were encountered: