Commit 73ba9fd4 authored by Celine Mercier's avatar Celine Mercier

updated the OBIDMS class

parent 771be891
......@@ -6,4 +6,5 @@
cdef extern from *:
ctypedef char* const_char_p "const char*"
## Put somewhere else probably
cdef extern from "obitypes.h" nogil:
enum OBIType:
ctypedef OBIType OBIType_t
cdef extern from "obidms.h" nogil:
struct OBIDMS_t:
......@@ -15,5 +24,6 @@ cdef extern from "obidms.h" nogil:
int obi_close_dms(OBIDMS_p dms)
cdef class OBIDMS:
cdef OBIDMS_p pointer
......@@ -4,8 +4,8 @@ from .capidms cimport *
cdef class OBIDMS:
def __init__(self,name):
self.pointer = obi_dms(name)
def __init__(self, dms_name):
self.pointer = obi_dms(dms_name)
def __del__(self):
\ No newline at end of file
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