Skip to content

Commit abaf898

Browse files
authored
Prepare for 0.7.0 (#335)
* Preparing for 0.7.0 * Fixing cpp module default(s) * Drop one more holdover from 0.5 * Update release procedure
1 parent 18d428b commit abaf898

File tree

6 files changed

+7
-16
lines changed

6 files changed

+7
-16
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ end
180180

181181
- Finish merging open PRs that will go into VERSION
182182
- Add most recent changes to the Changelog
183-
- Replace "in development" header with VERSION
184-
- (Next release only: remove banner in README)
185183
- Sync master with develop through a PR
186184
- Make sure the full wheel build runs on master without issues (will happen in
187185
previous step)

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414

1515
Python bindings for [Boost::Histogram][] ([source][Boost::Histogram source]), a C++14 library. This should become one of the [fastest libraries][] for histogramming, while still providing the power of a full histogram object.
1616

17-
> ## Version 0.6.2: Public beta
18-
>
19-
> Please feel free to try out boost-histogram and give feedback.
20-
> Join the [discussion on gitter][gitter-link] or [open an issue](https://github.com/scikit-hep/boost-histogram/issues)!
21-
22-
2317
## Installation
2418

2519
You can install this library from [PyPI](https://pypi.org/project/boost-histogram/) with pip:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from pkg_resources import get_distribution, DistributionNotFound
3333

3434
try:
35-
version = get_distribution(__name__).version
35+
version = get_distribution("boost_histogram").version
3636
except DistributionNotFound:
3737
pass # No version (latest/git hash)
3838

include/bh_python/register_histogram.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ auto register_histogram(py::module& m, const char* name, const char* desc) {
145145
throw std::out_of_range(
146146
"The axis value must be less than the rank");
147147
},
148-
"i"_a,
148+
"i"_a = 0,
149149
py::keep_alive<0, 1>())
150150

151151
.def("at",

src/boost_histogram/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,3 @@
3434
from .tag import loc, rebin, sum, underflow, overflow
3535

3636
from .version import version as __version__
37-
38-
# Workarounds for smooth transitions from 0.5 series. Will be removed after 0.6.
39-
40-
from .tag import project

src/boost_histogram/cpp/algorithm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
slice.__module__ = "boost_histogram.cpp"
3939

4040

41-
def sum(histogram, flow=False):
42-
"""Sum a histogram, optionally with flow bins"""
41+
def sum(histogram, flow=True):
42+
"""\
43+
Sum a histogram, optionally without flow bins. The default matches the C++
44+
default of all bins included in the sum.
45+
"""
4346
return histogram._sum(flow)
4447

4548

0 commit comments

Comments
 (0)