fixed error in typechecking
This commit is contained in:
parent
fc33c2dbfc
commit
4319e8630e
|
@ -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:
|
||||||
|
|
Reference in New Issue