From 5d817af239596cff3d01569b1d16d98811b1f32f Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Thu, 22 Aug 2024 11:04:26 +0200 Subject: [PATCH] Fix spikeglx parsing bug --- neo/rawio/spikeglxrawio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/rawio/spikeglxrawio.py b/neo/rawio/spikeglxrawio.py index 0b008d9a2..bcfbb0aaa 100644 --- a/neo/rawio/spikeglxrawio.py +++ b/neo/rawio/spikeglxrawio.py @@ -440,7 +440,7 @@ def parse_spikeglx_fname(fname): re_else = re.findall(r"(\S*)\.(\S*).(ap|lf)", fname) re_else_nidq = re.findall(r"(\S*)\.(\S*)", fname) if len(re_else) == 1: - run_name, device, stream_kind = re_else_nidq[0] + run_name, device, stream_kind = re_else[0] gate_num, trigger_num = None, None elif len(re_else_nidq) == 1: # easy case for nidaq, example: sglx_xxx.nidq