Skip to content

Commit edddd20

Browse files
committed
add new workflow for style checks.
1 parent 4cd7596 commit edddd20

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

wfdb/io/record.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,12 @@ def wrsamp(self, expanded=False, write_dir="", wfdb_archive=None):
936936
if isinstance(wfdb_archive, str):
937937
# If a string path is provided, create a WFDBArchive object
938938
from wfdb.io.archive import get_archive
939+
939940
wfdb_archive = get_archive(wfdb_archive, mode="w")
940941
elif not isinstance(wfdb_archive, WFDBArchive):
941-
raise TypeError("wfdb_archive must be either a string path or WFDBArchive object")
942+
raise TypeError(
943+
"wfdb_archive must be either a string path or WFDBArchive object"
944+
)
942945

943946
# Perform field validity and cohesion checks, and write the
944947
# header file.
@@ -3115,9 +3118,12 @@ def wrsamp(
31153118
if isinstance(wfdb_archive, str):
31163119
# If a string path is provided, create a WFDBArchive object
31173120
from wfdb.io.archive import get_archive
3121+
31183122
wfdb_archive = get_archive(wfdb_archive, mode="w")
31193123
elif not isinstance(wfdb_archive, WFDBArchive):
3120-
raise TypeError("wfdb_archive must be either a string path or WFDBArchive object")
3124+
raise TypeError(
3125+
"wfdb_archive must be either a string path or WFDBArchive object"
3126+
)
31213127

31223128
# Write the record files - header and associated dat
31233129
record.wrsamp(

0 commit comments

Comments
 (0)