From 851d2e1b2c7bd5aab560ee29e61c2f407464936c Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 8 Oct 2015 17:47:00 +0000 Subject: [PATCH] prevent to load columns more than once\n @Philip: OK? --- lib/damask/asciitable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/damask/asciitable.py b/lib/damask/asciitable.py index 08cb6b3a7..bb585eeb3 100644 --- a/lib/damask/asciitable.py +++ b/lib/damask/asciitable.py @@ -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