Skip to content

Commit 23e2c65

Browse files
authored
Merge pull request #929 from PeterNSteinmetz/revRawIoDocs
Rev raw io docs
2 parents 7695048 + 77235aa commit 23e2c65

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

doc/source/rawio.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,17 @@ Read signal chunks of data and scale them::
114114

115115

116116
There are 3 ways to select a subset of channels: by index (0 based), by id or by name.
117-
By index is not ambiguous 0 to n-1 (included), for some IOs channel_names (and sometimes channel_ids) have no guarantees to
118-
be unique, in such cases it would raise an error.
117+
By index is unambiguous 0 to n-1 (included), whereas for some IOs channel_names
118+
(and sometimes channel_ids) have no guarantees to
119+
be unique. In such cases, using names or ids may raise an error.
120+
121+
A selected subset of channels which is passed to get_analog_signal_chunk, get_analog_signal_size,
122+
or get_analog_signal_t_start has the additional restriction that all such channels must have
123+
the same t_start and signal_size.
124+
125+
Such subsets of channels may be available in specific RawIOs by using the
126+
get_group_signal_channel_indexes method, if the RawIO has defined separate
127+
group_ids for each group with those common characteristics.
119128

120129
Example with BlackrockRawIO for the file FileSpec2.3001::
121130

neo/rawio/baserawio.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,32 @@ def _segment_t_stop(self, block_index, seg_index):
654654
###
655655
# signal and channel zone
656656
def _get_signal_size(self, block_index, seg_index, channel_indexes):
657+
"""
658+
Return the size of a set of AnalogSignals indexed by channel_indexes.
659+
660+
All channels indexed must have the same size and t_start.
661+
"""
657662
raise (NotImplementedError)
658663

659664
def _get_signal_t_start(self, block_index, seg_index, channel_indexes):
665+
"""
666+
Return the t_start of a set of AnalogSignals indexed by channel_indexes.
667+
668+
All channels indexed must have the same size and t_start.
669+
"""
660670
raise (NotImplementedError)
661671

662672
def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop, channel_indexes):
673+
"""
674+
Return the samples from a set of AnalogSignals indexed by channel_indexes.
675+
676+
All channels indexed must have the same size and t_start.
677+
678+
RETURNS
679+
-------
680+
array of samples, with each requested channel in a column
681+
"""
682+
663683
raise (NotImplementedError)
664684

665685
###

0 commit comments

Comments
 (0)