File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ build-gcc
33python /benchmark /* .trees
44python /benchmark /* .json
55python /benchmark /* .html
6+ .venv
7+ .env
68
Original file line number Diff line number Diff line change @@ -4561,14 +4561,14 @@ def max_root_time(self):
45614561 raise ValueError (
45624562 "max_root_time is not defined in a tree sequence with 0 samples"
45634563 )
4564- ret = max (self .node ( u ). time for u in self .samples ())
4564+ ret = max (self .nodes_time [ u ] for u in self .samples ())
45654565 if self .num_edges > 0 :
45664566 # Edges are guaranteed to be listed in parent-time order, so we can get the
45674567 # last one to get the oldest root
45684568 edge = self .edge (self .num_edges - 1 )
45694569 # However, we can have situations where there is a sample older than a
45704570 # 'proper' root
4571- ret = max (ret , self .node ( edge .parent ). time )
4571+ ret = max (ret , self .nodes_time [ edge .parent ] )
45724572 return ret
45734573
45744574 def migrations (self ):
You can’t perform that action at this time.
0 commit comments