Page 1 of 1

Testing stats

PostPosted: Sun Sep 18, 2016 11:17 am
by Biggetje
Hey, I was wondering if there was a quick/better way to test custom stats I made.

What I do right now is I build the stat, then I go into reports, add the stat there and check the values (for example 84/118)

Then I go to results, manually set all the filters to reproduce the situation I made a stat for, and then check if I have the same amount of hands.



It just seems quite time consuming to set the filters each time. Is there a better way? Can I somehow access the hands (in this case the 84 situations where it occurred) directly? That way I could click a few random hands and check if they're showing what I want.

Re: Testing stats

PostPosted: Sun Sep 18, 2016 4:09 pm
by 4StarGen
The best way to test the stats is to make a hand stat, not a player stat, with the exact same expression without sum().
Image
Then you have to format the stat like this
Image
format_bool(this,'check')
then add the stat in you hand report, then you can check whether the hands fullfil your requirements or not.
Image

GL

Re: Testing stats

PostPosted: Mon Sep 19, 2016 3:18 am
by WhiteRider
You can also use the inner part of a your column expressions as custom filters in My Reports.
Create a new Hands report and click the blue Filters link and choose 'expression filters'.
From one of your columns copy the 'expression' expression part and paste it in here.

e.g. If you wanted to test steal actions (using the built-in Att to Steal stat as an example) you'd take the actions column (cnt_steal_att) expression which is:
sum(if[cash_hand_player_statistics.flg_steal_att, 1, 0])
..and copy the bold part to the expression filter:

cash_hand_player_statistics.flg_steal_att

You can repeat this for the actions and opportunities expressions separately to see the individual hands.

Re: Testing stats

PostPosted: Mon Sep 19, 2016 10:00 am
by Biggetje
Really helpful stuff, thanks a ton!