Skip to content

Commit 77a1b1f

Browse files
authored
fix: rm plotting functions + make CI work for non-CUDA devices (#13)
* Users should use the plotting libraries to plot hists on CPU * Remove references + fix test suite * Skip module for CUDARuntimeError * Add a dummy test for pytest
1 parent 3a747b6 commit 77a1b1f

File tree

10 files changed

+23
-1462
lines changed

10 files changed

+23
-1462
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
[![Conda latest release][conda-version]][conda-link]
1414
[![LICENSE][license-badge]][license-link] [![Scikit-HEP][sk-badge]][sk-link]
1515

16-
`cuda-histogram` is a histogram filling, transformation, and plotting package
17-
for GPUs. The package follows [UHI](https://uhi.readthedocs.io) and keeps its
18-
API similar to [boost-histogram](https://github.com/scikit-hep/boost-histogram)
19-
and [hist](https://github.com/scikit-hep/hist).
16+
`cuda-histogram` is a histogram filling package for GPUs. The package follows
17+
[UHI](https://uhi.readthedocs.io) and keeps its API similar to
18+
[boost-histogram](https://github.com/scikit-hep/boost-histogram) and
19+
[hist](https://github.com/scikit-hep/hist).
2020

2121
The package is under active development at the moment.
2222

docs/api/cuda_histogram.plot.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/api/cuda_histogram.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ Submodules
88
:maxdepth: 3
99

1010
cuda_histogram.hist_tools
11-
cuda_histogram.plot

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def tests(session: nox.Session) -> None:
3030
"""
3131
Run the unit and regular tests.
3232
"""
33-
session.install(".[test,dev,plot,gpu]")
33+
session.install(".[test,dev]")
3434
session.run("pytest", *session.posargs)
3535

3636

pyproject.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ dependencies = [
4141
"boost-histogram",
4242
]
4343
[project.optional-dependencies]
44-
plot = [
45-
"matplotlib>=3",
46-
"mplhep>=0.1.18",
47-
"bokeh!=3.0.*,>=2.4.2",
48-
]
49-
test = [
50-
"uproot>=5.3.0,!=5.3.3,!=5.3.4,!=5.3.5",
51-
"coffea>=2024.6.0"
52-
]
5344
dev = [
5445
"pre-commit",
5546
"pytest>=6",

src/cuda_histogram/__init__.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
`cuda-histogram` is a histogram filling, transformation, and plotting package for GPUs.
2+
`cuda-histogram` is a histogram filling package for GPUs.
33
44
The package follows `UHI <https://uhi.readthedocs.io>`__ and keeps its API similar to
55
`boost-histogram <https://github.com/scikit-hep/boost-histogram>`__
@@ -9,30 +9,14 @@
99
from __future__ import annotations
1010

1111
from cuda_histogram.hist_tools import Bin, Cat, Hist, Interval, StringBin
12-
from cuda_histogram.plot import (
13-
clopper_pearson_interval,
14-
normal_interval,
15-
plot1d,
16-
plot2d,
17-
plotgrid,
18-
plotratio,
19-
poisson_interval,
20-
)
2112

2213
from ._version import version as __version__
2314

24-
__all__ = [
15+
__all__: list[str] = [
2516
"Hist",
2617
"Bin",
2718
"Interval",
2819
"Cat",
2920
"StringBin",
30-
"poisson_interval",
31-
"clopper_pearson_interval",
32-
"normal_interval",
33-
"plot1d",
34-
"plotratio",
35-
"plot2d",
36-
"plotgrid",
3721
"__version__",
3822
]

0 commit comments

Comments
 (0)