Skip to content

Commit

Permalink
fix UT test_make_md (#812)
Browse files Browse the repository at this point in the history
* fix UT test_make_md

* remove debug line
  • Loading branch information
njzjz authored Jul 20, 2022
1 parent 2f5a45b commit 902c1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dpgen/generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ def make_model_devi (iter_index,
cur_systems = []
ss = sys_configs[idx]
for ii in ss :
cur_systems += glob.glob(ii)
cur_systems += sorted(glob.glob(ii))
# cur_systems should not be sorted, as we may add specific constrict to the similutions
#cur_systems.sort()
cur_systems = [os.path.abspath(ii) for ii in cur_systems]
Expand Down
3 changes: 1 addition & 2 deletions tests/generator/test_make_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ def _check_confs(testCase, idx, jdata) :
for ii in sys_idx :
sys_poscars = []
for ss in sys_configs[ii]:
tmp_poscars = glob.glob(ss)
tmp_poscars = sorted(glob.glob(ss))
sys_poscars += tmp_poscars
sys_poscars.sort()
poscars.append(sys_poscars)
for ii in tasks :
conf_file = os.path.join(ii, 'conf.lmp')
Expand Down

0 comments on commit 902c1fe

Please sign in to comment.