forked from theodoreln/sankey_diagram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuide.txt
26 lines (19 loc) · 1.57 KB
/
Guide.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Hi,
This guide is here to help you launching the tool. You'll see it's very easy.
The tool allows you to plot the result of only one country or to sum on multiple countries for one year.
------------- Python environment and GAMS API -------------
To use the tool you need to set up a new python environment and to install the GAMS API.
There is this excellent guide online which is very complete : https://www.gams.com/latest/docs/API_PY_GETTING_STARTED.html#PY_COMPATIBILITY
I recommend to use it, and don't forget to work on the right python environment when you're lauching the tool !
------------- Configuration to use the tool -------------
-> First step : changing the path to the optiflow and balmorel results file, also the path and the name of the csv options file
You just need to change those lines at the beginning of the script :
results_path = 'C:/Users/theod/Documents/Documents importants/DTU/Job/Balmorel/Balmorel + Optiflow/20230914 Balmorel model/01 Balmorel model/base/model/'
results_file_opti = 'Optiflow_MainResults_DK_WP' + '.gdx'
results_file_bal = 'MainResults_DK_WP' + '.gdx'
csv_path = 'C:/Users/theod/Documents/Documents importants/DTU/Job/Balmorel/Balmorel + Optiflow/'
csv_file = 'Sankey_Diagram_Options.csv'
-> Second step : Go to the end of the document, decide which sector you want to plot by modifying the Options_plot list and decide which country and which year you need, then launch the file :
Options_plot = ['Fuel', 'Elec', 'DH']
Plotting_oneyear_onecountry(csv_file, 'DENMARK', '2050', Options_plot)
Plotting_oneyear_sumcountries(csv_file, '2050', Options_plot)