fix: proposal for #2947#3191
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
|
|
@maxgalli thanks for this PR! I think you're right that we'd prefer to tackle this slightly differently; presently, our internal representation of shape items is |
thanks @agoose77, I changed the PR accordingly to perform the casr in |
|
At this stage, any function that accepts a length e.g. |
|
This LGTM, and I feel confident in merging despite being out of the regular development cycle. @jpivarski I'm notifying you that I'm merging despite feeling comfortable to do so! |
|
@maxgalli thanks for this useful PR! <3 |
* fix: cast numpy integers to integers in ak.from_buffers (fixes scikit-hep#2947) * Add test for 3502225e9246ce0197d6143c9d94c9e1aeec88b8 * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
@all-contributors please add @maxgalli for code |
|
I've put up a pull request to add @maxgalli! 🎉 |
Test against np.integer as well in ArrayModuleNumpyLike.shape_item_as_index such that it does not break if ak.from_buffers is built with a numpy integer instead of an integer.
I have the feeling that this might be an "easy fix" and that maybe the fix should be implemented at a deeper level - please let me know if this is the case.