FIX: quick fix for failing spin contamination
The function get_spin_contamination()
fails as get_all_electron_density()
throws an AssertionError
for core-holes with finite angular momentum. As spin contamination is rather unimportant with core-holes, this is a quick fix.