Commit 9f9c20aa authored by Celine Mercier's avatar Celine Mercier

new OBIDMS_column cython class

parent 73ba9fd4
../../../../src/obidmscolumn.h
../../../../src/obidmscolumn.c
../../../../src/obidms.h
../../../../src/obidms.c
../../../../src/obierrno.h
......@@ -6,6 +8,5 @@
../../../../src/obilittlebigman.c
../../../../src/obitypes.h
../../../../src/obitypes.c
../../../../src/obidmscolumn.h
../../../../src/obidmscolumn.c
../../../../src/private_openat.h
../../../../src/private_openat.c
from obitools3.obidms.capidms cimport *
cdef extern from "obidmscolumn.h" nogil:
struct OBIDMS_column_t:
pass
ctypedef OBIDMS_column_t* OBIDMS_column_p
OBIDMS_column_p obi_create_column(OBIDMS_p dms, char* column_name, OBIType_t type, size_t nb_elements)
cdef class OBIDMS_column:
cdef OBIDMS_column_p pointer
cdef OBIDMS_p dms
#cython: language_level=3
from .capidmscolumn cimport *
cdef class OBIDMS_column:
def __init__(self, dms_name, column_name, type, nb_elements):
self.dms = obi_dms(dms_name)
self.pointer = obi_create_column(self.dms, column_name, type, nb_elements)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment