Skip to content

Commit e548a53

Browse files
authored
Merge pull request #46 from ClimateImpactLab/climate_bugfix
Fix bug by allowing emission_scenarios to be None
2 parents 613b18f + 9594fa5 commit e548a53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dscim/menu/simple_storage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Climate:
3737
Period for rebasing FAIR temperature anomalies. This should match the CIL projection system's base period.
3838
emission_scenarios: list or None, optional
3939
List of emission scenarios for which SCC will be calculated. Default
40-
is ["ssp119", "ssp126", "ssp245", "ssp460", "ssp370", "ssp585"].
40+
is (), which gets set to ["ssp119", "ssp126", "ssp245", "ssp460", "ssp370", "ssp585"].
4141
gases: list or None, optional
4242
List of greenhouse gases for which SCC will be calculated. Default is
4343
["CO2_Fossil", "CH4", "N2O"].
@@ -54,10 +54,10 @@ def __init__(
5454
ecs_mask_path=None,
5555
ecs_mask_name=None,
5656
base_period=(2001, 2010),
57-
emission_scenarios=None,
57+
emission_scenarios=(),
5858
gases=None,
5959
):
60-
if emission_scenarios is None:
60+
if emission_scenarios == ():
6161
emission_scenarios = [
6262
"ssp119",
6363
"ssp126",

0 commit comments

Comments
 (0)