Skip to content

Commit

Permalink
Small final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbrinkerink committed Nov 20, 2024
1 parent 13baea3 commit 8694bf6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
3 changes: 1 addition & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ timeshift: 0 # value between -11 and 12

# Spatial Parameters
geographic_scope:
- "IND"
- "PAK"
- "BTN"
- "IND"

crossborderTrade: True

Expand Down
2 changes: 1 addition & 1 deletion workflow/scripts/osemosys_global/powerplant/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def main(
start_year = 2021
end_year = 2050
region_name = 'GLOBAL'
geographic_scope = ['IND', 'PAK', 'BTN']
geographic_scope = ['BTN', 'IND']
custom_nodes = []
remove_nodes = []
tech_capacity = {'PWRCOAINDWE01': [8, 2000, 2025, 5, 1100, 35],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def apply_re_pct_targets(re_targets, geographic_scope, remove_nodes, oar_df,
value_dict[target] = target_params[5]

# Per entry check if they are relative targets ('PCT').
for target in re_targets.keys():
for target in re_targets:
if type_dict[target] == 'PCT':
# Check for a technology subset for the target.
if not target_techs_dict[target]:
Expand Down Expand Up @@ -180,7 +180,7 @@ def apply_re_abs_targets(re_targets, remove_nodes, region_name):
value_dict[target] = target_params[5]

# Per entry check if they are absolute targets ('ABS').
for target in re_targets.keys():
for target in re_targets:
if type_dict[target] == 'ABS':
target_years = get_years(first_year_dict[target],
final_year_dict[target])
Expand Down
3 changes: 1 addition & 2 deletions workflow/scripts/osemosys_global/transmission/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ def activity_transmission(df_iar_base, df_oar_base, df_eff,

return df_iar_trn_final, df_oar_trn_final

def activity_transmission_limit(cross_border_trade, df_oar_trn_final,
df_model_period_activity_upper_limit_base):
def activity_transmission_limit(cross_border_trade, df_oar_trn_final):

# Set cross-border trade to 0 if False
if not cross_border_trade:
Expand Down
6 changes: 2 additions & 4 deletions workflow/scripts/osemosys_global/transmission/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def main(
min_cap_invest_base: pd.DataFrame,
res_cap_base: pd.DataFrame,
tech_set_base: pd.DataFrame,
fuel_set_base: pd.DataFrame,
model_period_activity_upper_limit_base: pd.DataFrame,
fuel_set_base: pd.DataFrame
):

# CALL FUNCTIONS
Expand Down Expand Up @@ -110,8 +109,7 @@ def main(
end_year, region_name)

# Adjust activity limits if cross border trade is not allowed following user config.
activity_limit_trn = activity_transmission_limit(cross_border_trade, oar_trn,
model_period_activity_upper_limit_base)
activity_limit_trn = activity_transmission_limit(cross_border_trade, oar_trn)

# Set operational life for transmission.
op_life_trn = set_op_life_transmission(oar_trn, default_op_life, op_life_base, region_name)
Expand Down

0 comments on commit 8694bf6

Please sign in to comment.