pyDOE icon indicating copy to clipboard operation
pyDOE copied to clipboard

pyDOE ccdesign float error

Open shihabkhan1 opened this issue 6 years ago • 1 comments

Hi

I am new to Python. I am using miniconda. I installed pyDOE using conda install -c conda-forge pydoe

When I run the ccdesign command, ccdesign(2) I get the following error -

File "", line 1, in pyDOE.ccdesign(2) File "/home/home_shihab/miniconda3/lib/python3.6/site-packages/pyDOE/doe_composite.py", line 151, in ccdesign H1 = ff2n(n) File "/home/home_shihab/miniconda3/lib/python3.6/site-packages/pyDOE/doe_factorial.py", line 115, in ff2n return 2*fullfact([2]n) - 1 File "/home/home_shihab/miniconda3/lib/python3.6/site-packages/pyDOE/doe_factorial.py", line 78, in fullfact rng = lvlrange_repeat TypeError: 'numpy.float64' object cannot be interpreted as an integer

What should I do?

shihabkhan1 avatar May 23 '18 10:05 shihabkhan1

This isn't a unique issue to ccdesign, just so you are aware. I haven't had the time to update the repository with a fix yet, but I do have a solution. It will get fixed in due time.

tisimst avatar May 23 '18 15:05 tisimst