-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffb4165
commit 26bb733
Showing
8 changed files
with
63,193 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import pytest | ||
import os | ||
import pickle | ||
from yadg.extractors.ezchrom.asc import extract | ||
from .utils import compare_datatrees | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"infile", | ||
[ | ||
"2023-06-29-007.dat.asc", | ||
"2023-06-29-014.dat.asc", | ||
"230324.dat.asc", | ||
], | ||
) | ||
def test_ezchrom_asc(infile, datadir): | ||
os.chdir(datadir) | ||
ret = extract(fn=infile, encoding="windows-1252", timezone="Europe/Berlin") | ||
outfile = f"ref.{infile}.pkl" | ||
with open(outfile, "rb") as inp: | ||
ref = pickle.load(inp) | ||
print(f"{ret=}") | ||
with open(outfile, "wb") as out: | ||
pickle.dump(ret, out, 5) | ||
compare_datatrees(ret, ref) |
Oops, something went wrong.