Coverage for gpaw/test/pw/test_electrostatic_potential.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.7.1, created at 2025-07-08 00:17 +0000

1from gpaw import GPAW 

2 

3 

4def test_electrostatic_potential(gpw_files): 

5 """Make sure the whole array is returned also when parallelizing 

6 over plane-wave coefficients.""" 

7 calc = GPAW(gpw_files['h2_pw']) 

8 v = calc.get_electrostatic_potential() 

9 assert v.shape == tuple(calc.hamiltonian.finegd.N_c)