From 6f8fe4a68ca7c10d9dc8e701e87e399ac769fc00 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Sun, 13 Jun 2010 07:40:59 +0200 Subject: [PATCH] expanded explanation of vpip --- pyfpdb/Stats.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyfpdb/Stats.py b/pyfpdb/Stats.py index fc2e4ea8..799103e1 100755 --- a/pyfpdb/Stats.py +++ b/pyfpdb/Stats.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- """Manage collecting and formatting of stats and tooltips. """ @@ -114,7 +115,7 @@ def playername(stat_dict, player): stat_dict[player]['screen_name']) def vpip(stat_dict, player): - """ Voluntarily put $ in the pot.""" + """ Voluntarily put $ in the pot pre-flop.""" stat = 0.0 try: stat = float(stat_dict[player]['vpip'])/float(stat_dict[player]['n']) @@ -123,14 +124,14 @@ def vpip(stat_dict, player): 'v=%3.1f' % (100*stat) + '%', 'vpip=%3.1f' % (100*stat) + '%', '(%d/%d)' % (stat_dict[player]['vpip'], stat_dict[player]['n']), - 'Voluntarily Put In Pot %' + 'Voluntarily Put In Pot Pre-Flop%' ) except: return (stat, '%3.1f' % (0) + '%', 'v=%3.1f' % (0) + '%', 'vpip=%3.1f' % (0) + '%', '(%d/%d)' % (0, 0), - 'Voluntarily Put In Pot %' + 'Voluntarily Put In Pot Pre-Flop%' ) def pfr(stat_dict, player):