ROOTLOADER
Parse simple root files into memory as dictionaries or purpose-built objects. Convert objects into pandas DataFrames for ease of processing.
Installation
Requires ROOT with pyroot installed.
Clone this repository and install
git clone git@github.com:ucn-triumf/rootloader.git
cd rootloader
pip install .
You will need to re-run the last line of the above upon every pull, unless you add the -e flag like this: pip install -e .
Note that this may not work on all systems, particularly windows systems.
Documentation
Example
from rootloader import tfile
# read file
fid = tfile('myfile.root')
# key values can be accessed as attributes or as keys
# say there's a tree named "tree1". We can access it as
tr = fid.tree1
# or
tr = fid['tree1']
# get a pandas dataframe from the tree (the tree is left unaltered)
df = tr.to_dataframe()
# try to convert all file contents to pandas dataframes, and replace keys with these dataframes
fid.to_dataframe()
Metadata
Release files for rootloader 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rootloader-1.4.1.tar.gz | 64.6 kB | Details |
Release files / rootloader-1.4.1.tar.gz
| Download URL | rootloader-1.4.1.tar.gz |
|---|---|
| Size | 64.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6b425cfcfb79aff75896988bf250a3f6a1099ad5848fc50fbd5cd52ae49a0b7
|
|
BLAKE2b-256 checksum How to use checksums |
5f0d5ab007a71edcaac4998cddd7d5d62ea196d1a2f5966a987bccdd6d8fbe38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|