diff --git a/pymatgen/io/lobster/outputs.py b/pymatgen/io/lobster/outputs.py index 3a1b00a39cd..003c43e8554 100644 --- a/pymatgen/io/lobster/outputs.py +++ b/pymatgen/io/lobster/outputs.py @@ -2108,7 +2108,7 @@ def _parse_matrix(file_data, pattern, e_fermi): if idx == 1: # ignore the first occurrence as files start with real matrices pass else: - end_inxs_imag.append(idx - 10) + end_inxs_imag.append(idx - 1) matches = re.search(pattern, file_data[idx - 1]) if matches and len(matches.groups()) == 2: k_point = matches.group(2)