From: <kk...@us...> - 2011-02-08 22:18:02
|
Revision: 99 http://python-control.svn.sourceforge.net/python-control/?rev=99&view=rev Author: kkchen Date: 2011-02-08 22:17:55 +0000 (Tue, 08 Feb 2011) Log Message: ----------- Implemented deep copy of A in gram. This is a temporary solution. Kevin K. Chen <kk...@pr...> Modified Paths: -------------- branches/control-0.4a/src/statefbk.py Modified: branches/control-0.4a/src/statefbk.py =================================================================== --- branches/control-0.4a/src/statefbk.py 2011-02-08 22:17:51 UTC (rev 98) +++ branches/control-0.4a/src/statefbk.py 2011-02-08 22:17:55 UTC (rev 99) @@ -266,6 +266,9 @@ >>> Wo = gram(sys,'o') """ + + from copy import deepcopy + #Check for ss system object, need a utility for this? #TODO: Check for continous or discrete, only continuous supported right now @@ -299,7 +302,8 @@ raise ControlSlycot("can't find slycot module 'sb03md'") n = sys.states U = np.zeros((n,n)) - out = sb03md(n, C, sys.A, U, dico, 'X', 'N', trana) + A = deepcopy(sys.A) + out = sb03md(n, C, A, U, dico, 'X', 'N', trana) gram = out[0] return gram This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |