Skip to content

Commit

Permalink
Align wrt master
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Aug 5, 2024
1 parent 0e715cc commit 5d9288e
Show file tree
Hide file tree
Showing 18 changed files with 1,108 additions and 1,195 deletions.
803 changes: 139 additions & 664 deletions docs/extract.rst

Large diffs are not rendered by default.

1,263 changes: 757 additions & 506 deletions docs/transform.rst

Large diffs are not rendered by default.

Binary file modified premise/data/additional_inventories/lci-PV-GaAs.xlsx
Binary file not shown.
Binary file modified premise/data/additional_inventories/lci-PV-perovskite.xlsx
Binary file not shown.
Binary file modified premise/data/additional_inventories/lci-battery-capacity.xlsx
Binary file not shown.
Binary file modified premise/data/additional_inventories/lci-buses.xlsx
Binary file not shown.
Binary file modified premise/data/additional_inventories/lci-pass_cars.xlsx
Binary file not shown.
Binary file modified premise/data/additional_inventories/lci-trucks.xlsx
Binary file not shown.
Binary file modified premise/data/additional_inventories/lci-two_wheelers.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion premise/data/consequential/leadtimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Wind Onshore: 2
Wind Offshore: 3
Wave: 3
Storage, Hydrogen: 3
Storage, Flow Battery: 3
Storage, Battery: 3
diesel: 3
gasoline: 3
diesel, synthetic, from wood: 3
Expand Down
2 changes: 1 addition & 1 deletion premise/data/consequential/lifetimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ daccs_sorbent: 20
biomass - residual: 35
biomass crops - purpose grown: 35
Storage, Hydrogen: 20
Storage, Flow Battery: 20
Storage, Battery: 20
8 changes: 8 additions & 0 deletions premise/data/utils/logging/reporting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,14 @@ premise_battery:
name: SIB market share
description: Market share of SIB
unit: 0-1
VRFB market share:
name: VRFB market share
description: Market share of VRFB
unit: 0-1
LEAD-ACID market share:
name: LEAD-ACID market share
description: Market share of LEAD-ACID
unit: 0-1
tab: Battery

premise_wind_turbine:
Expand Down
4 changes: 2 additions & 2 deletions premise/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ def create_region_specific_power_plants(self):
# "Oil CC",
"Coal CF 80-20",
"Coal CF 50-50",
"Storage, Flow Battery",
"Storage, Battery",
"Storage, Hydrogen",
]

