Skip to content

Commit 30f369c

Browse files
committed
code doc typo fixes
1 parent 0aa3a68 commit 30f369c

28 files changed

+93
-93
lines changed

neo/core/analogsignal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This module implements :class:`AnalogSignal`, an array of analog signals.
33
44
:class:`AnalogSignal` inherits from :class:`basesignal.BaseSignal` which
5-
derives from :class:`BaseNeo`, and from :class:`quantites.Quantity`which
5+
derives from :class:`BaseNeo`, and from :class:`quantities.Quantity`which
66
in turn inherits from :class:`numpy.array`.
77
88
Inheritance from :class:`numpy.array` is explained here:

neo/core/basesignal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,4 +311,4 @@ def concatenate(self, *signals):
311311
If `other` object has incompatible attributes.
312312
'''
313313

314-
NotImplementedError('Patching need to be implemented in sublcasses')
314+
NotImplementedError('Patching need to be implemented in subclasses')

neo/core/block.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
This module defines :class:`Block`, the main container gathering all the data,
3-
whether discrete or continous, for a given recording session. base class
3+
whether discrete or continuous, for a given recording session. base class
44
used by all :module:`neo.core` classes.
55
66
:class:`Block` derives from :class:`Container`,
@@ -14,7 +14,7 @@
1414

1515
class Block(Container):
1616
'''
17-
Main container gathering all the data, whether discrete or continous, for a
17+
Main container gathering all the data, whether discrete or continuous, for a
1818
given recording session.
1919
2020
A block is not necessarily temporally homogeneous, in contrast to :class:`Segment`.
@@ -78,7 +78,7 @@ def __init__(self, name=None, description=None, file_origin=None,
7878
file_datetime=None, rec_datetime=None, index=None,
7979
**annotations):
8080
'''
81-
Initalize a new :class:`Block` instance.
81+
Initialize a new :class:`Block` instance.
8282
'''
8383
super().__init__(name=name, description=description,
8484
file_origin=file_origin, **annotations)

neo/core/container.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Container(BaseNeo):
228228
def __init__(self, name=None, description=None, file_origin=None,
229229
**annotations):
230230
"""
231-
Initalize a new :class:`Container` instance.
231+
Initialize a new :class:`Container` instance.
232232
"""
233233
super().__init__(name=name, description=description,
234234
file_origin=file_origin, **annotations)
@@ -466,7 +466,7 @@ def create_many_to_one_relationship(self, force=False, recursive=True):
466466
that this method will link up.
467467
468468
If force is True overwrite any existing relationships
469-
If recursive is True desecend into child objects and create
469+
If recursive is True descend into child objects and create
470470
relationships there
471471
"""
472472
parent_name = _reference_name(self.__class__.__name__)
@@ -485,7 +485,7 @@ def create_many_to_many_relationship(self, append=True, recursive=True):
485485
of this type, put the current object in the parent list.
486486
487487
If append is True add it to the list, otherwise overwrite the list.
488-
If recursive is True desecend into child objects and create
488+
If recursive is True descend into child objects and create
489489
relationships there
490490
"""
491491
parent_name = _container_name(self.__class__.__name__)
@@ -517,7 +517,7 @@ def create_relationship(self, force=False, append=True, recursive=True):
517517
518518
If force is True overwrite any existing relationships
519519
If append is True add it to the list, otherwise overwrite the list.
520-
If recursive is True desecend into child objects and create
520+
If recursive is True descend into child objects and create
521521
relationships there
522522
"""
523523
self.create_many_to_one_relationship(force=force, recursive=False)

neo/core/dataobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _check_single_elem(element):
124124

125125
# Check the first element for correctness
126126
# If its type is correct for annotations, all others are correct as well
127-
# Note: Emtpy lists cannot reach this point
127+
# Note: Empty lists cannot reach this point
128128
_check_single_elem(value[0])
129129

130130
return value

neo/core/imagesequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This module implements :class:`ImageSequence`, a 3D array.
33
44
:class:`ImageSequence` inherits from :class:`basesignal.BaseSignal` which
5-
derives from :class:`BaseNeo`, and from :class:`quantites.Quantity`which
5+
derives from :class:`BaseNeo`, and from :class:`quantities.Quantity`which
66
in turn inherits from :class:`numpy.array`.
77
88
Inheritance from :class:`numpy.array` is explained here:

neo/core/segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Segment(Container):
2020
'''
2121
A container for data sharing a common time basis.
2222
23-
A :class:`Segment` is a heterogeneous container for discrete or continous
23+
A :class:`Segment` is a heterogeneous container for discrete or continuous
2424
data sharing a common clock (time basis) but not necessary the same
2525
sampling rate, start or end time.
2626

neo/core/spiketrain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This module implements :class:`SpikeTrain`, an array of spike times.
33
44
:class:`SpikeTrain` derives from :class:`BaseNeo`, from
5-
:module:`neo.core.baseneo`, and from :class:`quantites.Quantity`, which
5+
:module:`neo.core.baseneo`, and from :class:`quantities.Quantity`, which
66
inherits from :class:`numpy.array`.
77
88
Inheritance from :class:`numpy.array` is explained here:
@@ -261,13 +261,13 @@ def __new__(cls, times, t_stop, units=None, dtype=None, copy=True, sampling_rate
261261
t_start=0.0 * pq.s, waveforms=None, left_sweep=None, name=None, file_origin=None,
262262
description=None, array_annotations=None, **annotations):
263263
'''
264-
Constructs a new :clas:`Spiketrain` instance from data.
264+
Constructs a new :class:`Spiketrain` instance from data.
265265
266266
This is called whenever a new :class:`SpikeTrain` is created from the
267267
constructor, but not when slicing.
268268
'''
269269
if len(times) != 0 and waveforms is not None and len(times) != waveforms.shape[0]:
270-
# len(times)!=0 has been used to workaround a bug occuring during neo import
270+
# len(times)!=0 has been used to workaround a bug occurring during neo import
271271
raise ValueError("the number of waveforms should be equal to the number of spikes")
272272

273273
if dtype is not None and hasattr(times, 'dtype') and times.dtype != dtype:
@@ -382,7 +382,7 @@ def __array_finalize__(self, obj):
382382
constructor, and these are set in __new__. Then they are just
383383
copied over here.
384384
385-
Note that the :attr:`waveforms` attibute is not sliced here. Nor is
385+
Note that the :attr:`waveforms` attribute is not sliced here. Nor is
386386
:attr:`t_start` or :attr:`t_stop` modified.
387387
'''
388388
# This calls Quantity.__array_finalize__ which deals with

neo/rawio/alphaomegarawio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __init__(self, dirname="", lsx_files=None, prune_channels=True):
102102

103103
def _explore_folder(self):
104104
"""
105-
If class was instanciated with lsx_files (list of .lsx files), load only
105+
If class was instantiated with lsx_files (list of .lsx files), load only
106106
the files referenced in these lsx files otherwise, load all *.mpx files
107107
in `dirname`.
108108
It does not explores the subfolders.
@@ -114,7 +114,7 @@ def _explore_folder(self):
114114
with open(index_file, "r") as f:
115115
for line in f:
116116
# a line is a Microsoft Windows path. As we cannot
117-
# instanciate a WindowsPath on other OS than MS
117+
# instantiate a WindowsPath on other OS than MS
118118
# Windows, we use the PureWindowsPath class
119119
filename = PureWindowsPath(line.strip())
120120
filename = self.dirname / filename.name
@@ -145,7 +145,7 @@ def _read_file_datablocks(self, filename, prune_channels=True):
145145
:param prune_channels: Remove references to channels and ports which
146146
doesn't contain any data recorded. Be careful when using this option
147147
with multiple-file data since it could theoretically leads to
148-
expection raised when data recorded in further files are merged into
148+
exception raised when data recorded in further files are merged into
149149
the first file pruned from these channels.
150150
:type prune_channels: bool
151151
"""
@@ -1127,7 +1127,7 @@ def get_name(f, name_length):
11271127
- mode_spike (2 bytes): read as hex data 0xMCCC:
11281128
- M: 1=Master, 2=Slave
11291129
- CCC: linked channel
1130-
Be carefull here, the first byte cover MC and the second byte the last
1130+
Be careful here, the first byte cover MC and the second byte the last
11311131
part of the linked channel CC
11321132
"""
11331133
SDefContinAnalog = struct.Struct("<fh")

