Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 24, 2023
1 parent 54c68ee commit cc59716
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion data/demand/fuel_shares.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ country,oil residential heat share,biomass residential heat share,biomass to ele
MA, 0.6667, 0.75,0.0, 0.5, 0.0, 0.5,0.6,0,0,0.75
NG, 0.6667, 0.75,0.0, 0.5, 0.0, 0.5,0.6,0,0,0.75
BJ, 0.6667, 0.75,0.0, 0.5, 0.0, 0.5,0.6,0,0,0.75

2 changes: 1 addition & 1 deletion scripts/build_base_energy_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def calc_sector(sector):
# Fetch country list and demand base year from the config file
year = snakemake.config["demand_data"]["base_year"]
countries = snakemake.config["countries"]
#countries = ["NG", "BJ"]
# countries = ["NG", "BJ"]

# Filter for the year and country
df_yr = df[df.Year == year]
Expand Down
4 changes: 1 addition & 3 deletions scripts/prepare_energy_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get(item, investment_year=None):
sets_path_to_root("pypsa-earth-sec")

countries = snakemake.config["countries"]
#countries = ["NG", "BJ"]
# countries = ["NG", "BJ"]
investment_year = int(snakemake.wildcards.planning_horizons)
demand_sc = snakemake.wildcards.demand # loading the demand scenrario wildcard

Expand All @@ -57,8 +57,6 @@ def get(item, investment_year=None):

options = snakemake.config["sector"]



fuel_cell_share = get(
options["land_transport_fuel_cell_share"],
demand_sc + "_" + str(investment_year),
Expand Down

0 comments on commit cc59716

Please sign in to comment.