Skip to content

Commit 0ce9879

Browse files
committed
fix bugs
1 parent b5fbee0 commit 0ce9879

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/test_json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import numpy as np
33
import unittest
44
from context import dpdata
5-
from comp_sys import CompLabeledSys, IsNoPBC
5+
from comp_sys import CompLabeledSys, IsPBC
66

7-
class TestJsonLoad(unittest.TestCase, CompLabeledSys, IsNoPBC):
7+
class TestJsonLoad(unittest.TestCase, CompLabeledSys, IsPBC):
88
def setUp (self) :
99
self.system_1 = dpdata.LabeledSystem('poscars/OUTCAR.h2o.md',
1010
fmt = 'vasp/outcar')
@@ -14,7 +14,7 @@ def setUp (self) :
1414
self.f_places = 6
1515
self.v_places = 4
1616

17-
class TestAsDict(unittest.TestCase, CompLabeledSys, IsNoPBC):
17+
class TestAsDict(unittest.TestCase, CompLabeledSys, IsPBC):
1818
def setUp (self) :
1919
self.system_1 = dpdata.LabeledSystem('poscars/OUTCAR.h2o.md',
2020
fmt = 'vasp/outcar')

tests/test_lammps_dump_skipload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import numpy as np
33
import unittest
44
from context import dpdata
5-
from comp_sys import CompSys, IsNoPBC
5+
from comp_sys import CompSys, IsPBC
66

7-
class TestLmpDumpSkip(unittest.TestCase, CompSys, IsNoPBC):
7+
class TestLmpDumpSkip(unittest.TestCase, CompSys, IsPBC):
88

99
def setUp(self):
1010
self.system_1 = dpdata.System(os.path.join('poscars', 'conf.5.dump'),

tests/test_multisystems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def setUp (self) :
9595
self.system_1 = dpdata.LabeledSystem(os.path.join(path, 'C1H3'), fmt='deepmd/raw', type_map = ['C', 'H'])
9696
self.system_2 = system_3
9797

98-
class TestMultiDeepmdDumpComp(unittest.TestCase, CompLabeledSys, IsPBC):
98+
class TestMultiDeepmdDumpComp(unittest.TestCase, CompLabeledSys, IsNoPBC):
9999
def setUp (self) :
100100
self.places = 6
101101
self.e_places = 4

tests/test_system_append.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from context import dpdata
55
from comp_sys import CompSys
66
from comp_sys import CompLabeledSys
7-
from comp_sys import IsPBC
7+
from comp_sys import IsPBC, IsNoPBC
88

99
class TestVaspXmlAppend(unittest.TestCase, CompLabeledSys, IsPBC):
1010
def setUp (self) :
@@ -24,7 +24,7 @@ def setUp (self) :
2424
self.system_2 = dpdata.LabeledSystem('poscars/vasprun.h2o.md.10.xml').sub_system(np.arange(0,10,2))
2525

2626

27-
class TestDifferentOrderAppend(unittest.TestCase, CompLabeledSys, IsPBC):
27+
class TestDifferentOrderAppend(unittest.TestCase, CompLabeledSys, IsNoPBC):
2828
def setUp (self) :
2929
self.places = 6
3030
self.e_places = 6

0 commit comments

Comments
 (0)