From 9c7335f7994e40dfa0b92016a775e5b06f522fef Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Wed, 11 Dec 2013 14:38:09 +0000 Subject: [PATCH] bug fix: wrong variable name "label" --> "labels" --- lib/damask/asciitable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/damask/asciitable.py b/lib/damask/asciitable.py index 046f0a8a5..fe49ddde7 100644 --- a/lib/damask/asciitable.py +++ b/lib/damask/asciitable.py @@ -146,7 +146,7 @@ class ASCIItable(): idx.append(-1) else: try: - idx = label+0 + idx = labels+0 except TypeError: try: idx = self.labels.index(labels) @@ -206,12 +206,12 @@ class ASCIItable(): return self.output_write ('\t'.join(map(str,self.data))) # ------------------------------------------------------------------ - def data_writeArray(self,format): + def data_writeArray(self,format='%g'): import numpy ''' write whole numpy array data ''' - return numpy.savetxt(self.__IO__['out'], self.data, fmt=format) + return numpy.savetxt(self.__IO__['out'], self.data, fmt=format, delimiter='\t') # ------------------------------------------------------------------ def data_append(self,