Skip to content

Commit 1eab95e

Browse files
Apply suggestions from code review
Co-authored-by: Julia Sprenger <[email protected]>
1 parent 475085e commit 1eab95e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

neo/rawio/examplerawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop,
308308
return raw_signals
309309

310310
def _spike_count(self, block_index, seg_index, spike_channel_index):
311-
# Must return the nb of spike for given (block_index, seg_index, spike_channel_index)
311+
# Must return the nb of spikes for given (block_index, seg_index, spike_channel_index)
312312
# we are lucky: our units have all the same nb of spikes!!
313313
# it is not always the case
314314
nb_spikes = 20

neo/rawio/openephysrawio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ def _parse_header(self):
148148
all_first_timestamps.append(data_chan[0]['timestamp'])
149149
all_last_timestamps.append(data_chan[-1]['timestamp'])
150150

151-
# chech that all signals have the same lentgh and timestamp0 for this segment
151+
# check that all signals have the same lentgh and timestamp0 for this segment
152152
assert all(all_sigs_length[0] == e for e in all_sigs_length),\
153-
'All signals do not have the same lentgh'
153+
'Not all signals have the same length'
154154
assert all(all_first_timestamps[0] == e for e in all_first_timestamps),\
155-
'All signals do not have the same first timestamp'
155+
'Not all signals have the same first timestamp'
156156
assert all(all_samplerate[0] == e for e in all_samplerate),\
157-
'All signals do not have the same sample rate'
157+
'Not all signals have the same sample rate'
158158

159159
self._sig_length[seg_index] = all_sigs_length[0]
160160
self._sig_timestamp0[seg_index] = all_first_timestamps[0]

0 commit comments

Comments
 (0)