Skip to content

parallel_holdem_calc not working - #7

Open
RaulBritto wants to merge 6 commits into
ktseng:masterfrom
RoelandMatthijssens:master
Open

parallel_holdem_calc not working#7
RaulBritto wants to merge 6 commits into
ktseng:masterfrom
RoelandMatthijssens:master

Conversation

@RaulBritto

Copy link
Copy Markdown

I'm trying to call parallel_holdem_calc as library call as following:

from holdem_calc import parallel_holdem_calc 
parallel_holdem_calc.calculate(None, True, 1, None, ["8s", "7s", "Ad", "Ac"], False)

But the follow error is launched:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/raul/anaconda3/lib/python3.7/site-packages/holdem_calc/parallel_holdem_calc.py", line 14, in calculate
    return run(hole_cards, n, e, board, filename, verbose)
  File "/home/raul/anaconda3/lib/python3.7/site-packages/holdem_calc/parallel_holdem_calc.py", line 30, in run
    return run_simulation(hole_cards, num, exact, board, deck, verbose)
  File "/home/raul/anaconda3/lib/python3.7/site-packages/holdem_calc/parallel_holdem_calc.py", line 73, in run_simulation
    combined_histograms[(index / num_poker_hands) % num_players][
TypeError: list indices must be integers or slices, not float

@RaulBritto RaulBritto closed this Jun 28, 2020
@RaulBritto RaulBritto reopened this Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants