Skip to content

Commit 28a758c

Browse files
author
root
committed
Merge branch 'spin' of https://github.com/pxlxingliang/dpdata into spin
2 parents 8c0fede + 8bd1f99 commit 28a758c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/test_abacus_spin.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_scf(self):
5151
np.testing.assert_almost_equal(
5252
data["force_mags"], sys2.data["force_mags"], decimal=8
5353
)
54-
54+
5555
def test_scf_nspin2(self):
5656
os.system("cp abacus.spin/INPUT.scf.nspin2 abacus.spin/INPUT")
5757
mysys = dpdata.LabeledSystem("abacus.spin", fmt="abacus/scf")
@@ -60,16 +60,16 @@ def test_scf_nspin2(self):
6060
np.testing.assert_almost_equal(
6161
data["spins"][0],
6262
[
63-
[0,0,2.4000001004],
64-
[0,0,2.3999994597],
63+
[0, 0, 2.4000001004],
64+
[0, 0, 2.3999994597],
6565
],
6666
decimal=8,
6767
)
6868
np.testing.assert_almost_equal(
6969
data["force_mags"][0],
7070
[
71-
[0,0, -0.3669618965],
72-
[0,0, -0.3669821632],
71+
[0, 0, -0.3669618965],
72+
[0, 0, -0.3669821632],
7373
],
7474
decimal=8,
7575
)
@@ -85,7 +85,6 @@ def test_scf_nspin2(self):
8585
data["force_mags"], sys2.data["force_mags"], decimal=8
8686
)
8787

88-
8988
def test_relax(self):
9089
os.system("cp abacus.spin/INPUT.relax abacus.spin/INPUT")
9190
mysys = dpdata.LabeledSystem("abacus.spin", fmt="abacus/relax")

0 commit comments

Comments
 (0)