Commit 66f39723 authored by celinemercier's avatar celinemercier

Commented __del__ functions for now, as they contain closedir() that can

create problems
parent 1fe2e36d
......@@ -8,8 +8,8 @@ cdef class OBIDMS :
dms_name_b = dms_name.encode(encoding='UTF-8')
self.pointer = obi_dms(dms_name_b)
def __del__(self) :
obi_close_dms(self.pointer)
# def __del__(self) :
# obi_close_dms(self.pointer)
def list(self):
obi_list_columns(self.pointer)
\ No newline at end of file
......@@ -5,7 +5,8 @@ from obitools3.obidms.obidmscolumn.obidmscolumn_int.capidmscolumn_int import OBI
cdef class OBIDMS_column:
#Should only be initialized through a subclass (or open())
def __init__(self, dms_name, column_name,
create, version_number,
type, nb_elements,
......@@ -67,9 +68,9 @@ cdef class OBIDMS_column:
def get_data_type(self):
return self.data_type
def __del__(self):
if obi_close_column(self.pointer) != 0 :
raise Exception("Problem closing a column")
# def __del__(self):
# if obi_close_column(self.pointer) != 0 :
# raise Exception("Problem closing a column")
@staticmethod
def open(dms_name, column_name,
......
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