You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
bouhlelma
changed the title
Hi, I am using pyDOE for generating box Behnken.
Hi, I am using pyDOE for generating box Behnken. I got an error:
Jan 22, 2018
bouhlelma
changed the title
Hi, I am using pyDOE for generating box Behnken. I got an error:
Error box Behnken
Jan 22, 2018
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
The text was updated successfully, but these errors were encountered: