Fixes for SciPy 1.0 compatibility by murrayrm · Pull Request #170 · python-control/python-control
This PR fixes the SciPy 1.0 compatibility issues raised in issue #164. There are two main changes:
-
Updated
statesp.pyandxferfcn.pyto use the new forms of thescipy.signallibrary, for which thelticlass no longer has accessors fornum,den, etc. The fix is to directly call thess2tfandtf2ssfunctions. -
Also had to add a check for scalars that are of a
numpydata type, specifically forint64. Prior to Python 3, checking againstintworked correctly, but this is no longer the case. As a fix, I added checks throughout the library againstnumpy.number, which captures all scalar data types innumpy.
I also checked (manually) to insure that this version works against scipy-0.19.0, which should mean it is OK for backward compatibility (this can be checked with PR #169 is merged).