Commit 8cbb802e authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Use kwargs 4

parent 31f79478
......@@ -27,10 +27,10 @@ class Tzis():
self.store=SwiftStore(os_container, prefix=os_name, storage_options=self.auth)
self.verbose=verbose
#
self.mf_dset=self.open_mf_dataset(mf_dset, xarray_kwargs)
self.mf_dset=self.open_mf_dataset(mf_dset, xarray_kwargs=xarray_kwargs)
self.varname=self._get_varname(varname)
def open_mf_dataset(self, mf, kwargs):
def open_mf_dataset(self, mf, xarray_kwargs=None):
#if type(mf) != list and type(mf) != str :
# raise ValueError("Dataset '{0}' must either be a string or a list of strings")
if mf:
......@@ -41,7 +41,7 @@ class Tzis():
data_vars='minimal',
coords='minimal',
compat='override',
**kwargs)
**xarray_kwargs)
return None
def _get_varname(self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment