Commit 20b5dfd
authored
Class families (#200)
* Warning for uninitialized storage
* Drop free functions, add __module__ and __all__
* Fix a few more missing __module__s
* Clean up __all__
* Remove .reduce and .project from cpp class
* Move Axis repr to Python and add transforms
* Lookup for transforms works
* Using repr from Python for Histogram
* Use Boost.Histogram << as repr for cpp.histogram
* Helpful error when C++ code not built
* Use register for Axes
* Use simpler storage scheme
* Remove final _to_ function
* CPP histogram returns CPP axis now
* Revamp decorator system, now could be useful in other packages
* Adding subclassing test
* Adding Storage/Transforms to the register system
* Simplify: no longer require @register for direct subclasses
* Unicode strings in repr on Python 2 (fix test)
* Simplify use of _compute_common_index
* Drop a few extra __module__ sets that were superfluous
* Fix __module__ on accumulators and slicing1 parent 9398302 commit 20b5dfd
File tree
34 files changed
+982
-551
lines changed- boost_histogram
- _internal
- axis
- cpp
- axis
- include/boost/histogram/python
- src
- tests
34 files changed
+982
-551
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
5 | 34 | | |
6 | | - | |
| 35 | + | |
7 | 36 | | |
| 37 | + | |
8 | 38 | | |
9 | 39 | | |
10 | 40 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 41 | | |
15 | 42 | | |
16 | 43 | | |
| |||
0 commit comments