Cleaning of the states_elec_calc_quantity to be slightly more readable.
Description
Cleaning of the states_elec_calc_quantity to be slightly more readable. This fixes minor problems for spinors.
News snippet
Code refactoring.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.