Skip to content

Commit 826c531

Browse files
authored
Merge pull request #341 from cpp-lln-lab/rel_0.3.0
[REL] Release 1.0.0
2 parents 8314dc4 + 4f139c4 commit 826c531

File tree

302 files changed

+10546
-3318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+10546
-3318
lines changed

.github/workflows/check_markdown.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/miss_hit.yml renamed to .github/workflows/miss_hit_quality.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: miss_hit
1+
name: miss_hit_quality
22

33
on:
44
push:
@@ -29,10 +29,6 @@ jobs:
2929
python -m pip install --upgrade pip setuptools
3030
pip3 install -r requirements.txt
3131
32-
- name: MISS_HIT Code style
33-
run: |
34-
mh_style --process-slx
35-
3632
- name: MISS_HIT Metrics
3733
run: |
3834
mh_metric --ci
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: miss_hit_style
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: '*'
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: true
20+
fetch-depth: 1
21+
22+
- name: Set up Python 3.6
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.6
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip setuptools
30+
pip3 install -r requirements.txt
31+
32+
- name: MISS_HIT Code style
33+
run: |
34+
mh_style
35+

.github/workflows/run_system_tests.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,9 @@ jobs:
5656
make -C spm12/src PLATFORM=octave install
5757
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
5858
59-
- name: Update octave path
60-
run: |
61-
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
62-
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
63-
64-
- name: Prepare data
65-
run: |
66-
output_folder='demos/MoAE/output/'
67-
mkdir $output_folder
68-
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
69-
unzip $output_folder'MoAEpilot.zip' -d $output_folder
70-
59+
7160
- name: Run system tests
7261
run: |
73-
cd demos/MoAE
74-
octave $OCTFLAGS --eval "MoAEpilot_run"
62+
cd manualTests/
63+
octave $OCTFLAGS --eval "test_moae"
7564

.github/workflows/run_tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,23 @@ jobs:
6262
6363
- name: Update octave path
6464
run: |
65-
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
66-
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
65+
octave $OCTFLAGS --eval "initCppSpm; savepath();"
66+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
6767
6868
- name: Prepare data
6969
run: |
70-
output_folder='demos/MoAE/output/'
71-
mkdir $output_folder
72-
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
73-
unzip $output_folder'MoAEpilot.zip' -d $output_folder
70+
inputs_folder='demos/MoAE/inputs/'
71+
mkdir $inputs_folder
72+
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $inputs_folder'MoAEpilot.zip'
73+
unzip $inputs_folder'MoAEpilot.zip' -d $inputs_folder
74+
mv $inputs_folder/MoAEpilot $inputs_folder/raw
7475
cd tests
7576
sh createDummyDataSet.sh
7677
cd ..
7778
7879
- name: Run tests
7980
run: |
80-
octave $OCTFLAGS --eval "runTests"
81+
octave $OCTFLAGS --eval "run_tests"
8182
cat test_report.log | grep 0
8283
bash <(curl -s https://codecov.io/bash)
8384

.gitignore

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,23 @@ options_task-*date*.json
1313
onsets*_events.mat
1414

1515
# files in the demo folder related to running the demo analysis
16-
demos/*/*.zip
17-
demos/*/derivatives/*
18-
demos/MoAE/output/*
19-
demos/spm*/raw
20-
demos/spm*/source
16+
demos/*/outputs/
17+
demos/*/inputs/
18+
demos/*/*.nii
19+
demos/*/cfg/*.json
2120

2221
# test folder and dummy data
23-
tests/sub-01/*
22+
tests/*.png
2423
tests/group/*
25-
tests/models/*.json
26-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.nii*
27-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.tsv
28-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.txt
29-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.json
30-
tests/dummyData/derivatives/cpp_spm/sub-*/stats/*/*/*.nii*
24+
tests/*/*.json
25+
tests/dummyData/derivatives/cpp_spm*/sub-*/
3126

3227
# ignore content of the build folder of the doc
3328
docs/build/*
3429

3530
# ignore virtual env
3631
cpp_spm/*
32+
env/*
3733

3834
# visual studio code stuff
3935
.vscode

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44
[submodule "lib/spmup"]
55
path = lib/spmup
66
url = https://github.com/CPernet/spmup.git
7+
[submodule "lib/CPP_ROI"]
8+
path = lib/CPP_ROI
9+
url = https://github.com/cpp-lln-lab/CPP_ROI.git
10+
[submodule "lib/slice_display"]
11+
path = lib/slice_display
12+
url = https://github.com/bramzandbelt/slice_display.git
13+
[submodule "lib/brain_colours"]
14+
path = lib/brain_colours
15+
url = https://github.com/CPernet/brain_colours.git

.remarkrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.zenodo.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@
3131
"affiliation": "Université Catholique de Louvain",
3232
"name": "Gurtubay, Ane",
3333
"orcid": "0000-0003-3824-2219"
34-
},
34+
},
3535
{
3636
"affiliation": "Université Catholique de Louvain",
3737
"name": "Falagiarda, Federica",
3838
"orcid": "0000-0001-7844-1605"
39+
},
40+
{
41+
"affiliation": "Université de Montréal",
42+
"name": "MacLean, Michèle",
43+
"orcid": "0000-0002-0174-9326"
3944
}
4045
],
4146
"keywords": [
@@ -49,4 +54,4 @@
4954
],
5055
"license": "GPL-3",
5156
"upload_type": "software"
52-
}
57+
}

0 commit comments

Comments
 (0)