Skip to content

Commit c22d5d4

Browse files
committed
fix: retrieve ABACUS autotest outputs
Fixes #1897 Coding-Agent: Codex Codex-Version: codex-cli 0.149.0 Model: gpt-5.6-sol Reasoning-Effort: xhigh
1 parent d5ce577 commit c22d5d4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

dpgen/auto_test/ABACUS.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,4 +252,6 @@ def forward_common_files(self, property_type="relaxation"):
252252
return []
253253

254254
def backward_files(self, property_type="relaxation"):
255-
return []
255+
# ABACUS stores completion logs, final structures, and parsed results
256+
# under this directory for both relaxation and static calculations.
257+
return ["OUT.ABACUS"]

tests/auto_test/test_abacus.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def test_make_potential_files(self):
6969
)
7070
self.assertTrue(os.path.isfile(os.path.join(self.equi_path, "inter.json")))
7171

72+
def test_backward_files(self):
73+
self.assertEqual(self.ABACUS.backward_files(), ["OUT.ABACUS"])
74+
7275
def test_make_input_file_1(self):
7376
param = self.task_param.copy()
7477
param["cal_setting"] = {

0 commit comments

Comments
 (0)