You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. define some objective function to minimize: call it chi2
2. give the usual commands:
m = minuit.Minuit(chi2, a=a_fid, b=b_fid)
m.migrad()
cont = array(m.contour("a", "b", 1., 50))
What is the expected output? What do you see instead?
I expected to have as output an array of 50 contour points, at the 1 sigma
level, instead of the default 20 points... In fact the following error is
issued:
TypeError Traceback (most recent call last)
/home/orca/Dropbox/supernovae/SN_sim/scripts/<ipython console> in <module>()
/home/orca/Dropbox/supernovae/SN_sim/scripts/trotta_sim_func.py in
trotta_sim(a_fid, b_fid, x_std, y_std, nobs, xmin, xmax)
48 m.printMode = 1
49 m.migrad()
---> 50 cont = array(m.contour("a", "b", 1.,50))
51 cont = append(cont,[[cont[0,0],cont[0,1]]],axis=0)
52 subplot(1,2,2)
TypeError: Arguments are: param1, param2, number of sigmas, and optionally
approximate number of points (20).
What version of the product are you using? On what operating system?
This corresponds to the latest pyminuit in its homepage, run under a Debian
unstable (sid) system.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 18 Jul 2011 at 8:22
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 18 Jul 2011 at 8:22The text was updated successfully, but these errors were encountered: