Skip to content

Commit 44bf72f

Browse files
committed
add version.txt file
1 parent 3609466 commit 44bf72f

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

src/createFilename.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
'echo', ...
106106
'phaseEncodingDirection', ...
107107
'reconstruction', ...
108-
'recording', ...
108+
'recording' ...
109109
};
110110

111111
targetFields = { ...
@@ -114,7 +114,7 @@
114114
'echo', ...
115115
'dir', ...
116116
'rec', ...
117-
'recording', ...
117+
'recording' ...
118118
};
119119

120120
for iField = 1:numel(fields2Check)
@@ -146,10 +146,10 @@
146146
pattern = cfg.fileName.pattern;
147147

148148
runSuffix = cfg.fileName.suffix.run;
149-
acqSuffix = cfg.fileName.suffix.acquisition ;
150-
ceSuffix = cfg.fileName.suffix.contrastEnhancement ;
151-
dirSuffix = cfg.fileName.suffix.phaseEncodingDirection ;
152-
recSuffix = cfg.fileName.suffix.reconstruction ;
149+
acqSuffix = cfg.fileName.suffix.acquisition;
150+
ceSuffix = cfg.fileName.suffix.contrastEnhancement;
151+
dirSuffix = cfg.fileName.suffix.phaseEncodingDirection;
152+
recSuffix = cfg.fileName.suffix.reconstruction;
153153
echoSuffix = cfg.fileName.suffix.echo;
154154
recordingSuffix = cfg.fileName.suffix.recording;
155155

src/subfun/printCreditsCppBids.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
function printCreditsCppBids(cfg)
2+
3+
version = fileread(fullfile(fileparts(mfilename('fullpath')),...
4+
'..', '..', 'version.txt'));
25

36
verbose = true;
47
if ~isempty(cfg) && isfield(cfg, 'verbose') && ~isempty(cfg.verbose)
@@ -7,8 +10,6 @@ function printCreditsCppBids(cfg)
710

811
if verbose
912

10-
version = '0.0.1';
11-
1213
contributors = { ...
1314
'Rémi Gau', ...
1415
'Marco Barilari', ...

tests/test_getIsQuestionToAsk.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
function test_isPositiveIntegerBasic()
1010

1111
questions.questionsToAsk = { ...
12-
[], 1 ; ...
13-
[], 0 ; ...
14-
[], 1 ; ...
15-
[], 0 ; ...
12+
[], 1; ...
13+
[], 0; ...
14+
[], 1; ...
15+
[], 0; ...
1616
};
1717

1818
responses = { ...
@@ -24,6 +24,6 @@ function test_isPositiveIntegerBasic()
2424

2525
isQuestionToAsk = getIsQuestionToAsk(questions, responses);
2626

27-
assertEqual(isQuestionToAsk, [false;false;true;false]);
27+
assertEqual(isQuestionToAsk, [false; false; true; false]);
2828

2929
end

tests/test_removeDateSuffix.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ function test_removeDateSuffixBasic()
2323
stimNameZipped = 'test2_stim_date-202008050730.tsv.gz';
2424

2525
filesToProcess = { ...
26-
boldName ;
27-
boldName2 ;
28-
boldName3 ;
29-
jsonName ;
30-
eventsName ;
31-
stimName ;
32-
stimNameZipped ;
26+
boldName;
27+
boldName2;
28+
boldName3;
29+
jsonName;
30+
eventsName;
31+
stimName;
32+
stimNameZipped;
3333
};
3434

3535
% create new files for new tests

tests/test_utils.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
end
88

99
function test_utilsBasic()
10+
11+
cfg.verbose = true;
1012

1113
printCreditsCppBids();
1214

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1.0.0

0 commit comments

Comments
 (0)