Skip to content

Commit ddc886f

Browse files
committed
Fix a few more missing __module__s
1 parent 589be21 commit ddc886f

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

boost_histogram/_internal/axis.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def widths(self):
119119
return self._ax.widths
120120

121121

122+
Axis.__module__ = "boost_histogram.axis"
123+
124+
122125
class Regular(Axis):
123126
__slots__ = ()
124127
_CLASSES = {
@@ -195,6 +198,9 @@ def __init__(self, bins, start, stop, **kwargs):
195198
raise KeyError("Unsupported collection of options")
196199

197200

201+
Regular.__module__ = "boost_histogram.axis"
202+
203+
198204
class Variable(Axis):
199205
__slots__ = ()
200206
_CLASSES = {
@@ -245,6 +251,9 @@ def __init__(self, edges, **kwargs):
245251
raise KeyError("Unsupported collection of options")
246252

247253

254+
Variable.__module__ = "boost_histogram.axis"
255+
256+
248257
class Integer(Axis):
249258
__slots__ = ()
250259
_CLASSES = {
@@ -298,6 +307,9 @@ def __init__(self, start, stop, **kwargs):
298307
raise KeyError("Unsupported collection of options")
299308

300309

310+
Integer.__module__ = "boost_histogram.axis"
311+
312+
301313
class Category(Axis):
302314
__slots__ = ()
303315
_CLASSES = {
@@ -346,6 +358,9 @@ def __init__(self, categories, **kwargs):
346358
raise KeyError("Unsupported collection of options")
347359

348360

361+
Category.__module__ = "boost_histogram.axis"
362+
363+
349364
def _to_axis(ax):
350365
for base in _walk_subclasses(Axis):
351366
if ax.__class__ in base._CLASSES:

boost_histogram/_internal/hist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _storage_type(self):
231231
return _to_storage(self._hist._storage_type)
232232

233233

234-
class BoostHistogram(BaseHistogram):
234+
class histogram(BaseHistogram):
235235
axis = BaseHistogram._axis
236236

237237
def rank(self):

boost_histogram/cpp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
__all__ = ("histogram", "axis", "storage", "accumulators", "algorithm", "__version__")
66

7-
from .._internal.hist import BoostHistogram as histogram
7+
from .._internal.hist import histogram
88

99
histogram.__module__ = "boost_histogram.cpp"
1010

0 commit comments

Comments
 (0)