Added nb_elements_per_line property to OBIDMS_column class

This commit is contained in:
Celine Mercier
2016-09-26 17:01:13 +02:00
parent a0bc45cc92
commit a474391b27
2 changed files with 9 additions and 4 deletions

View File

@ -10,14 +10,14 @@ from ._obitaxo cimport OBI_Taxonomy
cdef class OBIDMS_column:
cdef str column_name
cdef str column_alias # associated property: alias
cdef str column_alias # associated property: alias
cdef OBIDMS_column_p* pointer
cdef OBIDMS dms
cdef OBIView view
cdef str data_type
cdef str dms_name
cdef index_t nb_elements_per_line
cdef list elements_names # associated property: elements_names
cdef index_t nb_elements_per_line # associated property: nb_elements_per_line
cdef list elements_names # associated property: elements_names
cpdef str get_data_type(self)
cpdef index_t get_nb_lines_used(self)

View File

@ -165,11 +165,16 @@ cdef class OBIDMS_column :
def alias(self, new_alias):
self.view.change_column_alias(self.column_alias, new_alias)
# Element names property getter
# elements_names property getter
@property
def elements_names(self):
return self.elements_names
# nb_elements_per_line property getter
@property
def nb_elements_per_line(self):
return self.nb_elements_per_line
@staticmethod
cdef object get_subclass_type(OBIDMS_column_p column_p) :