History

print per note results print per note results

Paul Brossier committed 20 years ago

Commit 5cc94db1 parent da6d9af1 file · +10 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/test/bench/pitch/bench-pitch-isolated+10−2
@@ -12,13 +12,16 @@ class benchpitch(bench): · 11 unmodified lines
1212 'Msil', 'Mpit', 'Mchr',
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 """
1820 formats = {'mode': "%12s" ,
1921 'truth': "%s",
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",
2427 'Msil': "%s", 'Mpit': "%s", 'Mchr': "%s"}
@@ -77,12 +80,17 @@ class benchpitch(bench): · 52 unmodified lines
7780 allMsil[i] = allEsil[i]/float(allOsil[i])*100.
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)
8289 self.v['TotalChr'] = sum(allMchr)/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 = []
8896 self.plotpitchtessiture(plot,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t