neo/rawio/axographrawio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
data appears before the second column's. As an aside, because of this
6767
design choice AxoGraph cannot write data to disk as it is collected but
6868
must store it all in memory until data acquisition ends. This also affected
69-
how file slicing was implmented for this RawIO: Instead of using a single
69+
how file slicing was implemented for this RawIO: Instead of using a single
7070
memmap to address into a 2-dimensional block of data, AxographRawIO
7171
constructs multiple 1-dimensional memmaps, one for each column, each with
7272
its own offset.
@@ -127,7 +127,7 @@
127127
Segments in Neo. Certain criteria have to be met, such as all groups
128128
containing equal numbers of traces and each group having homogeneous signal
129129
parameters. If trace grouping was modified by the user after data
130-
acquisition, this may result in the file being interpretted as
130+
acquisition, this may result in the file being interpreted as
131131
non-episodic. Older versions of the AxoGraph file format lack group headers
132132
entirely, so these files are never deemed safe to interpret as episodic,
133133
even if the column names follow a repeating sequence as described above.
@@ -397,7 +397,7 @@ def _rescale_epoch_duration(self, raw_duration, dtype, event_channel_index):
397397

398398
def _safe_to_treat_as_episodic(self):
399399
"""
400-
The purpose of this fuction is to determine if the file contains any
400+
The purpose of this function is to determine if the file contains any
401401
irregularities in its grouping of traces such that it cannot be treated
402402
as episodic. Even "continuous" recordings can be treated as
403403
single-episode recordings and could be identified as safe by this
@@ -627,7 +627,7 @@ def _scan_axograph_file(self):
627627
# COLUMN TYPE
628628

629629
# depending on the format version, data columns may have a type
630-
# - prior to verion 3, column types did not exist and data was
630+
# - prior to version 3, column types did not exist and data was
631631
# stored in a fixed pattern
632632
# - beginning with version 3, several data types are available
633633
# as documented in AxoGraph_ReadWrite.h

0 commit comments

Comments
 (0)