Skip to content

Commit 0d4b5a6

Browse files
authored
Merge pull request #197 from MIT-LCP/fix_syntax
Fixes some syntax errors
2 parents 25266fb + 554210c commit 0d4b5a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_1e(self):
124124
Format 24, entire signal, digital.
125125
126126
Target file created with:
127-
rdsamp -r sample-data/earndb | cut -f 2- > record-1e
127+
rdsamp -r sample-data/n8_evoked_raw_95_F1_R9 | cut -f 2- > record-1e
128128
"""
129129
record = wfdb.rdrecord('sample-data/n8_evoked_raw_95_F1_R9', physical=False)
130130
sig = record.d_signal

wfdb/io/_signal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,10 +1225,10 @@ def _rd_dat_file(file_name, dir_name, pb_dir, fmt, start_byte, n_samp):
12251225
fp.seek(start_byte)
12261226
# Numpy doesn't really like 24-bit data but we can make it work
12271227
if DATA_LOAD_TYPES[fmt] == '<i3':
1228-
rawdatamap = np.memmap(fp,
1229-
dtype=np.dtype('i2'),
1230-
mode='r')
1231-
temp_data = np.frombuffer(rawdatamap, 'b').reshape(-1,3)[:,1:].flatten().view('i2')
1228+
raw_data_map = np.memmap(fp,
1229+
dtype=np.dtype('i2'),
1230+
mode='r')
1231+
temp_data = np.frombuffer(raw_data_map, 'b').reshape(-1,3)[:,1:].flatten().view('i2')
12321232
sig_data = np.fromstring(temp_data, dtype='i2')
12331233
else:
12341234
sig_data = np.fromfile(fp,

0 commit comments

Comments
 (0)