diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-09-07 14:04:22 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-09-07 14:04:22 -0500 |
commit | 38c5b2c8996ebaac752694e8812f0981de961da4 (patch) | |
tree | 333ed9f630e21688d2b51a3062b75cfece8c1fca /utils/chi2 | |
parent | eb2e594ae758d43b13d0ee2508cce1bbfe7c5638 (diff) | |
download | sddm-38c5b2c8996ebaac752694e8812f0981de961da4.tar.gz sddm-38c5b2c8996ebaac752694e8812f0981de961da4.tar.bz2 sddm-38c5b2c8996ebaac752694e8812f0981de961da4.zip |
don't constrain energy bias parameters to be > 0
Diffstat (limited to 'utils/chi2')
-rwxr-xr-x | utils/chi2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,7 +236,7 @@ def make_nll(data, muons, mc, bins, print_nll=False): data.loc[data.id == id,'energy2'].values]).T def nll(x, grad=None): - if any(x[i] < 0 for i in range(len(x))): + if any(x[i] < 0 for i in (0,2,4,5,6)): return np.inf # Get the data histograms. We need to do this within the |