trying to fix cython difficulties

This commit is contained in:
Celine Mercier
2019-03-26 16:19:55 +01:00
parent 14eca43eac
commit 7c2787b6b3

View File

@ -228,7 +228,11 @@ cdef class Taxonomy(OBIWrapper) :
cpdef write(self, object prefix) :
if obi_write_taxonomy(self._dms.pointer(), self.pointer(), tobytes(prefix)) < 0 :
cdef DMS dms
cdef OBIDMS_p dms_p
dms = self._dms
dms_p = dms.pointer()
if obi_write_taxonomy(dms_p, self.pointer(), tobytes(prefix)) < 0 :
raise Exception("Error writing the taxonomy to binary files")