From 514694afbf604d9f1a32162ae60fd016679fe62c Mon Sep 17 00:00:00 2001 From: pin Date: Wed, 28 Jul 2010 09:08:02 +0000 Subject: [PATCH 1/1] =?utf8?q?Affichage=20en=20fran=C3=A7ais=20du=20mode?= =?utf8?q?=20de=20jeu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@299 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/minwii/loganalyse.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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())) -- 2.20.1