undone np.unique of columns since this would introduce the unwanted side-effect of (messily) sorting columns. user expects to get sorting as provided through command line.

This commit is contained in:
Philip Eisenlohr 2015-10-09 12:55:30 +00:00
parent fc9d290339
commit 26f8f74310
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class ASCIItable():
columns += range(c,c + \
(d if str(c) != str(labels[present[i]]) else \
1)) # ... transparently add all components unless column referenced by number or with explicit dimension
use = np.unique(np.array(columns))
use = np.array(columns)
self.labels = list(np.array(self.labels)[use]) # update labels with valid subset