Skip to content

Commit

Permalink
Fix missing bracket :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
sfegan committed Jan 15, 2025
1 parent 28ef5e4 commit a35b370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/diagnostics/stage1_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def analyze_trigger_thresholds(hset, hclr, ped, nmin=100, do_mle=False, mle_pmin
x0 = (x0_50, 0.5*x0_iqr, 0.5*x0_iqr)
def residual(x):
return p - dhgauss_cdf(xp, *x)
optres = scipy.optimize.least_squares(residual, x0, bounds=((xbnd[0],sbnd[0],sbnd[0]),(xbnd[1],sbnd[1],sbnd[1]))
optres = scipy.optimize.least_squares(residual, x0, bounds=((xbnd[0],sbnd[0],sbnd[0]),(xbnd[1],sbnd[1],sbnd[1])))

if(do_mle):
x1 = optres.x
Expand Down

0 comments on commit a35b370

Please sign in to comment.