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

Error in sample_without_replacement with Numba 0.43.0 #478

Closed
oyamad opened this issue Mar 15, 2019 · 0 comments
Closed

Error in sample_without_replacement with Numba 0.43.0 #478

oyamad opened this issue Mar 15, 2019 · 0 comments

Comments

@oyamad
Copy link
Member

oyamad commented Mar 15, 2019

>>> qe.random.sample_without_replacement(5, 3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mtrand.pyx", line 861, in mtrand.RandomState.random_sample
  File "mtrand.pyx", line 167, in mtrand.cont0_array
TypeError: 'NoneType' object cannot be interpreted as an integer

This used to work fine in Numba 0.42.1.

It seems that the conditional statement "num_trials is None" is not working properly in Numba 0.43.0.

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

No branches or pull requests

1 participant