@@ -201,16 +201,18 @@ def test_gamma_checks(self) -> None:
201201
202202 vis = MPRelaxSet (structure = structure )
203203 assert vis .kpoints .kpts == [(1 , 1 , 1 )]
204- assert vis .kpoints .style .name == "Gamma"
205204 assert _gamma_point_only_check (vis .get_input_set ())
206205
207206 # no longer Gamma-centered
208- vis = MPRelaxSet (structure = structure , user_kpoints_settings = Kpoints (kpts_shift = ( 0.1 , 0.0 , 0.0 ) ))
207+ vis = MPRelaxSet (structure = structure , user_kpoints_settings = Kpoints (kpts = [ 2 , 1 , 1 ] ))
209208 assert not _gamma_point_only_check (vis .get_input_set ())
210209
211- # have to increase KSPACING or this will result in a non 1 x 1 x 1 grid
212- vis = MPRelaxSet (structure = structure , user_incar_settings = {"KSPACING" : 0.5 })
213- assert _gamma_point_only_check (vis .get_input_set ())
210+ vis = MPRelaxSet (structure = structure , user_kpoints_settings = Kpoints (kpts_shift = (0.1 , 0.0 , 0.0 )))
211+ assert not _gamma_point_only_check (vis .get_input_set ())
214212
215- vis = MPRelaxSet (structure = structure , user_incar_settings = {"KSPACING" : 0.5 , "KGAMMA" : False })
213+ # KSPACING-related checks
214+ vis = MPRelaxSet (structure = structure , user_incar_settings = {"KSPACING" : 0.005 })
216215 assert not _gamma_point_only_check (vis .get_input_set ())
216+
217+ vis = MPRelaxSet (structure = structure , user_incar_settings = {"KSPACING" : 50 })
218+ assert _gamma_point_only_check (vis .get_input_set ())
0 commit comments