Array2root/array2tree not working

Array2root and array2tree seem not to work. But tree2array does work. I’m not sure what’s the problem. Whenever I try to use array2tree or array2root it says TypeError: object of type ‘NoneType’ has no len(). I tried to look for solutions and they say there should be a name for the array but whenever I try it says ValueError: entry not a 2- or 3- tuple.

Hi,

what tool are you talking about exactly?

Cheers,
Danilo

root_numpy package in python. :slight_smile:

Hi,

root_numpy is not part of ROOT. Related to that, but unfortunately not solving your immediate issue, we are working in order to improve the PyROOT layer to provide better interoperability between C++ types made available in Python and numpy arrays.

Cheers,
Danilo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.