babyyoda
Differences to yoda
babyyoda has the advantages
- works with just Python 3 and can be installed with pip.
- makes it easy to manipulate the bin contents (compared to YODA-1).
- tries to adhere to the UHI standard.
- is easy to plot in a Jupyter notebook.
- keeps data representation close to the yoda file format.
and the disadvantages to yoda are that it
- is slower.
- is not as feature complete.
- is not as well tested.
- only has histogram support.
Installation
pip install babyyoda
Design
babyyoda is designed to be a drop-in replacement for yoda with a few key differences:
import babyyoda as yoda
with UHI support.
It can use either yoda (C++) or babyyoda.grogu (Python) as backend.
At some point the UHI support might be adapted by the original yoda package.
For a less feature complete version, babyyoda.grogu is a simpler python drop-in replacement for yoda without UHI:
import babyyoda.grogu as yoda
or force yoda use with
import babyyoda.yoda as yoda
Interfaces
| Interface | Status | Examples and Notes |
|---|---|---|
| histoprint | ✅ | histo1d |
| mplhep | ✅ | histo1d, histo2d |
| plothist | ❌ | WIP: https://github.com/cyrraz/plothist/issues/98 Does not support UHI/PlottableProtocol, only boost-histogram() |
| uproot | ❌ | WIP: https://github.com/scikit-hep/uproot5/issues/1339 histo1d |
| hist | ✅ | histo1d, histo2d |
| boost-histogram | ✅ | histo1d, histo2d |
| cuda-histogram | ❔ | |
| ROOT | ❔ |
License
babyyoda is distributed under the terms of the BSD-3-Clause license.
Metadata
Release files for babyyoda 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| babyyoda-0.0.8.tar.gz | 1.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| babyyoda-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.7 MB
Release files / babyyoda-0.0.8.tar.gz
| Download URL | babyyoda-0.0.8.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59171192a899a1b77b27cd1091771925103ac1767682ac4fc1be40b37aa9fb45
|
|
BLAKE2b-256 checksum How to use checksums |
ba64fa953267b7a6357a8ba733c275b575cc72fddd9a896ce36aaf89d10e8285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / babyyoda-0.0.8-py3-none-any.whl
| Download URL | babyyoda-0.0.8-py3-none-any.whl |
|---|---|
| Size | 53.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69366c2581e79025199dfb683121a88d8b30023e1f907263d6deac61bd5a4240
|
|
BLAKE2b-256 checksum How to use checksums |
84d9199c6e070508b696225f0099ffbd1effecd594ecc0e5131c2c86bf9f87d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|