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

Error box Behnken #18

Open
bouhlelma opened this issue Jan 22, 2018 · 0 comments
Open

Error box Behnken #18

bouhlelma opened this issue Jan 22, 2018 · 0 comments

Comments

@bouhlelma
Copy link

bouhlelma commented 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

@bouhlelma 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 bouhlelma changed the title Hi, I am using pyDOE for generating box Behnken. I got an error: Error box Behnken Jan 22, 2018
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

1 participant