Skip to content

Commit df401f5

Browse files
authored
Merge pull request #128 from CerenB/cer-doc
[DOC] update on convertSourceToRaw.m
2 parents 86fab40 + 2e7ff48 commit df401f5

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

src/convertSourceToRaw.m

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,23 @@
22

33
function convertSourceToRaw(cfg)
44
%
5-
% Short description of what the function does goes here.
6-
%
7-
% USAGE::
5+
% Function attempts to convert a source dataset created with CPP_BIDS into a valid
6+
% BIDS data set.
87
%
9-
% [argout1, argout2] = templateFunction(argin1, [argin2 == default,] [argin3])
108
%
11-
% :param argin1: (dimension) obligatory argument. Lorem ipsum dolor sit amet,
12-
% consectetur adipiscing elit. Ut congue nec est ac lacinia.
13-
% :type argin1: type
14-
% :param argin2: optional argument and its default value. And some of the
15-
% options can be shown in litteral like ``this`` or ``that``.
16-
% :type argin2: string
17-
% :param argin3: (dimension) optional argument
18-
% :type argin3: integer
9+
% USAGE::
1910
%
20-
% :returns: - :argout1: (type) (dimension)
21-
% - :argout2: (type) (dimension)
11+
% convertSourceToRaw(cfg)
2212
%
23-
% convertSourceToRaw(cfg)
13+
% :param cfg: cfg structure is needed only for providing the path in
14+
% ``cfg.dir.output``
15+
% :type cfg: structure
2416
%
25-
% attempts to convert a source dataset created with CPP_BIDS into a valid
26-
% BIDS data set.
17+
% :output:
2718
% - creates dummy README and CHANGE file
2819
% - copy source dir to raw dir
29-
% - remove the date suffix (_date-YYYYMMDDHHMM) from the files where it is present
30-
%
31-
% Only covers func folder at the moment
20+
% - remove the date suffix (_date-*) from the files where it is present
21+
% - zips the _stim files.
3222

3323
sourceDir = fullfile(cfg.dir.output, 'source');
3424
rawDir = fullfile(cfg.dir.output, 'raw');

0 commit comments

Comments
 (0)