diff --git a/docs/faq.rst b/docs/faq.rst index c4e47d6..9fb0165 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -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'] diff --git a/docs/start.rst b/docs/start.rst index a0dd95c..16ecd24 100644 --- a/docs/start.rst +++ b/docs/start.rst @@ -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')