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

pyDOE pbdesign not accepting large number of features #31

Open
Erik-van-der-Steen opened this issue Apr 20, 2021 · 0 comments
Open

pyDOE pbdesign not accepting large number of features #31

Erik-van-der-Steen opened this issue Apr 20, 2021 · 0 comments

Comments

@Erik-van-der-Steen
Copy link

when I try n=60 I do get a return array
but for 61 or 64 I get an error
as if that isnt a 4-fold...
while it works for n=17 :-)

How to get a PB design for large numbers of uncertainties (>48 .. 500)?

Erik

AssertionError Traceback (most recent call last)
in
11 # # Plackett-Burman, by concept, ignoring Factors, then merge all PB designs over all concepts into one JS table
12 # PB_Design_Array = pbdesign(NrFeatures_Concept)
---> 13 PB_Design_Array = pbdesign(64)
14 print(f' PB_Design_Array:=<{PB_Design_Array}>\n PB_Design_Array.shape={PB_Design_Array.shape}')

~\AppData\Local\Programs\Python\Python37\lib\site-packages\pyDOE\doe_plackett_burman.py in pbdesign(n)
67 k = [idx for idx, val in enumerate(np.logical_and(f==0.5, e>0)) if val]
68
---> 69 assert isinstance(n, int) and k!=[], 'Invalid inputs. n must be a multiple of 4.'
70
71 k = k[0]

AssertionError: Invalid inputs. n must be a multiple of 4.

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