Re: ROOT branch to python (numpy) array

From: <wlavrijsen_at_lbl.gov>
Date: Fri, 15 Apr 2011 09:29:55 -0700


Hi,

> mytree.GetEntry(0)
> myarray=np.array([d for d in mytree.mybranch])
> This however does not seem to work anymore

what does not working mean? Also, if the branch is available as an iterable, iterating over it in the list comprehension should be unnecessary.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Fri Apr 15 2011 - 18:30:12 CEST

This archive was generated by hypermail 2.2.0 : Fri Apr 15 2011 - 23:50:01 CEST