Coverage for /builds/kinetik161/ase/ase/cluster/compounds.py: 100.00%
6 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-12-10 11:04 +0000
1import numpy as np
3from ase.cluster.cubic import SimpleCubicFactory
6# The L1_2 structure is "based on FCC", but is really simple cubic
7# with a basis.
8class AuCu3Factory(SimpleCubicFactory):
9 "A factory for creating AuCu3 (L1_2) lattices."
11 atomic_basis = np.array([[0., 0., 0.],
12 [0., .5, .5],
13 [.5, 0., .5],
14 [.5, .5, 0.]])
16 element_basis = [0, 1, 1, 1]
19AuCu3 = L1_2 = AuCu3Factory()