Simple and fast histogramming in Python accelerated with OpenMP.
MIT License
scikit-build-core
for packaging systemmp11
versionPublished by douglasdavis about 2 years ago
Published by douglasdavis about 2 years ago
Published by douglasdavis over 2 years ago
density=True
.Published by douglasdavis about 3 years ago
Published by douglasdavis over 3 years ago
pygram11.config
module.pygram11.without_omp
decoratorpygram11.with_omp
decoratorpygram11.disable_omp
context managerpygram11.force_omp
context managercons_var
) for returning variance instead of standard error.Published by douglasdavis over 3 years ago
Renamed internal Python files hist.py
and misc.py
to _hist.py
and _misc.py
, respectively.
The contents of these modules are brought in to the main pygram11
module namespace by imports in __init__.py
(the submodules themselves are not meant to be part of the public API). This avoids tab completions of pygram11.hi<tab>
yielding pygram11.hist
when we actually want pygram11.histogram
.
Published by douglasdavis over 3 years ago
Two convenience functions added to the pygram11
namespace:
bin_centers
: returns an array representing the the center of histogram bins given a total number of bins and an axis range or given existing bin edges.bin_edges
: returns an array representing bin edges given a total number of bins and an axis range.Published by douglasdavis over 3 years ago
weights=None
now return None
as the second return. Previously the uncertainty was returned (which is just the square-root of the bin heights); now users can take the square-root themselves, and the back-end does not waste cycles tracking the uncertainty since it's trivial for unweighted histograms.np.float64
and np.float32
were the only supported array types, and we converted non-floating point input). Now signed and unsigned integer inputs (both 64 and 32 bit) are supported.
TypeError
is now raised. This library prioritizes performance; hidden performance hits are explicitly avoided.boost::mp11
as a submodule.libomp
from Homebrew installed at /opt/homebrew
.master
branch to main
.Published by douglasdavis over 3 years ago
First release candidate for 0.11.0
Published by douglasdavis about 4 years ago
Published by douglasdavis about 4 years ago
pybind11
2.6 series.std::size_t
-> pybind11::ssize_t
for sizes) (https://github.com/pybind/pybind11/pull/2293)cibuildwheel
to build wheels.Published by douglasdavis about 4 years ago
Test new release triggering wheel builds.
Published by douglasdavis over 4 years ago
Renamed internal Python module from histogram
to hist
. This avoids a clash with the module function of the same name. Some IDE features were confused.
Published by douglasdavis over 4 years ago
Fixes issue with MANIFEST.in
(a header was missing) to build from source.
Published by douglasdavis over 4 years ago
__init__.py
to histogram.py
, functions are imported in __init__.py
Published by douglasdavis over 4 years ago
Published by douglasdavis over 4 years ago
Public API changes:
omp
function argumentBackend changed:
Other: