-
Notifications
You must be signed in to change notification settings - Fork 77
Rename tree.length attribute to tree.span? #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I like this --- having "length" refer to two different things is confusing. However, we still have the |
Yes, good call. So, would |
Yeah, I think so. I'd imagine keeping it around for a long time though, no point in breaking people's code. |
At the moment the msprime/tskit API defines
SparseTree.length
to be the genomic length covered by a tree. It can be quite confusing when branches on a tree can have "lengths" too. I’ve been trying to use the word "span" instead of "length" to refer to the genome span covered by an edge or a tree. Would it be sensible to add the attribute .span as a preferred alternative to .length on a SparseTree (and perhaps change the description in other places in the documentation where we refer to extent over a genomic region, such as the "span" (i.e. length) of an edge).The text was updated successfully, but these errors were encountered: