File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ def test_small_displacement(self):
123123 self .assertTrue (
124124 np .all (np .isclose (lmp .interactive_positions_getter (), positions ))
125125 )
126+ lmp .close ()
126127
127128 def test_velocities (self ):
128129 lmp = LammpsASELibrary (
@@ -174,6 +175,7 @@ def test_velocities(self):
174175 self .assertTrue (
175176 np .all (np .isclose (lmp .interactive_positions_getter (), positions ))
176177 )
178+ lmp .close ()
177179
178180 def test_small_displacement_skewed (self ):
179181 lmp = LammpsASELibrary (
@@ -218,6 +220,7 @@ def test_small_displacement_skewed(self):
218220 self .assertTrue (
219221 np .all (np .isclose (lmp .interactive_positions_getter (), positions ))
220222 )
223+ lmp .close ()
221224
222225 def test_static_with_statement (self ):
223226 structure = bulk ("Al" ).repeat ([2 , 2 , 2 ])
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ def test_file_not_found(self):
3636 )
3737 with self .assertRaises (FileNotFoundError ):
3838 lmp .file ("file_does_not_exist.txt" )
39+ lmp .close ()
3940
4041 def test_extract_atom (self ):
4142 f = self .lmp .extract_atom ("f" )
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def test_overlapping_atoms(self):
4949 with self .assertRaises (Exception ):
5050 lmp = LammpsLibrary (cores = 2 )
5151 lmp .file ("in.error" )
52+ lmp .close ()
5253
5354 def tearDown (self ):
5455 for f in ["in.error" , "log.lammps" ]:
You can’t perform that action at this time.
0 commit comments