Skip to content

Commit a75cd42

Browse files
authored
Merge pull request #1629 from zm711/fix-doc-warnings
Fix docutil parsing errors in code base
2 parents 54130ce + 466c462 commit a75cd42

15 files changed

+36
-30
lines changed

neo/core/irregularlysampledsignal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class IrregularlySampledSignal(BaseSignal):
103103
The filesystem path or url of the orginal data
104104
array_annotations: dict | None, default: None
105105
Dict mapping strings to numpy arrays containing annotations for all data points
106-
**annotations: dict
106+
annotations: dict
107107
Optional additional metadata supplied by the user as a dict. Will be stored in
108108
the annotations attribute of the object
109109

neo/core/segment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Segment(Container):
4242
index: int | None, default: None
4343
You can use this to define a temporal ordering of your Segment.
4444
For instance you could use this for trial numbers.
45-
**annotations: dict | None,
45+
annotations: dict | None,
4646
Other keyword annotations for the dataset
4747
4848
Examples
@@ -70,7 +70,7 @@ class Segment(Container):
7070
Notes
7171
-----
7272
73-
*Container of*:
73+
Container of:
7474
:class:`Epoch`
7575
:class:`Event`
7676
:class:`AnalogSignal`

neo/core/spiketrain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class SpikeTrain(DataObject):
276276
The path or location of the original data file.
277277
array_annotations: dict
278278
A dictonary mapping of strings to numpy arrays containing annotations for all data points
279-
**annotations: dict
279+
annotations: dict
280280
Other user defined metadata given as a dict
281281
282282
Notes

neo/core/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChannelView(BaseNeo):
3131
Filesystem path or URL of the original data file.
3232
array_annotations: dict | None, default: None
3333
Dict mapping strings to numpy arrays containing annotations for all data points
34-
**annotations: dict
34+
annotations: dict
3535
Other use-specified metadata with keywords
3636
"""
3737

neo/io/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* :attr:`NestIO`
4646
* :attr:`NeuralynxIO`
4747
* :attr:`NeuroExplorerIO`
48-
* :attr:`NeuroNexusIO
48+
* :attr:`NeuroNexusIO`
4949
* :attr:`NeuroScopeIO`
5050
* :attr:`NeuroshareIO`
5151
* :attr:`NixIO`
@@ -193,6 +193,7 @@
193193
.. autoattribute:: extensions
194194
195195
.. autoclass:: neo.io.NeuroNexusIO
196+
196197
.. autoattribute:: extensions
197198
198199
.. autoclass:: neo.io.NeuroScopeIO

neo/rawio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
118118
.. autoclass:: neo.rawio.NeuroNexusRawIO
119119
120-
.. autoattributes:: extensions
120+
.. autoattribute:: extensions
121121
122122
.. autoclass:: neo.rawio.NeuroScopeRawIO
123123

neo/rawio/cedrawio.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
Class for reading data from CED (Cambridge Electronic Design)
33
http://ced.co.uk/
44
5-
This read *.smrx (and *.smr) from spike2 and signal software.
5+
This reads *.smrx (and *.smr) from spike2 and signal software.
66
77
Note Spike2RawIO/Spike2IO is the old implementation in neo.
88
It still works without any dependency and should be faster.
99
Spike2IO only works for smr (32 bit) and not for smrx (64 bit) files.
1010
11-
This implementation depends on the SONPY package:
12-
https://pypi.org/project/sonpy/
11+
This implementation depends on the SONPY package: https://pypi.org/project/sonpy/
1312
1413
Please note that the SONPY package:
1514
* is NOT open source
1615
* internally uses a list instead of numpy.ndarray, potentially causing slow data reading
17-
* is maintained by CED
16+
* is maintained by CED
1817
1918
2019
Author : Samuel Garcia
@@ -39,7 +38,7 @@ class CedRawIO(BaseRawIO):
3938
Parameters
4039
----------
4140
filename: str, default: ''
42-
The *.smr or *.smrx file to load
41+
The .smr or .smrx file to load
4342
take_ideal_sampling_rate: bool, default: False
4443
If true use the `GetIdealRate` function from sonpy package
4544

neo/rawio/elanrawio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ class ElanRawIO(BaseRawWithBufferApiIO):
4343
Parameters
4444
----------
4545
filename: str | None, default: None
46-
The raw data to load (*.eeg)
46+
The raw data to load (.eeg)
4747
entfile: str | None, default: None
48-
The header file to load (*.eeg.ent)
48+
The header file to load (.eeg.ent)
4949
posfile: str | None, deafult: None
50-
The event file to load (*.eeg.pos)
50+
The event file to load (.eeg.pos)
5151
5252
Examples
5353
--------

neo/rawio/intanrawio.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
RHD headerless binary support 3.x
1212
RHS headerless binary support 3.x
1313
14+
1415
See:
1516
* http://intantech.com/files/Intan_RHD2000_data_file_formats.pdf
1617
* http://intantech.com/files/Intan_RHS2000_data_file_formats.pdf
1718
19+
1820
Author: Samuel Garcia (Initial), Zach McKenzie & Heberto Mayorquin (Updates)
1921
2022
"""
@@ -50,23 +52,25 @@ class IntanRawIO(BaseRawIO):
5052
check we perform is that timestamps are continuous. Setting this to True will ignore this check and set
5153
the attribute `discontinuous_timestamps` to True if the timestamps are not continous. This attribute can be checked
5254
after parsing the header to see if the timestamps are continuous or not.
55+
5356
Notes
5457
-----
5558
* The Intan reader can handle two file formats 'rhd' and 'rhs'. It will automatically
56-
check for the file extension and will gather the header information based on the
57-
extension. Additionally it functions with RHS v 1.0 and v 3.x and RHD 1.0, 1.1, 1.2, 1.3, 2.0,
58-
3.x files.
59+
check for the file extension and will gather the header information based on the
60+
extension. Additionally it functions with RHS v 1.0 and v 3.x and RHD 1.0, 1.1, 1.2, 1.3, 2.0,
61+
3.x files.
5962
6063
* The Intan reader can also handle the headerless binary formats 'one-file-per-signal' and
61-
'one-file-per-channel' which have a header file called 'info.rhd' or 'info.rhs' and a series
62-
of binary files with the '.dat' suffix
64+
'one-file-per-channel' which have a header file called 'info.rhd' or 'info.rhs' and a series
65+
of binary files with the '.dat' suffix
6366
6467
* The reader can handle three file formats 'header-attached', 'one-file-per-signal' and
65-
'one-file-per-channel'.
68+
'one-file-per-channel'.
6669
6770
* Intan files contain amplifier channels labeled 'A', 'B' 'C' or 'D'
68-
depending on the port in which they were recorded along with the following
69-
additional streams.
71+
depending on the port in which they were recorded along with the following
72+
additional streams.
73+
7074
0: 'RHD2000' amplifier channel
7175
1: 'RHD2000 auxiliary input channel',
7276
2: 'RHD2000 supply voltage channel',
@@ -85,9 +89,10 @@ class IntanRawIO(BaseRawIO):
8589
11: 'Stim channel',
8690
8791
* For the "header-attached" and "one-file-per-signal" formats, the structure of the digital input and output channels is
88-
one long vector, which must be post-processed to extract individual digital channel information.
89-
See the intantech website for more information on performing this post-processing.
92+
one long vector, which must be post-processed to extract individual digital channel information.
93+
See the intantech website for more information on performing this post-processing.
9094
95+
9196
Examples
9297
--------
9398
>>> import neo.rawio

neo/rawio/maxwellrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MaxwellRawIO(BaseRawWithBufferApiIO):
4646
----------
4747
4848
filename: str, default: ''
49-
The *.h5 file to be loaded
49+
The .h5 file to be loaded
5050
rec_name: str | None, default: None
5151
If the file has multiple recordings, specify the one to read.
5252
For 24-well plates, the rec_name needs to be specified since different well

neo/rawio/neuronexusrawio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def __init__(self, filename: str | Path = ""):
7373
* The *.xdat.json metadata file
7474
* The *_data.xdat binary file of all raw data
7575
* The *_timestamps.xdat binary file of the timestamp data
76+
7677
From the metadata the other two files are located within the same directory
7778
and loaded.
7879

neo/rawio/rawbinarysignalrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RawBinarySignalRawIO(BaseRawWithBufferApiIO):
3838
Parameters
3939
----------
4040
filename: str, default: ''
41-
The *.raw, *.bin, or *.dat binary file to load
41+
The .raw, .bin, or .dat binary file to load
4242
dtype: np.dtype, default: 'int16'
4343
The dtype that the data is stored with. Must be acceptable by the numpy.dtype constructor
4444
sampling_rate: float, default: 10000.0

neo/rawio/rawmcsrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RawMCSRawIO(BaseRawWithBufferApiIO):
3434
Parameters
3535
----------
3636
filename: str, default: ''
37-
The *.raw MCS file to be loaded
37+
The .raw MCS file to be loaded
3838
3939
"""
4040

neo/rawio/spike2rawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Spike2RawIO(BaseRawIO):
4141
Parameters
4242
----------
4343
filename: str, default: ''
44-
The *.smr file to be loaded
44+
The .smr file to be loaded
4545
take_ideal_sampling_rate: bool, default: False
4646
If True takes the `ideal_rate` from info
4747
ced_units: bool, default: True

neo/rawio/winwcprawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class WinWcpRawIO(BaseRawWithBufferApiIO):
3030
Parameters
3131
----------
3232
filename: str, default: ''
33-
The *.wcp file to load
33+
The .wcp file to load
3434
3535
"""
3636

0 commit comments

Comments
 (0)