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

Fixes 122 #125

Merged
merged 5 commits into from
Mar 1, 2025
Merged

Fixes 122 #125

merged 5 commits into from
Mar 1, 2025

Conversation

HannoSpreeuw
Copy link
Collaborator

Fixes #122

"measuring" is a more appropriate name for this module than "fitting".

"measuring" is a more appropriate name for this module than "fitting", since, e.g. moments analysis does not include any kind of fitting (as in least-squares fitting).
The "fitting" module has been renamed to "measuring", this requires some adjustments, particularly when functions are called.
Simple function for replacing initial gaussian args by fixed values. It was used twice, that is why we created this function.
1) Replace the two code snippets with calls to a new function in the "utils" module: "complement_gaussian_args".
2) Comment does not relect the code below it, therefore removed.
1) "complement" is more accurate than "replace".
2) The docstring from ChatGPT was completely rewritten, therefore the comment does not apply.
3) Clarification added, "initial_params" and "fixed_params" should complement each other, therefore the word "replace" is not appropriate.
@HannoSpreeuw
Copy link
Collaborator Author

The creation of the "initial" list was left unchanged, it seemed not worth the effort of turning it into a separate function.

@HannoSpreeuw HannoSpreeuw merged commit 9a129c7 into master Mar 1, 2025
6 checks passed
@HannoSpreeuw HannoSpreeuw deleted the Fix_122 branch March 1, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplication of helper routines in fitting.fit_gaussian
1 participant