[SciPy-Dev] Proposal: calling signal.lti object returns transfer function value
Sat Jul 20 10:54:46 CDT 2013
On Tue, Jul 16, 2013 at 5:28 PM, Juan Luis Cano <email@example.com> wrote:
> BTW (and this is a side question), is there a reason the code of
> signal.lti is full of `self.__dict__['X'] = Y` instead of `self.X = Y`?
It's very ugly but does have a function. Because of how ``__setattr__`` is
implemented you cannot just set self.num & related attributes in
``__init__``. The alternative is to transform num/den/zeros/poles/.... into
properties with setter methods that keep all properties in sync. A PR
making that change would be welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-Dev