def getClustersMeans(self, clusters):

        means = []
        for bin, freqs in clusters.iteritems():
            means.append(sum(freqs) / len(freqs))
        return means
Trailing newlines shouldn't cause last line to be dropped.
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/MIDI_Detector.getClustersMeans--crossover with--dataset/ETHPy150Open fabric/fabric/tests/test_network.py/TestNetwork.test_trailing_newline_line_drop