Skip to main content
Help us improve Python packaging – donate today!

An interface between ROOT and NumPy

Project Description

https://travis-ci.org/rootpy/root_numpy.png

root_numpy

root_numpy is a Python extension for converting ROOT TTrees into NumPy recarrays or structured arrays. With the core internals written in C++, root_numpy can efficiently handle large amounts of data (limited only by the available memory). Now that your ROOT data is in NumPy form, you can 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 extension.

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

Release history Release notifications

History Node

4.7.3

History Node

4.7.2

History Node

4.7.1

History Node

4.6.0

History Node

4.5.2

History Node

4.5.1

History Node

4.5.0

History Node

4.4.1

History Node

4.4.0

History Node

4.3.0

History Node

4.2.1

History Node

4.2.0

History Node

4.1.2

History Node

4.1.1

History Node

4.1.0

History Node

4.0.1

History Node

4.0.0

History Node

3.4.1

History Node

3.4.0

History Node

3.3.1

History Node

3.3.0

History Node

3.2.0

History Node

3.1.1

History Node

3.1.0

History Node

3.0.2

History Node

3.0.1

History Node

3.0.0

This version
History Node

2.1.0

History Node

2.0.4

History Node

2.0.3

History Node

2.0.2

History Node

2.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
root_numpy-2.1.0.tar.gz (196.7 kB) Copy SHA256 hash SHA256 Source None Feb 24, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page