Expand Down Expand Up @@ -1550,7 +1550,7 @@ def create_region_specific_power_plants(self):
ws.either(
*[ws.contains("name", name) for name in list_datasets_to_duplicate]
),
ws.exclude(ws.contains("name", "market")),
# ws.exclude(ws.contains("name", "market")),
ws.exclude(ws.contains("name", ", oxy, ")),
ws.exclude(ws.contains("name", ", pre, ")),
):
Expand Down
10 changes: 8 additions & 2 deletions premise/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ def export_db_to_simapro(self, olca_compartments=False):
if item == "System description":
writer.writerow(["Ecoinvent v3"])
if item == "Infrastructure":
writer.writerow(["Yes"])
writer.writerow(["No"])
if item == "External documents":
writer.writerow(
[
Expand Down Expand Up @@ -1802,7 +1802,13 @@ def export_db_to_simapro(self, olca_compartments=False):
print(x)

if len(self.unmatched_category_flows) > 0:
print(f"{len(self.unmatched_category_flows)} unmatched flow categories.")
print(
f"{len(self.unmatched_category_flows)} unmatched flow categories. Check unlinked.log."
)
# save the list of unmatched flow to unlinked.log
with open("unlinked.log", "a") as f:
for item in self.unmatched_category_flows:
f.write(f"{item}\n")

print(f"Simapro CSV file saved in {self.filepath}.")

Expand Down
15 changes: 0 additions & 15 deletions premise/iam_variables_mapping/constants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ SUPPORTED_PATHWAYS:
- SSP5-PkBudg500
- static

LIST_TRANSF_FUNC:
- update_biomass
- update_electricity
- update_dac
- update_cement
- update_steel
- update_two_wheelers
- update_cars
- update_trucks
- update_buses
- update_fuels
- update_heat
- update_external_scenario
- update_emissions

LIST_MESSAGE_REGIONS:
- AFR
- CHN
Expand Down
4 changes: 2 additions & 2 deletions premise/iam_variables_mapping/electricity_variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,10 @@ Solar PV Residential:
gcam: Secondary Energy|Electricity|rooftop_pv
image: Secondary Energy|Electricity|Solar|PV|2
tiam-ucl: Secondary Energy|Electricity|Concentrated Solar PV decentralised
Storage, Flow Battery:
Storage, Battery:
ecoinvent_aliases:
fltr:
- market for battery capacity, stationary (TC scenario)
- market for battery capacity, stationary (CONT scenario)
iam_aliases:
image: Secondary Energy|Electricity|Storage
message: Secondary Energy|Electricity|Storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# for which constructive_geometries
# cannot find an IAM equivalent
---
Europe without Austria:
Europe without Switzerland and Austria:
remind: EUR
image: WEU
message: WEU
tiam-ucl: WEU
gcam: EU-15
Europe without Switzerland and Austria:
Europe without Austria:
remind: EUR
image: WEU
message: WEU
Expand Down
188 changes: 188 additions & 0 deletions premise/iam_variables_mapping/topologies/message-topology.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"R12_SAS": ["AF", "BD", "BT", "IN", "MV", "NP", "PK", "LK"],
"R12_EEU": [
"AL",
"BA",
"BG",
"HR",
"CZ",
"EE",
"HU",
"LV",
"LT",
"PL",
"RO",
"SK",
"SI",
"MK"
],
"R12_MEA": [
"DZ",
"BH",
"EG",
"IR",
"IQ",
"IL",
"JO",
"KW",
"LB",
"LY",
"MA",
"OM",
"QA",
"SA",
"SD",
"SY",
"TN",
"AE",
"YE"
],
"R12_PAS": [
"AS",
"BN",
"FJ",
"PF",
"KI",
"ID",
"MY",
"MM",
"NC",
"PG",
"PH",
"KR",
"SG",
"SB",
"TW",
"TH",
"TO",
"VU",
"WS"
],
"R12_WEU": [
"AD",
"AT",
"BE",
"CY",
"DK",
"FO",
"FI",
"FR",
"DE",
"GI",
"GR",
"GL",
"IS",
"IE",
"IM",
"IT",
"LI",
"LU",
"MT",
"MC",
"NL",
"NO",
"PT",
"ES",
"SE",
"CH",
"TR",
"GB"
],
"R12_AFR": [
"AO",
"BJ",
"BW",
"IO",
"BF",
"BI",
"CM",
"CV",
"CF",
"TD",
"KM",
"CG",
"CI",
"DJ",
"GQ",
"ER",
"ET",
"GA",
"GM",
"GH",
"GN",
"GW",
"KE",
"LS",
"LR",
"MG",
"MW",
"ML",
"MR",
"MU",
"MZ",
"NA",
"NE",
"NG",
"RE",
"RW",
"SH",
"ST",
"SN",
"SC",
"SL",
"SO",
"ZA",
"SZ",
"TZ",
"TG",
"UG",
"ZR",
"ZM",
"ZW"
],
"R12_LAM": [
"AG",
"AR",
"BS",
"BB",
"BZ",
"BM",
"BO",
"BR",
"CL",
"CO",
"CR",
"CU",
"DM",
"DO",
"EC",
"SV",
"GF",
"GD",
"GP",
"GT",
"GY",
"HT",
"HN",
"JM",
"MQ",
"MX",
"ANT",
"NI",
"PA",
"PY",
"PE",
"KN",
"VC",
"LC",
"SR",
"TT",
"UY",
"VE"
],
"R12_FSU": ["AM", "AZ", "BY", "GE", "KZ", "KG", "MD", "RU", "TJ", "TM", "UA", "UZ"],
"R12_PAO": ["AU", "JP", "NZ"],
"R12_RCPA": ["KH", "KP", "LA", "MN", "VN"],
"R12_NAM": ["CA", "GU", "PR", "US", "VI"],
"R12_CHN": ["CN", "HK", "MO"]
}

0 comments on commit 5d9288e

Please sign in to comment.