Skip to content

Commit 7bc5107

Browse files
author
sprenger
committed
[Neuralynx] fix typo and pep8
1 parent beee80e commit 7bc5107

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ class NeuralynxRawIO(BaseRawIO):
7676
_ncs_dtype = [('timestamp', 'uint64'), ('channel_id', 'uint32'), ('sample_rate', 'uint32'),
7777
('nb_valid', 'uint32'), ('samples', 'int16', (NcsSection._RECORD_SIZE))]
7878

79-
def __init__(self, dirname='', filename='', exclude_filename=None, keep_original_times=False, **kargs):
79+
def __init__(self, dirname='', filename='', exclude_filename=None, keep_original_times=False,
80+
**kargs):
8081
"""
8182
Initialize io for either a directory of Ncs files or a single Ncs file.
8283

neo/test/iotest/test_neuralynxio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_exclude_filename(self):
202202
self.assertTrue((len(block.segments[0].events)) >= 0)
203203
self.assertTrue((len(block.segments[0].epochs)) == 0)
204204

205-
# exclude a multiple files
205+
# exclude all ncs files from session
206206
exclude_files = [f'CSC{i}.ncs' for i in range(6)]
207207
nio = NeuralynxIO(dirname=dname, exclude_filename=exclude_files,
208208
use_cache=False)

0 commit comments

Comments
 (0)