Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter history #15

Merged
merged 5 commits into from
Aug 23, 2022

Conversation

Hexanders
Copy link
Collaborator

My previous comment #13 about creating a parameter class for the "undo fit" functionality is not as practical as I thought at the beginning. The parameters are already inizialized in the lmfit.Parameters.parameter classe and you also need the presets for the GUI.

So here I added a history_manager() and one_step_back_in_params_history() methods which create a list self.parameter_history_list and handle the history of the fits.

Notice:
At the moment after pressing "undo Fit" button the parameters/presets are set to the previous value and it is fit again, because the evaluation method doesn't work for me, better said I didn't test it enough.

@Julian-Hochhaus
Copy link
Owner

The ana() should be destroyd! and replaaced by couple of smaller methods for better readability

Indeed, I will tackle this topic in September/October!

@Julian-Hochhaus Julian-Hochhaus changed the base branch from master to undo-fct August 23, 2022 11:07
@Julian-Hochhaus Julian-Hochhaus merged commit 4a1cdb5 into Julian-Hochhaus:undo-fct Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants