Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dpgen2/op/collect_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def execute(

ms = dpdata.MultiSystems(type_map=type_map)
for ii in labeled_data:
if len(list(ii.rglob("fparam.npy"))) > 0:
if ii and len(list(ii.rglob("fparam.npy"))) > 0:
setup_ele_temp(False)
if len(list(ii.rglob("aparam.npy"))) > 0:
if ii and len(list(ii.rglob("aparam.npy"))) > 0:
setup_ele_temp(True)
ss = dpdata.LabeledSystem(ii, fmt="deepmd/npy")
ms.append(ss)
Expand Down
3 changes: 2 additions & 1 deletion dpgen2/op/run_lmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def execute(
with open("job.json", "w") as f:
json.dump(data, f, indent=4)

merge_pimd_files()
merge_pimd_files()

ret_dict = {
"log": work_dir / lmp_log_name,
"traj": work_dir / lmp_traj_name,
Expand Down
2 changes: 1 addition & 1 deletion dpgen2/op/select_confs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def validate_trajs(
if tt is not None and mm is not None:
rett.append(tt)
retm.append(mm)
if optional_outputs:
if optional_outputs and any(optional_outputs):
oo = optional_outputs[i]
if oo is not None:
reto.append(oo)
Expand Down