Commit Graph

63 Commits

Author SHA1 Message Date
Donoban
1a0d76686f Added 4bet and fold to 4bet stat 2011-02-03 05:04:12 +01:00
Donoban
13758dd45a Added fold to 3bet 2011-02-02 03:35:38 +01:00
Eratosthenes
d862cd6bd2 Make executable. 2011-01-26 17:12:47 -05:00
Worros
235a8baa5f L10n: Remaining files 2010-09-23 14:31:16 +08:00
Eric Blade
80b98da6fc Merge branch 'master' of git://repo.or.cz/fpbd-bostik.git 2010-08-31 04:42:32 -04:00
Mika Bostrom
1a515534b4 Try to fix profit/100 2010-08-31 11:40:21 +03:00
Eric Blade
39f81e7bc0 Merge branch 'master' of git://repo.or.cz/fpbd-bostik.git
Conflicts:
	pyfpdb/Stats.py
2010-08-30 05:40:38 -04:00
Mika Bostrom
2b97d938f1 Fix HUD bug with specified decimals
If any stat in HUD had manually specified number of decimal places, the
entire hand processing stopped when the first such stat was encountered.

Now really do the decimal place formatting as it was supposed to work.
Also, for future reference: tuples are immutable - you can't overwrite
any tuple member. Hence the need for new routine, __stat_override()
2010-08-30 12:38:08 +03:00
Eric Blade
54279cafef Revert "Remove trailing percent symbols from HUD values"
This reverts commit b4a08af2b1.

Conflicts:

	pyfpdb/Stats.py
2010-08-29 23:05:05 -04:00
Eric Blade
978464e7c6 Merge branch 'master' of git://git.assembla.com/fpdb.git 2010-08-29 23:01:26 -04:00
Eric Blade
65642e37df cherry picking around a patch that didn't work for me 2010-08-29 22:56:00 -04:00
Mika Bostrom
d2483b8866 Add comment on decimal place override 2010-08-22 14:12:29 +03:00
Mika Bostrom
4a92638941 Return "hard" NA for missing/incalculable stats
It makes very little sense to do a format string for nothing but zeroes
in case of unknown values. Simply return a set of 'NA' strings in place
of usual stats. This makes the error cases consistent throughout
Stats.py
2010-08-22 13:57:01 +03:00
Mika Bostrom
b4a08af2b1 Remove trailing percent symbols from HUD values
The values that are displayed in the HUD box included the '%' symbol if
these values were percentages. This clutters the HUD for those who don't
need such extra characters.

This patch removes the trailing '%' from result[1]. The default
formatting for HUD values is '%3.1f' and if decimal places need to be
changed, the code for those is now simpler. A user who wishes to show a
percent symbol after any given stat value, can edit HUD_config.xml and
assign such stats the hudsuffix="%" attribute.

This patch also changes the way the tooltip strings are constructed.
Instead of appending the percent symbol to generated string, the '%' is
now generated in place by the format-string stanza '%%'.
2010-08-22 13:09:26 +03:00
steffen123
bde9a40163 gettextify pyfpdb/Stats.py 2010-08-17 19:50:22 +02:00
steffen123
6ac8f410f6 Merge branch 'eric' 2010-08-08 20:13:07 +02:00
Eric Blade
28576d70f8 switch "0.00%" on ffreq1 to NA, need to update all the other percents with that sometime too 2010-08-05 04:07:37 -04:00
Worros
c8006dc468 Merge branch 'master' of git://git.assembla.com/fpdb-sql 2010-08-05 12:03:54 +08:00
sqlcoder
15f99ddfa7 add bbper100 and BBper100 stats for HUD 2010-08-04 22:23:28 +01:00
Eric Blade
0c318df8ea fix comment on cbet stat 2010-08-02 17:50:19 -04:00
Ferenc Erki
d241ce9b48 Added new stat: fold to steal
Added new stat: fold to steal

