File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55import numpy as np
66from context import dpdata
7+ import warnings
78
89
910class TestOPENMXTRAJProps :
@@ -49,12 +50,16 @@ def test_coord(self):
4950
5051class TestOPENMXTraj (unittest .TestCase , TestOPENMXTRAJProps ):
5152 def setUp (self ):
52- self .system = dpdata .System ("openmx/Au111Surface" , fmt = "openmx/md" )
53+ with warnings .catch_warnings ():
54+ warnings .simplefilter ("ignore" , UserWarning )
55+ self .system = dpdata .System ("openmx/Au111Surface" , fmt = "openmx/md" )
5356
5457
5558class TestOPENMXLabeledTraj (unittest .TestCase , TestOPENMXTRAJProps ):
5659 def setUp (self ):
57- self .system = dpdata .LabeledSystem ("openmx/Au111Surface" , fmt = "openmx/md" )
60+ with warnings .catch_warnings ():
61+ warnings .simplefilter ("ignore" , UserWarning )
62+ self .system = dpdata .LabeledSystem ("openmx/Au111Surface" , fmt = "openmx/md" )
5863
5964
6065if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments