Skip to content

Commit 1c8aff7

Browse files
committed
add DB_VERSION_PATTERN to detection whether a pn_dir contains version number or not
1 parent 69418c3 commit 1c8aff7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wfdb/io/record.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,9 @@ def multi_to_single(self, physical, return_res=64):
12261226
LIST_FIELDS = tuple(_header.SIGNAL_SPECS.index) + ('comments', 'e_p_signal',
12271227
'e_d_signal', 'segments')
12281228

1229+
# Database Version Pattern
1230+
DB_VERSION_PATTERN = re.compile("\d+.\d+\.\d+")
1231+
12291232
def get_version(pn_dir):
12301233
"""
12311234
Get the version number of the desired project.

0 commit comments

Comments
 (0)