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
{{ message }}
Repository navigation
Fitted parameters shouldn't be globally accessible #309
During the fitting, the parameters that were defined for the fit are being changedimplicitly, which I find very dangerous. While we had a discussion whether this ismore intuitive for users with a background in e.g. Matlab, I would argue that thelibrary should follow Python's best practices
This is an older issue that we've known about for a while.
We have 2 options:
We change the interface to the Fitter to make it more pythonic and user-friendly.
We make a new public Fitter class and make our current Fitter class an internal class for technique libraries only.
In either case we need to look at existing fitting libraries and decide on the public API we wish to have.
I am more in favour of the 2nd option, as this then won't be a breaking change and we can more easily split responsibilities. Like we know that the public Fitter always receives its parameters in a list whereas the internal Fitter always receives a ModelBase class to extract parameters from etc.
Activity
damskii9992 commentedon Sep 25, 2026
This is an older issue that we've known about for a while.
We have 2 options:
Fitterto make it more pythonic and user-friendly.Fitterclass and make our currentFitterclass an internal class for technique libraries only.In either case we need to look at existing fitting libraries and decide on the public API we wish to have.
I am more in favour of the 2nd option, as this then won't be a breaking change and we can more easily split responsibilities. Like we know that the public
Fitteralways receives its parameters in a list whereas the internalFitteralways receives aModelBaseclass to extract parameters from etc.