Skip to content

Fitted parameters shouldn't be globally accessible #309

Open

Description

@rozyczko

From the Summer School's retrospective:

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

Activity

  1. added
    [scope] bug
    [priority] high
    on Sep 16, 2026
  2. damskii9992 commented on Sep 25, 2026

    @damskii9992
    Contributor

    This is an older issue that we've known about for a while.

    We have 2 options:

    1. We change the interface to the Fitter to make it more pythonic and user-friendly.
    2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] high[scope] bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions