An interface between ROOT and NumPy
Project description
root_numpy
root_numpy is a Python extension for converting ROOT TTrees into NumPy recarrays or structured arrays and can efficiently handle large amounts of data (limited only by the available memory) as the core internals are written in C++. With your ROOT data in NumPy form you may now make use of the many powerful scientific Python packages or perform quick exploratory data analysis in interactive environments like IPython (especially IPython’s popular notebook feature).
root_numpy currently supports basic types like Bool_t, Int_t, Float_t, Double_t, etc. and arrays of basic types (both variable and fixed-length). Vectors of basic types are also supported.
Tab completion for numpy.recarray column names (yourdata.<TAB>) is also available with this numpy patch
The rootpy package also provides a script that uses root_numpy and PyTables to convert all TTrees in a ROOT file into the HDF5 format.
Requirements
root_numpy is tested with ROOT 5.32, NumPy 1.6.1, Python 2.7.1 but it should work in most places.
Installation
python setup.py install
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file root_numpy-2.0.2.tar.gz
.
File metadata
- Download URL: root_numpy-2.0.2.tar.gz
- Upload date:
- Size: 196.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2391d9cc8936729939806801cf3d27d58f1da3fca82ea13a3b1d36ed3a7f6e04 |
|
MD5 | dee20a09a2211bfdf34d0ab94235ad8b |
|
BLAKE2b-256 | a45d498724488b6f9a789486056265add4b4d7d1bbdb775716c3bffe66c0ad07 |