Skip to content

Commit c0fc56d

Browse files
committed
fix(backport): backport fix in #521 for numpy.py
1 parent eead7fd commit c0fc56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boost_histogram/numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def histogramdd(
7676

7777
if density:
7878
areas = _reduce(_mul, hist.axes.widths)
79-
density = hist.view() / hist.sum() / areas
79+
density = hist.values() / np.sum(hist.values()) / areas
8080
return (density, hist.to_numpy()[1:])
8181

8282
# Note: this is view=True since users have to ask explicitly for special

0 commit comments

Comments
 (0)