Skip to content

Commit d3f75f8

Browse files
Apply suggestions from code review
Co-authored-by: Julia Sprenger <[email protected]>
1 parent 8a399a3 commit d3f75f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

neo/io/basefromrawio.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def read_block(self, block_index=0, lazy=False,
134134

135135
bl = Block(**bl_annotations)
136136

137-
# Group for AnalogSignals come from signal_streams
137+
# Group for AnalogSignals coming from signal_streams
138138
if create_group_across_segment['AnalogSignal']:
139139
signal_streams = self.header['signal_streams']
140140
sub_streams = self.get_sub_signal_streams(signal_group_mode)
@@ -287,11 +287,11 @@ def read_segment(self, block_index=0, seg_index=0, lazy=False,
287287

288288
def get_sub_signal_streams(self, signal_group_mode='group-by-same-units'):
289289
"""
290-
When a signal streams don't have homogeneous si units accros channels.
291-
They have to be splitted in sub streams to construct AnalogSignal (unique units).
290+
When signal streams don't have homogeneous SI units across channels,
291+
they have to be split in sub streams to construct AnalogSignal objects with unique units.
292292
293-
They function also help to split each channel into one AnalogSignal like in
294-
old neo (<=0.5).
293+
For backward compatibility (neo version <= 0.5) sub-streams can also be
294+
used to generate one AnalogSignal per channel.
295295
"""
296296
signal_streams = self.header['signal_streams']
297297
signal_channels = self.header['signal_channels']

0 commit comments

Comments
 (0)