def averageSweep(self,sweepFirst=<NUM_LIT:0>,sweepLast=None):
if sweepLast is None:<EOL><INDENT>sweepLast=self.sweeps-<NUM_LIT:1><EOL><DEDENT>nSweeps=sweepLast-sweepFirst+<NUM_LIT:1><EOL>runningSum=np.zeros(len(self.sweepY))<EOL>self.log.debug("<STR_LIT>",sweepFirst,sweepLast)<EOL>for sweep in np.arange(nSweeps)+sweepFirst:<EOL><INDENT>self.setsweep(sweep)<EOL>runningSum+=self.sweepY.flatten()<EOL><DEDENT>average=runningSum/nSweeps<EOL>return average<EOL>
Return a sweep which is the average of multiple sweeps.
For now, standard deviation is lost.