Skip to content

Problems with iminuit on ubuntu version 22.04.2 ? #852

Closed
@farrukhazfar

Description

Discussed in #851

Originally posted by farrukhazfar March 26, 2023
Hi Folks,
I am on ubuntu 22.04.2 and am using python3 version 3.10.6. Last year everything I am about to describe was working fine
Unfortunately it seems that I am missing the full functionality of Minuit in iminuit
So here goes :

python3

from iminuit import Minuit
import numpy as np
def LSQ(a, b):
... return np.sum((y - line(x, a, b)) ** 2 / sigma_y ** 2)

Next I try to setup the parameters with initial values and fix b

m = Minuit(LSQ, a=0, b=0.4, fix_b=0.4)

and I get the following error
Traceback (most recent call last):
File "", line 1, in
File "/home/azfarl/.local/lib/python3.10/site-packages/iminuit/minuit.py", line 629, in init
self._init_state = _make_init_state(self._pos2var, start, kwds)
File "/home/azfarl/.local/lib/python3.10/site-packages/iminuit/minuit.py", line 2491, in _make_init_state
raise RuntimeError(
RuntimeError: fix_b is not one of the parameters [a b]

I am having the same issue trying to use limit_a or limit_b etc - wondering what is going on - any help will be appreciated

best wishes
Farrukh

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions