2525 * copy paste neo/rawio/tests/test_examplerawio.py and do the same
2626
2727 3. Step 3 : Create the neo.io class with the wrapper
28- * Create a file in neo/io/ that endith with "io.py"
29- * Create a that inherits both your RawIO class and BaseFromRaw class
28+ * Create a file in neo/io/ that ends with "io.py"
29+ * Create a class that inherits both your RawIO class and BaseFromRaw class
3030 * copy/paste from neo/io/exampleio.py
3131
3232 4.Step 4 : IO test
@@ -47,7 +47,7 @@ class ExampleRawIO(BaseRawIO):
4747 """
4848 Class for "reading" fake data from an imaginary file.
4949
50- For the user, it give acces to raw data (signals, event, spikes) as they
50+ For the user, it gives access to raw data (signals, event, spikes) as they
5151 are in the (fake) file int16 and int64.
5252
5353 For a developer, it is just an example showing guidelines for someone who wants
@@ -58,11 +58,11 @@ class ExampleRawIO(BaseRawIO):
5858 * Follow the :ref:`io_guiline`
5959
6060 This fake IO:
61- * have 2 blocks
61+ * has 2 blocks
6262 * blocks have 2 and 3 segments
63- * have 16 signal_channel sample_rate = 10000
64- * have 3 unit_channel
65- * have 2 event channel : one have *type=event*, the other have
63+ * has 16 signal_channels sample_rate = 10000
64+ * has 3 unit_channels
65+ * has 2 event channels : one has *type=event*, the other has
6666 *type=epoch*
6767
6868
@@ -98,7 +98,7 @@ def _source_name(self):
9898 def _parse_header (self ):
9999 # This is the central of a RawIO
100100 # we need to collect in the original format all
101- # informations needed for further fast acces
101+ # informations needed for further fast access
102102 # at any place in the file
103103 # In short _parse_header can be slow but
104104 # _get_analogsignal_chunk need to be as fast as possible
@@ -107,12 +107,12 @@ def _parse_header(self):
107107 # This is mandatory!!!!
108108 # gain/offset/units are really important because
109109 # the scaling to real value will be done with that
110- # at the end real_signal = (raw_signal* gain + offset) * pq.Quantity(units)
110+ # at the end real_signal = (raw_signal * gain + offset) * pq.Quantity(units)
111111 sig_channels = []
112112 for c in range (16 ):
113113 ch_name = 'ch{}' .format (c )
114114 # our channel id is c+1 just for fun
115- # Note that chan_id should be realated to
115+ # Note that chan_id should be related to
116116 # original channel id in the file format
117117 # so that the end user should not be lost when reading datasets
118118 chan_id = c + 1
@@ -121,9 +121,9 @@ def _parse_header(self):
121121 units = 'uV'
122122 gain = 1000. / 2 ** 16
123123 offset = 0.
124- # group_id isonly for special cases when channel have diferents
124+ # group_id is only for special cases when channels have different
125125 # sampling rate for instance. See TdtIO for that.
126- # Here this is the general case : all channel have the same characteritics
126+ # Here this is the general case: all channel have the same characteritics
127127 group_id = 0
128128 sig_channels .append ((ch_name , chan_id , sr , dtype , units , gain , offset , group_id ))
129129 sig_channels = np .array (sig_channels , dtype = _signal_channel_dtype )
0 commit comments