You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This replaces reduce with a new dictionary UHI syntax. Changes:
* Adds the missing axis=0 shortcut in cpp mode
* Adds a warning to the developer Regular axis shortcut
* Removes the boost_histogram.algorithm module
* Implements a Python interface to indexing using a dict
* Adds a bh.tag.Slicer() shortcut for slicing in the dict
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ If you are on a Linux system that is not part of the "many" in manylinux, such a
150
150
151
151
#### Conda-Forge
152
152
153
-
The boost-histogram package is available on Conda-Forge, as well. All supported versions are available with the exception of Windows + Python 2.7, which cannot build due to the age of the compiler. Please use Pip if you *really* need Python 2.7 on Windows. You will also need the VS 2015 distributable, as described above.
153
+
The boost-histogram package is available on Conda-Forge, as well. All supported versions are available with the exception of Windows + Python 2.7, which cannot built due to the age of the compiler. Please use Pip if you *really* need Python 2.7 on Windows. You will also need the VS 2015 distributable, as described above.
154
154
155
155
```
156
156
conda install -c conda-forge boost-histogram
@@ -162,7 +162,7 @@ For a source build, for example from an "sdist" package, the only requirements a
162
162
163
163
If you are using Python 2.7 on Windows, you will need to use a recent version of Visual studio and force distutils to use it, or just upgrade to Python 3.6 or newer. Check the PyBind11 documentation for [more help](https://pybind11.readthedocs.io/en/stable/faq.html#working-with-ancient-visual-studio-2009-builds-on-windows). On some Linux systems, you may need to use a newer compiler than the one your distribution ships with.
164
164
165
-
Having Numpy before building is recommended (enables multithreaded builds). Boost 1.71 is not required or needed (this only depends on included header-only dependencies).This library is under active development; you can install directly from GitHub if you would like.
165
+
Having Numpy before building is recommended (enables multithreaded builds). Boost is not required or needed (this only depends on included header-only dependencies).This library is under active development; you can install directly from GitHub if you would like.
Copy file name to clipboardExpand all lines: docs/usage/indexing.rst
+36-9Lines changed: 36 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,14 @@
3
3
Indexing
4
4
========
5
5
6
-
This is the design document for Unified Histogram Indexing (UHI). Much of the original plan is now implemented in boost-histogram.
7
-
Other histogramming libraries can implement support for this as well, and the "tag" functors, like ``sum`` and ``loc`` can be
8
-
used between libraries.
6
+
This is the design document for Unified Histogram Indexing (UHI). Much of the
7
+
original plan is now implemented in boost-histogram. Other histogramming
8
+
libraries can implement support for this as well, and the "tag" functors, like
9
+
``sum`` and ``loc`` can be used between libraries.
9
10
10
-
The following examples assume you have imported ``loc``, ``sum``, ``rebin``, ``end``, ``underflow``, and ``overflow`` from boost-histogram or any other
11
-
library that implements UHI.
11
+
The following examples assume you have imported ``loc``, ``sum``, ``rebin``,
12
+
``underflow``, and ``overflow`` from boost-histogram or any other library that
13
+
implements UHI.
12
14
13
15
Access:
14
16
^^^^^^^
@@ -31,9 +33,9 @@ Slicing:
31
33
h2 = h[loc(v):] # Slices can be in data coordinates, too
0 commit comments