From 0da39b0c69acfdd491d051880da3a9a89db84e31 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 26 May 2019 22:08:42 +0200 Subject: [PATCH] copy and paste error --- python/damask/geom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/geom.py b/python/damask/geom.py index 029f20651..585034ab7 100644 --- a/python/damask/geom.py +++ b/python/damask/geom.py @@ -120,7 +120,7 @@ class Geom(): comments_old = [f.readline() for i in range(int(header_length))] else: fname.seek(0) - header_length,keyword = f.readline().split() + header_length,keyword = fname.readline().split() if not keyword.startswith('head') or int(header_length) < 3: raise TypeError('Header length information missing or invalid') comments_old = [fname.readline() for i in range(int(header_length))]