-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix: remove unneeded cast #2653
Conversation
f863d64
to
7bf8964
Compare
Codecov Report
Additional details and impacted files
|
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 will be ready to go as soon as the tests pass. I'm going to try my own suggestion to see if that's it.
if head is NO_HEAD: | ||
return self |
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.
if head is NO_HEAD: | |
return self | |
if ak._util.win: | |
advanced = advanced.to_nplike(self._backend.nplike) | |
if head is NO_HEAD: | |
return self |
It seems that only Windows needs this cast. (Maybe, depending on what the other Windows tests would have done if they had been allowed to run, and maybe the test would fail on Windows even without this line and we're looking at something else.)
https://github.com/scikit-hep/awkward/actions/runs/5884127678/job/15958232220?pr=2653
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.
I think I've fixed it - oversight on my part :)
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.
In that case, I'll enable auto-merge. Disable it if you see something else.
30bb165
to
41c037d
Compare
I noticed a bug during slicing for a record of ragged lists. This PR fixes the bug, which was introduced during the backend addition.