You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also reported in #112. It probably just needs self.num = copy.deepcopy(num) (and the same for den) in TransferFunction.__init__, but I guess someone needs to read through those giant if-else-.. statements to check for complications.
I spent quite a bit of time trying to debug an error and finally stumbled on the documentation:
It took me a bit of digging and debugging before I realized my errors caused by the shallow copy:
This can make scripts behave different based on the order of operation:
vs.
To new Python users having the variables 'num' & 'den' behave different before and after calling
TransferFunction
can be confusing and off-putting.The text was updated successfully, but these errors were encountered: