[Pybrainsim-activity] SF.net SVN: pybrainsim:[45] trunk/src/Head.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-03 09:08:24
|
Revision: 45 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=45&view=rev Author: rgoj Date: 2009-08-03 09:08:11 +0000 (Mon, 03 Aug 2009) Log Message: ----------- * Adding a new method of pairing connections with their source generators. But leaving the implementation for further testing to decide later which method is nicer. Modified Paths: -------------- trunk/src/Head.py Modified: trunk/src/Head.py =================================================================== --- trunk/src/Head.py 2009-08-02 18:57:23 UTC (rev 44) +++ trunk/src/Head.py 2009-08-03 09:08:11 UTC (rev 45) @@ -100,6 +100,14 @@ for j in range(len(self.generatorList)): if self.connectionList[i].getSourceName() == self.generatorList[j].getName(): sourceGeneratorIndex = j + + # Perhaps this is a nicer method of doing the same thing as + # above... but leaving this here for further testing. Besides + # it breaks the encapsulation of the connection class - + # directly communicating with one of it's members... + sourceGeneratorIndex2 = self.generatorList.index(self.connectionList[i].sourceGenerator) + print("Established method: " + str(sourceGeneratorIndex) + ", new method: " + str(sourceGeneratorIndex2)) + self.connectionList[i].runConnection(generatorOutput[sourceGeneratorIndex]) # Passing the output of the generators through to the head model to This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |