aboutsummaryrefslogtreecommitdiff
path: root/utils/chi2
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-09-07 14:04:22 -0500
committertlatorre <tlatorre@uchicago.edu>2020-09-07 14:04:22 -0500
commit38c5b2c8996ebaac752694e8812f0981de961da4 (patch)
tree333ed9f630e21688d2b51a3062b75cfece8c1fca /utils/chi2
parenteb2e594ae758d43b13d0ee2508cce1bbfe7c5638 (diff)
downloadsddm-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-xutils/chi22
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/chi2 b/utils/chi2
index bb62af3..f600133 100755
--- a/utils/chi2
+++ b/utils/chi2
@@ -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