From: <kk...@us...> - 2011-02-08 22:18:33
|
Revision: 106 http://python-control.svn.sourceforge.net/python-control/?rev=106&view=rev Author: kkchen Date: 2011-02-08 22:18:27 +0000 (Tue, 08 Feb 2011) Log Message: ----------- Added warnings about state space / transfer function conversion still being buggy. Kevin K. Chen <kk...@pr...> Modified Paths: -------------- branches/control-0.4a/src/TestConvert.py branches/control-0.4a/src/statesp.py branches/control-0.4a/src/xferfcn.py Modified: branches/control-0.4a/src/TestConvert.py =================================================================== --- branches/control-0.4a/src/TestConvert.py 2011-02-08 22:18:23 UTC (rev 105) +++ branches/control-0.4a/src/TestConvert.py 2011-02-08 22:18:27 UTC (rev 106) @@ -27,9 +27,9 @@ # Number of times to run each of the randomized tests. self.numTests = 10 # Maximum number of states to test + 1 - self.maxStates = 2 + self.maxStates = 3 # Maximum number of inputs and outputs to test + 1 - self.maxIO = 2 + self.maxIO = 3 # Set to True to print systems to the output. self.debug = True Modified: branches/control-0.4a/src/statesp.py =================================================================== --- branches/control-0.4a/src/statesp.py 2011-02-08 22:18:23 UTC (rev 105) +++ branches/control-0.4a/src/statesp.py 2011-02-08 22:18:27 UTC (rev 106) @@ -449,9 +449,9 @@ index = [len(den) - 1 for i in range(sys.outputs)] # Repeat the common denominator along the rows. den = array([den for i in range(sys.outputs)]) - #print index - #print den - #print num + # TODO: transfer function to state space conversion is still buggy! + print "Warning: transfer function to state space conversion by td04ad \ +is still buggy!" ssout = td04ad(sys.inputs, sys.outputs, index, den, num) states = ssout[0] Modified: branches/control-0.4a/src/xferfcn.py =================================================================== --- branches/control-0.4a/src/xferfcn.py 2011-02-08 22:18:23 UTC (rev 105) +++ branches/control-0.4a/src/xferfcn.py 2011-02-08 22:18:27 UTC (rev 106) @@ -697,7 +697,10 @@ raise TypeError("If sys is a StateSpace, _convertToTransferFunction \ cannot take keywords.") - # Use Slycot to make the transformation. + # Use Slycot to make the transformation. TODO: this is still somewhat + # buggy! + print "Warning: state space to transfer function conversion by tb04ad \ +is still buggy!" tfout = tb04ad(sys.states, sys.inputs, sys.outputs, sys.A, sys.B, sys.C, sys.D, sys.outputs, sys.outputs, sys.inputs) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |