Boost-histogram

Latest version: v1.4.1

Safety actively analyzes 618281 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.4.1

Features

- NumPy 2 support. [918][]
- 32-bit Windows Python 3.12 wheel added (matching NumPy). [920][]

Bugfixes

- Support filling Integer axes with unsigned integers [917][]
- Avoid triggering NumPy 2 dev release install on Python 3.12. [914][]

Backend and docs

- Add missing API docs [909][]
- Use boost 1.84 [920][]

[909]: https://github.com/scikit-hep/boost-histogram/pull/909
[914]: https://github.com/scikit-hep/boost-histogram/pull/914
[917]: https://github.com/scikit-hep/boost-histogram/pull/917
[918]: https://github.com/scikit-hep/boost-histogram/pull/918
[920]: https://github.com/scikit-hep/boost-histogram/pull/920

New Contributors
* Saransh-cpp made their first contribution in https://github.com/scikit-hep/boost-histogram/pull/909
* veprbl made their first contribution in https://github.com/scikit-hep/boost-histogram/pull/917

**Full Changelog**: https://github.com/scikit-hep/boost-histogram/compare/v1.4.0...v1.4.1

1.4.0

This release supports Python 3.7-3.12. You can now turn off the flow bin on Int/Str Categories, and filling an integer-based axis requires an integer array - a floating point array is disallowed (a single float was always disallowed), due to issues with rounding around 0.

Features

- `overflow=False` is now supported for `IntCategory` and `StrCategory`. [883][]

Changes

- Using `_storage_type` now produces a `DeprecationWarning` instead of `PendingDeprecationWarning`. [801][]
- Updated Boost to 1.82. The upper limit on Regular axes without overflow is now inclusive like NumPy. [802][]
- Produce more detailed error messages on C++ errors [848][]

Bugfixes

- Make filling an integer axis with a float array (also) an error. [876][]
- Include `-latomic` on `armv7l` [823][]

Backend and docs

- Add Python 3.12 support and binary wheels, also latest PyPy. `manylinux2014+` required. [880][], [878][]
- Drop Python 3.6 support. [798][]
- Drop pre-built wheels for 32-bit Linux (NumPy also dropped). [849][]
- Add testing for WebAssembly (Pyodide). [850][]
- Use Ruff [829][]

[798]: https://github.com/scikit-hep/boost-histogram/pull/798
[801]: https://github.com/scikit-hep/boost-histogram/pull/801
[802]: https://github.com/scikit-hep/boost-histogram/pull/802
[823]: https://github.com/scikit-hep/boost-histogram/pull/823
[829]: https://github.com/scikit-hep/boost-histogram/pull/829
[848]: https://github.com/scikit-hep/boost-histogram/pull/848
[849]: https://github.com/scikit-hep/boost-histogram/pull/849
[850]: https://github.com/scikit-hep/boost-histogram/pull/850
[876]: https://github.com/scikit-hep/boost-histogram/pull/876
[878]: https://github.com/scikit-hep/boost-histogram/pull/878
[880]: https://github.com/scikit-hep/boost-histogram/pull/880
[883]: https://github.com/scikit-hep/boost-histogram/pull/883

New Contributors
* matthewfeickert made their first contribution in https://github.com/scikit-hep/boost-histogram/pull/823

**Full Changelog**: https://github.com/scikit-hep/boost-histogram/compare/v1.3.2...v1.4.0

1.3.2

1.3 is the final release series supporting Python 3.6 and manylinux1 - manylinux2010. The next release will move to non EoL Python and manylinux images only.

Changes

* Added `storage_type()` as public API [781][], with pending deprecation for `_storage_type`. [786][] [790][]
* Better errors generated for missing or incorrect sample to mean storage. [782][]
* Better error message when views are set with an incompatible array. [794][]

Bug fixes

