@@ -49,22 +49,18 @@ def test_single_point_ethanol(parser):
4949 for index , label in enumerate (labels ):
5050 assert model_system .particle_states [index ].label == label
5151
52- # Cell
53- assert len (model_system .cell ) == 1
54- atomic_cell = model_system .cell [0 ]
55-
56- # Lattice vectors: atomic_cell.lattice_vectors is a numpy array (or Quantity) of shape (3, 3)
52+ # Lattice vectors: model_system.lattice_vectors is a numpy array (or Quantity) of shape (3, 3)
5753 expected_lattice = np .array (
5854 [
5955 [6.0 , 0.0 , 0.0 ],
6056 [0.0 , 6.0 , 0.0 ],
6157 [0.0 , 0.0 , 6.0 ],
6258 ]
6359 )
64- lattice_vectors = atomic_cell .lattice_vectors .to ('angstrom' ).magnitude
60+ lattice_vectors = model_system .lattice_vectors .to ('angstrom' ).magnitude
6561 assert np .allclose (lattice_vectors , expected_lattice , atol = 1e-8 )
6662
67- assert atomic_cell .periodic_boundary_conditions == [True , True , True ]
63+ assert model_system .periodic_boundary_conditions == [True , True , True ]
6864
6965 # ModelMethod
7066 assert len (simulation .model_method ) == 1
@@ -75,9 +71,9 @@ def test_single_point_ethanol(parser):
7571 assert len (dft .xc_functionals ) == 2
7672 # Order is correlation then exchange for PBE in the parser map
7773 assert dft .xc_functionals [0 ].name == 'correlation'
78- assert dft .xc_functionals [0 ].libxc_name == 'GGA_C_PBE'
74+ assert dft .xc_functionals [0 ].functional_key == 'GGA_C_PBE'
7975 assert dft .xc_functionals [1 ].name == 'exchange'
80- assert dft .xc_functionals [1 ].libxc_name == 'GGA_X_PBE'
76+ assert dft .xc_functionals [1 ].functional_key == 'GGA_X_PBE'
8177 # NumericalSettings
8278 assert len (dft .numerical_settings ) == 1
8379 k_space = dft .numerical_settings [0 ]
0 commit comments