cmars / cmars/pystdf

Error occur when record's REC_LEN does not match the total length of fields in this record

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
183
Forks
94
Avg merge
3m
Merged PRs (30d)
2

Description

I have some STDF files that REC_LEN of a record greater than the total length of fields in this record. This would lead to error when parse the first field of next record. After debugging, I found the cause, then I change the function parse_records in IO module like below:
Screen Shot 2021-02-07 at 7 01 45 PM
I read the whole bytes stream in this record, then process the parse work just with it, and restore at the end. By applying this, I can walk-around this kind of error.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.