Commit Graph

51 Commits

Author SHA1 Message Date
Mika Bostrom
a75ba5a288 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-29 20:00:06 +02:00
Mika Bostrom
8265d9fc6e 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-29 19:59:58 +02: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
sqlcoder
cc31f86269 add profit/100 hands stat 2009-01-03 18:00:44 +00:00
eblade
fc4671fc98 add NA for attempted steal % 2008-12-21 18:42:21 -05:00
sqlcoder
4dc15bfd94 pulled and merged from fpdboz 2008-12-07 23:38:33 +00:00
eblade
3f86c54b17 add "NA" to fold to steal stats for 0/0's 2008-12-02 10:14:38 -05:00
sqlcoder
a824814c0a sqlcoder initial updates 2008-12-02 00:15:50 +00:00
eblade
2c00422f34 clean up some stat descriptions 2008-11-25 07:33:20 -05:00
Worros
a29372a756 Fix copy-paste error in Stat.py for a_freq_3 function.
Hat tip to sqlcoder on sourceforge.
2008-11-06 12:14:46 +13:00
eblade
e154bdd8f4 Add "hudprefix" and "hudsuffix" properties to each of the "STAT" nodes in the config, will display them before/after stats on the HUD, as appropriate.
(note that due to the use of a table in the hud display, it can get a little.. ugly.. looking)

Add "playername" to list of available stats

MIGHT close huds when poker table is closed in Nix. It doesn't in Windows, but it should.
2008-10-31 14:34:41 -04:00
steffen123
7b13331331 p80 - a great many updates from Ray 2008-09-15 21:31:55 +01:00
steffen123
07f8220808 p66 - mostly HUD improvements from ray
HUD now doesnt display a taskbar window for each stat window
HUD w$wsf works
more HUD improvements
made windows not call fpdb hud
moved conf file out of profiles folder
2008-08-22 21:10:32 +01:00
steffen123
6879815320 p64 - fixed bug that HUD displayed wrong raw data for aggr river/6th even though it used the right numbers for calculating the % value
attempted to fix W$wsF in HUD but didnt work
made default interval for auto import a more sensible 10s
2008-08-20 22:47:43 +01:00
steffen123
66d938accc p62 - major patch from ray with new stats in HUD
added db todo file with the things that are left for the db
2008-08-20 20:29:08 +01:00