Added nb_elements_per_line property to OBIDMS_column class
This commit is contained in:
@ -10,14 +10,14 @@ from ._obitaxo cimport OBI_Taxonomy
|
|||||||
cdef class OBIDMS_column:
|
cdef class OBIDMS_column:
|
||||||
|
|
||||||
cdef str column_name
|
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_column_p* pointer
|
||||||
cdef OBIDMS dms
|
cdef OBIDMS dms
|
||||||
cdef OBIView view
|
cdef OBIView view
|
||||||
cdef str data_type
|
cdef str data_type
|
||||||
cdef str dms_name
|
cdef str dms_name
|
||||||
cdef index_t nb_elements_per_line
|
cdef index_t nb_elements_per_line # associated property: nb_elements_per_line
|
||||||
cdef list elements_names # associated property: elements_names
|
cdef list elements_names # associated property: elements_names
|
||||||
|
|
||||||
cpdef str get_data_type(self)
|
cpdef str get_data_type(self)
|
||||||
cpdef index_t get_nb_lines_used(self)
|
cpdef index_t get_nb_lines_used(self)
|
||||||
|
@ -165,11 +165,16 @@ cdef class OBIDMS_column :
|
|||||||
def alias(self, new_alias):
|
def alias(self, new_alias):
|
||||||
self.view.change_column_alias(self.column_alias, new_alias)
|
self.view.change_column_alias(self.column_alias, new_alias)
|
||||||
|
|
||||||
# Element names property getter
|
# elements_names property getter
|
||||||
@property
|
@property
|
||||||
def elements_names(self):
|
def elements_names(self):
|
||||||
return self.elements_names
|
return self.elements_names
|
||||||
|
|
||||||
|
# nb_elements_per_line property getter
|
||||||
|
@property
|
||||||
|
def nb_elements_per_line(self):
|
||||||
|
return self.nb_elements_per_line
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
cdef object get_subclass_type(OBIDMS_column_p column_p) :
|
cdef object get_subclass_type(OBIDMS_column_p column_p) :
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user