Beispiel #1
0
 def test_cubic(self):
     sym1 = symmetry('bcc')
     sym2 = symmetry('fcc')
     sym3 = symmetry('cubic')
     self.assertListEqual(sym1.tolist(), sym2.tolist())
     self.assertListEqual(sym2.tolist(), sym3.tolist())
Beispiel #2
0
 def test_cubic(self):
     sym1 = symmetry('bcc')
     sym2 = symmetry('fcc')
     sym3 = symmetry('cubic')
     self.assertListEqual(sym1.tolist(), sym2.tolist())
     self.assertListEqual(sym2.tolist(), sym3.tolist())
Beispiel #3
0
 def test_hcp(self):
     sym1 = symmetry('hexagonal', mode='numpy')
     sym2 = symmetry('hcp', mode='numpy')
     sym3 = symmetry('hex', mode='numpy')
     self.assertListEqual(sym1.tolist(), sym2.tolist())
     self.assertListEqual(sym2.tolist(), sym3.tolist())
Beispiel #4
0
 def test_hcp(self):
     sym1 = symmetry('hexagonal', mode='numpy')
     sym2 = symmetry('hcp'      , mode='numpy')
     sym3 = symmetry('hex'      , mode='numpy')
     self.assertListEqual(sym1.tolist(), sym2.tolist())
     self.assertListEqual(sym2.tolist(), sym3.tolist())