Skip to content

Commit 3a0613e

Browse files
authored
Merge pull request #224 from Remi-Gau/spell
[FIX] fix spelling
2 parents f3dcb93 + e5899ec commit 3a0613e

File tree

13 files changed

+38
-15
lines changed

13 files changed

+38
-15
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
skip = .git,env,*build,lib
3+
ignore-words-list = ans
4+
builtin = clear,rare

.github/workflows/codespell.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: codespell
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
# Check for common misspellings
15+
codespell:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: codespell-project/actions-codespell@master

notebooks/basic_usage.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
"cell_type": "markdown",
269269
"metadata": {},
270270
"source": [
271-
"### Preparing your data dictionnary\n",
271+
"### Preparing your data dictionary\n",
272272
"\n",
273273
"We can then initialize our logfile."
274274
]
@@ -434,7 +434,7 @@
434434
"\n",
435435
"- A `_date-YYYYMMDDHHMM` suffix is appended to the file name. This is NOT accepted by the BIDS filenaming convention. This was introduced to prevent overwriting files by mistake in case some things were re-run. When you convert the source data into raw data, this date suffix should be removed (the `removeDataSuffix` is there for that).\n",
436436
"\n",
437-
"- A json file that stores your data dictionnary was created.\n",
437+
"- A json file that stores your data dictionary was created.\n",
438438
"\n",
439439
"Let's inpsect its content."
440440
]

notebooks/creating_BIDS_dataset.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"source": [
273273
"### Saving a `_bold.json` file\n",
274274
"\n",
275-
"There is bare minimum functionality to create a `_bold.json` file for fMRI runs: the information in there wil be that required to pass a BIDS validation but no more. You should REALLY get most of the information for `bold.json` from your favorite DICOM to Nifti converter\n",
275+
"There is bare minimum functionality to create a `_bold.json` file for fMRI runs: the information in there will be that required to pass a BIDS validation but no more. You should REALLY get most of the information for `bold.json` from your favorite DICOM to Nifti converter\n",
276276
"\n",
277277
"This function is there because it can help put in JSON format some of the information that would NOT be available to a converter (usually information about your task)."
278278
]
@@ -355,7 +355,7 @@
355355
"source": [
356356
"%% Timing info\n",
357357
"\n",
358-
"% Time between blocs in secs\n",
358+
"% Time between blocks in secs\n",
359359
"parameters.timing.IBI = 1.8 * 3; % 8;\n",
360360
"% Time between events in secs\n",
361361
"parameters.timing.ISI = 0.1;\n",

notebooks/saving_stim_files.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
"source": [
234234
"## Inspect the content of the stim.tsv file\n",
235235
" \n",
236-
"The `onset`, `duration` and `trial_type` are ignored because they were note spcified in the `extraColumns` field.\n"
236+
"The `onset`, `duration` and `trial_type` are ignored because they were note specified in the `extraColumns` field.\n"
237237
]
238238
},
239239
{

src/checkCFG.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
% - ``cfg.fileName.task = ''``
5252
% sets the name to be given to the task
5353
% - ``cfg.fileName.zeroPadding = 3``
54-
% sets tha amount of 0 padding the subject, session and run number.
54+
% sets the amount of 0 padding the subject, session and run number.
5555
% - ``cfg.fileName.dateFormat = 'yyyymmddHHMM'``
5656
% sets the format of the date and time stamp that will be appended to all files.
5757
%
5858
% The following fields can be used to specify certain of the labels that are used
59-
% to specify certain of the acquisition conditions of certain experemental runs
59+
% to specify certain of the acquisition conditions of certain experimental runs
6060
% in a BIDS data set. These are mostly for MRI and, if set, will be ignored
6161
% for most other modalities. See ``tests/test_createFilename()`` for details on how
6262
% to use these.

src/convertSourceToRaw.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function convertSourceToRaw(varargin)
3939
rawDir = fullfile(cfg.dir.output, 'raw');
4040

4141
% back up description to not overwrite
42-
% TODO bids malab should be smart enought to not do that
42+
% TODO bids malab should be smart enough to not do that
4343
isFile = @(x) exist(x, 'file');
4444
if isFile(fullfile(rawDir, 'dataset_description.json'))
4545
copyfile(fullfile(rawDir, 'dataset_description.json'), ...

src/createJson.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function createJson(varargin)
33
% Creates the side car JSON file for a run.
44
%
55
% For JSON sidecars for bold files, this will only contain the minimum BIDS
6-
% requirement and will likey be less complete than the info you could from
6+
% requirement and will likely be less complete than the info you could from
77
% a proper BIDS conversion.
88
%
99
% USAGE::

src/readAndFilterLogfile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
% :type tsvFile: string
3131
%
3232
% :param cfg: Configuration. See ``checkCFG()``. If ``cfg`` is given as input the name
33-
% of the TSV file to read will be infered from there.
33+
% of the TSV file to read will be inferred from there.
3434
% :type cfg: structure
3535
%
3636
% :returns:

src/utils/getFullFilename.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function fullFilename = getFullFilename(fileName, cfg)
22
%
3-
% Returns the full path of a file (fo a given subject and modality in a run).
3+
% Returns the full path of a file (for a given subject and modality in a run).
44
%
55
% USAGE::
66
%

0 commit comments

Comments
 (0)