@@ -848,7 +848,7 @@ def match_ancestors_batch_groups(
848
848
ancestors_ts = None
849
849
else :
850
850
ancestors_ts = tskit .load (
851
- os .path .join (work_dir , f"ancestors_{ group_index_start - 1 } .trees" )
851
+ os .path .join (work_dir , f"ancestors_{ group_index_start - 1 } .trees" )
852
852
)
853
853
matcher = initialize_ancestor_matcher (
854
854
metadata , ancestors_ts , num_threads = num_threads
@@ -859,7 +859,7 @@ def match_ancestors_batch_groups(
859
859
for group_index in range (group_index_start , group_index_end )
860
860
}
861
861
)
862
- path = os .path .join (work_dir , f"ancestors_{ group_index_end - 1 } .trees" )
862
+ path = os .path .join (work_dir , f"ancestors_{ group_index_end - 1 } .trees" )
863
863
logger .info (f"Dumping to { path } " )
864
864
ts .dump (path )
865
865
with open (path + ".resources" , "w" ) as f :
@@ -898,7 +898,7 @@ def match_ancestors_batch_group_partition(work_dir, group_index, partition_index
898
898
899
899
with provenance .TimingAndMemory () as timing :
900
900
ancestors_ts = tskit .load (
901
- os .path .join (work_dir , f"ancestors_{ group_index - 1 } .trees" )
901
+ os .path .join (work_dir , f"ancestors_{ group_index - 1 } .trees" )
902
902
)
903
903
matcher = initialize_ancestor_matcher (metadata , ancestors_ts )
904
904
ancestors_to_match = group ["partitions" ][partition_index ]
@@ -935,7 +935,7 @@ def match_ancestors_batch_group_finalise(work_dir, group_index):
935
935
metadata = json .load (f )
936
936
group = metadata ["ancestor_grouping" ][group_index ]
937
937
ancestors_ts = tskit .load (
938
- os .path .join (work_dir , f"ancestors_{ group_index - 1 } .trees" )
938
+ os .path .join (work_dir , f"ancestors_{ group_index - 1 } .trees" )
939
939
)
940
940
matcher = initialize_ancestor_matcher (metadata , ancestors_ts )
941
941
logger .info (
0 commit comments