prepare_sector: allow planning_horizons wc to be a scalar value
This commit is contained in:
parent
a0f43aeeb7
commit
608a12fed2
@ -286,6 +286,8 @@ def build_carbon_budget(o, input_eurostat, fn, emissions_scope, report_year):
|
|||||||
)
|
)
|
||||||
|
|
||||||
planning_horizons = snakemake.params.planning_horizons
|
planning_horizons = snakemake.params.planning_horizons
|
||||||
|
if not isinstance(planning_horizons, list):
|
||||||
|
planning_horizons = [planning_horizons]
|
||||||
t_0 = planning_horizons[0]
|
t_0 = planning_horizons[0]
|
||||||
|
|
||||||
if "be" in o:
|
if "be" in o:
|
||||||
|
Loading…
Reference in New Issue
Block a user