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