-
Notifications
You must be signed in to change notification settings - Fork 15
sample implementation of a (uncorrelated) combined fit #134
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
Conversation
Hi Pia, it looks like your PR breaks a few tests. Please have a look at CONTRIBUTING.md where I tried to explain how to run the tests on a local machine. |
Thanks for the implementation. Before I inspect everything in detail, I'd like to ask a general question: Is it really necessary to do the combined fit in a new routine that has many common aspects with My first attempt would have been to write a wrapper around For the future of the fit routines in |
I agree that this is not a good solution and results in a lot of unnecessary code duplication and maintainability problems. I see this PR as a step towards a new version of the fit module as it already defines the interface for combined fits and provides test cases which will also have to be fulfilled by the final version which could be very helpful in the next development phase. In this spirit it would be very interesting to hear your opinion on the interface @PiaLJP designed and the overall functionality, not so much the actual implementation. As soon as we agree on the interface we could then start to rewrite and refactor the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your effort. Let's go with the dictionary solution by now. In contrast to the other solutions that I had in mind, it would remove the need to have x, y and func in the same order, if the implementation is adapted accordingly.
…c input dictionaries are not in the same order, build: improvements in performance
Hi. Thanks for adapting the code. I have made one minor comment that we could resolve before merging. |
Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
A combined fit is performed when dictionaries (instead of lists) are handed over to the fits.least_squares function.