Skip to content

Commit a33e270

Browse files
authored
fix: fix UnboundLocalError in _select_by_model_devi_standard (#1587)
Fix #1586. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Fixed an issue where detailed reports were not generated under certain conditions by ensuring `fp_rest_accurate` and `fp_rest_failed` lists are always initialized. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
1 parent 13dc51f commit a33e270

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dpgen/generator/run.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,9 +2345,8 @@ def _select_by_model_devi_standard(
23452345
numofspecies = _parse_calypso_input("NumberOfSpecies", calypso_run_opt_path)
23462346
min_dis = _parse_calypso_dis_mtx(numofspecies, calypso_run_opt_path)
23472347
fp_candidate = []
2348-
if detailed_report_make_fp:
2349-
fp_rest_accurate = []
2350-
fp_rest_failed = []
2348+
fp_rest_accurate = []
2349+
fp_rest_failed = []
23512350
cc = 0
23522351
counter = Counter()
23532352
counter["candidate"] = 0

0 commit comments

Comments
 (0)