Cython: Columns: goes with handling of JSON formatted comments

This commit is contained in:
Celine Mercier
2018-10-07 19:04:50 +02:00
parent ffd5bc76bf
commit c6ee0bade9
8 changed files with 10 additions and 7 deletions

View File

@ -64,4 +64,7 @@ cdef extern from "obidmscolumn.h" nogil:
char* obi_get_elements_names(OBIDMS_column_p column)
index_t obi_column_get_element_index_from_name(OBIDMS_column_p column, const char* element_name)
int obi_column_write_comments(OBIDMS_column_p column, const char* comments)
int obi_column_add_comment(OBIDMS_column_p column, const char* key, const char* value)

View File

@ -39,7 +39,7 @@ cdef class Column_bool(Column):
index_t nb_elements_per_line=1,
object elements_names=None,
bint tuples=False,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_BOOL,
nb_elements_per_line=nb_elements_per_line,
elements_names=elements_names,

View File

@ -37,7 +37,7 @@ cdef class Column_char(Column):
index_t nb_elements_per_line=1,
object elements_names=None,
bint tuples=False,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_CHAR,
nb_elements_per_line=nb_elements_per_line,

View File

@ -37,7 +37,7 @@ cdef class Column_float(Column):
index_t nb_elements_per_line=1,
object elements_names=None,
bint tuples=False,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_FLOAT,
nb_elements_per_line=nb_elements_per_line,

View File

@ -39,7 +39,7 @@ cdef class Column_int(Column):
index_t nb_elements_per_line=1,
object elements_names=None,
bint tuples=False,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_INT,
nb_elements_per_line=nb_elements_per_line,

View File

@ -40,7 +40,7 @@ cdef class Column_qual(Column_idx):
object elements_names=None,
object associated_column_name=b"",
int associated_column_version=-1,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_QUAL,
nb_elements_per_line=nb_elements_per_line,

View File

@ -40,7 +40,7 @@ cdef class Column_seq(Column_idx):
index_t nb_elements_per_line=1,
object elements_names=None,
bint tuples=False,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_SEQ,
nb_elements_per_line=nb_elements_per_line,

View File

@ -39,7 +39,7 @@ cdef class Column_str(Column_idx):
index_t nb_elements_per_line=1,
object elements_names=None,
bint tuples=False,
object comments=b""):
object comments={}):
return Column.new_column(view, column_name, OBI_STR,
nb_elements_per_line=nb_elements_per_line,