Skip to content

Add TreeSequence.max_time, min_time attributes #2271

@jeromekelleher

Description

@jeromekelleher

There are many situations where it's handy to know what the max and min times are, and it would be nice if we could avoid having to do a full lookup of the np.max(ts.tables.nodes.time) to do it.

I think we can reasonably add these as attributes of the tsk_treeseq_t struct in C, filling them in during startup.

We can make them available to Python then easily, too.

Metadata

Metadata

Assignees

Labels

C APIIssue is about the C APIPython APIIssue is about the Python APIenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions