From 7278605004e409f93b8fd99f95cf40d7cd555d0f Mon Sep 17 00:00:00 2001 From: chen Date: Sun, 9 Oct 2016 19:13:44 -0400 Subject: [PATCH] fix naming error --- processing/post/ascii2hdf5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/post/ascii2hdf5.py b/processing/post/ascii2hdf5.py index 4efd0bd06..c142d8106 100644 --- a/processing/post/ascii2hdf5.py +++ b/processing/post/ascii2hdf5.py @@ -53,8 +53,8 @@ asciiTable.head_read() asciiTable.data_readArray() incNum = int(asciiTable.data[asciiTable.label_index('inc'), 0]) fullTable = np.copy(asciiTable.data) # deep copy all data, just to be safe -labels = table.labels() -labels_idx = [table.label_index(label) for label in labels] +labels = asciiTable.labels() +labels_idx = [asciiTable.label_index(label) for label in labels] featuresDim = [labels_idx[i+1] - labels_idx[i] for i in xrange(len(labels)-1)] featuresDim.append(fullTable.shape[1] - labels_idx[-1])