File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,10 @@ def prep_sliiders(
39
39
expand_exposure = True ,
40
40
storage_options = {},
41
41
):
42
- """Import the SLIIDERS dataset (or a different dataset formatted analogously),
43
- format, and calculate derived variables so that it can be used by the functions that
44
- implement pyCIAM.
42
+ """Import the SLIIDERS dataset (or a different dataset formatted analogously).
43
+
44
+ Input, format, and calculate derived variables so that it can be used by the
45
+ functions that implement pyCIAM.
45
46
46
47
Parameters
47
48
----------
@@ -140,7 +141,7 @@ def prep_sliiders(
140
141
if "dfact" not in inputs .data_vars and "npv_start" in inputs .data_vars :
141
142
inputs ["dfact" ] = (1 / (1 + inputs .dr )) ** (inputs .year - inputs .npv_start )
142
143
143
- if "landrent" or "ypc" not in inputs .data_vars :
144
+ if "landrent" not in inputs . data_vars or "ypc" not in inputs .data_vars :
144
145
area = inputs .landarea
145
146
if calc_popdens_with_wetland_area :
146
147
area = area + inputs .wetland
@@ -161,7 +162,7 @@ def prep_sliiders(
161
162
162
163
if (
163
164
"ypc" not in inputs .data_vars
164
- and "min_pyc_scale " in inputs .data_vars
165
+ and "min_ypc_scale " in inputs .data_vars
165
166
and "ypc_scale_denom" in inputs .data_vars
166
167
and "ypc_scale_elast" in inputs .data_vars
167
168
):
You can’t perform that action at this time.
0 commit comments