Skip to content

Consider making TreeSequence and TableCollection classes richer by containing NodesTable, EdgeTable, ... #138

Description

@gregorgorjanc

Currently we have tc$node_table_add_row() etc. because tc is a TableCollection class with xptr element in it. As such, this resembles C code (so our current implementation looks like a hybrid between C & Python!), while Python code is looks like tc.nodes.add_row() since each table has its own class and associated Python methods. We could mirror such a structure by adding NodeTable, EdgeTable, ... elements to TableCollection, which would be pointers to the tables within the xptr!?

Or we just clearly state that our method/function calls resemble C functions!?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions