Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of npoints under contour fails #25

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 9 comments
Open

use of npoints under contour fails #25

GoogleCodeExporter opened this issue Mar 15, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant