Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #239 from scikit-hep/externalize-one-testfile
Browse files Browse the repository at this point in the history
Just take the first commit of #237 because the rest won't work until scikit-hep-testdata is fixed
  • Loading branch information
jpivarski authored Feb 28, 2019
2 parents 2116b1f + 913116e commit 662d1f8
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 1,094 deletions.
7 changes: 7 additions & 0 deletions docs/source/opening-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ With a :py:class:`ROOTDirectory <uproot.rootio.ROOTDirectory>`, you can dig into
The :py:func:`iterate <uproot.iterate>` function gives you an iterator over groups of arrays just like :py:meth:`TreeMethods.iterate <uproot.tree.TreeMethods.iterate>`, except that it iterates over a large set of files (and verifies that the selected TTree branches are compatible). This serves essentially the same function as ROOT's TChain, allowing you to use TTrees in a set of files the same way you would use a single TTree.

.. autofunction:: uproot.tree.iterate

uproot.tree.numentries
----------------------

If you need to know the total number of entries of a set of files before processing them (e.g. for normalization or setting weights), you could open each file and TTree individually, but the function below is faster because it skips some steps that aren't needed when you only want the number of files.

.. autofunction:: uproot.tree.numentries
Binary file removed tests/samples/Event.root
Binary file not shown.
Loading

0 comments on commit 662d1f8

Please sign in to comment.