From: Scott C. L. <sli...@ca...> - 2011-02-08 22:49:36
|
Is the mailing list set to track commits, or is it just me? ~Scott On 8 February 2011 14:17, <kk...@us...> wrote: > 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. > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > python-control-discuss mailing list > pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-control-discuss > > -- http://scottman.net 865-964-5384 |