File conversion package.
Project description
hepconvert
The hepconvert library is a bridge between columnar file formats, currently ROOT, and Parquet and soon eventually include Feather, and HDF5. It aims to simplify file conversions in Python, replacing what is usually a multi-step process with one line of code, with builtin features for managing large datasets and choosing compression levels.
Installation
hepconvert can be installed from PyPI using pip:
pip install hepconvert
Getting started
import hepconvert
# To merge two or more root files with TTrees,
# and add together any histograms:
hepconvert.merge_root("destination.root",
["ttree_file1.root", "ttree_file2.root"])
# To add root files with only histograms:
hepconvert.add_histograms("destination.root",
["hist_file1.root", "hist_file2.root"])
To run merge_root
from the command line:
hepconvert merge-root [options] [OUT_FILE] [IN_FILES]
To run add_histograms
:
hepconvert add [options] [OUT_FILE] [IN_FILES]
Find details on each function's CLI options on the readthedocs.
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
hepconvert-1.3.4.tar.gz
(59.1 kB
view hashes)
Built Distribution
hepconvert-1.3.4-py3-none-any.whl
(27.1 kB
view hashes)
Close
Hashes for hepconvert-1.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 809861002fbe4c0e2e7af036ceffd94bfe65216527454b3c1887a358607d1ee5 |
|
MD5 | 25862571bed260c6891e2075b9c9b25d |
|
BLAKE2b-256 | 29f931d12e73da589d7a9801b171314930d7b136ef180d02b216551d7354c4a9 |