Skip to content

Commit a80efaf

Browse files
committed
spikeglx naming debug #1240
1 parent 6164a87 commit a80efaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ def extract_stream_info(meta_file, meta):
374374
num_chan = int(meta['nSavedChans'])
375375
fname = Path(meta_file).stem
376376
run_name, gate_num, trigger_num, device, stream_kind = parse_spikeglx_fname(fname)
377-
device = fname.split('.')[1]
377+
device = fname.split('.')[-2]
378378

379379
if 'imec' in device:
380-
stream_kind = fname.split('.')[2]
380+
stream_kind = fname.split('.')[-1]
381381
stream_name = device + '.' + stream_kind
382382
units = 'uV'
383383
# please note the 1e6 in gain for this uV

0 commit comments

Comments
 (0)