Skip to content

Commit b92568f

Browse files
committed
bug fix in single include_filename
1 parent 9539548 commit b92568f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,12 @@ def __init__(
162162

163163
if include_filenames is None:
164164
include_filenames = []
165+
elif isinstance(include_filenames, str):
166+
include_filenames = [include_filenames]
165167

166168
if exclude_filenames is None:
167169
exclude_filenames = []
168-
elif not isinstance(exclude_filenames, (list, set, np.ndarray)):
170+
elif isinstance(exclude_filenames, str):
169171
exclude_filenames = [exclude_filenames]
170172

171173
if include_filenames:

neo/test/rawiotest/test_neuralynxrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ def test_equality(self):
380380

381381
test = TestNeuralynxRawIO()
382382
# test.test_scan_ncs_files()
383-
# test.test_exclude_filenames()
384-
test.test_include_filenames()
383+
test.test_exclude_filenames()
384+
# test.test_include_filenames()
385385

386386
# test = TestNcsSectionsFactory()
387387
# test.test_ncsblocks_partial()

0 commit comments

Comments
 (0)