Skip to content

Commit de8ecb3

Browse files
committed
more pep8
1 parent 7fbe985 commit de8ecb3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def _parse_header(self):
124124
# check that events have timestamps
125125
assert 'timestamps' in d
126126

127-
# for event the neo "label" will change depending the nature of event (ttl, text, binary)
127+
# for event the neo "label" will change depending the nature
128+
# of event (ttl, text, binary)
128129
# and this is transform into unicode
129130
# all theses data are put in event array annotations
130131
if 'text' in d:
@@ -198,7 +199,8 @@ def _parse_header(self):
198199
for stream_index, stream_name in enumerate(sig_stream_names):
199200
sig_ann = seg_ann['signals'][stream_index]
200201
d = self._sig_streams[0][0][stream_index]
201-
for k in ('identifier', 'history', 'source_processor_index', 'recorded_processor_index'):
202+
for k in ('identifier', 'history', 'source_processor_index',
203+
'recorded_processor_index'):
202204
if k in d['channels'][0]:
203205
values = np.array([chan_info[k] for chan_info in d['channels']])
204206
sig_ann['__array_annotations__'][k] = values
@@ -237,7 +239,8 @@ def _get_signal_t_start(self, block_index, seg_index, channel_indexes):
237239
t_start = self._sig_streams[block_index][seg_index][stream_index]['t_start']
238240
return t_start
239241

240-
def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop, stream_index, channel_indexes):
242+
def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop,
243+
stream_index, channel_indexes):
241244
sigs = self._sig_streams[block_index][seg_index][stream_index]['memmap']
242245
sigs = sigs[i_start:i_stop, :]
243246
if channel_indexes is not None:
@@ -354,7 +357,8 @@ def explore_folder(dirname):
354357
t_start = timestamp0 / d['sample_rate']
355358

356359
# sync_timestamp is -1 for all elements in our dataset
357-
# sync_timestamp_file = root / 'continuous' / d['folder_name'] / 'synchronized_timestamps.npy'
360+
# sync_timestamp_file = root / 'continuous' /
361+
# d['folder_name'] / 'synchronized_timestamps.npy'
358362
# sync_timestamps = np.load(str(sync_timestamp_file), mmap_mode='r')
359363
# t_start = sync_timestamps[0]
360364

0 commit comments

Comments
 (0)