Skip to content

Commit 0428f7c

Browse files
committed
typo and gitignore
1 parent e08c67b commit 0428f7c

File tree

2 files changed

+43
-11
lines changed

2 files changed

+43
-11
lines changed

.gitignore

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
.DS_Store
22

33
*.nii
4+
*.json
45
*.xml
56
*.log
6-
*.asv
7-
*.m~
87
*.mat
9-
108
*.html
119

1210
# ignore content of the build folder of the doc
@@ -18,17 +16,51 @@ envs/*
1816
# visual studio code stuff
1917
.vscode
2018

21-
# files in the demo folder related to running the demo analysis
22-
# demos/roi
23-
2419
atlas/visual_topography_probability_atlas/
2520

26-
demos/*/*.json
27-
demos/*/*/*.json
2821
demos/*/derivatives
2922

30-
atlas/*.json
3123

3224
#for testing
3325
coveragage_html
3426
lib/bids-matlab
27+
28+
29+
## MATLAB / OCTAVE gitignore template
30+
31+
# From : https://github.com/github/gitignore/blob/master/Global/MATLAB.gitignore
32+
33+
34+
# Windows default autosave extension
35+
*.asv
36+
37+
# OSX / *nix default autosave extension
38+
*.m~
39+
40+
# Compiled MEX binaries (all platforms)
41+
*.mex*
42+
43+
# Packaged app and toolbox files
44+
*.mlappinstall
45+
*.mltbx
46+
47+
# Generated helpsearch folders
48+
helpsearch*/
49+
50+
# Simulink code generation folders
51+
slprj/
52+
sccprj/
53+
54+
# Matlab code generation folders
55+
codegen/
56+
57+
# Simulink autosave extension
58+
*.autosave
59+
60+
# Simulink cache files
61+
*.slxc
62+
63+
# Octave session info
64+
octave-workspace
65+
66+

src/utils/isBinaryMask.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
hdr = spm_vol(image);
1717

1818
if numel(hdr) > 1
19-
err.identifier = 'isBinaryMask:notBinaryImage';
19+
err.identifier = 'isBinaryMask:not3DImage';
2020
err.message = sprintf(['the image:', ...
2121
'\n\t%s\n', ...
2222
'must be a 3D image. It seems to be 4D image with %i volume.'], ...
23-
image);
23+
image, numel(hdr));
2424
error(err);
2525
end
2626

0 commit comments

Comments
 (0)