def _parse_vasp_nelect(xml_tree):
    """Extract NELECT from an XML ElementTree representing a vasprun.xml file.
    """
    xml_electronic = xml_tree.find('./parameters').find(
        './separator[@name="electronic"]')
    return float(xml_electronic.find('./i[@name="NELECT"]').text)
