A tiny library to read HESS pixel info from ROOT files.
Project description
hesspix is a tiny library to read HESS pixel info from ROOT files.
Usage
It’s as easy as:
>>> import hesspix as hp >>> r = hp.CT5Reader("gamma_20deg_180deg_run4151.dst.root") >>> r.get_event(0) rec.array([(696, 15.363794 , 3, 21.796875), (702, 9.463919 , 3, 21.828125), (854, 8.21018 , 3, 20.34375 ), (862, 7.8234243, 3, 21.59375 ), (880, 19.85337 , 3, 20.578125), (889, 19.890633 , 3, 19.875 ), (890, 8.490422 , 3, 18.890625), (897, 11.9091625, 3, 20.46875 ), (898, 8.9501295, 3, 20.265625), (899, 18.064999 , 3, 20. )], dtype=[('id', '<i4'), ('intensity', '>f4'), ('channel', 'i1'), ('time', '>f4')]) >>> for event in r: ...
Installation
It is recommended to first create an isolated virtualenvironment to not interfere with other Python projects:
git clone https://git.ecap.work/tgal/hesspix cd hesspix python3 -m venv venv . venv/bin/activate
Install directly from the Git server via pip (no cloneing needed):
pip install git+https://git.ecap.work/tgal/hesspix
Or clone the repository and run:
make install
To install all the development dependencies, in case you want to contribute or run the test suite:
make install-dev make test
—
Created with ``cookiecutter https://git.km3net.de/templates/python-project``
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hesspix-0.1.1.tar.gz
(40.1 kB
view details)
File details
Details for the file hesspix-0.1.1.tar.gz
.
File metadata
- Download URL: hesspix-0.1.1.tar.gz
- Upload date:
- Size: 40.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5cedf47ff616d5ff7b4434ce8516007baebc4141eafe636513b43f9cd80d2bb |
|
MD5 | 87ee89e84674cb969ca0b64ade9a55c6 |
|
BLAKE2b-256 | 8ce83187529134f4a7b27a7a1d1710594049952a089a552a291be07896443f2c |