In wc_fit_function(), the OrderedDict method popitem() is used to retrieve the last variable in the namespace (instead of using the last element of a list of the dictionary's keys as key).
When testing the fit_wc_function on initialization of a Fit instance, the local variable fit_wc_name is used when looping over the elements of self.fit_wc_names (instead of defining an otherwise unused public attribute self.fit_wc_name).
Coverage remained the same at 90.742% when pulling fe1553abd3f07db630cf0db898c9d8d6c09de2b6 on peterstangl:small_changes into 8d8488ee6f627277940f153ac9a266b3d0a5aa3f on flav-io:master.
This PR proposes two small changes in fits.py:
wc_fit_function()
, theOrderedDict
methodpopitem()
is used to retrieve the last variable in the namespace (instead of using the last element of a list of the dictionary's keys as key).fit_wc_function
on initialization of aFit
instance, the local variablefit_wc_name
is used when looping over the elements ofself.fit_wc_names
(instead of defining an otherwise unused public attributeself.fit_wc_name
).