Signed-off-by: steffen123 <steffen@schaumburger.info>
2010-07-28 16:17:58 +02:00
steffen123
66ac9b27d6 comment out some broken code, add TODO for it 2010-07-16 21:33:36 +02:00
steffen123
178b528d3b change calls to python2 back to python 2010-07-08 20:01:03 +02:00
steffen123
3b24fd18b2 some cleanups:
- updated copyright notices
- added copyright notices that were missing
- changed python to python2
- added gpl-2/3 license texts
- removed THANKS.txt file as the wiki version is more up to date
- removed empty fpdb_db.py
- added GPL2 to debian license file
2010-07-04 03:05:16 +02:00
Worros
79a6aa8f48 Merge branch 'master' of git://github.com/kangaderoo/fpdb-kangaderoo 2010-06-21 14:45:03 +08:00
steffen123
6f8fe4a68c expanded explanation of vpip 2010-06-21 13:42:53 +08:00
Gerko de Roo
f94fa0c685 Added aggression information in guiplayerstats 2010-06-20 10:02:01 +02:00
Gerko de Roo
1279c8d67e When div by 0, still display usefull info 2010-06-16 17:17:14 +02:00
Gerko de Roo
d9f6967c1c Street(x)Bet and street(x)Call and Street(x)Raises
Now updates in hud chache also
2010-06-16 17:17:03 +02:00
Gerko de Roo
db6f7989a9 Street(x)Bet street(x)Calls were stored in (db.)handplayers.
They were not yet available in (db.)hudchache.
Using the Bets and Call, together with stree(x)Agression the
aggression frequency and aggression factor can be calculated.
2010-06-16 17:16:58 +02:00
Gerko de Roo
4d4dafee8f Added aggression factor, aggression freq and Overall Cont. bet.
At the moment the agrression based equations are not correct yet due to
missing stat info...
Missing stat code is mentioned in comment.
using saw_x as an indication....
2010-06-16 17:16:53 +02:00
Mika Bostrom
18036fb2cc Merge branch 'master' of git://git.assembla.com/fpdboz 2010-06-04 06:43:58 +03:00
Gerko de Roo
27e5bf8698 Moved Codec conversion to Charset
The TIP is using a codec conversion that doesn't handle error exeptions.
This could lock up the HUD....
2010-06-04 03:58:49 +08:00
Mika Bostrom
b482148d2a Kill trailing whitespace 2010-05-24 09:26:19 +03:00
Mika Bostrom
2503cd1b6c Fix what looks like a thinko
The stat 'fold_f' probably should do a "float(foo)/float(bar)" division
because there is no function called "fold"
2010-05-13 06:57:59 +03:00
sqlcoder
0ea95363fa only use M.Nk format for hand numbers > 10000 2010-02-14 23:29:20 +00:00
Mika Bostrom
94ab5849fa Modify display of 'n' in HUD for large numbers
When sample size grows to larger than 1000, use "X.Yk" notation to
show the approximate value.
2010-02-07 20:10:26 +02:00
Mika Bostrom
cd71778975 Fix name display in HUD popup
The names are stored in UTF-8, so simply converting the name from UTF-8
to Configuration.LOCALE_ENCODING before putting the string in tooltip is
enough. Neat.
2010-01-21 13:56:50 +08:00
unknown
a6b7292943 mostly None checkings fixed (== to is != to is not) 2009-11-03 14:30:52 -05:00
sqlcoder
d39a34686e tidy up main() output 2009-10-24 12:41:51 +01:00
sqlcoder
11f50765c9 fix main 2009-10-24 12:16:26 +01:00
sqlcoder
495885e49c _x (where x is a single digit) at the end of a stat name in hud_config.xml now indicates the number of decimal places to display in the HUD. Some stats renamed slightly to remove the _ before last character of name. 2009-07-23 23:15:02 +01:00
Worros
c3d2c5a2be Merge branch 'master' of git://git.assembla.com/free_poker_tools
Conflicts:

	pyfpdb/Database.py
	pyfpdb/SQL.py
	pyfpdb/fpdb_db.py
	pyfpdb/fpdb_save_to_db.py

Also fix datetime issue with Everleaf
2009-06-09 22:48:48 +08:00
Ray
0008a9ede3 Mode change to Stats.py. 2009-06-06 11:06:49 -04:00
sqlcoder
d6ebd9352d pull from Ray (I think this was release 0.11) 2009-04-29 23:05:29 +01:00
sqlcoder
d28bdf7c60 added a few more stats with no decimal places 2009-04-28 22:47:05 +01:00
sqlcoder
2efc6f1c8e use lower case for keys into stat_dict as postgres returns column names in lower case 2009-04-27 21:29:02 +01:00
eblade
4c0b709c22 fix for error if totalprofit = 0 (new player) 2009-02-26 22:01:35 -05:00
eblade
9557117a16 add "totalprofit" stat 2009-02-26 09:27:59 -05:00
eblade
ff3d6c75b8 Merge branch 'master' of git://git.assembla.com/mctfpdb.git 2009-01-07 12:36:09 -05:00