Skip to content

Commit a92ccf0

Browse files
author
Petr Jacka
committed
[RDF] Adding THnSparseD into Operation.py
1 parent 947408f commit a92ccf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindings/distrdf/python/DistRDF/Operation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, name: str, *args, **kwargs):
5151
# positional argument. In all Histo*D overload where it is present,
5252
# it is always the first argument.
5353
if not isinstance(self.args[0],
54-
(tuple, ROOT.RDF.TH1DModel, ROOT.RDF.TH2DModel, ROOT.RDF.TH3DModel, ROOT.RDF.THnDModel)):
54+
(tuple, ROOT.RDF.TH1DModel, ROOT.RDF.TH2DModel, ROOT.RDF.TH3DModel, ROOT.RDF.THnDModel, ROOT.RDF.THnSparseDModel)):
5555
message = (
5656
"Creating a histogram without a model is not supported in distributed mode. Please make sure to "
5757
"specify the histogram model when rerunning the distributed RDataFrame application. For example:\n\n"
@@ -104,6 +104,7 @@ class Transformation(Operation):
104104
"Histo2D": Histo,
105105
"Histo3D": Histo,
106106
"HistoND": Histo,
107+
"HistoNSparseD": Histo,
107108
"Max": Action,
108109
"Mean": Action,
109110
"Min": Action,

0 commit comments

Comments
 (0)