Skip to content

cdeil/root_numpy

 
 

Repository files navigation

image

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/

About

An interface between ROOT and NumPy

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 89.2%
  • Python 9.9%
  • C 0.9%