Commented __del__ functions for now, as they contain closedir() that can
create problems
This commit is contained in:
@ -8,8 +8,8 @@ cdef class OBIDMS :
|
|||||||
dms_name_b = dms_name.encode(encoding='UTF-8')
|
dms_name_b = dms_name.encode(encoding='UTF-8')
|
||||||
self.pointer = obi_dms(dms_name_b)
|
self.pointer = obi_dms(dms_name_b)
|
||||||
|
|
||||||
def __del__(self) :
|
# def __del__(self) :
|
||||||
obi_close_dms(self.pointer)
|
# obi_close_dms(self.pointer)
|
||||||
|
|
||||||
def list(self):
|
def list(self):
|
||||||
obi_list_columns(self.pointer)
|
obi_list_columns(self.pointer)
|
@ -6,6 +6,7 @@ from obitools3.obidms.obidmscolumn.obidmscolumn_int.capidmscolumn_int import OBI
|
|||||||
|
|
||||||
cdef class OBIDMS_column:
|
cdef class OBIDMS_column:
|
||||||
|
|
||||||
|
#Should only be initialized through a subclass (or open())
|
||||||
def __init__(self, dms_name, column_name,
|
def __init__(self, dms_name, column_name,
|
||||||
create, version_number,
|
create, version_number,
|
||||||
type, nb_elements,
|
type, nb_elements,
|
||||||
@ -67,9 +68,9 @@ cdef class OBIDMS_column:
|
|||||||
def get_data_type(self):
|
def get_data_type(self):
|
||||||
return self.data_type
|
return self.data_type
|
||||||
|
|
||||||
def __del__(self):
|
# def __del__(self):
|
||||||
if obi_close_column(self.pointer) != 0 :
|
# if obi_close_column(self.pointer) != 0 :
|
||||||
raise Exception("Problem closing a column")
|
# raise Exception("Problem closing a column")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def open(dms_name, column_name,
|
def open(dms_name, column_name,
|
||||||
|
Reference in New Issue
Block a user