vyrjana / pyimpspec Goto Github PK
View Code? Open in Web Editor NEWA package for parsing, validating, analyzing, and simulating impedance spectra.
Home Page: https://vyrjana.github.io/pyimpspec/
License: GNU General Public License v3.0
A package for parsing, validating, analyzing, and simulating impedance spectra.
Home Page: https://vyrjana.github.io/pyimpspec/
License: GNU General Public License v3.0
Dear vyrjana,
I'm trying to accelerated processing the circuit fit when treat batch process, I adopted multiprocess by using 6 num_workers to process a dataset with 20 frequencies and the batch size is 20,the time cost of common loop is 69.77 seconds, and the multiprocess is 22.28 seconds, but it is too long for me?
Do you have some tips for multiprocess for speeding up ?
Thanks a lot!
Specifications
Description:
DRT calculations fail at certain lambda values producing the following error:
new = pyimpspec.calculate_drt(data0, method='tr-rbf',lambda_value=lam)
DRTError: Failed to perform calculations! Try tweaking the settings.
This occurs at a lambda value of ~0.0001.
This error only occurs with cvxpy (with the windows specific instructions followed)
With both cvxopt and kvxopt, erroneous DRT distributions are produced with negative values and extra oscillations.
Expected behavior
The system is a simple randle cell with a known characteristic time at 10^-1. pyDRTtools produces the correct results at various lambda values.
This issue is for keeping track of the status of support for Python 3.11. The test-python-3-11
branch contains modified workflow files and at the moment the build
workflow fails. The reason is that cvxopt
does not have a wheel for Python 3.11 and pip
is unsuccessful when it tries to compile the package. An issue has been opened in the cvxopt
repository regarding the availability of Python 3.11 wheels.
Hi, I'm trying to use the function 'dataframe_to_data_sets', trying to convert a dataframe format into dataset to make the circuit fit. I've read the API, which need to input the path where the dataframe located,Is anyway to convert the dataframe into dataset directly?
Thanks!
Desktop (please complete the following information):
Describe the bug
current implementation of pyimpspec.analysis.utility.residuals
:
def _calculate_residuals(
Z_exp: ComplexImpedances,
Z_fit: ComplexImpedances,
) -> ComplexResiduals:
residuals: ComplexResiduals = empty(Z_exp.shape, dtype=ComplexResidual)
residuals.real = (Z_exp.real - Z_fit.real) / abs(Z_exp)
residuals.imag = (Z_exp.imag - Z_fit.imag) / abs(Z_exp)
return residuals
according to equation [1] in B.A. Boukamp, 1995, J. Electrochem.
the denominator is
the vector length (absolute value) of the modeling function
so the equations should be:
residuals.real = (Z_exp.real - Z_fit.real) / abs(Z_fit)
residuals.imag = (Z_exp.imag - Z_fit.imag) / abs(Z_fit)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.