Skip to main content

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 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

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.3.tar.gz (196.0 kB view details)

Uploaded Source

File details

Details for the file root_numpy-2.0.3.tar.gz.

File metadata

  • Download URL: root_numpy-2.0.3.tar.gz
  • Upload date:
  • Size: 196.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for root_numpy-2.0.3.tar.gz
Algorithm Hash digest
SHA256 915075ed9b051e34b6ef7e0f4d1ccb399eadf77b88cc82170dc237aa0929d570
MD5 c9db62ba43a5b184967d81078b8d55d7
BLAKE2b-256 d03ad24bc5aaa8496e5585b7c217c41e8cb94a38bec42ab1f14420719e7bfa05

See more details on using hashes here.

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