Skip to content

Commit 63c9015

Browse files
author
sprenger
committed
[Neuralynx] improve exclude_filename handling
1 parent 7bc5107 commit 63c9015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _parse_header(self):
147147
dirname, fname = os.path.split(self.filename)
148148
filenames = [fname]
149149

150-
if isinstance(self.exclude_filename, str):
150+
if not isinstance(self.exclude_filename, (list, set, np.ndarray)):
151151
self.exclude_filename = [self.exclude_filename]
152152

153153
# remove files that were explicitly excluded

0 commit comments

Comments
 (0)