Coverage for ase/cluster/compounds.py: 100.00%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-11-27 15:21 +0000

1import numpy as np 

2 

3from ase.cluster.cubic import SimpleCubicFactory 

4 

5 

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." 

10 

11 atomic_basis = np.array( 

12 [[0.0, 0.0, 0.0], [0.0, 0.5, 0.5], [0.5, 0.0, 0.5], [0.5, 0.5, 0.0]] 

13 ) 

14 

15 element_basis = [0, 1, 1, 1] 

16 

17 

18AuCu3 = L1_2 = AuCu3Factory()