Skip to content

Commit 419a8bb

Browse files
committed
spikeglxrawio.py updated to support 45mm 1.0-NHP probes
1 parent 5a5748f commit 419a8bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
imDatPrb_type=1 (NP 1.0)
4141
imDatPrb_type=21 (NP 2.0, single multiplexed shank)
4242
imDatPrb_type=24 (NP 2.0, 4-shank)
43+
imDatPrb_type=1030, 1032 (NP 1.0-NHP 45mm)
4344
4445
Author : Samuel Garcia
4546
Some functions are copied from Graham Findlay
@@ -380,7 +381,7 @@ def extract_stream_info(meta_file, meta):
380381
# metad['imroTbl'] contain two gain per channel AP and LF
381382
# except for the last fake channel
382383
per_channel_gain = np.ones(num_chan, dtype='float64')
383-
if 'imDatPrb_type' not in meta or meta['imDatPrb_type'] == '0':
384+
if 'imDatPrb_type' not in meta or meta['imDatPrb_type'] == '0' or meta['imDatPrb_type'] in ('1030', '1032'):
384385
# This work with NP 1.0 case with different metadata versions
385386
# https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_3A.md#imec
386387
# https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_3B1.md#imec
@@ -404,7 +405,7 @@ def extract_stream_info(meta_file, meta):
404405
channel_gains = gain_factor * per_channel_gain * 1e6
405406
else:
406407
raise NotImplementedError('This meta file version of spikeglx'
407-
'is not implemented')
408+
' is not implemented')
408409
else:
409410
stream_kind = ''
410411
stream_name = device

0 commit comments

Comments
 (0)