Skip to content

Also consider Bool_t in numpy array conversion #20081

@vepadulano

Description

@vepadulano

Explain what you would like to see improved and how.

As reported at https://root-forum.cern.ch/t/bool-branch-becomes-python-object-with-rdataframe-asnumpy/64305

The logic at

column_type = "unsigned char" if column_type == "bool" else column_type
only considers the bool case, but not the Bool_t case, which is what a TTree branch holding boolean values will display to RDataFrame.

ROOT version

Any

Installation method

Any

Operating system

Any

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions