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

IndexError in samplingplan.perturb #28

Open
jbussemaker opened this issue Sep 13, 2017 · 1 comment
Open

IndexError in samplingplan.perturb #28

jbussemaker opened this issue Sep 13, 2017 · 1 comment

Comments

@jbussemaker
Copy link

When trying to create an optimal LHC sampling plan for k>2, I am getting an IndexError from numpy in the samplingplan.perturb function. Upon closed inspection, this seems to be happening because math.floor returns a float instead of an int. Wrapping m.floor in int() seems to solve the problem.

@capaulson
Copy link
Owner

Cool, I'll fix and push right away. Thanks for the bug report and fix!

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

2 participants