Skip to content

Commit

Permalink
Load correct biosphere flows dictionary when using ei 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Nov 26, 2024
1 parent a05ae73 commit 7a5b753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion premise/clean_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def get_biosphere_flow_uuid(version: str) -> Dict[Tuple[str, str, str, str], str
:rtype: dict
"""

if version == "3.9":
if version == "3.10":
fp = DATA_DIR / "utils" / "export" / "flows_biosphere_310.csv"
elif version == "3.9":
fp = DATA_DIR / "utils" / "export" / "flows_biosphere_39.csv"
else:
fp = DATA_DIR / "utils" / "export" / "flows_biosphere_38.csv"
Expand Down
2 changes: 1 addition & 1 deletion premise/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ def generate_world_market(
def correct_hydropower_water_emissions(self) -> None:
"""
Correct the emissions of water for hydropower plants.
In Swiss datasets, water evaoporation is too high.
In Swiss datasets, water evaporation is too high.
We use a new factor from Flury and Frischknecht (2021) to correct this.
https://treeze.ch/fileadmin/user_upload/downloads/Publications/Case_Studies/Energy/flury-2012-hydroelectric-power-generation.pdf
"""
Expand Down

0 comments on commit 7a5b753

Please sign in to comment.