From fad679a9a5432ee5d2c8cf860f2fa562ebb77360 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 22 Nov 2019 15:18:29 +0100 Subject: [PATCH] need to catch IOError --- python/damask/asciitable.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/damask/asciitable.py b/python/damask/asciitable.py index 74bb97173..13ca0116b 100644 --- a/python/damask/asciitable.py +++ b/python/damask/asciitable.py @@ -448,7 +448,10 @@ class ASCIItable(): def data_readArray(self, labels = []): """Read whole data of all (given) labels as numpy array.""" - self.data_rewind() + try: + self.data_rewind() # try to wind back to start of data + except IOError: + pass # assume/hope we are at data start already... if labels is None or labels == []: use = None # use all columns (and keep labels intact)