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
fitting package overhaul #26
Comments
We need to agree on the layout of the fitting package. Here is the present list of functions and their input/output:
Please comment on the changes you would like (function name change, changes in the default input/output, changes in the expected options), and on the missing functions to be added or present in other branches/repos. |
The Distributions objects should also have AL: |
Maybe this should be a separate issue, but while we are at it: I also opt for the AL: Yes we'll also open a new issue for the math package to discuss input/output. In that case the reason to output (x, Y) is that for the diff function the ouput x array is different from the input (1 element shorter). For me either way is fine but I'd keep the same conventions for all functions in the end. |
Updated #26 (comment) with @MarkusSchwarz1980 comments |
The fitting.profile module clean up was completed and merged with #27 |
I would love to have the bunch peak returned together with the bunch length and position in the fitting functions, as it is one of the standard measurables of RF beam diagnostics. In particular, for the fwhm and Gaussian fits, it is already calculated anyway (the max used for the "half max" in the fwhm, the fit amplitude for the Gaussian fit), so it is just a matter of exposing it as a separate output parameter. |
updated CI configs, testing py36 and py37
Added maximum as output for FWHM function to answer for @giuliapapotti in #26 (comment) in pull request #41 For the profile fitting functions, the amplitude should already be returned. All should follow amplitude, position, length, exponent (if applicable) as output of the fitting function. |
Following issue #25
The functions require full documentation, unit-tests, exceptions handling, and to agree on the expected input/outputs of the functions.
This issue is opened to gather requests, suggestions, follow-ups.
The text was updated successfully, but these errors were encountered: