@jrioux I would guess because `i` and `p` contains different levels of information regarding fermi level, but I need to read more about minlex. Or should I check whether inputs contain fermi information first and decide if swapping is needed?