Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

fixed error in typechecking

This commit is contained in:
Arnar Flatberg 2007-02-15 13:36:36 +00:00
parent fc33c2dbfc
commit 4319e8630e
1 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,8 @@ class Dataset:
matrix in a given dim. If none of the input identifiers are matrix in a given dim. If none of the input identifiers are
found an empty index is returned 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: if idents==None:
index = array_sort(self._map[dim].values()) index = array_sort(self._map[dim].values())
else: else: