def test4(): gold = GoldGenerator() print('gold: {}'.format(gold)) print('gold.unit_cell: {}'.format(gold.unit_cell)) supercell = SuperCell(gold.unit_cell, scaling_matrix=2) print('supercell: {}'.format(supercell)) print('gold.unit_cell.volume: {}'.format(gold.unit_cell.volume)) print('supercell.volume: {}'.format(supercell.volume)) assert_true(np.allclose(2**3 * gold.unit_cell.volume, supercell.volume))
def test4(self): gold = GoldGenerator(scaling_matrix=[2, 2, 2]) gold.save() self.tmpdata.append(gold.fname) assert_equal(gold.atoms.Natoms, Gold().basis.Natoms * 2 ** 3)
def test3(self): gold = GoldGenerator() gold.save() self.tmpdata.append(gold.fname) assert_equal(gold.atoms.Natoms, Gold().basis.Natoms)
def test4(self): gold = GoldGenerator(scaling_matrix=[2, 2, 2]) gold.save() self.tmpdata.append(gold.fname) assert_equal(gold.atoms.Natoms, Gold().basis.Natoms * 2**3)
def test13(self): assert_equal(GoldGenerator().atoms, FCCStructureGenerator('Au').atoms)