Skip to main content

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

See http://rootpy.github.com/root_numpy/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

root_numpy-2.0.1.tar.gz (189.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page