generate_circuit_fn

autoeis.utils.generate_circuit_fn(circuit: str, jit=False, concat=False)

Generates a function to compute the circuit impedance, parameterized by frequency and the circuit parameters.

Parameters:
  • circuit (str) – CDC string representation of the input circuit. See here for details.

  • jit (bool, optional) – If True, uses JAX to compile the function. Default is False.

  • concat (bool, optional) – If True, the generated function returns concatenated real and imaginary parts of the impedance, otherwise it returns the complex impedance. Default is False.

Returns:

A function that takes in frequency and the circuit parameters and returns the impedance.

Return type:

callable