def from_file(self, filename='OUTCAR'):
    '\n        Parse and store relevant quantities from the OUTCAR file into parse_dict.\n\n        Args:\n            filename (str): Filename of the OUTCAR file to parse\n\n        '
    with open(filename, 'r') as f:
        lines = f.readlines()
    energies = self.get_total_energies(filename=filename, lines=lines)
    energies_int = self.get_energy_without_entropy(filename=filename, lines=lines)
    energies_zero = self.get_energy_sigma_0(filename=filename, lines=lines)
    scf_energies = self.get_all_total_energies(filename=filename, lines=lines)
    n_atoms = self.get_number_of_atoms(filename=filename, lines=lines)
    forces = self.get_forces(filename=filename, lines=lines, n_atoms=n_atoms)
    positions = self.get_positions(filename=filename, lines=lines, n_atoms=n_atoms)
    cells = self.get_cells(filename=filename, lines=lines)
    steps = self.get_steps(filename=filename, lines=lines)
    temperatures = self.get_temperatures(filename=filename, lines=lines)
    time = self.get_time(filename=filename, lines=lines)
    fermi_level = self.get_fermi_level(filename=filename, lines=lines)
    scf_moments = self.get_dipole_moments(filename=filename, lines=lines)
    kin_energy_error = self.get_kinetic_energy_error(filename=filename, lines=lines)
    stresses = self.get_stresses(filename=filename, si_unit=False, lines=lines)
    n_elect = self.get_nelect(filename=filename, lines=lines)
    (e_fermi_list, vbm_list, cbm_list) = self.get_band_properties(filename=filename, lines=lines)
    elastic_constants = self.get_elastic_constants(filename=filename, lines=lines)
    try:
        irreducible_kpoints = self.get_irreducible_kpoints(filename=filename, lines=lines)
    except ValueError:
        print('irreducible kpoints not parsed !')
        irreducible_kpoints = None
    (magnetization, final_magmom_lst) = self.get_magnetization(filename=filename, lines=lines)
    broyden_mixing = self.get_broyden_mixing_mesh(filename=filename, lines=lines)
    self.parse_dict['energies'] = energies
    self.parse_dict['energies_int'] = energies_int
    self.parse_dict['energies_zero'] = energies_zero
    self.parse_dict['scf_energies'] = scf_energies
    self.parse_dict['forces'] = forces
    self.parse_dict['positions'] = positions
    self.parse_dict['cells'] = cells
    self.parse_dict['steps'] = steps
    self.parse_dict['temperatures'] = temperatures
    self.parse_dict['time'] = time
    self.parse_dict['fermi_level'] = fermi_level
    self.parse_dict['scf_dipole_moments'] = scf_moments
    self.parse_dict['kin_energy_error'] = kin_energy_error
    self.parse_dict['stresses'] = stresses
    self.parse_dict['irreducible_kpoints'] = irreducible_kpoints
    self.parse_dict['magnetization'] = magnetization
    self.parse_dict['final_magmoms'] = final_magmom_lst
    self.parse_dict['broyden_mixing'] = broyden_mixing
    self.parse_dict['n_elect'] = n_elect
    self.parse_dict['e_fermi_list'] = e_fermi_list
    self.parse_dict['vbm_list'] = vbm_list
    self.parse_dict['cbm_list'] = cbm_list
    self.parse_dict['elastic_constants'] = elastic_constants
    try:
        self.parse_dict['pressures'] = (np.average(stresses[:, 0:3], axis=1) * KBAR_TO_EVA)
    except IndexError:
        self.parse_dict['pressures'] = np.zeros(len(steps))
Parse and store relevant quantities from the OUTCAR file into parse_dict.

Args:
    filename (str): Filename of the OUTCAR file to parse
def from_file(self, filename='OUTCAR'):
    '\n        Parse and store relevant quantities from the OUTCAR file into parse_dict.\n\n        Args:\n            filename (str): Filename of the OUTCAR file to parse\n\n        '
    with open(filename, 'r') as f:
        lines = f.readlines()
    energies = self.get_total_energies(filename=filename, lines=lines)
    energies_int = self.get_energy_without_entropy(filename=filename, lines=lines)
    energies_zero = self.get_energy_sigma_0(filename=filename, lines=lines)
    scf_energies = self.get_all_total_energies(filename=filename, lines=lines)
    n_atoms = self.get_number_of_atoms(filename=filename, lines=lines)
    forces = self.get_forces(filename=filename, lines=lines, n_atoms=n_atoms)
    positions = self.get_positions(filename=filename, lines=lines, n_atoms=n_atoms)
    cells = self.get_cells(filename=filename, lines=lines)
    steps = self.get_steps(filename=filename, lines=lines)
    temperatures = self.get_temperatures(filename=filename, lines=lines)
    time = self.get_time(filename=filename, lines=lines)
    fermi_level = self.get_fermi_level(filename=filename, lines=lines)
    scf_moments = self.get_dipole_moments(filename=filename, lines=lines)
    kin_energy_error = self.get_kinetic_energy_error(filename=filename, lines=lines)
    stresses = self.get_stresses(filename=filename, si_unit=False, lines=lines)
    n_elect = self.get_nelect(filename=filename, lines=lines)
    (e_fermi_list, vbm_list, cbm_list) = self.get_band_properties(filename=filename, lines=lines)
    elastic_constants = self.get_elastic_constants(filename=filename, lines=lines)
    try:
        irreducible_kpoints = self.get_irreducible_kpoints(filename=filename, lines=lines)
    except ValueError:
        print('irreducible kpoints not parsed !')
        irreducible_kpoints = None
    (magnetization, final_magmom_lst) = self.get_magnetization(filename=filename, lines=lines)
    broyden_mixing = self.get_broyden_mixing_mesh(filename=filename, lines=lines)
    self.parse_dict['energies'] = energies
    self.parse_dict['energies_int'] = energies_int
    self.parse_dict['energies_zero'] = energies_zero
    self.parse_dict['scf_energies'] = scf_energies
    self.parse_dict['forces'] = forces
    self.parse_dict['positions'] = positions
    self.parse_dict['cells'] = cells
    self.parse_dict['steps'] = steps
    self.parse_dict['temperatures'] = temperatures
    self.parse_dict['time'] = time
    self.parse_dict['fermi_level'] = fermi_level
    self.parse_dict['scf_dipole_moments'] = scf_moments
    self.parse_dict['kin_energy_error'] = kin_energy_error
    self.parse_dict['stresses'] = stresses
    self.parse_dict['irreducible_kpoints'] = irreducible_kpoints
    self.parse_dict['magnetization'] = magnetization
    self.parse_dict['final_magmoms'] = final_magmom_lst
    self.parse_dict['broyden_mixing'] = broyden_mixing
    self.parse_dict['n_elect'] = n_elect
    self.parse_dict['e_fermi_list'] = e_fermi_list
    self.parse_dict['vbm_list'] = vbm_list
    self.parse_dict['cbm_list'] = cbm_list
    self.parse_dict['elastic_constants'] = elastic_constants
    try:
        self.parse_dict['pressures'] = (np.average(stresses[:, 0:3], axis=1) * KBAR_TO_EVA)
    except IndexError:
        self.parse_dict['pressures'] = np.zeros(len(steps))