Skip to content

Commit 99149a8

Browse files
author
KX79WQ
committed
For SparselyBin histograms fix setting of correct origin when adding histograms
Bump up version to 1.0.12
1 parent 54d1f14 commit 99149a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

histogrammar/primitives/sparselybin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __add__(self, other):
134134
if self.origin != other.origin:
135135
raise ContainerException("cannot add SparselyBins because origin differs ({0} vs {1})".format(self.origin, other.origin))
136136

137-
out = SparselyBin(self.binWidth, self.quantity, self.value.copy() if self.value is not None else None, self.nanflow + other.nanflow)
137+
out = SparselyBin(self.binWidth, self.quantity, self.value.copy() if self.value is not None else None, self.nanflow + other.nanflow, self.origin)
138138
out.entries = self.entries + other.entries
139139
out.bins = self.bins.copy()
140140
for i, v in other.bins.items():

histogrammar/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import re
1818

19-
__version__ = "1.0.11"
19+
__version__ = "1.0.12"
2020

2121
version = __version__
2222

0 commit comments

Comments
 (0)