Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wip): cupy histograms #1095

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ rucio = [
"rucio-clients>=32;python_version>'3.8'",
"rucio-clients<32;python_version<'3.9'",
]
gpu = [
"cupy-cuda12x>=13.1.0",
"numba-cuda>=0.0.13",
]
dev = [
"pre-commit",
"flake8",
Expand Down
Empty file added src/coffea/jitters/__init__.py
Empty file.
38 changes: 38 additions & 0 deletions src/coffea/jitters/hist/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"""Histogramming tools

`coffea.hist` is a histogram filling, transformation, and plotting sub-package, utilizing
numpy arrays for storage and matplotlib plotting routines for visualization.

Features found in this package are similar to those found in
packages such as `histbook <https://github.com/scikit-hep/histbook>`__ (deprecated),
`boost-histogram <https://github.com/scikit-hep/boost-histogram>`__ (in development),
`physt <https://github.com/scikit-hep/boost-histogram>`__, and built-in numpy
`histogram <https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html>`__ utilities.

"""

from coffea.jitters.hist.hist_tools import Bin, Cat, Hist, Interval, StringBin
from coffea.jitters.hist.plot import (
clopper_pearson_interval,
normal_interval,
plot1d,
plot2d,
plotgrid,
plotratio,
poisson_interval,
)

__all__ = [
"Hist",
"Bin",
"Interval",
"Cat",
"StringBin",
"poisson_interval",
"clopper_pearson_interval",
"normal_interval",
"plot1d",
"plotratio",
"plot2d",
"plotgrid",
]
Loading
Loading