Skip to content

Commit ac7e992

Browse files
committed
Merge branch 'dev' into cer-imcalcDefaultOpt
2 parents b3629ec + a01b57f commit ac7e992

File tree

16 files changed

+123
-41
lines changed

16 files changed

+123
-41
lines changed

.github/workflows/run_system_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ jobs:
6060
- name: Run system tests
6161
run: |
6262
cd manualTests/
63-
octave $OCTFLAGS --eval "systemTestMoAE"
63+
octave $OCTFLAGS --eval "test_moae"
6464

.gitignore

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,61 @@
1-
1+
# General
22
.DS_Store
3-
*.asv
4-
*.m~
5-
*.mat
3+
64
*.xml
75
*.log
8-
*.html
96
*.zip
7+
*.html
108
*.ps
119

10+
*.mat
11+
12+
# Project specific
1213
options_task-*date*.json
1314
onsets*_events.mat
1415

15-
# files in the demo folder related to running the demo analysis
16-
demos/*/outputs/
17-
demos/*/inputs/
18-
demos/*/*.nii
19-
demos/*/cfg/*.json
20-
21-
# test folder and dummy data
22-
tests/*.png
23-
tests/group/*
24-
tests/*/*.json
25-
tests/dummyData/derivatives/cpp_spm*/sub-*/
26-
27-
# ignore content of the build folder of the doc
28-
docs/build/*
29-
30-
# ignore virtual env
16+
## virtual env
3117
cpp_spm/*
3218
env/*
19+
venv/*
3320

34-
# visual studio code stuff
21+
## visual studio code
3522
.vscode
3623

24+
## MATLAB / OCTAVE gitignore template
25+
26+
# From : https://github.com/github/gitignore/blob/master/Global/MATLAB.gitignore
27+
28+
29+
# Windows default autosave extension
30+
*.asv
31+
32+
# OSX / *nix default autosave extension
33+
*.m~
34+
35+
# Compiled MEX binaries (all platforms)
36+
*.mex*
37+
38+
# Packaged app and toolbox files
39+
*.mlappinstall
40+
*.mltbx
41+
42+
# Generated helpsearch folders
43+
helpsearch*/
44+
45+
# Simulink code generation folders
46+
slprj/
47+
sccprj/
48+
49+
# Matlab code generation folders
50+
codegen/
51+
52+
# Simulink autosave extension
53+
*.autosave
54+
55+
# Simulink cache files
56+
*.slxc
3757

58+
# Octave session info
59+
octave-workspace
3860

3961

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
3+
- repo: local
4+
5+
hooks:
6+
7+
- id: mh_style
8+
name: mh_style
9+
entry: mh_style
10+
args: [--process-slx, --fix]
11+
files: ^(.*\.(m|slx))$
12+
language: python
13+
additional_dependencies: [miss_hit_core]
14+
15+
- id: mh_metric
16+
name: mh_metric
17+
entry: mh_metric
18+
args: [--ci]
19+
files: ^(.*\.(m|slx))$
20+
language: python
21+
additional_dependencies: [miss_hit_core]
22+
23+
- id: mh_lint
24+
name: mh_lint
25+
entry: mh_lint
26+
files: ^(.*\.(m|slx))$
27+
language: python
28+
additional_dependencies: [miss_hit]

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,23 @@ Scripts names in general and as well functions related to the demos use a
145145

146146
Constant are written in `UPPERCASE`.
147147

148+
#### Pre-commit
149+
150+
There is a [pre-commit hook](https://pre-commit.com/) that you can use to
151+
reformat files as you commit them.
152+
153+
Install pre-commit by using our `requirements.txt` file
154+
```bash
155+
pip install -r requirements.txt
156+
```
157+
158+
Install the hook
159+
```bash
160+
pre-commit install
161+
```
162+
163+
You're done. `mh_style --fix` will now be run every time you commit.
164+
148165
## Contributors
149166

150167
Thanks goes to these wonderful people

demos/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# files in the demo folder related to running the demo analysis
2+
*/outputs/
3+
*/inputs/
4+
*/*.nii
5+
*/cfg/*.json

demos/openneuro/ds000114_get_option.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
opt.taskName = 'linebisection';
1717

1818
opt.anatReference.type = 'T1w';
19-
opt.anatReference.session = 'test';
20-
19+
opt.anatReference.session = 'retest';
2120
% Uncomment the lines below to run preprocessing
2221
% - don't use realign and unwarp
2322
% opt.realign.useUnwarp = false;

demos/openneuro/ds001168_get_option.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
opt.taskName = 'rest';
2121

2222
opt.anatReference.type = 'T1w';
23-
opt.anatReference.session = 1;
23+
opt.anatReference.session = '1';
2424

2525
% Uncomment the lines below to run preprocessing
2626
% - don't use realign and unwarp

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# documentation
2+
build/*

manualTests/test_moae.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
run ../../initCppSpm.m;
3030

31-
dowload_moae_ds(downloadData);
31+
download_moae_ds(downloadData);
3232

3333
%% Set up
3434
optionsFilesList = { ...

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Sphinx
22
sphinxcontrib-matlabdomain
33
sphinxcontrib-napoleon
44
sphinx_rtd_theme
5-
miss_hit==0.9.20
5+
miss_hit==0.9.20
6+
pre-commit

0 commit comments

Comments
 (0)