On Wed, Feb 19, 2014 at 6:59 PM, "André Walker-Loud
<walksl...@gmail.com>" <walksl...@gmail.com> wrote:
>
> Also, since you are chiming in, do you have an opinion in general about
> which approach you prefer?  The string hacking vs class method (for lack
> of better way to describe them)?

I've never used iminuit before. I'd ask on a support forum to see what
other people are doing. That said, if possible I'd use a closure like
Peter showed:

    def make_chisq_mn(x, y, dy):
        def chisq_mn(*args):
            return chisq(args, x, y, dy)
        return chisq_mn

Then combine that with the forced_parameters option that Peter
mentioned. This seems simplest to me.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to