Uncomment the new lines to calculate some stats.
This commit is contained in:
parent
3d1f02a627
commit
74d64eca9b
|
@ -60,7 +60,7 @@ class HandHistoryConverter():
|
||||||
out_dir = os.path.dirname(self.out_path)
|
out_dir = os.path.dirname(self.out_path)
|
||||||
if not os.path.isdir(out_dir):
|
if not os.path.isdir(out_dir):
|
||||||
logging.info("Creatin directory '%s'" % out_dir)
|
logging.info("Creatin directory '%s'" % out_dir)
|
||||||
os.makedirs(out_dir)
|
# os.makedirs(out_dir)
|
||||||
self.out_fh = open(self.out_path, 'w')
|
self.out_fh = open(self.out_path, 'w')
|
||||||
|
|
||||||
self.sitename = sitename
|
self.sitename = sitename
|
||||||
|
@ -204,7 +204,9 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py.
|
||||||
logging.info("Unsupported game type: %s" % gametype)
|
logging.info("Unsupported game type: %s" % gametype)
|
||||||
|
|
||||||
if hand:
|
if hand:
|
||||||
|
# uncomment these to calculate some stats
|
||||||
# print hand
|
# print hand
|
||||||
|
# hand.stats.getStats(hand)
|
||||||
hand.writeHand(self.out_fh)
|
hand.writeHand(self.out_fh)
|
||||||
return hand
|
return hand
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user