fixed error in typechecking

This commit is contained in:
Arnar Flatberg 2007-02-15 13:36:36 +00:00
parent fc33c2dbfc
commit 4319e8630e

View File

@ -183,6 +183,8 @@ class Dataset:
matrix in a given dim. If none of the input identifiers are
found an empty index is returned
"""
if not isinstance(idents, list) and not isinstance(idents, set):
raise ValueError("idents needs to be a list/set got: %s" %type(idents))
if idents==None:
index = array_sort(self._map[dim].values())
else: