Skip to content

Commit b3e0df4

Browse files
sprengerJuliaSprenger
authored andcommitted
[spikeglx] raise warning for inconsistent metadata instead of error
1 parent fdb9ae4 commit b3e0df4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
Author : Samuel Garcia
4545
"""
4646

47+
import warnings
4748
from .baserawio import (BaseRawIO, _signal_channel_dtype, _signal_stream_dtype,
4849
_spike_channel_dtype, _event_channel_dtype)
4950

@@ -249,7 +250,7 @@ def scan_files(dirname):
249250
info_list.append(info)
250251

251252
if bin_filename.stat().st_size != meta['fileSizeBytes']:
252-
raise Exception('.meta file has faulty value for .bin file size on disc')
253+
raise warnings.warn('.meta file has faulty value for .bin file size on disc')
253254

254255
return info_list
255256

0 commit comments

Comments
 (0)