예제 #1
0
 def test_atoms_distance_pbc(self):
     dist = s.atoms_distance(self.cell, 2, 18)
     self.assertAlmostEqual(dist, 1.867066, 5)
예제 #2
0
 def test_atoms_distance_proj(self):
     """Test the atoms_distance method with a projection."""
     dist = s.atoms_distance(self.cell, 24, 9, "xy")
     self.assertAlmostEqual(dist, 1.51230705052) 
예제 #3
0
 def test_atoms_distance_proj2(self):
     """Test the atoms_distance method with a projection defined by vector."""
     dist = s.atoms_distance(self.cell, 9, 24, (0,0,10))
     self.assertAlmostEqual(dist, 1.16373136) 
예제 #4
0
 def test_atoms_distance(self):
     """Test the atoms_distance method."""
     dist = s.atoms_distance(self.cell, 9, 24)
     self.assertAlmostEqual(dist, 1.90823040889809)
예제 #5
0
 def test_atoms_distance_pbc(self):
     dist = s.atoms_distance(self.cell, 2, 18)
     self.assertAlmostEqual(dist, 1.867066, 5)
예제 #6
0
 def test_atoms_distance_proj2(self):
     """Test the atoms_distance method with a projection defined by vector."""
     dist = s.atoms_distance(self.cell, 9, 24, (0, 0, 10))
     self.assertAlmostEqual(dist, 1.16373136)
예제 #7
0
 def test_atoms_distance_proj(self):
     """Test the atoms_distance method with a projection."""
     dist = s.atoms_distance(self.cell, 24, 9, "xy")
     self.assertAlmostEqual(dist, 1.51230705052)
예제 #8
0
 def test_atoms_distance(self):
     """Test the atoms_distance method."""
     dist = s.atoms_distance(self.cell, 9, 24)
     self.assertAlmostEqual(dist, 1.90823040889809)