[Pybrainsim-activity] SF.net SVN: pybrainsim:[107] trunk/src/Experiment.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-15 11:14:43
|
Revision: 107 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=107&view=rev Author: rgoj Date: 2009-08-15 11:14:34 +0000 (Sat, 15 Aug 2009) Log Message: ----------- * Added a few comments Modified Paths: -------------- trunk/src/Experiment.py Modified: trunk/src/Experiment.py =================================================================== --- trunk/src/Experiment.py 2009-08-15 11:01:16 UTC (rev 106) +++ trunk/src/Experiment.py 2009-08-15 11:14:34 UTC (rev 107) @@ -91,11 +91,17 @@ return self.recording[sliceChannel][startIndex:endIndex] def getERP(self, stimulusNumber=0): + # Choosing the stimulus that will be used to make ERPs stimuli = self.stimulusTimes[stimulusNumber] + + #for channel in range(len(self.recording)): + channel = 0 + # Retrieving slices of recordings around each stimulus (epochs) epochs = [] for i in range(len(stimuli)): - epochs.append(self.getRecordingSlice(stimuli[i])) + epochs.append(self.getRecordingSlice(stimuli[i], channel)) + # Making sure all epochs are the same length for i in range(len(epochs)): if i == 0: continue @@ -158,5 +164,4 @@ #ylabel('Amplitude') #title('Simulated ERP') - #show() show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |