Cython: Fixed bug in tab formatter with header option always being set
to true
This commit is contained in:
@ -9,7 +9,7 @@ from obitools3.dms.column.column cimport Column_line
|
|||||||
cdef class TabFormat:
|
cdef class TabFormat:
|
||||||
|
|
||||||
def __init__(self, header=True, bytes NAString=b"NA", bytes sep=b"\t"):
|
def __init__(self, header=True, bytes NAString=b"NA", bytes sep=b"\t"):
|
||||||
self.header = True
|
self.header = header
|
||||||
self.first_line = True
|
self.first_line = True
|
||||||
self.NAString = NAString
|
self.NAString = NAString
|
||||||
self.sep = sep
|
self.sep = sep
|
||||||
@ -36,7 +36,7 @@ cdef class TabFormat:
|
|||||||
if value is None:
|
if value is None:
|
||||||
value = self.NAString
|
value = self.NAString
|
||||||
|
|
||||||
line.append(value)
|
line.append(value)
|
||||||
|
|
||||||
if self.first_line:
|
if self.first_line:
|
||||||
self.first_line = False
|
self.first_line = False
|
||||||
|
Reference in New Issue
Block a user