Skip to content

Commit 466c462

Browse files
committed
fix a bunch more warnings
1 parent 115b17c commit 466c462

14 files changed

+29
-29
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: 1 addition & 1 deletion
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

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/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: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
1414
1515
See:
16-
1716
* http://intantech.com/files/Intan_RHD2000_data_file_formats.pdf
1817
* http://intantech.com/files/Intan_RHS2000_data_file_formats.pdf
1918
@@ -57,20 +56,20 @@ class IntanRawIO(BaseRawIO):
5756
Notes
5857
-----
5958
* The Intan reader can handle two file formats 'rhd' and 'rhs'. It will automatically
60-
check for the file extension and will gather the header information based on the
61-
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,
62-
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.
6362
6463
* The Intan reader can also handle the headerless binary formats 'one-file-per-signal' and
65-
'one-file-per-channel' which have a header file called 'info.rhd' or 'info.rhs' and a series
66-
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
6766
6867
* The reader can handle three file formats 'header-attached', 'one-file-per-signal' and
69-
'one-file-per-channel'.
68+
'one-file-per-channel'.
7069
7170
* Intan files contain amplifier channels labeled 'A', 'B' 'C' or 'D'
72-
depending on the port in which they were recorded along with the following
73-
additional streams.
71+
depending on the port in which they were recorded along with the following
72+
additional streams.
7473
7574
0: 'RHD2000' amplifier channel
7675
1: 'RHD2000 auxiliary input channel',
@@ -90,8 +89,8 @@ class IntanRawIO(BaseRawIO):
9089
11: 'Stim channel',
9190
9291
* For the "header-attached" and "one-file-per-signal" formats, the structure of the digital input and output channels is
93-
one long vector, which must be post-processed to extract individual digital channel information.
94-
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.
9594
9695
9796
Examples

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

0 commit comments

Comments
 (0)