Closed StefanPofahl closed 1 year ago
strange, today I cloned your repository by means of the Pkg-Command dev
:
pkg> dev EquivalentCircuits
now I have two versions on my hard drive:
old:
C:\Users\[...]\.julia\packages\EquivalentCircuits\6sREk\src\OptimizeParameters.jl
function get_parameter_upper_bound(tree)
ranges = Dict('R'=>1.0e9,'C'=>10,'L'=>5,'P'=>[1.0e9,1],'+'=>0,'-'=>0) #Dict('R'=>5000,'C'=>0.001,0.01'L'=>1,'P'=>[100,1],'+'=>0,'-'=>0) , Dict('R'=>1.0e9,'C'=>0.01,'L'=>5,'P'=>[1.0e9,1],'+'=>0,'-'=>0)
return [ranges[node.Type] for node in tree]
end
new:
function get_parameter_upper_bound(tree)
ranges = Dict('R'=>1.0e9,'C'=>10,'L'=>5,'P'=>[1.0e9,1],'W'=>1.0e9,'+'=>0,'-'=>0)
return [ranges[node.Type] for node in tree]
end
I do not know why, but I managed to install an old version of EquivalentCircuit.jl
Have you encountered this issue with the newest version of the package too? I've run the function several times on the example measurement data with different values for the terminals
argument, and it seems to work fine so far.
I was not able to reproduce this strange situation.
Function
"circuitevolution()"
: Optional parameterterminals
does not work properly, if I specify: terminals="RCL" also solutions with P-elements are found.