You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calls "user_input" function to receive the choice of the DOE user wants to build and to read the input CSV file with the ranges of the variables. Thereafter, it calls the "generate_DOE" function to generate the DOE matrix and a suitable filename corresponding to the user's DOE choice. Finally, it calls the "write_CSV" function to write the DOE matrix (a Pandas DataFrame object) into a CSV file on the disk, and prints a message indicating the filename.
15
+
"""
16
+
doe_choice, infile=user_input()
17
+
df, filename=generate_DOE(doe_choice,infile)
18
+
iftype(df)!=intortype(filename)!=int:
19
+
flag=write_csv(df,filename)
20
+
ifflag!=-1:
21
+
print("\nAnalyzing input and building the DOE...",end=' ')
22
+
time.sleep(2)
23
+
print("DONE!!")
24
+
time.sleep(0.5)
25
+
print(f"Output has been written to the file: {filename}.csv")
26
+
else:
27
+
print("\nError in writing the output. \nIf you have a file open with same filename, please close it before running the command again!")
0 commit comments