[SciPy-Dev] Proposal: calling signal.lti object returns transfer function value

Ralf Gommers ralf.gommers@gmail....
Sat Jul 20 10:54:46 CDT 2013

On Tue, Jul 16, 2013 at 5:28 PM, Juan Luis Cano <juanlu001@gmail.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...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20130720/f1be66d7/attachment.html 

More information about the SciPy-Dev mailing list