An interface between ROOT and NumPy
Project description
root_numpy
Python Extension for converting root files to numpy recarray or structure array. This is very useful for using in interactive data exploration environment like ipython (especially notebook).
Written in C++ with lots of pointer and memcpy magic and it doesn’t call PyRoot so it’s much faster especially if you are trying to read a large file in to memory (100MB+ or even GB’s of Data).
Currently only support basic types like Float_t Int_t Double_t Bool_t etc. and array of basic types both variable and fixed length. vector of basic type (int, float, double, char, long) is also supported.
Tab completion for numpy.recarray column name (yourdata.<TAB> showing the column names so you don’t have to remember it) is also available with this numpy patch
Requirements
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.1.tar.gz
.
File metadata
- Download URL: root_numpy-2.0.1.tar.gz
- Upload date:
- Size: 189.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22148f327944bf7f47e6c08794227f97319422014c5af8f923c2810cab93573 |
|
MD5 | 664111cf6c22b174bba1d20d36a4a9c6 |
|
BLAKE2b-256 | 0290d9ef075a5efb64959fbabfe2f8a61b14bb4d28ab3f359af39529c407b90d |