Skip to content

Commit c6f3af0

Browse files
authored
Merge pull request #202 from Remi-Gau/master
[FIX] fix spelling
2 parents a29370a + 8176e8b commit c6f3af0

File tree

17 files changed

+53
-30
lines changed

17 files changed

+53
-30
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 = nwe
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ their use and their reuse (#DontRepeatYourself)
2121

2222
## Documentation
2323

24-
All the documentation and installtion information is accessible
24+
All the documentation and installation information is accessible
2525
[here](https://cpp-ptb.readthedocs.io/en/stable/index.html#).
2626

2727
## Content

demos/video/CPP_playVideoFramesDemo.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
% Skip the PTB sync test
1717
Screen('Preference', 'SkipSyncTests', 2);
1818

19-
% Get the screen numbers and draw to the external screen if avaliable
19+
% Get the screen numbers and draw to the external screen if available
2020
cfg.screen.idx = max(Screen('Screens'));
2121

2222
% Set the PTB window background manually
2323
cfg.color.background = [127 127 127];
2424

25-
% Get the screen numbers and draw to the external screen if avaliable
25+
% Get the screen numbers and draw to the external screen if available
2626
cfg.screen.idx = max(Screen('Screens'));
2727

2828
% Open an on screen window
2929
[cfg.screen.win, cfg.screen.winRect] = Screen('OpenWindow', cfg.screen.idx, cfg.color.background);
3030

31-
%% Strcuture for video related info
31+
%% Structure for video related info
3232

3333
% The name of your "video" and its images format
3434
video.names = {'coffee', 'leaves'};
@@ -39,7 +39,7 @@
3939
% video.frame.numbers = 30;
4040
% video.frame.numbers = [30,15];
4141

42-
% The format fo the images
42+
% The format of the images
4343
video.frame.format = '.jpeg'; % can be any img format compatible with the "imread" function
4444

4545
% the folder where the images are (from the current folder)
@@ -70,7 +70,7 @@
7070
video.frame.number = video.frame.numbers;
7171
end
7272

73-
% Read the images and create the stucture with their textures
73+
% Read the images and create the structure with their textures
7474
[video, cfg] = createFramesTextureStructure(video, cfg);
7575

7676
% Play the video

manualTests/test_dotMotionSimulation.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function test_dotMotionSimulationStatic()
2828
end
2929

3030
function test_dotMotionSimulationTranslation()
31-
% ensure that dog homogenity is not too low when we kill dots often enough
31+
% ensure that dog homogeneity is not too low when we kill dots often enough
3232

3333
nbEvents = 500;
3434
doPlot = false;

src/aperture/apertureTexture.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148

149149
cycleDuration = cfg.mri.repetitionTime * cfg.volsPerCycle;
150150

151-
% Update angle for rotation of background and for apperture for wedge
151+
% Update angle for rotation of background and for aperture for wedge
152152
switch cfg.direction
153153

154154
case '+'

src/aperture/eccenLogSpeed.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(outerRimVA + exp(1))) * maxEcc * csFuncFact;
3939
outerRimPix = newOuterRimVA * cfg.screen.ppd; % in pixel
4040

41-
% width of apperture changes logarithmically with eccentricity of inner ring
41+
% width of aperture changes logarithmically with eccentricity of inner ring
4242
oldScaleInnerVA = outerRimVA - ringWidthVA;
4343
if oldScaleInnerVA < 0
4444
oldScaleInnerVA = 0;

src/dot/reseedDots.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
% Create a logical vector to detect any dot that has:
1515
% - an xy position inferior to 0
1616
% - an xy position superior to winWidth
17-
% - has exceeded its liftime
17+
% - has exceeded its lifetime
1818
% - is on the fixation cross
1919
% - has been been picked to be killed
2020

src/dot/setDotDirection.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
directionAllDots = dots.direction;
3131

32-
% when we initialiaze the direction for all the dots
32+
% when we initialize the direction for all the dots
3333
% after that dots.direction will be a vector
3434
if numel(directionAllDots) == 1
3535

@@ -52,7 +52,7 @@
5252
%% Express the direction in the 0 to 360 range
5353
directionAllDots = mod(directionAllDots, 360);
5454

55-
% ensure we return a colum vector
55+
% ensure we return a column vector
5656
if size(directionAllDots, 1) == 1
5757
directionAllDots = directionAllDots';
5858
end

src/eyeTracker.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function [el, cfg] = eyeTracker(input, cfg, varargin)
22
%
3-
% Wrapper function that deals with all the necessery actions to implement
3+
% Wrapper function that deals with all the necessary actions to implement
44
% Eye Tracker recording with eyelink.
55
%
66
% USAGE:
@@ -69,7 +69,7 @@
6969

7070
% Initialize EL and make sure it worked: returns 0 if OK, -1 if error.
7171

72-
% Check that EL is initialzed and connected, otherwise abort experiment
72+
% Check that EL is initialized and connected, otherwise abort experiment
7373
eyetrackerCheckConnection;
7474

7575
% Open the edf file to write the data.
@@ -277,7 +277,7 @@
277277
error([newline 'Eyelink is not connected, aborted.']);
278278
end
279279

280-
% Initialize Eyelink system and connection: returns 1 when succesful, 0
280+
% Initialize Eyelink system and connection: returns 1 when successful, 0
281281
% otherwise
282282
if ~EyelinkInit(0, 1)
283283
Eyelink('shutdown');
@@ -323,7 +323,7 @@
323323
% 'Start_Ret_', ...
324324
% 'Subj_', cfg.Subj, '_', ...
325325
% 'Run', num2str(cfg.Session(end)), '_', ...
326-
% cfg.Apperture, '_', ...
326+
% cfg.Aperture, '_', ...
327327
% cfg.Direction]);
328328
% iViewX('incrementsetnumber', ivx, 0);
329329
% end
@@ -342,7 +342,7 @@
342342
% strFile = fullfile(OutputDir, ...
343343
% [cfg.Subj, ...
344344
% '_run', num2str(cfg.Session(end)), '_', ...
345-
% cfg.Apperture, '_', ...
345+
% cfg.Aperture, '_', ...
346346
% cfg.Direction, '_', ...
347347
% thedatestr, '.idf"']);
348348
% iViewX('datafile', ivx, strFile);

0 commit comments

Comments
 (0)