Skip to content

Commit 7241da8

Browse files
committed
improve comments in _load_lslr_for_ciam
1 parent 54433e0 commit 7241da8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyCIAM/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,16 @@ def _load_lslr_for_ciam(
310310
.set_index(scen_mc=ix_names)
311311
)
312312

313-
# interpolate to yearly
313+
# add on base year where slr is 0
314314
slr_out = slr_out.reindex(
315315
year=np.concatenate(([slr_0_year], slr.year.values)),
316316
fill_value=0,
317317
)
318318

319+
# interpolate to desired years
319320
if interp_years is not None:
320321
slr_out = slr_out.interp(year=interp_years)
322+
321323
return slr_out
322324

323325

0 commit comments

Comments
 (0)