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
@@ -63,7 +63,7 @@ An IO module can be based on a single file, a directory containing files, or a d
63
63
This is described in the :attr:`mode` attribute of the IO class.
64
64
65
65
>>> from neo.io import MyFormatIO
66
-
>>> printMyFormatIO.mode
66
+
>>> print(MyFormatIO.mode)
67
67
'file'
68
68
69
69
@@ -105,7 +105,7 @@ The first element of the previous list is the highest level for reading the file
105
105
All IOs have a read() method that returns a list of :class:`Block` objects (representing the whole content of the file)::
106
106
107
107
>>> bl = reader.read()
108
-
>>> printbl[0].segments[0]
108
+
>>> print(bl[0].segments[0])
109
109
neo.core.Segment
110
110
111
111
@@ -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 eveything.
117
+
By default ``time_slice=None`` meaning load everything.
118
118
119
119
This reads everything::
120
120
@@ -132,7 +132,7 @@ Lazy option and proxy objects
132
132
133
133
In some cases you may not want to load everything in memory because it could be too big.
134
134
For this scenario, some IOs implement ``lazy=True/False``.
135
-
Since neo 0.7, a new lazy sytem have been added for some IO modules (all IO classes that inherit from rawio).
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``.
137
137
138
138
With ``lazy=True`` all data objects (AnalogSignal/SpikeTrain/Event/Epoch) are replaced by
@@ -197,7 +197,7 @@ The :mod:`neo.io` API is designed to be simple and intuitive:
197
197
- each file format has an IO class (for example for Spike2 files you have a :class:`Spike2IO` class).
198
198
- each IO class inherits from the :class:`BaseIO` class.
199
199
- each IO class can read or write directly one or several Neo objects (for example :class:`Segment`, :class:`Block`, ...): see the :attr:`readable_objects` and :attr:`writable_objects` attributes of the IO class.
200
-
- each IO class supports part of the :mod:`neo.core` hierachy, though not necessarily all of it (see :attr:`supported_objects`).
200
+
- each IO class supports part of the :mod:`neo.core` hierarchy, though not necessarily all of it (see :attr:`supported_objects`).
201
201
- each IO class has a :meth:`read()` method that returns a list of :class:`Block` objects. If the IO only supports :class:`Segment` reading, the list will contain one block with all segments from the file.
202
202
- each IO class that supports writing has a :meth:`write()` method that takes as a parameter a list of blocks, a single block or a single segment, depending on the IO's :attr:`writable_objects`.
203
203
- some IO are able to do a *lazy* load: all metadata (e.g. :attr:`sampling_rate`) are read, but not the actual numerical data.
Copy file name to clipboardExpand all lines: doc/source/io_developers_guide.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Miscellaneous
38
38
=============
39
39
40
40
* If your IO supports several versions of a format (like ABF1, ABF2), upload to the gin.g-node.org test file repository all file versions possible. (for test coverage).
41
-
* :py:func:`neo.core.Block.create_many_to_one_relationship` offers a utility to complete the hierachy when all one-to-many relationships have been created.
41
+
* :py:func:`neo.core.Block.create_many_to_one_relationship` offers a utility to complete the hierarchy when all one-to-many relationships have been created.
42
42
* In the docstring, explain where you obtained the file format specification if it is a closed one.
43
43
* If your IO is based on a database mapper, keep in mind that the returned object MUST be detached,
44
44
because this object can be written to another url for copying.
@@ -51,7 +51,7 @@ 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: hierachy, attribute types, ...
54
+
* check the compliance with the schema: hierarchy, attribute types, ...
55
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.
56
56
57
57
The test scripts download all files from `gin-gnode`_ and stores them locally in ``/tmp/files_for_tests/``.
0 commit comments