Skip to content

Commit c791b9b

Browse files
committed
[hist] remove TH1K support in _uhi
1 parent 264da1e commit c791b9b

File tree

1 file changed

+1
-4
lines changed
  • bindings/pyroot/pythonizations/python/ROOT/_pythonization

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ def _values_default(self) -> np.typing.NDArray[Any]: # noqa: F821
494494
return ret.reshape(_shape(self), order="F")[tuple([slice(1, -1)] * len(_shape(self)))]
495495

496496

497-
# Special case for TH1K: we need the array length to correspond to the number of bins
498-
# according to the UHI plotting protocol
497+
# Special case for TH*C and TProfile*
499498
def _values_by_copy(self, include_flow_bins=False) -> np.typing.NDArray[Any]: # noqa: F821
500499
from itertools import product
501500

@@ -566,8 +565,6 @@ def _get_sum_of_weights_squared(self) -> np.typing.NDArray[Any]: # noqa: F821
566565
"TH1C": _values_by_copy,
567566
"TH2C": _values_by_copy,
568567
"TH3C": _values_by_copy,
569-
"TH2K": _values_by_copy,
570-
"TH3K": _values_by_copy,
571568
"TProfile": _values_by_copy,
572569
"TProfile2D": _values_by_copy,
573570
"TProfile2Poly": _values_by_copy,

0 commit comments

Comments
 (0)