@@ -87,7 +87,7 @@ def read_block(
8787 block_index: int, default: 0
8888 In the case of multiple blocks, the block_index specifies which block to read
8989 lazy: bool, default: False
90- Whether to read the block lazily (True) or load into memory (false )
90+ Whether to read the block lazily (True) or load into memory (False )
9191 create_group_across_segment: bool | dict | None, default: None
9292 If True :
9393 * Create a neo.Group to group AnalogSignal segments
@@ -98,9 +98,8 @@ def read_block(
9898 * for example: create_group_across_segment = { 'AnalogSignal': True, 'SpikeTrain': False, ...}
9999 signal_group_mode: 'split-all' | 'group-by-same-units' | None, default: None
100100 This control behavior for grouping channels in AnalogSignal.
101- * 'split-all': each channel will give an AnalogSignal
102- * 'group-by-same-units' all channel sharing the same quantity units ar grouped in
103- a 2D AnalogSignal
101+ * 'split-all': each channel will be give an AnalogSignal
102+ * 'group-by-same-units' all channel sharing the same quantity units are grouped in a 2D AnalogSignal
104103 By default None since the default is dependant on the IO
105104 load_waveforms: bool, default: False
106105 Determines whether SpikeTrains.waveforms is created
@@ -221,20 +220,19 @@ def read_segment(
221220 Whether to lazily load the segment (True) or to load the segment into memory (False)
222221 signal_group_mode: 'split-all' | 'group-by-same-units' | None, default: None
223222 This control behavior for grouping channels in AnalogSignal.
224- * 'split-all': each channel will give an AnalogSignal
225- * 'group-by-same-units' all channel sharing the same quantity units ar grouped in
226- a 2D AnalogSignal
223+ * 'split-all': each channel will be give an AnalogSignal
224+ * 'group-by-same-units' all channel sharing the same quantity units are grouped in a 2D AnalogSignal
227225 load_waveforms: bool, default: False
228226 Determines whether SpikeTrains.waveforms is created
229- time_slice: tuple[float | None] | None, default: None
227+ time_slice: tuple[quantity.Quantities | None] | None, default: None
230228 Whether to take a time slice of the data
231- * None: indicates from beginning of segment to the end of the segment
229+ * None: indicates from beginning of the segment to the end of the segment
232230 * tuple: (t_start, t_stop) with t_start and t_stop being quantities in seconds
233231 * tuple: (None, t_stop) indicates the beginning of the segment to t_stop
234232 * tuple: (t_start, None) indicates from t_start to the end of the segment
235233 strict_slicing: bool, default: True
236234 Control if an error is raised or not when t_start or t_stop
237- is outside the real time range of the segment.
235+ is outside of the real time range of the segment.
238236
239237 Returns
240238 -------
@@ -243,7 +241,7 @@ def read_segment(
243241 """
244242
245243 if lazy :
246- assert time_slice is None , "For lazy=True you must specify time_slice when LazyObject.load(time_slice=...)"
244+ assert time_slice is None , "For lazy=True you must specify a time_slice when LazyObject.load(time_slice=...)"
247245
248246 assert (
249247 not load_waveforms
0 commit comments