From 37b4d55a86777e4169682417cea563744ee66782 Mon Sep 17 00:00:00 2001 From: flatberg Date: Tue, 1 Aug 2006 11:01:52 +0000 Subject: [PATCH] --- system/dataset.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/dataset.py b/system/dataset.py index a9d0d31..f9a0a80 100644 --- a/system/dataset.py +++ b/system/dataset.py @@ -151,8 +151,12 @@ 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=[] + try: + if len(indices)==0:# if empty list or empty array + indices=[] + except: + pass + if sorted==True: items = self._map[dim].items() backitems = [ [v[1],v[0]] for v in items]