Uproot

Latest version: v5.5.1

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 33 of 57

3.2.7

Fixed 171 and added a way for developers to change the set of streamers in files written by uproot (PR 173).

3.2.6

Add a non-default option to interpret pointers of arrays of primitive types without the so-called "speed bump byte." For instance, `branch.array(branch.interpretation.speedbump(False))`. See 168 for an example of a case in which this is needed.

3.2.5

Fixes 166: reading branches with `TArray*` type.

3.2.4

Looking up branches (manually by the user or internally in `TTree.arrays`) is now faster for large numbers of branches. The O(n^2) lookup algorithm has been replaced by a single hashmap lookup, and a branch's `interpretation` property is now only computed once.

3.2.3

Three possibilities for `flatten` in `TTree.pandas.df` (and other array-fetching functions with `outputtype=pandas.DataFrame)`):
* `True`: jagged arrays are turned into a `pandas.MultiIndex` and maintain their Numpyness
* `False`: jagged arrays are turned into a column of Python lists
* `None` (new): jagged arrays are excluded, overriding the `branches` parameter.

Note that `flatten=True` is the default for `TTree.pandas.df` and `flatten=False` is the default for other array-fetching methods with `outputtype=pandas.DataFrame`.

This version also fixes an uproot 2 → 3 migration bug in handling jagged arrays.

3.2.2

Adds a `timeout` parameter to XRootDSource, which can be used as following:

python
import uproot
f = uproot.open("root://wherever//whatever.root", xrootdsource={"timeout": 1})


Also, *Source.defaults have been turned into dicts, rather than functions, and dict-based parameters like `xrootdsource` in the above example override defaults, rather than replacing them completely. That way, you don't need to specify the `chunkbytes` and `limitbytes` if you don't want to.

Page 33 of 57

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.