impedance.py icon indicating copy to clipboard operation
impedance.py copied to clipboard

BaseCircuit.predict() won't take float as input

Open Yugal0 opened this issue 1 year ago • 0 comments

BaseCiruit.predict() only accepts a nd.array as an input, hence the frequency data need to be compulsory supplied as an array But If I want to predict the impedance at a particular frequency, then BaseCircuit.predict() should also accept a single float value instead of forcing me to write it as an array containing a single element. or exampl For example- from impedance.models.circuits import CustomCircuit RC_parallel=CustomCircuit("p(R0,C0)",initial_guess=[1e2,1e-3])
print(RC_parallel.predict([9])) and print(RC_parallel.predict(9))

should both be valid.

But as of now, the print(RC_parallel.predict(9)) gives error.

Yugal0 avatar Aug 09 '23 06:08 Yugal0