Skip to content

Commit 604c4f3

Browse files
committed
added NP 1.0-NHP short and medium length support
1 parent 419a8bb commit 604c4f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
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)
43+
imDatPrb_type=1030, 1032 (NP 1.0-NHP 45mm - NHP long)
44+
imDatPrb_type=1022 (NP 1.0-NHP 25mm - NHP medium)
45+
imDatPrb_type=1015 (NP 1.0-NHP 10mm - NHP short)
4446
4547
Author : Samuel Garcia
4648
Some functions are copied from Graham Findlay
@@ -381,7 +383,7 @@ def extract_stream_info(meta_file, meta):
381383
# metad['imroTbl'] contain two gain per channel AP and LF
382384
# except for the last fake channel
383385
per_channel_gain = np.ones(num_chan, dtype='float64')
384-
if 'imDatPrb_type' not in meta or meta['imDatPrb_type'] == '0' or meta['imDatPrb_type'] in ('1030', '1032'):
386+
if 'imDatPrb_type' not in meta or meta['imDatPrb_type'] == '0' or meta['imDatPrb_type'] in ('1015', '1022', '1030', '1032'):
385387
# This work with NP 1.0 case with different metadata versions
386388
# https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_3A.md#imec
387389
# https://github.com/billkarsh/SpikeGLX/blob/gh-pages/Support/Metadata_3B1.md#imec

0 commit comments

Comments
 (0)