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 Does not support UHI/PlottableProtocol, only boost-histogram
uproot WIP: 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.7.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.7-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: babyyoda-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 5cb17b32b18116edad5ef936f6d7acc3e7d09cf18dfca5369cbd640940cb15e9
MD5 6c3ff98fb053d867bcaa4fec5390d2ee
BLAKE2b-256 f7ff54401e0b0da9bf3c117e8017e32e910d3464c166a4d915a8b4d117d98460

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for babyyoda-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dd604fe0b10830d16c6ced1b55c4a219bb78df7d5887fc2b17315e0db499c750
MD5 c813210a425aee2f782e4a805e497c67
BLAKE2b-256 9f94cf6e6b6ab0384403d1cf2d97e2b85f000533a19acb8100c13eff417447dd

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