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:
parent
fc9d290339
commit
26f8f74310
lib/damask
|
@ -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.unique(np.array(columns))
|
use = 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