Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0
This commit is contained in:
Arnar Flatberg 2006-08-01 11:01:52 +00:00
parent a55a872399
commit 37b4d55a86
1 changed files with 6 additions and 2 deletions

View File

@ -151,8 +151,12 @@ class Dataset:
Identifiers are the unique names (strings) for a variable in a given dim. 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. Index (Indices) are the Identifiers position in a matrix in a given dim.
""" """
if len(indices)==0: try:
if len(indices)==0:# if empty list or empty array
indices=[] indices=[]
except:
pass
if sorted==True: if sorted==True:
items = self._map[dim].items() items = self._map[dim].items()
backitems = [ [v[1],v[0]] for v in items] backitems = [ [v[1],v[0]] for v in items]