-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Labels
Python APIIssue is about the Python APIIssue is about the Python APIenhancementNew feature or requestNew feature or request
Milestone
Description
It will be useful for some applications to have direct access to the underling parent
, left_child
etc arrays in the quintuply linked tree representation. We can do this by adding some (read only) numpy arrays that use these pointers defined in the C structs, i.e.,
typedef struct {
PyObject_HEAD
TreeSequence *tree_sequence;
tsk_tree_t *tree;
PyObject *left_array;
PyObject *right_array; // etc
} Tree;
Then in Tree_init
we can create the required numpy views, and make them available to Python following the steps here
Metadata
Metadata
Assignees
Labels
Python APIIssue is about the Python APIIssue is about the Python APIenhancementNew feature or requestNew feature or request