Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OBITools3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
24b1dab5
Commit
24b1dab5
authored
Jun 17, 2020
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cython: Columns: added a keys() method that returns all element names
parent
7593673f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
column.pxd
python/obitools3/dms/column/column.pxd
+1
-0
column.pyx
python/obitools3/dms/column/column.pyx
+5
-2
No files found.
python/obitools3/dms/column/column.pxd
View file @
24b1dab5
...
...
@@ -22,6 +22,7 @@ cdef class Column(OBIWrapper) :
cdef inline OBIDMS_column_p pointer(self)
cdef read_elements_names(self)
cpdef list keys(self)
@staticmethod
cdef type get_column_class(obitype_t obitype, bint multi_elts, bint tuples)
...
...
python/obitools3/dms/column/column.pyx
View file @
24b1dab5
...
...
@@ -323,7 +323,10 @@ cdef class Column(OBIWrapper) :
free
(
elts_names_b
)
return
elts_names_list
cpdef
list
keys
(
self
)
:
return
self
.
_elements_names
# Column alias property getter and setter
@property
def
name
(
self
)
:
...
...
@@ -340,7 +343,7 @@ cdef class Column(OBIWrapper) :
@property
def
elements_names
(
self
)
:
return
self
.
_elements_names
# nb_elements_per_line property getter
@property
def
nb_elements_per_line
(
self
)
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment