Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

fix output for indices is empty array

This commit is contained in:
Arnar Flatberg 2006-08-01 10:53:44 +00:00
parent 27472defda
commit a55a872399
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ class Dataset:
Identifiers are the unique names (strings) for a variable in a given dim.
Index (Indices) are the Identifiers position in a matrix in a given dim.
"""
if len(indices)==0:
indices=[]
if sorted==True:
items = self._map[dim].items()
backitems = [ [v[1],v[0]] for v in items]