Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Nov 6, 2023
1 parent 7a2c518 commit a56fb76
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion +bids/+transformers_list/Merge_identical_rows.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
% - If a variable is found, but is empty, it is ignored
% - The content of the other columns corresponds to the last row being merged:
% this means that the content from other columns but the one specified in will be deleted
% execpt for the last one
% except for the last one
%
% CODE EXAMPLE
% ------------
Expand Down
24 changes: 12 additions & 12 deletions +bids/transformers.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

% (C) Copyright 2022 BIDS-MATLAB developers

SUPPORTED_TRANSFORMERS = lower(cat(1, basic_transfomers, ...
munge_transfomers, ...
logical_transfomers, ...
compute_transfomers));
SUPPORTED_TRANSFORMERS = lower(cat(1, basic_transformers, ...
munge_transformers, ...
logical_transformers, ...
compute_transformers));

p = inputParser;

Expand Down Expand Up @@ -98,16 +98,16 @@

switch transformerName

case lower(basic_transfomers)
case lower(basic_transformers)
output = bids.transformers_list.Basic(trans, data);

case lower(logical_transfomers)
case lower(logical_transformers)
output = bids.transformers_list.Logical(trans, data);

case lower(munge_transfomers)
case lower(munge_transformers)
output = apply_munge(trans, data);

case lower(compute_transfomers)
case lower(compute_transformers)
output = apply_compute(trans, data);

otherwise
Expand Down Expand Up @@ -211,21 +211,21 @@ function not_implemented(name)
false);
end

function BASIC = basic_transfomers()
function BASIC = basic_transformers()
BASIC = {'Add'
'Divide'
'Multiply'
'Power'
'Subtract'};
end

function LOGICAL = logical_transfomers()
function LOGICAL = logical_transformers()
LOGICAL = {'And'
'Or'
'Not'};
end

function MUNGE = munge_transfomers()
function MUNGE = munge_transformers()
MUNGE = {'Assign'
'Concatenate'
'Constant'
Expand All @@ -242,7 +242,7 @@ function not_implemented(name)
'Split'};
end

function COMPUTE = compute_transfomers()
function COMPUTE = compute_transformers()
COMPUTE = {'Mean'
'Product'
'Scale'
Expand Down
2 changes: 1 addition & 1 deletion demos/spm/facerep/code/convert_facerep_ds.m
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function create_readme(output_dir)
'- 2 presentations of 26 Famous and 26 Nonfamous Greyscale photographs, '
' for 0.5s, randomly intermixed, for fame judgment task '
' (one of two right finger key presses).'
'- Parameteric factor "lag" = number of faces intervening '
'- Parametric factor "lag" = number of faces intervening '
' between repetition of a specific face + 1'
'- Minimal SOA=4.5s, with probability 2/3 (ie 1/3 null events)'
''
Expand Down
2 changes: 1 addition & 1 deletion tests/test_transformers/test_transformers_side_functions.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function test_get_input()
function status = test_is_run_level()

data = struct('onset', [], 'duration', [], 'foo', 'bar');
assert(bids.transfomers.is_run_level(data));
assert(bids.transformers.is_run_level(data));

end

Expand Down

0 comments on commit a56fb76

Please sign in to comment.