pyKriging icon indicating copy to clipboard operation
pyKriging copied to clipboard

IndexError in samplingplan.perturb

Open jbussemaker opened this issue 8 years ago • 1 comments

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.

jbussemaker avatar Sep 13 '17 05:09 jbussemaker

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

capaulson avatar Sep 14 '17 16:09 capaulson