Skip to content

Commit a3fd84a

Browse files
authored
Fix compatibility with xarray 0.14.1 (#69)
* use drop_vars instead of drop * revert to using Dataset.drop Dataset.drop_vars has been added in xarray 0.14.1 and we certainly want to support older versions. The annoyance is minor (tests warnings).
1 parent 4c64d06 commit a3fd84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xsimlab/drivers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def _get_runtime_datasets(self):
277277
'_clock_diff': mclock_coord.diff(mclock_dim, label='lower')
278278
}
279279

280-
ds_all_steps = (self.dataset.drop(ds_init.data_vars.keys(),
280+
ds_all_steps = (self.dataset.drop(list(ds_init.data_vars.keys()),
281281
errors='ignore')
282282
.isel({mclock_dim: slice(0, -1)})
283283
.assign(step_data_vars))

0 commit comments

Comments
 (0)