Commit 6a63c524 authored by Lie-Piang, Anouk's avatar Lie-Piang, Anouk
Browse files

Update Formulation_Tool.py

parent 3c041c7a
......@@ -86,7 +86,7 @@ SolutionList = [list(t) for t in SolutionsList_order]
SolutionList.insert(0,['Protein (DM%)', 'Starch (DM%)', 'Fibre (DM%)', 'Rest (DM%)'])
df_comp = pd.DataFrame(SolutionList[1:],columns=SolutionList[0])
df = pd.DataFrame(df_comp.sum(axis = 1))
df_comp.to_csv(r'C:\ModelsLocal\Functionality models\Ternary plots\1500_0.025mPas_22%dm.csv', index = False, header=True
df_comp.to_csv(r'The name and location of the file you want to generate', index = False, header=True
)
......@@ -191,7 +191,7 @@ plot(fig_frac) #online)
fig_frac.show(renderer = 'png') #in python
#Export Optimal Solutions
df_OptimalSolutions.to_csv (r'C:\Users\lie-p001\.spyder-py3\Product formulator\ingredient_output_1500_variance_0.025.csv', index = False, header=True)
df_OptimalSolutions.to_csv (r'The name and location of the file you want to generate', index = False, header=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment