unsupported operand type(s) for /: 'complex' and 'list' if poles or zeros is a list
Have a look at this code:
p = LisoInputParser()
p.parse("""
r R1 1k gnd nopm
r R2 1k nopm nout
op OP1 AD829 nopp nopm nout
uinput nopp
freq log 10 10M 1000
uoutput nout
""")
sol = p.solution()
sol.plot()
... throws the following error:
/usr/local/lib/python3.6/site-packages/zero/config/components.py in gain(self, frequency)
432 * np.exp(-2j * np.pi * self.delay * frequency)
433 * np.prod(1 + 1j * frequency / self.zeros)
--> 434 / np.prod(1 + 1j * frequency / self.poles))
435
436 def inverse_gain(self, *args, **kwargs):
TypeError: unsupported operand type(s) for /: 'complex' and 'list'
... but it works when replacing the AD829 with something that does not have two poles/zeros, but just a single one, e.g. OP27.