Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit d6cab76

Browse files
authored
Merge pull request #336 from ndawe/master
FIX #330: use testdata.get_filepath()
2 parents 69179c7 + 719c5f4 commit d6cab76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ memory.
3434
Instead, just use ROOT directly. Deactivate the branches before calling
3535
the 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

docs/start.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)