Skip to content

Commit 5d3245f

Browse files
committed
fix travis' suggestion
1 parent 38eac38 commit 5d3245f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/readOutputFilter.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
function outputFiltered = readOutputFilter(cfg, filterHeader, filterContent)
22
% outputFiltered = readOutputFilter(cfg, filterHeader, filterContent)
3-
%
4-
% It will display in the command window the content of the `output.tsv' filtered by one element
5-
% of a target column. At the moment it works only for string content and can retrieve the tsv
3+
%
4+
% It will display in the command window the content of the `output.tsv' filtered by one element
5+
% of a target column. At the moment it works only for string content and can retrieve the tsv
66
% path form `cfg`.
7-
%
7+
%
88
% DEPENDENCIES:
99
% - bids_matlab (from CPP_BIDS)
10-
%
10+
%
1111
% INPUT:
12-
%
12+
%
1313
% - cfg: the main experiment structure
14-
% - filterHeader: string, the column header where the ctarget content is stored (e.g., for
14+
% - filterHeader: string, the column header where the ctarget content is stored (e.g., for
1515
% 'condition name' will be 'trial type')
1616
% - filterContent: string, the content of the column you want to filter out. It can take just
17-
% part of the content name (e.g., you want to display the triggers and you have 'trigger_motion'
18-
% and 'trigger_static', 'trigger' as input will do)
17+
% part of the content name (e.g., you want to display the triggers and you have
18+
% 'trigger_motion' and 'trigger_static', 'trigger' as input will do)
1919
%
2020
% OUTPUT:
2121
%
2222
% - outputFiltered: dataset with only the specified content, to see it in the command window
2323
% use display(outputFiltered)
24-
24+
2525

2626
% Get the outputfile path
2727
tsvFile = fullfile(cfg.dir.outputSubject, ...
2828
cfg.fileName.modality, ...
2929
cfg.fileName.events);
30-
30+
3131
% Read the the tsv file and store each column in a field of `output` structure
3232
output = bids.util.tsvread(tsvFile);
3333

@@ -36,8 +36,8 @@
3636

3737
% Convert the structure to dataset
3838
outputDataset = struct2dataset(output);
39-
39+
4040
% Get the dataset with the content of intereset
41-
outputFiltered = outputDataset(filterIdx,:);
41+
outputFiltered = outputDataset(filterIdx, :);
4242

4343
end

0 commit comments

Comments
 (0)