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
Minuit.fixed returns an object that mimics the numpy array interface and holds boolean values. The numpy expectation is that this array can be used as a mask for other arrays, but this currently does not work.
fromiminuitimportMinuitm=Minuit(lambdax, y : x**2+y**2, 1, 2)
m.fixed[0] =Truem.values[m.fixed] # returns [1, 2], not [1]m.values[~m.fixed] # does not work, because the operator is not supportedm.values[m.fixed] =0# sets all values, not only those for m.fixed == 0
By the way, this works correctly:
err = np.array(m.errors)
err[m.fixed] = 0
The text was updated successfully, but these errors were encountered:
Minuit.fixed returns an object that mimics the numpy array interface and holds boolean values. The numpy expectation is that this array can be used as a mask for other arrays, but this currently does not work.
By the way, this works correctly:
The text was updated successfully, but these errors were encountered: