Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel_holdem_calc not working #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

RaulBritto
Copy link

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