This repository was archived by the owner on Jan 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ memory.
3434Instead, just use ROOT directly. Deactivate the branches before calling
3535the tree's ``CloneTree() `` method. Only the activated branches are copied::
3636
37- from root_numpy.testdata import get_filepath
37+ from root_numpy import testdata
3838 from rootpy import asrootpy
3939 from rootpy.io import root_open
4040
41- rfile = root_open(get_filepath('single1.root'))
41+ rfile = root_open(testdata. get_filepath('single1.root'))
4242 tree = rfile['tree']
4343 print tree.branchnames # prints ['n_int', 'f_float', 'd_double']
4444
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ following examples into your Python prompt):
5656.. code-block :: python
5757
5858 from root_numpy import root2array, tree2array
59- from root_numpy.testdata import get_filepath
59+ from root_numpy import testdata
6060
61- filename = get_filepath(' test.root' )
61+ filename = testdata. get_filepath(' test.root' )
6262
6363 # Convert a TTree in a ROOT file into a NumPy structured array
6464 arr = root2array(filename, ' tree' )
You can’t perform that action at this time.
0 commit comments