34aa81447b74b182fcfc419ba02e7e1cbed95292,poker/table_analysers/table_screen_based.py,TableScreenBased,get_bot_pot,#TableScreenBased#Any#,469
Before Change
pil_image = self.crop_image(self.entireScreenPIL, self.tlc[0] + fd[0], self.tlc[1] + fd[1], self.tlc[0] + fd[2],
self.tlc[1] + fd[3])
value = self.get_ocr_float(pil_image, str(inspect.stack()[0][3]), force_method=1)
try:
value = float(re.findall(r"\d{1}\.\d{1,2}", str(value))[0])
except:
self.logger.debug("Assuming bot pot is 0")
value = 0
self.bot_pot = value
return value
def get_other_player_status(self, p, h):
After Change
value = self.find_value("other_player_pots", screenshot_pilImage, 0.0112)
if value != "":
self.bot_pot = float(value)
self.value = float(value)
if value == "":
self.bot_pot = 0
self.logger.debug("Assuming bot pot is 0")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_bot_pot
Project Name: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_total_pot_value
Project Name: comic/grand-challenge.org
Commit Name: e357e1dbcdf36eb12be0bc5043e0a098f94a833a
Time: 2017-05-09
Author: jamesmeakin@gmail.com
File Name: django/comicsite/templatetags/comic_templatetags.py
Class Name: comic_URLNode
Method Name: render