Skip to content

Commit 679f309

Browse files
authored
Merge pull request #213 from yarikoptic/enh-codespell
2 parents 1dc1d22 + d19e190 commit 679f309

18 files changed

+64
-36
lines changed

.github/workflows/codespell.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Codespell
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
codespell:
15+
name: Check for spelling errors
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
- name: Codespell
22+
uses: codespell-project/actions-codespell@v2

doc/discussion/interval_object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ consistent, in the same manner that is already implemented in
4949
represent a time offset, relative to the attributes :attr:`t_start` and
5050
:attr:`t_stop`. That is, it can tell us where relative to these two
5151
time-points some interesting even, which this interval surrounds, or this
52-
interval is close to, occurs. This can be used in order to interpert how
52+
interval is close to, occurs. This can be used in order to interpret how
5353
time-series access is done using the :class:`TimeInterval` object. See
5454
:ref:`time_series_access`. This attribute can be implemented as an optional
5555
input on initialization, such that it defaults to be equal to

doc/discussion/multitaper_jackknife.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ General JN definitions
1616
| **pseudovalues**
1717
| :math:`\hat{\theta}_i = n\hat{\theta} - (n-1)\hat{\theta}_{-i}`
1818
19-
Now the jackknifed esimator is computed as
19+
Now the jackknifed estimator is computed as
2020

2121
:math:`\tilde{\theta} = \dfrac{1}{n}\sum_i \hat{\theta}_i = n\hat{\theta} - \dfrac{n-1}{n}\sum_i \hat{\theta}_{-i}`
2222

doc/discussion/time_series_access.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ smaller.
4747
~~~~~~~~~~~~~~~~~~~~
4848

4949
:func:`ut.index_at` returns the indices of the values in the array that are
50-
the largest time values, smaller thatn the input values t. That is, it returns i
50+
the largest time values, smaller than the input values t. That is, it returns i
5151
for which $t_i$ is the maximal one, which still fulfills: $t_i<t$.
5252

5353
Questions
@@ -56,7 +56,7 @@ The following questions apply to all three cases:
5656

5757
* what happens when the t is smaller than the smallest entry in the array
5858
return None?
59-
* what happens when t is larget than the last entry in the time array? return
59+
* what happens when t is larger than the last entry in the time array? return
6060
None?
6161

6262
:func:`at`

doc/examples/filtering_fmri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
We can do that by initializng a SpectralAnalyzer for each one of the filtered
243243
time-series resulting from the above operation and plotting their spectra. For
244244
ease of compariso, we only plot the spectra using the multi-taper spectral
245-
estimation. At the level of granularity provided by this method, the diferences
245+
estimation. At the level of granularity provided by this method, the differences
246246
between the methods are emphasized:
247247
248248
"""

doc/examples/multi_taper_spectral_estimation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
.. image:: fig/multi_taper_spectral_estimation_02.png
118118
119119
As before, the left figure displays the windowing function in the temporal
120-
domain and the figure on the left displays the attentuation of spectral leakage
120+
domain and the figure on the left displays the attenuation of spectral leakage
121121
in the other frequency bands in the spectrum. Notice that though different
122122
windowing functions have different spectral attenuation profiles, trading off
123123
attenuation of leakage from frequency bands near the frequency of interest
@@ -302,7 +302,7 @@ def dB(x, out=None):
302302
303303
.. image:: fig/multi_taper_spectral_estimation_06.png
304304
305-
As metioned above, in addition to estimating the spectrum itself, an estimate
305+
As mentioned above, in addition to estimating the spectrum itself, an estimate
306306
of the confidence interval of the spectrum can be generated using a
307307
jack-knifing procedure [Thomson2007]_.
308308

doc/users/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ object does not trigger any intensive computations. Instead the computation of
6767
the attributes of analyzer objects is delayed until the moment the user calls
6868
these attributes. In addition, once a computation is triggered it is stored as
6969
an attribute of the object, which assures that accessing the results of an
70-
analysis will trigger the computation only on the first time the analysis resut
70+
analysis will trigger the computation only on the first time the analysis result
7171
is required. Thereafter, the result of the analysis is stored for further use
7272
of this result.
7373

nitime/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- ``analysis``: Contains *Analyzer* objects, which implement particular
1414
analysis methods on the time-series objects
1515
16-
- ``viz``: Vizualization
16+
- ``viz``: Visualization
1717
1818
All of the sub-modules will be imported as part of ``__init__``, so that users
1919
have all of these things at their fingertips.

nitime/algorithms/autoregressive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def AR_psd(ak, sigma_v, n_freqs=1024, sides='onesided'):
289289
Returns
290290
-------
291291
(w, ar_psd)
292-
w : Array of normalized frequences from [-.5, .5) or [0,.5]
292+
w : Array of normalized frequencies from [-.5, .5) or [0,.5]
293293
ar_psd : A PSD estimate computed by sigma_v / |1-a(f)|**2 , where
294294
a(f) = DTFT(ak)
295295

nitime/algorithms/event_related.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def freq_domain_xcorr(tseries, events, t_before, t_after, Fs=1):
8484
-------
8585
xcorr: float array
8686
The correlation function between the tseries and the events. Can be
87-
interperted as a linear filter from events to responses (the
87+
interpreted as a linear filter from events to responses (the
8888
time-series) of an LTI.
8989
9090
"""
@@ -125,9 +125,9 @@ def freq_domain_xcorr_zscored(tseries, events, t_before, t_after, Fs=1):
125125
-------
126126
xcorr: float array
127127
The correlation function between the tseries and the events. Can be
128-
interperted as a linear filter from events to responses (the
128+
interpreted as a linear filter from events to responses (the
129129
time-series) of an LTI. Because it is normalized to its own mean and
130-
variance, it can be interperted as measuring statistical significance
130+
variance, it can be interpreted as measuring statistical significance
131131
relative to all time-shifted versions of the events.
132132
133133
"""

0 commit comments

Comments
 (0)