tisimst / pyDOE

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

pyDOE ccdesign float error #21

Open shihabkhan1 opened 6 years ago

shihabkhan1 commented 6 years ago

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 2fullfact([2]n) - 1 File "/home/home_shihab/miniconda3/lib/python3.6/site-packages/pyDOE/doe_factorial.py", line 78, in fullfact rng = lvl*range_repeat TypeError: 'numpy.float64' object cannot be interpreted as an integer

What should I do?

tisimst commented 6 years ago

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.