Skip to content

Commit 2fd6c7e

Browse files
shazj99Zhengju Sha
andauthored
remove jr.json to allow rerun in autotest make (#579)
Change-Id: I26e8f7120703f131ffb005e4c0c927c108821ae0 Co-authored-by: Zhengju Sha <jenny@bytedance.com>
1 parent 90ea59e commit 2fd6c7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpgen/auto_test/common_equi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def make_equi(confs,
7979
poscar = os.path.abspath(os.path.join(ii, 'POSCAR'))
8080
if not os.path.exists(poscar):
8181
raise FileNotFoundError('no configuration for autotest')
82+
if os.path.exists(os.path.join(ii, 'relaxation', 'jr.json')):
83+
os.remove(os.path.join(ii, 'relaxation', 'jr.json'))
84+
8285
relax_dirs = os.path.abspath(os.path.join(ii, 'relaxation', 'relax_task')) # to be consistent with property in make dispatcher
8386
create_path(relax_dirs)
8487
task_dirs.append(relax_dirs)

0 commit comments

Comments
 (0)