You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/io.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ Read a time slice of Segment
114
114
115
115
Some objects support the ``time_slice`` argument in ``read_segment()``.
116
116
This is useful to read only a subset of a dataset clipped in time.
117
-
By default ``time_slice=None`` meaning load everything.
117
+
By default ``time_slice=None`` will load everything.
118
118
119
119
This reads everything::
120
120
@@ -130,7 +130,7 @@ This reads only the first 5 seconds::
130
130
Lazy option and proxy objects
131
131
=============================
132
132
133
-
In some cases you may not want to load everything in memory because it could be too big.
133
+
In some cases you may not want to load everything in memory (RAM) because it could be too big.
134
134
For this scenario, some IOs implement ``lazy=True/False``.
135
135
Since neo 0.7, a new lazy system has been added for some IO modules (all IO classes that inherit from rawio).
136
136
To know if a class supports lazy mode use ``ClassIO.support_lazy``.
@@ -144,12 +144,12 @@ These proxy objects contain metadata (name, sampling_rate, id, ...) so they can
144
144
but they do not contain any array-like data.
145
145
All proxy objects contain a ``load()`` method to postpone the real load of array like data.
146
146
147
-
Further more the ``load()`` method has a ``time_slice`` argument to load only a slice
147
+
Furthermore the ``load()`` method has a ``time_slice`` argument to load only a slice
148
148
from the file. In this way the consumption of memory can be finely controlled.
149
149
150
150
151
151
Here are two examples that read a dataset, extract sections of the signal based on recorded events,
152
-
and averages the sections.
152
+
and average the sections.
153
153
154
154
The first example is without lazy mode, so it consumes more memory::
155
155
@@ -178,7 +178,7 @@ The second example uses lazy mode, so it consumes less memory::
178
178
apply_my_fancy_average(all_sig_chunks)
179
179
180
180
In addition to ``time_slice``, AnalogSignalProxy supports the ``channel_indexes`` argument.
181
-
This allows loading only a subset of channels. This is useful where the channel count is very high.
181
+
This allows loading only a subset of channels. This is useful when the channel count is very high.
182
182
183
183
.. TODO: add something about magnitude mode when implemented for all objects.
184
184
@@ -295,7 +295,7 @@ For more complex logging, please see the documentation for the logging_ module.
295
295
296
296
.. note:: If you wish to implement more advanced logging as describe in the documentation for the logging_ module or elsewhere on the internet, please do so before calling any :mod:`neo` functions or initializing any :mod:`neo` classes.
297
297
This is because the default handler is created when :mod:`neo` is imported, but it is not attached to the :mod:`neo` logger until a class that uses logging is initialized or a function that uses logging is called.
298
-
Further, the handler is only attached if there are no handlers already attached to the root logger or the :mod:`neo` logger, so adding your own logger will override the default one.
298
+
Furthermore, the handler is only attached if there are no handlers already attached to the root logger or the :mod:`neo` logger, so adding your own logger will override the default one.
299
299
Additional functions and/or classes may get logging during bugfix releases, so code relying on particular modules not having logging may break at any time without warning.
Copy file name to clipboardExpand all lines: doc/source/io_developers_guide.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,9 @@ For read/write classes you can mix the two levels neo.rawio for reading and neo.
22
22
23
23
Recipe to develop an IO module for a new data format:
24
24
1. Fully understand the object model. See :doc:`core`. If in doubt ask the `mailing list`_.
25
-
2. Fully understand :mod:`neo.rawio.examplerawio`, It is a fake IO to explain the API. If in doubt ask the list.
25
+
2. Fully understand :mod:`neo.rawio.examplerawio`. It is a fake IO to explain the API. If in doubt ask the list.
26
26
3. Copy/paste ``examplerawio.py`` and choose clear file and class names for your IO.
27
-
4. implement all methods that **raise(NotImplementedError)** in :mod:`neo.rawio.baserawio`. Return None when the object is not supported (spike/waveform)
27
+
4. Implement all methods that **raise(NotImplementedError)** in :mod:`neo.rawio.baserawio`. Return None when the object is not supported (spike/waveform)
28
28
5. Write good docstrings. List dependencies, including minimum version numbers.
29
29
6. Add your class to :mod:`neo.rawio.__init__`. Keep imports inside ``try/except`` for dependency reasons.
30
30
7. Create a class in :file:`neo/io/`
@@ -51,10 +51,10 @@ Tests
51
51
To use these you need to upload some sample data files at `gin-gnode`_. They will be publicly accessible for testing Neo.
52
52
These tests:
53
53
54
-
* check the compliance with the schema: hierarchy, attribute types, ...
55
-
* For IO modules able to both write and read data, it compares a generated dataset with the same data after a write/read cycle.
54
+
* check for compliance with the schema: hierarchy, attribute types, ...
55
+
* For IO modules confirm they able to both write and read data; they compare a generated dataset with the same data after a write/read cycle.
56
56
57
-
The test scripts download all files from `gin-gnode`_ and stores them locally in ``/tmp/files_for_tests/``.
57
+
The test scripts download all files from `gin-gnode`_ and store them locally in ``<home>/ 'ephy_testing_data'``.
58
58
Subsequent test runs use the previously downloaded files, rather than trying to download them each time.
59
59
60
60
Each test must have at least one class that inherits ``BaseTestRawIO`` and that has 3 attributes:
@@ -70,7 +70,7 @@ Here is an example test script taken from the distribution: :file:`test_axonrawi
70
70
Logging
71
71
=======
72
72
73
-
All IO classes by default have logging using the standard :mod:`logging` module: already set up.
73
+
All IO classes by default have logging using the standard :mod:`logging` module already set up.
74
74
The logger name is the same as the fully qualified class name, e.g. :class:`neo.io.nixio.NixIO`.
75
75
The :attr:`class.logger` attribute holds the logger for easy access.
0 commit comments