Skip to content

Commit 4b50481

Browse files
committed
also save flow bins
1 parent bbecdf2 commit 4b50481

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bindings/pyroot/pythonizations/python/ROOT/_pythonization/_uhi/serialization.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _storage_to_dict(hist: Any) -> dict[str, Any]:
6565
- else: type is double_storage
6666
"""
6767
storage_dict = {
68-
"values": hist.values(),
68+
"values": hist.values(flow=True),
6969
}
7070

7171
if hist.kind == "MEAN":
@@ -99,10 +99,6 @@ def _set_histogram_storage_from_dict(hist: Any, storage_dict: dict[str, Any]) ->
9999
hist_values = storage_dict["values"]
100100
hist[...] = hist_values
101101

102-
stype = storage_dict.get("type")
103-
if stype in ["weighted_mean", "mean", "weighted"]:
104-
hist.variances()[:] = storage_dict["variances"]
105-
106102

107103
def _to_uhi_(self) -> dict[str, Any]:
108104
return {

0 commit comments

Comments
 (0)