Commit bb64fd26 authored by PIOLLE's avatar PIOLLE
Browse files

fixed extract for empty field list

parent c5fa3062
......@@ -1486,11 +1486,15 @@ class Dataset(ABC):
if isinstance(self.dataset, Dataset):
return self.dataset.extract(
index=index, fields=fields, padding=padding,
prefix=prefix, deep=deep, **kwargs
prefix=prefix, deep=deep, **kwargs)
if fields is None:
fields = self._varnames
# remove possible duplicates
fields = list(set(fields))
if index is None:
subset = self.dataset[fields]
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