Ab initio determination of the valence electron distribution in the average structure of the incommensurately modulated calaverite AuTe2.