From e04ea85d1e3870afaa24e477bd8aa4090a8e3ba8 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Fri, 15 Apr 2016 11:22:05 +0200 Subject: [PATCH] Fixed problematic __str__ method and useless declarations in the OBI_Nuc_Seq_Stored class --- python/obitools3/obidms/_obiseq.pxd | 4 ---- python/obitools3/obidms/_obiseq.pyx | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/python/obitools3/obidms/_obiseq.pxd b/python/obitools3/obidms/_obiseq.pxd index 3dbd4fe..ca23a0f 100644 --- a/python/obitools3/obidms/_obiseq.pxd +++ b/python/obitools3/obidms/_obiseq.pxd @@ -21,10 +21,6 @@ cdef class OBI_Nuc_Seq(OBI_Seq) : cdef class OBI_Nuc_Seq_Stored(OBIView_line) : - cdef str id - cdef str description - cdef str sequence - cpdef set_id(self, str id) cpdef get_id(self) cpdef set_description(self, str description) diff --git a/python/obitools3/obidms/_obiseq.pyx b/python/obitools3/obidms/_obiseq.pyx index 1f50c70..f520a29 100644 --- a/python/obitools3/obidms/_obiseq.pyx +++ b/python/obitools3/obidms/_obiseq.pyx @@ -65,8 +65,8 @@ cdef class OBI_Nuc_Seq_Stored(OBIView_line) : cpdef get_sequence(self) : return self[bytes2str(NUC_SEQUENCE_COLUMN)] - def __str__(self) : - return self[bytes2str(NUC_SEQUENCE_COLUMN)] # or not +# def __str__(self) : +# return self[bytes2str(NUC_SEQUENCE_COLUMN)] # or not # cpdef str reverse_complement(self) : TODO in C ? # pass