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

Commit

Permalink
Merge pull request #336 from ndawe/master
Browse files Browse the repository at this point in the history
FIX #330: use testdata.get_filepath()
  • Loading branch information
ndawe committed Jul 18, 2017
2 parents 69179c7 + 719c5f4 commit d6cab76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ memory.
Instead, just use ROOT directly. Deactivate the branches before calling
the tree's ``CloneTree()`` method. Only the activated branches are copied::

from root_numpy.testdata import get_filepath
from root_numpy import testdata
from rootpy import asrootpy
from rootpy.io import root_open

rfile = root_open(get_filepath('single1.root'))
rfile = root_open(testdata.get_filepath('single1.root'))
tree = rfile['tree']
print tree.branchnames # prints ['n_int', 'f_float', 'd_double']

Expand Down
4 changes: 2 additions & 2 deletions docs/start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ following examples into your Python prompt):
.. code-block:: python
from root_numpy import root2array, tree2array
from root_numpy.testdata import get_filepath
from root_numpy import testdata
filename = get_filepath('test.root')
filename = testdata.get_filepath('test.root')
# Convert a TTree in a ROOT file into a NumPy structured array
arr = root2array(filename, 'tree')
Expand Down

0 comments on commit d6cab76

Please sign in to comment.