Skip to main content

No project description provided

Project description

babyyoda

PyPI - Version PyPI - Python Version CI/CD Code Coverage


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.

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

babyyoda-0.0.8.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

babyyoda-0.0.8-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

Details for the file babyyoda-0.0.8.tar.gz.

File metadata

  • Download URL: babyyoda-0.0.8.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for babyyoda-0.0.8.tar.gz
Algorithm Hash digest
SHA256 59171192a899a1b77b27cd1091771925103ac1767682ac4fc1be40b37aa9fb45
MD5 12afba90f7173617b076af64edfc8412
BLAKE2b-256 ba64fa953267b7a6357a8ba733c275b575cc72fddd9a896ce36aaf89d10e8285

See more details on using hashes here.

File details

Details for the file babyyoda-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: babyyoda-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 53.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for babyyoda-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 69366c2581e79025199dfb683121a88d8b30023e1f907263d6deac61bd5a4240
MD5 db2b08f981cc841824e8350e4e0880d1
BLAKE2b-256 84d9199c6e070508b696225f0099ffbd1effecd594ecc0e5131c2c86bf9f87d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page