File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ===========================================================================================
2
+ # Function for accepting the user input (choice) for desired DOE and the input CSV file name
3
+ # ===========================================================================================
4
+
5
+ def user_input ():
6
+ print ("-" * 60 + "\n " + "Design of Experiments menu\n " + "-" * 60 + "\n " )
7
+ list_doe = ["1) Full factorial" ,
8
+ "2) 2-level fractional factorial" ,
9
+ "3) Plackett-Burman" ,
10
+ "4) Sukharev grid" ,
11
+ "5) Box-Behnken" ,
12
+ "6) Box-Wilson (Central-composite) with center-faced option" ,
13
+ "7) Box-Wilson (Central-composite) with center-inscribed option" ,
14
+ "8) Box-Wilson (Central-composite) with center-circumscribed option" ,
15
+ "9) Latin hypercube (simple)" ,
16
+ "10) Latin hypercube (space-filling)" ,
17
+ "11) Random k-means cluster" ,
18
+ "12) Maximin reconstruction" ,
19
+ "13) Halton sequence based" ,
20
+ "14) Uniform random matrix"
21
+ ]
22
+
23
+ for choice in list_doe :
24
+ print (choice )
25
+ print ("-" * 60 )
26
+
27
+ doe_choice = int (input ("Please make a choice for your Deisgn-of-Experiment build: " ))
28
+ infile = str (input ("Please enter the name of the input csv file (enter only the name without the CSV extension): " ))
29
+ print ()
30
+
31
+ if (infile [- 3 :]!= 'csv' ):
32
+ infile = infile + '.csv'
33
+
34
+ return (doe_choice ,infile )
You can’t perform that action at this time.
0 commit comments