* Patch broken sum with fully empty (0 bin) axis. [718][]
* Fix zero range `bh.numpy.histogram` to match `numpy.histogram` behavior. [721][]
* Avoid triggering `__init__` when copying (better support for subclasses with custom init's). [759][]
* `IntCategory` now supports numbers larger than 2<sup>24</sup> (now 2<sup>53</sup>). [792][]
* Pick a subset now supported inside a larger expression. [793][]

Backend and docs

* Minor optimizations for UFuncs. [771][]
* Added Python 3.11 wheels. [789][]
* Include PyPy 3.9 binary wheels. [730][]
* Using pybind11 2.10 [767][]
* Explicit `reset()` documentation. [783][]
* Minor cleanup and further removal of a little Python 2 back-compat code.
* Warnings have better stacklevel settings.

[718]: https://github.com/scikit-hep/boost-histogram/pull/718
[721]: https://github.com/scikit-hep/boost-histogram/pull/721
[730]: https://github.com/scikit-hep/boost-histogram/pull/730
[759]: https://github.com/scikit-hep/boost-histogram/pull/759
[767]: https://github.com/scikit-hep/boost-histogram/pull/767
[771]: https://github.com/scikit-hep/boost-histogram/pull/771
[781]: https://github.com/scikit-hep/boost-histogram/pull/781
[782]: https://github.com/scikit-hep/boost-histogram/pull/782
[783]: https://github.com/scikit-hep/boost-histogram/pull/783
[786]: https://github.com/scikit-hep/boost-histogram/pull/786
[789]: https://github.com/scikit-hep/boost-histogram/pull/789
[790]: https://github.com/scikit-hep/boost-histogram/pull/790
[792]: https://github.com/scikit-hep/boost-histogram/pull/792
[793]: https://github.com/scikit-hep/boost-histogram/pull/793
[794]: https://github.com/scikit-hep/boost-histogram/pull/794

1.3.1

Bug fixes

* Fixed regression with invalid `.project` input causing segfaults. [708][]
* Minor skips for specific tests on ppc64le, primarily for a NumPy bug. [707][]
* Avoid using EH for program control, better on Pyodide. [709][]
* Fix regression with exact float not being accepted for `.index` for `IntCategory`
in 1.3.0. Add `hist` nox session to check downstream (manually for the
moment). [710][]

[707]: https://github.com/scikit-hep/boost-histogram/pull/707
[708]: https://github.com/scikit-hep/boost-histogram/pull/708
[709]: https://github.com/scikit-hep/boost-histogram/pull/709
[710]: https://github.com/scikit-hep/boost-histogram/pull/710

1.3.0

User changes

* PyPy 3.8 now supported with binary wheels. [677][]
* The GIL is released a little more often now. [662][]
* AxesTuple does not allow construction of non-axes. [680][]
* KeyError is now thrown when accessing a non-existent item in a Category Axis [689][]
* WeightedViews now support `np.cumsum` [699][]

Bug fixes

* Fixed WeightedMean storages producing NaN for `.variances()` [695][]
* Modify local include slightly to enable WebAssembly compilation in Pyodide [702][]

Developer changes

* Use PyLint in CI to check for some style issues [690][]
* Developer (CMake) installs no longer require toml [698][]


[662]: https://github.com/scikit-hep/boost-histogram/pull/662
[677]: https://github.com/scikit-hep/boost-histogram/pull/677
[680]: https://github.com/scikit-hep/boost-histogram/pull/680
[689]: https://github.com/scikit-hep/boost-histogram/pull/689
[690]: https://github.com/scikit-hep/boost-histogram/pull/690
[695]: https://github.com/scikit-hep/boost-histogram/pull/695
[698]: https://github.com/scikit-hep/boost-histogram/pull/698
[699]: https://github.com/scikit-hep/boost-histogram/pull/699
[702]: https://github.com/scikit-hep/boost-histogram/pull/702

1.2.1

User changes
* musllinux wheels now provided along with manylinux [656][]

Bug fixes
* Fixed single-element negative growth fill [654][]

Developer changes
* No longer require Docker for clang-format, runs online too [610][]
* Using pybind11 2.8.0 [658][]

[610]: https://github.com/scikit-hep/boost-histogram/pull/610
[654]: https://github.com/scikit-hep/boost-histogram/pull/654
[656]: https://github.com/scikit-hep/boost-histogram/pull/656
[658]: https://github.com/scikit-hep/boost-histogram/pull/658

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.