Skip to content

Commit 128f86d

Browse files
author
Han Wang
committed
fix bug: requiring atomic ener computation when requiring detail report
1 parent 2a76ca4 commit 128f86d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source/train/test.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ def test_ener (dp, args, append_detail = False) :
129129
else :
130130
aparam = None
131131
detail_file = args.detail_file
132-
if detail_file is not None:
133-
atomic = True
134-
else:
135-
atomic = False
132+
atomic = False
136133

137134
ret = dp.eval(coord, box, atype, fparam = fparam, aparam = aparam, atomic = atomic)
138135
energy = ret[0]

0 commit comments

Comments
 (0)