Skip to content

Commit

Permalink
Merge pull request #331 from jasondet/main
Browse files Browse the repository at this point in the history
index cov correctly
  • Loading branch information
jasondet authored Jul 29, 2022
2 parents 051a542 + 2d88b2f commit 9ec0884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygama/math/peak_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def gauss_mode(hist, bins, **kwargs):
"""
pars, cov = gauss_mode_width_max(hist, bins, **kwargs)
if pars is None or cov is None: return None, None
return pars[0], np.sqrt(cov[0])
return pars[0], np.sqrt(cov[0,0])


def taylor_mode_max(hist, bins, var=None, mode_guess=None, n_bins=5, poissonLL=False):
Expand Down

0 comments on commit 9ec0884

Please sign in to comment.