-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (38 loc) · 1.92 KB
/
Copy pathmain.py
File metadata and controls
41 lines (38 loc) · 1.92 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from src.figures import (plot_network, plot_region, plot_system_contribution, plot_biogenic_carbon_impact,
plot_fossil_fuel_impacts, plot_scenarios, plot_sensitivity_biomass,
plot_sensitivity_electricity, plot_demand_sensitivity, plot_ele_biomass_demand_sensitivity,
plot_image_map, plot_allocation, plot_pareto_curves
)
from src.optimization import MasterFile
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
master_file_path = r'data/raw/master_file_health_large_biomass.xlsx'
user_input_file = r'data/raw/user_inputs.xlsx'
plastics_file_path = r'data/raw/bioplastics_vs_fossil.xlsx'
user_input = MasterFile(user_input_file, master_file_path, plastics_file_path)
# '''
# Fig 1
plot_scenarios(master_file_path, plastics_file_path) # waterfall and radar
plot_pareto_curves(user_input)
user_input.carbon_flow_sankey('GHG', scenario='with_ccs')
plot_system_contribution(master_file_path, plastics_file_path, 'World')
# Fig 2
plot_sensitivity_electricity(master_file_path, plastics_file_path)
plot_sensitivity_biomass(master_file_path, plastics_file_path)
# Fig 3
plot_fossil_fuel_impacts(master_file_path, plastics_file_path)
plot_ele_biomass_demand_sensitivity(user_input_file, master_file_path, plastics_file_path)
# Fig 4
plot_demand_sensitivity(master_file_path, plastics_file_path)
# Fig 5
plot_region(master_file_path, plastics_file_path)
# others
user_input.calculate_product_impacts('GHG')
user_input.carbon_flow_sankey('GHG', scenario='with_ccs')
user_input.export_process_list()
# '''
# -----------------SI-------------------
plot_image_map(master_file_path, plastics_file_path)
plot_allocation(master_file_path, plastics_file_path)
plot_biogenic_carbon_impact(user_input)
plot_network(user_input)