Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Mar 19, 2024
1 parent 67d8654 commit f803f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ostap/histos/histos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4943,7 +4943,7 @@ def _rebin_nums_1D_ ( h1 , template ) :
isinstance ( template [1] , num_types ) and \
isinstance ( template [2] , num_types ) and template [ 1] < template [ 2 ] :
htype = ROOT.TH1D if isinstance ( h1 , ROOT.TH1D ) else ROOT.TH1F
template = htype ( hID() , 'template' , template , xaxis.GetXmin() , xaxis.GetXmax() )
template = htype ( hID() , 'template' , *template )

# clone it!
h2 = template.Clone( hID() )
Expand Down Expand Up @@ -4990,7 +4990,7 @@ def _rebin_func_1D_ ( h1 , template ) :
isinstance ( template [1] , num_types ) and \
isinstance ( template [2] , num_types ) and template [ 1] < template [ 2 ] :
htype = ROOT.TH1D if isinstance ( h1 , ROOT.TH1D ) else ROOT.TH1F
template = htype ( hID() , 'template' , template , xaxis.GetXmin() , xaxis.GetXmax() )
template = htype ( hID() , 'template' , *template )

# clone it!
h2 = template.Clone( hID() )
Expand Down

0 comments on commit f803f28

Please sign in to comment.