Skip to content

Commit

Permalink
Update template_morph.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 authored Jun 6, 2024
1 parent 8c4f6b1 commit c2a349e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rhalphalib/template_morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def get(self, shift=0.0, smear=1.0):
if self.return_hist: # return hist object
import hist
h = hist.Hist(
hist.axis.Regular(bins=len(edges)-1, start=edges[0], stop=edges[-1], name=self.varname),
hist.axis.Variable(edges, name=self.varname),
storage="weight",
)
h.view(flow=True).value[1:-1] = nom
h.view(flow=True).variance[1:-1] = w2s
h.view(flow=False).value = nom
h.view(flow=False).variance = w2s
return h
else: # return tuple
return nom, edges, self.varname, w2s

0 comments on commit c2a349e

Please sign in to comment.