We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 443bbb7 + 7cb9788 commit 25d0f1dCopy full SHA for 25d0f1d
neo/io/klustakwikio.py
@@ -13,6 +13,7 @@
13
* Load features in addition to spiketimes.
14
"""
15
16
+import re
17
import glob
18
import logging
19
from pathlib import Path
@@ -439,7 +440,7 @@ def read_filenames(self, typestring='fet'):
439
440
for v in all_filenames:
441
# Test whether matches format, ie ends with digits
442
split_fn = v.name
- m = glob.re.search((r'^(\w+)\.%s\.(\d+)$' % typestring), split_fn)
443
+ m = re.search(rf'^(.*)\.{typestring}\.(\d+)$', split_fn)
444
if m is not None:
445
# get basename from first hit if not specified
446
if self.basename is None:
0 commit comments