Skip to content

Commit

Permalink
Fix mpt processing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Oct 8, 2024
1 parent f6d5d9b commit 0006e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/yadg/extractors/eclab/common/techniques.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,6 @@
]



# Maps the technique byte to its corresponding dtype.
technique_params_dtypes = {
0x04: ("GCPL", _gcpl_params_dtypes),
Expand Down
4 changes: 3 additions & 1 deletion src/yadg/extractors/eclab/mpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def process_header(

settings = process_settings(lines[:li])
# New thing in v11.61 - There can be an "External device configuration" section
if lines[li + 1].startswith("External device configuration :"):
if li + 1 < len(lines) and lines[li + 1].startswith(
"External device configuration :"
):
li += 1
for dext, line in enumerate(lines[li + 1 :]):
logger.debug(f"{dext=} {line=}")
Expand Down

0 comments on commit 0006e75

Please sign in to comment.