[Pybrainsim-activity] SF.net SVN: pybrainsim:[42] trunk/src/Head.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-02 18:47:28
|
Revision: 42 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=42&view=rev Author: rgoj Date: 2009-08-02 18:47:20 +0000 (Sun, 02 Aug 2009) Log Message: ----------- * Additional comments to make things more clear Modified Paths: -------------- trunk/src/Head.py Modified: trunk/src/Head.py =================================================================== --- trunk/src/Head.py 2009-08-02 18:40:00 UTC (rev 41) +++ trunk/src/Head.py 2009-08-02 18:47:20 UTC (rev 42) @@ -73,16 +73,22 @@ for i in range(len(self.registrationSiteList)): recording.append([]) - # Preparing a variable where the output of each of the generators will be stored - generatorOutput = [] + # Preparing a variable where the output of each of the generators will + # be stored + generatorOutput = [] for generator in self.generatorList: generatorOutput.append(0) - # Querying all generators and sending generator output through connections + # Querying all generators and sending generator output through + # connections for timePoint in range(duration * self.samplingFrequency): print("HEAD, time: " + str(timePoint/self.samplingFrequency)) + + # Recording the output of each generator for i in range(len(self.generatorList)): generatorOutput[i] = (self.generatorList[i]).runGenerator(timePoint/self.samplingFrequency) + + # Sending the output of generators through connections for i in range(len(self.connectionList)): sourceGeneratorIndex = 0 for j in range(len(self.generatorList)): @@ -90,6 +96,8 @@ sourceGeneratorIndex = j self.connectionList[i].runConnection(generatorOutput[sourceGeneratorIndex]) + # Passing the output of the generators through to the head model to + # get the recording recording = self.runHeadModel(generatorOutput, recording) return recording This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |