Skip to content

Commit 18266b1

Browse files
committed
Change error message
1 parent c0d7c1c commit 18266b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phylib/io/traces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _memmap_flat(path, dtype=None, n_channels=None, offset=0, mode='r+'):
159159
fsize = path.stat().st_size
160160
item_size = np.dtype(dtype).itemsize
161161
assert (fsize - offset) % (item_size * n_channels) == 0,\
162-
f'Data at {path} does not have {n_channels} channels'
162+
'Inconsistent number of channels between the params file and the binary dat file'
163163
n_samples = (fsize - offset) // (item_size * n_channels)
164164
shape = (n_samples, n_channels)
165165
return np.memmap(path, dtype=dtype, offset=offset, shape=shape, mode=mode)

0 commit comments

Comments
 (0)