Skip to content

Commit 578bd91

Browse files
author
JMGilbert
committed
Add new saved attributes and removed args from functions
1 parent 8443d94 commit 578bd91

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

dscim/menu/main_recipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def __init__(
163163
"scc",
164164
"uncollapsed_discount_factors",
165165
"uncollapsed_marginal_damages",
166+
"global_consumption",
167+
"global_consumption_no_pulse",
166168
],
167169
**kwargs,
168170
):

dscim/utils/menu_runs.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def run_ssps(
3535
AR,
3636
masks=[None],
3737
fair_dims_list=[["simulation"]],
38-
global_cons=False,
3938
order="damage_function",
4039
):
4140

@@ -107,14 +106,6 @@ def run_ssps(
107106
menu_item = MENU_OPTIONS[menu_option](**kwargs)
108107
menu_item.order_plate(order)
109108

110-
if global_cons:
111-
menu_item.global_consumption_no_pulse.to_netcdf(
112-
f"{save_path}/{menu_option}_{discount_type}_eta{menu_item.eta}_rho{menu_item.rho}_global_consumption_no_pulse.nc4"
113-
)
114-
menu_item.global_consumption.to_netcdf(
115-
f"{save_path}/{menu_option}_{discount_type}_eta{menu_item.eta}_rho{menu_item.rho}_global_consumption.nc4"
116-
)
117-
118109

119110
def run_rff(
120111
sectors,
@@ -171,11 +162,3 @@ def run_rff(
171162

172163
menu_item = MENU_OPTIONS[menu_option](**kwargs)
173164
menu_item.order_plate(order)
174-
175-
if global_cons:
176-
menu_item.global_consumption_no_pulse.to_netcdf(
177-
f"{save_path}/{menu_option}_{discount_type}_eta{menu_item.eta}_rho{menu_item.rho}_global_consumption_no_pulse.nc4"
178-
)
179-
menu_item.global_consumption.to_netcdf(
180-
f"{save_path}/{menu_option}_{discount_type}_eta{menu_item.eta}_rho{menu_item.rho}_global_consumption.nc4"
181-
)

0 commit comments

Comments
 (0)