capaulson / pyKriging

Welcome to the User Friendly Python Kriging Toolbox!
http://www.pykriging.com
MIT License
382 stars 113 forks source link

IndexError in samplingplan.perturb #28

Open jbussemaker opened 7 years ago

jbussemaker commented 7 years ago

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 commented 7 years ago

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