[Pybrainsim-activity] SF.net SVN: pybrainsim:[38] trunk/src/Head.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-02 16:29:45
|
Revision: 38 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=38&view=rev Author: rgoj Date: 2009-08-02 16:29:37 +0000 (Sun, 02 Aug 2009) Log Message: ----------- * Cosmetic changes ** Column width of documentation shortened ** Deleting outputing the value of time to the standard output Modified Paths: -------------- trunk/src/Head.py Modified: trunk/src/Head.py =================================================================== --- trunk/src/Head.py 2009-08-02 16:26:39 UTC (rev 37) +++ trunk/src/Head.py 2009-08-02 16:29:37 UTC (rev 38) @@ -47,9 +47,12 @@ self.connectionList.append(connection) def addRegistrationSite(self, position): - # We should be checking whether the position is within the boundaries of the brain, which need to be defined somewhere somehow. - # The class must somehow provide a means to accessing the size of the brain, the available positions, etc. - # One interesting thing to do would be to implement a method returning a position for a name of a given brain/scalp region... + # We should be checking whether the position is within the boundaries + # of the brain, which need to be defined somewhere somehow. The class + # must somehow provide a means to accessing the size of the brain, the + # available positions, etc. One interesting thing to do would be to + # implement a method returning a position for a name of a given + # brain/scalp region... self.registrationSiteList.append(position) def runHeadModel(self, generatorOutput, recording): @@ -61,12 +64,12 @@ return recording - def runSimulation(self, duration=1): - """Queries all generators and connections, sends the generators' output to the head model and then to the specified registration sites""" + """Queries all generators, sends the generators' output to connections, + to the head model and then to the specified registration sites""" # Preparing a variable to hold the recording for all registration sites - recording = [] + recording = [] for i in range(len(self.registrationSiteList)): recording.append([]) @@ -79,7 +82,6 @@ for timePoint in range(duration * self.samplingFrequency): for i in range(len(self.generatorList)): generatorOutput[i] = (self.generatorList[i]).runGenerator(timePoint/self.samplingFrequency) - print("Time: " + str(timePoint/self.samplingFrequency) + ", Generator: " + str(i) + ", Generator Output: " + str(generatorOutput[i])) for i in range(len(self.connectionList)): self.connectionList[i].runConnection() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |