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

Major upgrade to fit_circuit_parameters for more robust/accurate fits #132

Merged
merged 13 commits into from
Sep 11, 2024

Conversation

ma-sadeghi
Copy link
Collaborator

No description provided.

… more robust and accurate ECM fits

- Refactored the `fit_circuit_parameters` function in `utils.py` to use `scipy.optimize.least_squares` instead of `curve_fit` for fitting the circuit parameters.
- Added new fitting methods: 'chi-squared', 'nyquist', 'bode', and 'magnitude' to compute the error based on different plots.
- Updated the function signature and added new parameters for controlling the fitting process.
- Improved the convergence criteria and added verbose option for printing fitting results.
…ent objective functions: 'nyquist', 'bode', and 'chi-squared'
…re mag/phase are optimized instead of real/imag
… ndarray-like objects with float elements
…here WAIC is calculated using different inference objective functions
@ma-sadeghi ma-sadeghi added the enhancement New feature or request label Sep 11, 2024
@ma-sadeghi ma-sadeghi merged commit b9a6e97 into main Sep 11, 2024
6 checks passed
@ma-sadeghi ma-sadeghi deleted the enh/better-ecm-fitter branch September 11, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant