X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/e3d9c56514820753014ec6443abd553c0eb34dab..514694afbf604d9f1a32162ae60fd016679fe62c:/src/minwii/loganalyse.py?ds=sidebyside diff --git a/src/minwii/loganalyse.py b/src/minwii/loganalyse.py index 03d0837..1a1f676 100755 --- a/src/minwii/loganalyse.py +++ b/src/minwii/loganalyse.py @@ -9,9 +9,12 @@ $URL$ from minwii.logfilereader import LogFileReader from pprint import pprint from minwii.musicxml import musicXml2Song +from minwii.globals import PLAYING_MODES from statlib import stats from datetime import timedelta +PLAYING_MODES = dict(PLAYING_MODES) + DEFAULT_STATS = (#'geometricmean', #'harmonicmean', #'mean', @@ -69,7 +72,7 @@ class LogFileAnalyser(LogFileReader) : try : self.mode = mode = self.getMode() - results.append(('Mode de jeu', mode)) + results.append(('Mode de jeu', PLAYING_MODES.get(mode, mode))) for name in self.POSSIBLE_ANALYSES[mode] : meth = getattr(self, name) results.append((meth.__doc__, meth()))