Ejemplo n.º 1
0
 def test_pattern_1_lh_symetry(self):
     """Test l-h symmetry of volume with 1 atom."""
     assert xp.allclose(self.volume_1, xp.swapaxes(self.volume_1, 2, 0))
Ejemplo n.º 2
0
 def test_pattern_1_kl_symetry(self):
     """Test k-l symmetry of volume with 1 atom."""
     assert xp.allclose(self.volume_1, xp.swapaxes(self.volume_1, 1, 2))
Ejemplo n.º 3
0
 def test_pattern_1_hk_symetry(self):
     """Test h-k symmetry of volume with 1 atom."""
     assert xp.allclose(self.volume_1, xp.swapaxes(self.volume_1, 0, 1))
Ejemplo n.º 4
0
 def test_pattern_2y_lh_symetry(self):
     """Test l-h symmetry of volume with 2 atoms along y."""
     assert xp.allclose(self.volume_2y, xp.swapaxes(self.volume_2y, 2, 0))
Ejemplo n.º 5
0
 def test_pattern_2x_kl_symetry(self):
     """Test k-l symmetry of volume with 2 atoms along x."""
     assert xp.allclose(self.volume_2x, xp.swapaxes(self.volume_2x, 1, 2))
Ejemplo n.º 6
0
 def test_pattern_2z_hk_symetry(self):
     """Test h-k symmetry of volume with 2 atoms along z."""
     assert xp.allclose(self.volume_2z, xp.swapaxes(self.volume_2z, 0, 1))