Skip to content

Conversation

@vepadulano
Copy link
Member

Fixes #20081

Include all standard C++ fundamental types and the corresponding ROOT C++ types. Connect each of them with the correct Numpy array interface basic type as described at https://numpy.org/doc/stable/reference/arrays.interface.html#object.__array_interface__ .
@github-actions
Copy link

github-actions bot commented Oct 24, 2025

Test Results

    22 files      22 suites   3d 16h 53m 31s ⏱️
 3 698 tests  3 697 ✅ 0 💤 1 ❌
79 423 runs  79 422 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit b778016.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the PR! I would however suggest to keep the number of bytes consistent, if there is no particular reason to not do so.

Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, my previous change request. I have now remembered that the size is later appended to the dtype string as the result of sizeof.

So this PR looks good to me, except for the failure on Windows, which can be easily avoided by not deleting the file!

Copy link
Member

@dpiparo dpiparo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, modulo the small change needed for the win tests

* Use ROOT::RVec as the single data structure to recover all types of values via the Take operation. This helps avoiding issues with vectors of boolean values, whether they are visible as the 'bool' or 'Bool_t' C++ types.
* Add a test that checks both 'bool' and 'Bool_t' types. For the latter, it is required to write a TTree branch.
@vepadulano vepadulano merged commit b3d0539 into root-project:master Oct 26, 2025
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Also consider Bool_t in numpy array conversion

3 participants