bugfix in get_identifiers
This commit is contained in:
parent
676ea4e0b9
commit
27472defda
|
@ -161,7 +161,7 @@ class Dataset:
|
||||||
ids = self._map[dim].keys()
|
ids = self._map[dim].keys()
|
||||||
|
|
||||||
if indices != None:
|
if indices != None:
|
||||||
ids = [self._map[index] for index in indices]
|
ids = [ids[index] for index in indices]
|
||||||
|
|
||||||
return ids
|
return ids
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ class Dataset:
|
||||||
if idents==None:
|
if idents==None:
|
||||||
index = array_sort(self._map[dim].values())
|
index = array_sort(self._map[dim].values())
|
||||||
else:
|
else:
|
||||||
index = [self.map[dim][key] for key in idents]
|
index = [self._map[dim][key] for key in idents]
|
||||||
return asarray(index)
|
return asarray(index)
|
||||||
|
|
||||||
class CategoryDataset(Dataset):
|
class CategoryDataset(Dataset):
|
||||||
|
|
Reference in New Issue