Skip to content

Commit 310120b

Browse files
committed
update readme with badges
1 parent b211e3d commit 310120b

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-) [![Build Status](https://travis-ci.com/cpp-lln-lab/CPP_BIDS.svg?branch=master)](https://travis-ci.com/cpp-lln-lab/CPP_BIDS)
1+
**BIDS validator and linter**
22

3+
[![Build Status](https://travis-ci.com/cpp-lln-lab/CPP_BIDS.svg?branch=master)](https://travis-ci.com/cpp-lln-lab/CPP_BIDS)
4+
5+
**Unit tests**
6+
7+
[![](https://img.shields.io/badge/Octave-CI-blue?logo=Octave&logoColor=white)](https://github.com/cpp-lln-lab/CPP_BIDS/actions)
8+
![](https://github.com/cpp-lln-lab/CPP_BIDS/workflows/CI/badge.svg)
9+
10+
**Contributors**
11+
12+
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
13+
14+
---
15+
316
# CPP_BIDS
417

518
<!-- TOC -->
@@ -18,6 +31,7 @@
1831
- [How to install](#how-to-install)
1932
- [Download with git](#download-with-git)
2033
- [Add as a submodule](#add-as-a-submodule)
34+
- [Example for submodule usage](#example-for-submodule-usage)
2135
- [Direct download](#direct-download)
2236
- [Contributing](#contributing)
2337
- [Guidestyle](#guidestyle)

src/createFilename.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
'phaseEncodingDirection', ...
109109
'reconstruction', ...
110110
};
111-
111+
112112
targetFields = { ...
113113
'acq', ...
114114
'ce', ...
@@ -118,20 +118,20 @@
118118
};
119119

120120
for iField = 1:numel(fields2Check)
121-
121+
122122
if isempty (cfg.mri.(fields2Check{iField})) %#ok<*GFLD>
123-
123+
124124
cfg.fileName.suffix.mri.(fields2Check{iField}) = ''; %#ok<*SFLD>
125-
125+
126126
else
127-
127+
128128
% upper camelCase and remove invalid characters
129129
thisField = getfield(cfg.mri, fields2Check{iField});
130130
[~, validFieldName] = createValidName(thisField);
131-
131+
132132
cfg.fileName.suffix.mri.(fields2Check{iField}) = ...
133133
['_' targetFields{iField} '-' validFieldName];
134-
134+
135135
end
136136
end
137137

tests/test_createFilename.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ function test_createFilenameMriEyetracker()
9494

9595
end
9696

97-
9897
function test_createFilenameMriSuffix()
9998

10099
outputDir = fullfile(fileparts(mfilename('fullpath')), '..', 'output');
@@ -111,7 +110,7 @@ function test_createFilenameMriSuffix()
111110

112111
cfg.eyeTracker.do = false;
113112
cfg.testingDevice = 'mri';
114-
113+
115114
cfg.mri.reconstruction = 'fast recon';
116115
cfg.mri.contrastEnhancement = 'test';
117116
cfg.mri.phaseEncodingDirection = 'y pos';
@@ -136,7 +135,7 @@ function test_createFilenameMriSuffix()
136135
assertTrue(exist(funcDir, 'dir') == 7);
137136

138137
% make sure the right filenames are created
139-
assertEqual(cfg.fileName.base, baseFilename)
138+
assertEqual(cfg.fileName.base, baseFilename);
140139
assertEqual(cfg.fileName.events, eventFilename);
141140

142141
end

0 commit comments

Comments
 (0)