@@ -60,7 +60,7 @@ Strict dependencies:
6060
6161- `numpy <https://scipy.org/install.html >`__ (1.13.1+)
6262- `Awkward Array 0.x <https://github.com/scikit-hep/awkward-0.x >`__
63- - `uproot -methods <https://github.com/scikit-hep/uproot -methods >`__ (0.9.1+)
63+ - `uproot3 -methods <https://github.com/scikit-hep/uproot3 -methods >`__
6464- `cachetools <https://pypi.org/project/cachetools >`__
6565
6666Optional dependencies:
@@ -178,7 +178,7 @@ In short, you should never see a segmentation fault.
178178Uproot is strictly concerned with file I/O only—all other functionality
179179is handled by other libraries:
180180
181- - `uproot -methods <https://github.com/scikit-hep/uproot -methods >`__:
181+ - `uproot3 -methods <https://github.com/scikit-hep/uproot3 -methods >`__:
182182 physics methods for types read from ROOT files, such as histograms
183183 and Lorentz vectors. It is intended to be largely user-contributed
184184 (and is).
@@ -3157,10 +3157,10 @@ Special physics objects: Lorentz vectors
31573157Although any C++ type can in principle be read (see below), some are
31583158important enough to be given convenience methods for analysis. These are
31593159not defined in Uproot (which is strictly concerned with I/O), but in
3160- `uproot -methods <https://github.com/scikit-hep/uproot -methods >`__. If
3160+ `uproot3 -methods <https://github.com/scikit-hep/uproot3 -methods >`__. If
31613161you need certain classes to have user-friendly methods in Python, you’re
31623162encouraged to contribute them to
3163- `uproot -methods <https://github.com/scikit-hep/uproot -methods >`__.
3163+ `uproot3 -methods <https://github.com/scikit-hep/uproot3 -methods >`__.
31643164
31653165One of these classes is ``TLorentzVectorArray ``, which defines an
31663166*array * of Lorentz vectors.
@@ -3190,7 +3190,7 @@ at individuals.
31903190
31913191 muon = muons[0, 0]
31923192 type(muon), muon
3193- # (uproot_methods .classes.TLorentzVector.TLorentzVector,
3193+ # (uproot3_methods .classes.TLorentzVector.TLorentzVector,
31943194 # TLorentzVector(-52.899, -11.655, -8.1608, 54.779))
31953195
31963196 This object has all the usual kinematics methods,
@@ -3211,10 +3211,7 @@ method on each).
32113211
32123212.. code-block :: python3
32133213
3214- muons.mass # some mass**2 are slightly negative, hence the Numpy warning about negative square roots
3215- # /home/pivarski/miniconda3/lib/python3.7/site-packages/uproot_methods-0.6.1-py3.7.egg/uproot_methods/
3216- # classes/TLorentzVector.py:189: RuntimeWarning: invalid value encountered in sqrt
3217- # return self._trymemo("mass", lambda self: self.awkward0.numpy.sqrt(self.mag2))
3214+ muons.mass
32183215 # <JaggedArray [[0.10559298741436905 0.10545247041042287] [0.105499240400313]
32193216 # [0.10696309110601164 0.10513788128369116] ... [0.1054382466674704] [0.0975059956172863]
32203217 # [0.10447224169767522]] at 0x7f36246f8080>
@@ -3249,9 +3246,9 @@ need to use a special constructor to build the object from its branches.
32493246
32503247 .. code-block :: python3
32513248
3252- import uproot_methods
3249+ import uproot3_methods
32533250
3254- array = uproot_methods .TLorentzVectorArray.from_cartesian(px, py, pz, E)
3251+ array = uproot3_methods .TLorentzVectorArray.from_cartesian(px, py, pz, E)
32553252 array
32563253 # <JaggedArrayMethods [[TLorentzVector(-52.899, -11.655, -8.1608, 54.779)
32573254 # TLorentzVector(37.738, 0.69347, -11.308, 39.402)]
@@ -3268,7 +3265,7 @@ converts to other systems on demand.
32683265
32693266.. code-block :: python3
32703267
3271- [x for x in dir(uproot_methods .TLorentzVectorArray) if x.startswith("from_")]
3268+ [x for x in dir(uproot3_methods .TLorentzVectorArray) if x.startswith("from_")]
32723269 # ['from_cartesian',
32733270 # 'from_cylindrical',
32743271 # 'from_p3',
@@ -3569,7 +3566,7 @@ between ``uproot3.asobj``
35693566
35703567 # TLorentzVectors all have the same number of fixed width components, so they can be read vectorially.
35713568 events3["muonp4"].interpretation
3572- # asjagged(asobj(<uproot_methods .classes.TLorentzVector.Methods>), 10)
3569+ # asjagged(asobj(<uproot3_methods .classes.TLorentzVector.Methods>), 10)
35733570
35743571 .. code-block :: python3
35753572
@@ -3860,7 +3857,7 @@ Python. Here’s a way to find out which ones have been defined so far:
38603857
38613858 import pkgutil
38623859
3863- [modname for importer, modname, ispkg in pkgutil.walk_packages(uproot_methods .classes.__path__)]
3860+ [modname for importer, modname, ispkg in pkgutil.walk_packages(uproot3_methods .classes.__path__)]
38643861 # ['TGraph',
38653862 # 'TGraphAsymmErrors',
38663863 # 'TGraphErrors',
@@ -4199,9 +4196,9 @@ or it may be created entirely in Python.
41994196.. code-block :: python3
42004197
42014198 import types
4202- import uproot_methods .classes.TH1
4199+ import uproot3_methods .classes.TH1
42034200
4204- class MyTH1(uproot_methods .classes.TH1.Methods, list):
4201+ class MyTH1(uproot3_methods .classes.TH1.Methods, list):
42054202 def __init__(self, low, high, values, title=""):
42064203 self._fXaxis = types.SimpleNamespace()
42074204 self._fXaxis._fNbins = len(values)
0 commit comments