From 27472defdaf53da8c24ba8b697ec9aa7708a8dff Mon Sep 17 00:00:00 2001 From: flatberg Date: Tue, 1 Aug 2006 10:33:45 +0000 Subject: [PATCH] bugfix in get_identifiers --- system/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/dataset.py b/system/dataset.py index 6254e0d..ec49afe 100644 --- a/system/dataset.py +++ b/system/dataset.py @@ -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):