-
Notifications
You must be signed in to change notification settings - Fork 0
wip - add automotive to WEO2024 #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Docker build status
|
| weo_2024_fig_chptr_3_raw_filename: "WEO2024_Figures_Chapter_03.xlsx" | ||
| iea_global_ev_raw_path: "iea_global_ev_2024" | ||
| iea_global_ev_raw_filename: "IEA Global EV Data 2024.csv" | ||
| weo_2024_fig_chptr_3_raw_full_filepath: 'weo_2024/WEO2024 extended data/WEO2024_Figures_Chapter_03.xlsx' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this config, I strive to always separate paths from filenames, which has organizational impact later on in the scripts
| iea_global_ev_raw_filename: "electric-vehicle-sales-by-region-and-scenario-2030-and-2035.xlsx" | ||
| mpp_ats_raw_path: "mpp_ats-20240227" | ||
| mpp_ats_raw_filename: "2022-08-12 - MPP ATS - RPK and GHG intensity.xlsx" | ||
| hybrid_methodology: "hybrid_in_ev" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a filename, path, or something else?
| readr::read_csv( | ||
| file = iea_global_ev_2024_raw_full_filepath, | ||
| show_col_types = FALSE | ||
| read_xlsx( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer explicit name spacing, e.g.
| read_xlsx( | |
| readxl::read_xlsx( |
| show_col_types = FALSE | ||
| read_xlsx( | ||
| path = iea_global_ev_2024_raw_full_filepath, | ||
| sheet = "electric-vehicle-sales-by-regio" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it intentional that the sheet name ends with "regio" not "region"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sheet name is truncated when uploading data from IEA website, so sheet name title will be electric-vehicle-sales-by-regio
| iea_sales_share_ev <- read_xlsx( | ||
| path = iea_global_ev_2024_raw_full_filepath, | ||
| sheet = "electric vehicle share-ev" | ||
| ) | ||
|
|
||
| iea_sales_share_bev_phev <- read_xlsx( | ||
| path = iea_global_ev_2024_raw_full_filepath, | ||
| sheet = "electric-vehicle-share-bev-phev" | ||
| ) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer explicit name spacing, e.g.
| iea_sales_share_ev <- read_xlsx( | |
| path = iea_global_ev_2024_raw_full_filepath, | |
| sheet = "electric vehicle share-ev" | |
| ) | |
| iea_sales_share_bev_phev <- read_xlsx( | |
| path = iea_global_ev_2024_raw_full_filepath, | |
| sheet = "electric-vehicle-share-bev-phev" | |
| ) | |
| iea_sales_share_ev <- readxl::read_xlsx( | |
| path = iea_global_ev_2024_raw_full_filepath, | |
| sheet = "electric vehicle share-ev" | |
| ) | |
| iea_sales_share_bev_phev <- readxl::read_xlsx( | |
| path = iea_global_ev_2024_raw_full_filepath, | |
| sheet = "electric-vehicle-share-bev-phev" | |
| ) | |
|
|
||
| weo_2024 <- | ||
| pacta.scenario.data.preparation::prepare_weo_2024_scenario( | ||
| prepare_weo_2024_scenario( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer explicit name spacing, e.g.
| prepare_weo_2024_scenario( | |
| pacta.scenario.data.preparation::prepare_weo_2024_scenario( |
|
closed as duplicated of #65 |
This PR aims to adapt codeines from weo2023 to change in data format in weo2024