tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Provide TreeSequence array access to ragged columns

Open jeromekelleher opened this issue 3 years ago • 2 comments

#2424 added direct numpy access to the non-ragged table columns from the TreeSequence object. We should provide access also for the ragged columns (at some point). Some issues:

  1. Should these be direct arrays so we just reflect the original data and offset arrays or should they be decoded? (arguments both ways)
  2. We need to check that the metadata arrays are guaranteed to exist (do we allow creating a ts from tables with NO_EDGE_METADATA)?

jeromekelleher avatar Jul 21 '22 12:07 jeromekelleher

I vote for decoded?

petrelharp avatar Jul 22 '22 05:07 petrelharp

Yeah, decoded seems most useful, I agree.

jeromekelleher avatar Jul 22 '22 07:07 jeromekelleher