Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

bugfix in get_identifiers

This commit is contained in:
Arnar Flatberg 2006-08-01 10:33:45 +00:00
parent 676ea4e0b9
commit 27472defda
1 changed files with 2 additions and 2 deletions

View File

@ -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):