def _converged_electronic(self):
    """
    Checks that electronic step convergence has been reached in the final
    ionic step
    """
    try:
        final_esteps = self.ionic_steps[-1]["electronic_steps"]
    except IndexError:
        return False            # no actual ionic steps
    if 'LEPSILON' in self.incar and self.incar['LEPSILON']:
        i = 1
        to_check = set(['e_wo_entrp', 'e_fr_energy', 'e_0_energy'])
        while set(final_esteps[i].keys()) == to_check:
            i += 1
        return i + 1 != self.parameters["NELM"]
    return len(final_esteps) < self.parameters["NELM"]