Skip to content

Commit 9db6cf5

Browse files
committed
Pass engine to xr.open_mfdataset in OpenDapSource
When OpenDapSource._open_dataset is called when urlpath is a list of OPeNDAP URLs, no engine is specified in the call to xr.open_mfdataset even if engine is set in the class. This prevents clients from using a specified engine and reverts to xarray's default engine selection. This commit changes the call to xr.open_mfdataset to include the engine argument as the self.engine value.
1 parent 5c74157 commit 9db6cf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intake_xarray/opendap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _open_dataset(self):
9292
import xarray as xr
9393

9494
if isinstance(self.urlpath, list):
95-
self._ds = xr.open_mfdataset(self.urlpath, chunks=self.chunks, **self._kwargs)
95+
self._ds = xr.open_mfdataset(self.urlpath, chunks=self.chunks, engine=self.engine, **self._kwargs)
9696
else:
9797
store = self._get_store()
98-
self._ds = xr.open_dataset(store, chunks=self.chunks, **self._kwargs)
98+
self._ds = xr.open_dataset(store, chunks=self.chunks, **self._kwargs)

0 commit comments

Comments
 (0)