ParticleI also removed the dependency on
tabulateand replaced with
to_dictmethods, following your suggestion. I did make sure that the doc(strings) of the latter methods contain nice examples with
tabulatesuch that the reader is straightforwardly helped, as easy-print methods are quite handy.
Dear all, I am ready to finish the work on iminuit 2.0. You can see the long list of changes here: https://iminuit.readthedocs.io/en/latest/changelog.html#id2 and you can see the new version in action in the basic tutorial https://github.com/scikit-hep/iminuit/blob/develop/tutorial/basic_tutorial.ipynb (you probably have to reload the page until it actually displays the notebook).
While the list of breaking changes is rather long, some are rather peripheral. I think the highlight is the changed
__init__ of Minuit. Most of the keyword arguments were removed, you now set limits and fix parameters by assigning to the
Minuit.from_array_func was merged with
__init__, e.g. the syntax for a numpy function is
Minuit(np_fcn, (1, 2, 3)) while it remains
Minuit(fcn, a=1, b=2) for a normal function.
Minuit(fcn, 1, 2) now also works.
scanto find a minimum in addition to
from iminuit.v1 import Minuitand get a Minuit object that keeps your old scripts running. It is a significant amount of extra work, because I then also have to carry over the old tests that used the old interface (to make sure it is actually a perfect facade)
iminuit1I would prefer to maintain it all in one repo.
iminuit.v1, that is the TensorFlow solution. But it probably is not worth the effort, and might be better to keep as an option if significant portions of users have trouble with the upgrade, perhaps?