Changeset 5cc94db for python


Ignore:
Timestamp:
May 7, 2006, 5:46:51 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
e83c895
Parents:
da6d9af
Message:

print per note results
print per note results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/test/bench/pitch/bench-pitch-isolated

    rda6d9af r5cc94db  
    1313               'TotalPit', 'TotalPit', 'TotalChr' ]
    1414        """ list of values to print per dir """
    15         printnames = [ 'mode', 'MinPit', 'MaxPit', 'TotalSil', 'TotalPit', 'TotalChr']
     15        printnames_total = [ 'mode', 'MinPit', 'MaxPit', 'TotalSil', 'TotalPit', 'TotalChr']
     16        printnames_notes = [ 'mode', 'Note', 'Sil', 'Pit', 'Chr']
     17        printnames = printnames_notes
    1618
    1719        """ per dir """
     
    2022                'osil': "%s", 'esil': "%s",
    2123                'opit': "%s", 'epit': "%s", 'echr': "%s",
     24    'Note': "%s", 'Sil': "%s", 'Chr': "%s", 'Pit': "%s",
    2225                'TotalPit': "%s", 'TotalSil': "%s", 'TotalChr': "%s",
    2326                'MinPit': "%s", 'MaxPit': "%s",
     
    7881                                allMpit[i] = allEpit[i]/float(allOpit[i])*100.
    7982                                allMchr[i] = allEchr[i]/float(allOpit[i])*100.
     83                                self.v['Sil'], self.v['Pit'], self.v['Chr'] = allMsil[i], allMpit[i], allMchr[i]
     84                                self.v['Note'] = truth[i]
     85                                #self.printnames = self.printnames_notes
     86                                self.pretty_print()
    8087                        self.v['TotalSil'] = sum(allMsil)/len(truth)
    8188                        self.v['TotalPit'] = sum(allMpit)/len(truth)
     
    8390                        self.v['MinPit'] = min(truth)
    8491                        self.v['MaxPit'] = max(truth)
    85                         self.pretty_print()
     92                        #self.printnames = self.printnames_total
     93                        #self.pretty_print()
    8694
    8795                        plot = []
Note: See TracChangeset for help on using the changeset viewer.