Socket
Book a DemoInstallSign in
Socket

hepconvert

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hepconvert

File conversion package.

pipPyPI
Version
1.4.0
Maintainers
1

Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

GitHub Discussion

The hepconvert library is a bridge between columnar file formats, currently ROOT, and Parquet and soon will include 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

To install with Conda through conda-forge:

conda install -c conda-forge 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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts