Skip to content

[v634] Backport of recent fixes to the 6.34 release branch#18233

Merged
guitargeek merged 4 commits into
root-project:v6-34-00-patchesfrom
guitargeek:bp_1
Apr 2, 2025
Merged

[v634] Backport of recent fixes to the 6.34 release branch#18233
guitargeek merged 4 commits into
root-project:v6-34-00-patchesfrom
guitargeek:bp_1

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

maxgalli and others added 4 commits April 2, 2025 13:49
Fix by @guitargeek.
The RooWSFactoryTool expression handler was not correctly matching branckets, leading to failures when importing
valid JSON filed with RooProdPdf objects.
The addition of the __array__ utility to std::vector Python proxies causes a
bug where the resulting array is a single dimension, causing loss of data when
converting to numpy arrays, for >1dim vectors. The recursive nature of this
function, passes each subarray (pydata) to the next call and only the final
buffer is cast to a lowlevel view and resized (in VectorData), resulting in
only the first 1D array to be returned. See root-project#17729

Since this C++ pythonization was added with the upgrade in 6.32, and is only
defined and used recursively, the safe option is to disable this function and
no longer add it. It is temporarily removed to prevent errors due to -Wunused-function
@guitargeek guitargeek self-assigned this Apr 2, 2025
@guitargeek guitargeek merged commit f2e672f into root-project:v6-34-00-patches Apr 2, 2025
@guitargeek guitargeek deleted the bp_1 branch April 2, 2025 17:18
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.

5 participants