コード例 #1
0
 def test8(self):
     diamond = DiamondStructureGenerator(scaling_matrix=[2, 2, 2])
     diamond.save()
     self.tmpdata.append(diamond.fname)
     assert_equal(diamond.atoms.Natoms,
                  DiamondStructure().basis.Natoms * 2 ** 3)
コード例 #2
0
 def test8(self):
     diamond = DiamondStructureGenerator(scaling_matrix=[2, 2, 2])
     diamond.save()
     self.tmpdata.append(diamond.fname)
     assert_equal(diamond.atoms.Natoms,
                  DiamondStructure().basis.Natoms * 2**3)
コード例 #3
0
 def test7(self):
     diamond = DiamondStructureGenerator()
     diamond.save()
     self.tmpdata.append(diamond.fname)
     assert_equal(diamond.atoms.Natoms, DiamondStructure().basis.Natoms)
コード例 #4
0
 def test7(self):
     diamond = DiamondStructureGenerator()
     diamond.save()
     self.tmpdata.append(diamond.fname)
     assert_equal(diamond.atoms.Natoms, DiamondStructure().basis.Natoms)