Skip to content
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

[PyROOT] Do __getattr__ pythonization of TTree in Python #196

Closed

Conversation

smuzaffar
Copy link

No description provided.

So far, the `TBranch::GetAddress` method returned a `char *`. This
causes incompatibility with PyROOT, because `char *` is automatically
converted to a Python string, which is the wrong thing to for an
address.

This made the return value unusable in PyROOT. That's a bug that
currently prevents us from reimplementing some pythonizations in native
Python.

Therefore, the return type of `TBranch::GetAddress()` was changed to
`void *` in this release. Even if this change is not backwards
compatible for typing reasons, the returned value is the same.

With this change, the code is also more consistent because
`GetAddress()` and `SetBranchAddress()` use the same type for the
address.
There is no need to do this on the C++ size.
@smuzaffar
Copy link
Author

please test for CMSSW_14_0_ROOT6_X

@cmsbuild
Copy link

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for branch cms/master/953770d5da.

@aandvalenzuela, @iarspider, @smuzaffar can you please review it and eventually sign? Thanks.
@rappoccio, @antoniovilela, @sextonkennedy you are the release manager for this.
cms-bot commands are listed here

@cmsbuild
Copy link

cmsbuild commented Jan 26, 2024

cms-bot internal usage

@cmsbuild
Copy link

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ce122a/37051/summary.html
COMMIT: 91c0a57
CMSSW: CMSSW_14_0_ROOT6_X_2024-01-25-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/root/196/37051/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 1 errors in the following unit tests:

---> test TestDQMServicesDemo had ERRORS

Comparison Summary

Summary:

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.

3 participants