hist icon indicating copy to clipboard operation
hist copied to clipboard

Histogramming for analysis powered by boost-histogram

Results 91 hist issues
Sort by recently updated
recently updated
newest added

**Describe the bug** [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gist/agoose77/4fe664ef94dbf562da20c65f8ca8a9a7/HEAD?labpath=wierd-projection.ipynb) In [this gist](https://gist.github.com/agoose77/4fe664ef94dbf562da20c65f8ca8a9a7), I construct a from-scratch `Hist` object and populate it with some known data. When taking a projection of a slice, the result differs...

Modify all the `code::` directives to `code-block::` in the documentation source, similar to scikit-hep/boost-histogram#729

documentation
good first issue

## How do you want to improve the docs The [Installation section](https://hist.readthedocs.io/en/latest/user-guide/installation.html) doesn't explain how to run tests. The standard pytest command doesn't find tests.

documentation

We're currently migrating our analysis framework from using coffea histograms [1] to this package, and one difference we've encountered is that while in coffea the `values` method would give a...

enhancement

``` Traceback (most recent call last): File "/disk-samsung/freebsd-ports/misc/py-hist/x.py", line 1, in from hist import Hist File "/usr/local/lib/python3.9/site-packages/hist/__init__.py", line 25, in from .version import version as __version__ ModuleNotFoundError: No module named...

Error: ``` LookupError: Error getting the version from source `vcs`: setuptools-scm was unable to detect version for /disk-samsung/freebsd-ports/misc/py-hist/work-py39/hist-2.6.1-31-g9d6543a. ``` Package builders typically use tarballs, not git clones. Could you please...

I would like to be able to assign a label to the value axis of a histogram, e.g., the vertical axis of a 1D histogram. (See #425.) Why: 1. The...

enhancement

Something like `h = hist.Hist.new.Reg(40, 70, 110, label=r"$l^{+} l^{-}$ invariant mass").Int64()` Displays only "invariant mass" as x-axis label. Is that on purpose or a feature? In either case, and just...

enhancement

Adding an unweighted histogram to a weighted one simply returns the weighted histogram. Reproducer: ```python import hist assert hist.__version__ == "2.6.1" ax = hist.axis.Regular(5, 0, 5) h_d = hist.Hist(ax, storage=hist.storage.Double())...

Trying to subtract histograms with Weight() storage raises an error: ```text AttributeError: 'boost_histogram._core.hist.any_weight' object has no attribute '__isub__' ``` Reproducer: ```python import hist assert hist.__version__ == "2.6.1" ax = hist.axis.Regular(5,...