diff --git a/decode_ft8.cpp b/decode_ft8.cpp index e147df0..6961790 100644 --- a/decode_ft8.cpp +++ b/decode_ft8.cpp @@ -202,7 +202,7 @@ int main(int argc, char **argv) { // Find top candidates by Costas sync score and localize them in time and frequency ft8::Candidate candidate_list[kMax_candidates]; - int num_candidates = ft8::find_sync(&power, ft8::kCostas_map, kMax_candidates, candidate_list); + int num_candidates = ft8::find_sync(&power, ft8::kCostas_map, kMax_candidates, candidate_list, kMin_score); // TODO: sort the candidates by strongest sync first? diff --git a/utils/run_tests.py b/utils/run_tests.py index a065282..096c644 100755 --- a/utils/run_tests.py +++ b/utils/run_tests.py @@ -19,6 +19,7 @@ n_extra = 0 n_missed = 0 n_total = 0 for wav_file, txt_file in zip(wav_files, txt_files): + if not os.path.isfile(txt_file): continue print(wav_file) result = subprocess.run(['./decode_ft8', wav_file], stdout=subprocess.PIPE) result = result.stdout.decode('utf-8').split('\n')