A julia package to either fit the parameters of a specified equivalent electrical circuit to electrochemical impedance data, or to suggest a plausible circuit configuration for a given set of measurements (either through a comparison of circuits from the literature, or through an evolutionary algorithm approach).
MIT License
22
stars
6
forks
source link
Fix `numpy` array serialization issue when using JuliaCall #32
Adds quiet argument to both circuit_evolution and circuit_evolution_batch to optionally disable Logging (false by default)
Force converts measurements and frequencies to Array to fix a serialization issue when called from Python (Python passes numpy array, and Julia can't serialize them, which is required for distributed jobs, so it only affects circuit_evolution_batch)
Please see JuliaPy/PythonCall.jl/issues/454 for details.
This PR is ready, feel free to merge when you're done reviewing.
(I also commented the MAP_elites.jl import for now as it causes lots of re-import warnings. We can include it once we've tested the new algorithm to make it the new default)
Hi @MaximeVH. This PR does the following:
quiet
argument to bothcircuit_evolution
andcircuit_evolution_batch
to optionally disable Logging (false by default)measurements
andfrequencies
toArray
to fix a serialization issue when called from Python (Python passesnumpy
array, and Julia can't serialize them, which is required for distributed jobs, so it only affectscircuit_evolution_batch
)Please see JuliaPy/PythonCall.jl/issues/454 for details.
This PR is ready, feel free to merge when you're done reviewing.
(I also commented the MAP_elites.jl import for now as it causes lots of re-import warnings. We can include it once we've tested the new algorithm to make it the new default)