From 7947589fcb37c9601824dcdc814fac1ed9ddb85e Mon Sep 17 00:00:00 2001 From: Han Wang Date: Mon, 15 Jul 2024 15:41:15 +0800 Subject: [PATCH] fix: uninitialized return value --- dpgen/generator/run.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dpgen/generator/run.py b/dpgen/generator/run.py index f8c887838..27e362cd1 100644 --- a/dpgen/generator/run.py +++ b/dpgen/generator/run.py @@ -2345,9 +2345,8 @@ def _select_by_model_devi_standard( numofspecies = _parse_calypso_input("NumberOfSpecies", calypso_run_opt_path) min_dis = _parse_calypso_dis_mtx(numofspecies, calypso_run_opt_path) fp_candidate = [] - if detailed_report_make_fp: - fp_rest_accurate = [] - fp_rest_failed = [] + fp_rest_accurate = [] + fp_rest_failed = [] cc = 0 counter = Counter() counter["candidate"] = 0