Skip to content

Commit 5e25391

Browse files
committed
docs
1 parent 3e5ede6 commit 5e25391

File tree

7 files changed

+24
-49
lines changed

7 files changed

+24
-49
lines changed

docs/api.rst

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
dask_histogram
22
--------------
33

4+
dask.array/NumPy-like API
5+
^^^^^^^^^^^^^^^^^^^^^^^^^
6+
7+
.. currentmodule:: dask_histogram
8+
9+
.. autosummary::
10+
:toctree: generated/
11+
12+
histogram
13+
histogram2d
14+
histogramdd
15+
16+
417
Collection API
518
^^^^^^^^^^^^^^
619

@@ -14,17 +27,6 @@ Collection API
1427
factory
1528
partitioned_factory
1629

17-
dask.array/NumPy-like API
18-
^^^^^^^^^^^^^^^^^^^^^^^^^
19-
20-
.. currentmodule:: dask_histogram.routines
21-
22-
.. autosummary::
23-
:toctree: generated/
24-
25-
histogram
26-
histogram2d
27-
histogramdd
2830

2931
boost-histogram-like API
3032
^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,26 +37,3 @@ boost-histogram-like API
3537
:toctree: generated/
3638

3739
Histogram
38-
39-
..
40-
Reference
41-
^^^^^^^^^
42-
43-
.. currentmodule:: dask_histogram
44-
.. autofunction:: factory
45-
.. autoclass:: AggHistogram
46-
:members:
47-
:autosummary:
48-
.. autoclass:: PartitionedHistogram
49-
:members:
50-
:autosummary:
51-
52-
.. currentmodule:: dask_histogram.routines
53-
.. autofunction:: histogram
54-
.. autofunction:: histogram2d
55-
.. autofunction:: histogramdd
56-
57-
.. currentmodule:: dask_histogram.boost
58-
.. autoclass:: Histogram
59-
:members:
60-
:autosummary:

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"sphinx.ext.mathjax",
3939
"sphinx.ext.viewcode",
4040
"sphinx.ext.todo",
41-
"autodocsumm",
4241
]
4342

4443
# Add any paths that contain templates here, relative to this directory.

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
dask[dataframe]
22
sphinx
3-
autodocsumm
43
dask-sphinx-theme

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,20 @@ classifiers = [
2626
"Topic :: Scientific/Engineering :: Physics",
2727
]
2828
dependencies = [
29-
"boost-histogram>=1.2.0",
29+
"boost-histogram>=1.3.2",
3030
"dask>=2021.03.0",
3131
]
3232
dynamic = ["version"]
3333

3434
[project.optional-dependencies]
3535
complete = [
36-
"autodocsumm",
3736
"dask-sphinx-theme >=3.0.2",
3837
"dask[dataframe]",
3938
"hist",
4039
"pytest",
4140
"sphinx >=4.0.0",
4241
]
4342
docs = [
44-
"autodocsumm",
4543
"dask-sphinx-theme >=3.0.2",
4644
"dask[dataframe]",
4745
"sphinx >=4.0.0",

src/dask_histogram/boost.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class Histogram(bh.Histogram, family=dask_histogram):
4646
4747
See Also
4848
--------
49-
histogram
50-
histogram2d
51-
histogramdd
49+
dask_histogram.histogram
50+
dask_histogram.histogram2d
51+
dask_histogram.histogramdd
5252
5353
Examples
5454
--------
@@ -304,7 +304,7 @@ def __repr__(self) -> str:
304304
)
305305
ret += f",{newline}".join(repr(ax) for ax in self.axes)
306306
ret += "{comma}{newline}storage={storage}".format(
307-
storage=self._storage_type(),
307+
storage=self.storage_type(),
308308
newline=newline
309309
if len(self.axes) > 1
310310
else " "

src/dask_histogram/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def clone(histref: bh.Histogram | None = None) -> bh.Histogram:
5353
"""
5454
if histref is None:
5555
return bh.Histogram()
56-
return bh.Histogram(*histref.axes, storage=histref._storage_type())
56+
return bh.Histogram(*histref.axes, storage=histref.storage_type())
5757

5858

5959
def _blocked_sa(
@@ -308,7 +308,7 @@ def histref(self) -> bh.Histogram:
308308
@property
309309
def _storage_type(self) -> type[bh.storage.Storage]:
310310
"""Storage type of the histogram."""
311-
return self.histref._storage_type
311+
return self.histref.storage_type
312312

313313
@property
314314
def ndim(self) -> int:
@@ -723,7 +723,7 @@ def to_dask_array(agghist: AggHistogram, flow: bool = False, dd: bool = False) -
723723
shape = agghist.histref.shape
724724
if flow:
725725
shape = tuple(i + 2 for i in shape)
726-
int_storage = agghist.histref._storage_type in (
726+
int_storage = agghist.histref.storage_type in (
727727
bh.storage.Int64,
728728
bh.storage.AtomicInt64,
729729
)

tests/test_boost.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_obj_1D(use_weights):
2222
h.fill(x, weight=weights)
2323
h.compute()
2424

25-
control = bh.Histogram(*h.axes, storage=h._storage_type())
25+
control = bh.Histogram(*h.axes, storage=h.storage_type())
2626
if use_weights:
2727
control.fill(x.compute(), weight=weights.compute())
2828
else:
@@ -52,7 +52,7 @@ def test_obj_2D(use_weights):
5252
h.fill(x, y, weight=weights)
5353
h.compute()
5454

55-
control = bh.Histogram(*h.axes, storage=h._storage_type())
55+
control = bh.Histogram(*h.axes, storage=h.storage_type())
5656
if use_weights:
5757
control.fill(x.compute(), y.compute(), weight=weights.compute())
5858
else:
@@ -82,7 +82,7 @@ def test_obj_3D_rectangular(use_weights):
8282
h.fill(x, weight=weights)
8383
h.compute()
8484

85-
control = bh.Histogram(*h.axes, storage=h._storage_type())
85+
control = bh.Histogram(*h.axes, storage=h.storage_type())
8686
if use_weights:
8787
control.fill(*(x.compute().T), weight=weights.compute())
8888
else:

0 commit comments

Comments
 (0)