def initialise(self, basis, element):
    if (self.max_l < 0):
        el = md_element(element.title())
    l_list = [l for (n, l) in el.ec.conf.keys()]
    min_l = len(set(l_list))
    self.max_l = max(min_l, self.max_l)
    self.shells = ([_INITIAL_GUESS] * self.max_l)
    self.shell_done = ([1] * self.max_l)
    self.set_basis_shells(basis, element)
    self.last_objective = 0
def initialise(self, basis, element):
    if (self.max_l < 0):
        el = md_element(element.title())
    l_list = [l for (n, l) in el.ec.conf.keys()]
    min_l = len(set(l_list))
    self.max_l = max(min_l, self.max_l)
    self.shells = ([_INITIAL_GUESS] * self.max_l)
    self.shell_done = ([1] * self.max_l)
    self.set_basis_shells(basis, element)
    self.last_objective = 0