Commit 93cd81f 1 parent b579afc commit 93cd81f Copy full SHA for 93cd81f
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ build-gcc
3
3
python /benchmark /* .trees
4
4
python /benchmark /* .json
5
5
python /benchmark /* .html
6
+ .venv
7
+ .env
6
8
Original file line number Diff line number Diff line change @@ -4561,14 +4561,14 @@ def max_root_time(self):
4561
4561
raise ValueError (
4562
4562
"max_root_time is not defined in a tree sequence with 0 samples"
4563
4563
)
4564
- ret = max (self .node ( u ). time for u in self .samples ())
4564
+ ret = max (self .nodes_time [ u ] for u in self .samples ())
4565
4565
if self .num_edges > 0 :
4566
4566
# Edges are guaranteed to be listed in parent-time order, so we can get the
4567
4567
# last one to get the oldest root
4568
4568
edge = self .edge (self .num_edges - 1 )
4569
4569
# However, we can have situations where there is a sample older than a
4570
4570
# 'proper' root
4571
- ret = max (ret , self .node ( edge .parent ). time )
4571
+ ret = max (ret , self .nodes_time [ edge .parent ] )
4572
4572
return ret
4573
4573
4574
4574
def migrations (self ):
You can’t perform that action at this time.
0 commit comments