tisimst / pyDOE

Design of experiments for Python
BSD 3-Clause "New" or "Revised" License
263 stars 114 forks source link

Error box Behnken #18

Open bouhlelma opened 6 years ago

bouhlelma commented 6 years ago

Hi, I am using pyDOE for generating box Behnken and I got an error: File "/root/anaconda3/lib/python3.6/site-packages/pyDOE/doe_repeat_center.py", line 43, in repeat_center return np.zeros((repeat, n)) TypeError: 'float' object cannot be interpreted as an integer

I think the problem is in line 73 from the file pyDOE/doe_box_behnken: nb_lines = (n(n-1)/2)H_fact.shape[0]

when I modify the above line to nb_lines = int((n(n-1)/2)H_fact.shape[0]) it works well