Data.py
def average_particle_time(self):
        """
            For each particle, return the average time
            that particle has taken to complete its step
        """
        sums = [0] * self.nofparticles

        for i in range(self.nofparticles):
            for j in range(self.iterations):
                sums[i] += self.particle_iteration_times[i][j]

        averages = [0] * self.nofparticles
        for p, s in enumerate(sums):
            averages[p] = s / self.iterations
        
        return averages

            For each particle, return the average time
            that particle has taken to complete its step
        
For each particle, return the average time
that particle has taken to complete its step
For each particle return the average time that particle has taken to complete its step
def average_particle_time(self):
        sums = [0] * self.nofparticles
        for i in range(self.nofparticles):
            for j in range(self.iterations):
                sums[i] += self.particle_iteration_times[i][j]
        averages = [0] * self.nofparticles
        for p, s in enumerate(sums):
            averages[p] = s / self.iterations
        return averages
def average_particle_time ( self ) : sums = [ 0 ] * self . nofparticles for i in range ( self . nofparticles ) : for j in range ( self . iterations ) : sums [ i ] += self . particle_iteration_times [ i ] [ j ] averages = [ 0 ] * self . nofparticles for p , s in enumerate ( sums ) : averages [ p ] = s / self . iterations return averages
For each particle, return the average time
that particle has taken to complete its step
For each particle return the average time that particle has taken to complete its step
"""
            For each particle, return the average time
            that particle has taken to complete its step
        """
self