Skip to content

Commit efa1cad

Browse files
feat: enhanced _sys check when adding to all_sys (#1787)
1 parent 1b7bb62 commit efa1cad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dpgen/generator/run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4523,8 +4523,9 @@ def post_fp_cp2k(iter_index, jdata, rfailed=None):
45234523
_sys = dpdata.LabeledSystem(
45244524
oo, fmt="cp2kdata/e_f", type_map=jdata["type_map"]
45254525
)
4526-
all_sys.append(_sys)
4527-
icount += 1
4526+
if len(_sys) > 0:
4527+
all_sys.append(_sys)
4528+
icount += 1
45284529

45294530
if (all_sys is not None) and (len(all_sys) > 0):
45304531
sys_data_path = os.path.join(work_path, f"data.{ss}")

0 commit comments

Comments
 (0)