Branch: refs/heads/master
Home: https://github.com/python-control/python-control
Commit: 2915bafa80c2e4e49259e1b7c61b26bb0150b3fe
https://github.com/python-control/python-control/commit/2915bafa80c2e4e49259e1b7c61b26bb0150b3fe
Author: Richard Murray <mu...@cd...>
Date: 2018-01-06 (Sat, 06 Jan 2018)
Changed paths:
M control/frdata.py
M control/margins.py
M control/statesp.py
M control/tests/statesp_test.py
M control/tests/xferfcn_test.py
M control/xferfcn.py
Log Message:
-----------
Update evalfr usage for consistency with MATLAB
Renamed evalfr() in the FRD, StateSpace and TransferFunction classes to
_evalfr() and put a deprecation warning for use of the evalfr() method.
Changed calls to evalfr() in frdata.py and margins.py to use _evalfr()
Added unit tests for the the new methods + warnings
These changes eliminate the inconsistency in the argument form between the
(MATLAB compatible) evalfr() function, which takes a complex argument, and
the evalfr() methods for LTI objects, which took a real number as argument
(representing the frequency). The _evalfr() method retains the original
functionality, since it is used for computing stability margins and for
converting objects to FRD form.
Commit: bb65f314e6429d9fe03aea989afe74fc7a6942a0
https://github.com/python-control/python-control/commit/bb65f314e6429d9fe03aea989afe74fc7a6942a0
Author: Richard Murray <mu...@cd...>
Date: 2018-01-12 (Fri, 12 Jan 2018)
Changed paths:
M control/frdata.py
M control/margins.py
M control/statesp.py
M control/tests/statesp_test.py
M control/tests/xferfcn_test.py
M control/xferfcn.py
Log Message:
-----------
Merge pull request #179 from murrayrm/update_evalfr
Update evalfr() to be consistent with MATLAB usage
Compare: https://github.com/python-control/python-control/compare/7795a13cac1c...bb65f314e642 |