Previously, the __getattribute__ method was over-loaded in sum_dists to allow Iminuit to introspect parameter names; however, this implementation incorrectly rewrapped the object which prevented pickling a sum_dist object. By correctly setting the attributes for sum_dists methods using setattr during the initialization, each class method now has a _parameters attribute that Iminuit can use to get parameter names -- it also allows for pickling.
Previously, the
__getattribute__
method was over-loaded insum_dists
to allow Iminuit to introspect parameter names; however, this implementation incorrectly rewrapped the object which prevented pickling asum_dist
object. By correctly setting the attributes forsum_dists
methods usingsetattr
during the initialization, each class method now has a_parameters
attribute that Iminuit can use to get parameter names -- it also allows for pickling.