Skip to content

Commit

Permalink
Merge pull request #42 from agualdron/patch-1
Browse files Browse the repository at this point in the history
Update read_header function to support EFM data Files
  • Loading branch information
bcliang authored May 1, 2021
2 parents 5145c47 + 046e561 commit 33c7e2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- [#41](https://github.com/bcliang/gamry-parser/pull/40) Use tox as test runner

### Added
-
- [#42](https://github.com/bcliang/gamry-parser/pull/42) Update read_header function to support EFM140 data Files

## [0.4.4] - 2021-02-28

Expand Down
2 changes: 1 addition & 1 deletion gamry_parser/gamryparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def read_header(self):
pos = 0
with open(self.fname, "r", encoding="utf8", errors="ignore") as f:
cur_line = f.readline().split("\t")
while not re.search(r"(^|Z|VFP)CURVE", cur_line[0]):
while not re.search(r"(^|Z|VFP|EFM)CURVE", cur_line[0]):
if f.tell() == pos:
break

Expand Down

0 comments on commit 33c7e2b

Please sign in to comment.