prevent to load columns more than once\n @Philip: OK?
This commit is contained in:
parent
fd04e0763b
commit
851d2e1b2c
|
@ -451,7 +451,7 @@ class ASCIItable():
|
||||||
columns += range(c,c + \
|
columns += range(c,c + \
|
||||||
(d if str(c) != str(labels[present[i]]) else \
|
(d if str(c) != str(labels[present[i]]) else \
|
||||||
1)) # ... transparently add all components unless column referenced by number or with explicit dimension
|
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
|
self.labels = list(np.array(self.labels)[use]) # update labels with valid subset
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue