From 883311049082c4813254620a4b2dfdb6d3d56ad9 Mon Sep 17 00:00:00 2001 From: MercierC Date: Tue, 16 Mar 2021 09:15:48 +1300 Subject: [PATCH] import: fixed the import of tabular files with no header --- python/obitools3/parsers/tab.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/obitools3/parsers/tab.pyx b/python/obitools3/parsers/tab.pyx index 8d731f9..1a1c9c8 100755 --- a/python/obitools3/parsers/tab.pyx +++ b/python/obitools3/parsers/tab.pyx @@ -8,7 +8,7 @@ Created on feb 20th 2018 import types from obitools3.utils cimport __etag__ - +from obitools3.utils cimport str2bytes def tabIterator(lineiterator, bint header = False, @@ -75,7 +75,7 @@ def tabIterator(lineiterator, continue else: # TODO ??? default column names? like R? - keys = [i for i in range(len(line.split(sep)))] + keys = [str2bytes(str(i)) for i in range(len(line.split(sep)))] while skipped < skip : line = next(iterator)