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')
|
||||
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)
|
@ -6,6 +6,7 @@ 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,
|
||||
|
Reference in New Issue
Block a user