prevent to load columns more than once\n @Philip: OK?

This commit is contained in:
Martin Diehl 2015-10-08 17:47:00 +00:00
parent fd04e0763b
commit 851d2e1b2c
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.array(columns)
use = np.unique(np.array(columns))
self.labels = list(np.array(self.labels)[use]) # update labels with valid subset