We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b66fa commit 6c48f56Copy full SHA for 6c48f56
tests/test_archive.py
@@ -54,11 +54,11 @@ def temp_record():
54
dat_path = os.path.join(tmpdir, record_basename + ".dat")
55
archive_path = os.path.join(tmpdir, record_basename + ".wfdb")
56
57
- WFDBArchive.create_archive(
58
- None,
59
- file_list=[hea_path, dat_path],
60
- output_path=archive_path,
61
- )
+ with WFDBArchive(record_name=record_basename, mode="w") as archive:
+ archive.create_archive(
+ file_list=[hea_path, dat_path],
+ output_path=archive_path,
+ )
62
63
yield {
64
"record_name": os.path.join(tmpdir, record_basename),
0 commit comments