Skip to content
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
76b1936
Warning for uninitialized storage
henryiii Nov 7, 2019
955709d
Drop free functions, add __module__ and __all__
henryiii Nov 8, 2019
0238d59
Fix a few more missing __module__s
henryiii Nov 8, 2019
212e773
Clean up __all__
henryiii Nov 9, 2019
0c86c9e
Remove .reduce and .project from cpp class
henryiii Nov 9, 2019
3753122
Move Axis repr to Python and add transforms
henryiii Nov 10, 2019
8572c4d
Lookup for transforms works
henryiii Nov 10, 2019
a5053af
Using repr from Python for Histogram
henryiii Nov 10, 2019
c8c31b0
Use Boost.Histogram << as repr for cpp.histogram
henryiii Nov 10, 2019
8b9d7ae
Helpful error when C++ code not built
henryiii Nov 10, 2019
944e4bb
Use register for Axes
henryiii Nov 10, 2019
48b8e8b
Use simpler storage scheme
henryiii Nov 10, 2019
1ab958c
Remove final _to_ function
henryiii Nov 10, 2019
917c288
CPP histogram returns CPP axis now
henryiii Nov 10, 2019
7fe70ec
Revamp decorator system, now could be useful in other packages
henryiii Nov 13, 2019
f4af69c
Adding subclassing test
henryiii Nov 14, 2019
2dc85f2
Adding Storage/Transforms to the register system
henryiii Nov 14, 2019
467a146
Simplify: no longer require @register for direct subclasses
henryiii Nov 14, 2019
ad039ab
Unicode strings in repr on Python 2 (fix test)
henryiii Nov 14, 2019
8b6a537
Simplify use of _compute_common_index
henryiii Nov 14, 2019
680209b
Drop a few extra __module__ sets that were superfluous
henryiii Nov 14, 2019
0304317
Fix __module__ on accumulators and slicing
henryiii Nov 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions boost_histogram/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,43 @@
from __future__ import absolute_import, division, print_function

# Sadly, some tools (IPython) do not respect __all__
# as a list of public items in a module. So we need
# to delete / hide any extra items manually.
del absolute_import, division, print_function

__all__ = (
"Histogram",
"axis",
"storage",
"accumulators",
"algorithm",
"utils",
"numpy",
"loc",
"rebin",
"sum",
"underflow",
"overflow",
"__version__",
)


try:
from . import _core
except ImportError as err:
err.msg += (
"\nDid you forget to compile? Use CMake or Setuptools to build, see the readme"
)
raise err


from ._internal.hist import Histogram
from . import axis, storage, accumulators, algorithm, numpy
from . import axis, storage, accumulators, algorithm, utils, numpy
from .tag import loc, rebin, sum, underflow, overflow

from .version import __version__

# Workarounds for smooth transitions from 0.5 series. Will be removed after 0.6.
histogram = Histogram

from .version import __version__

from .tag import project

Expand Down
Loading