Skip to content

Commit 5eb3263

Browse files
authored
Merge pull request #479 from Remi-Gau/rc1.1.4
rc1.1.4
2 parents c761ebb + 6e94d5f commit 5eb3263

27 files changed

+223
-231
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
%
2+
% (C) Copyright 2021 CPP_SPM developers
3+
4+
root_dir = getenv('GITHUB_WORKSPACE');
5+
6+
addpath(fullfile(root_dir, 'spm12'));
7+
addpath(fullfile(root_dir, 'MOcov', 'MOcov'));
8+
9+
cd(fullfile(root_dir, 'MOxUnit', 'MOxUnit'));
10+
run moxunit_set_path();
11+
12+
cd(fullfile(root_dir));
13+
initCppSpm();
14+
addpath(fullfile(root_dir, 'tests', 'utils'));
15+
run run_tests();
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: tests and coverage with matlab
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches: ["*"]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- name: Install MATLAB
20+
uses: matlab-actions/[email protected]
21+
with:
22+
# MATLAB release to set up R2020a
23+
release: R2020a
24+
25+
- name: Clone cpp_spm
26+
uses: actions/checkout@v2
27+
with:
28+
submodules: true
29+
fetch-depth: 2
30+
31+
- name: Install SPM
32+
run: |
33+
git clone https://github.com/spm/spm12.git --depth 1
34+
35+
- name: Install Moxunit and MOcov
36+
run: |
37+
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
38+
git clone https://github.com/MOcov/MOcov.git --depth 1
39+
40+
- name: Prepare data
41+
run: |
42+
inputs_folder='demos/MoAE/inputs/'
43+
mkdir $inputs_folder
44+
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $inputs_folder'MoAEpilot.zip'
45+
unzip $inputs_folder'MoAEpilot.zip' -d $inputs_folder
46+
mv $inputs_folder/MoAEpilot $inputs_folder/raw
47+
cd tests
48+
make data
49+
50+
- name: Run commands
51+
uses: matlab-actions/[email protected]
52+
with:
53+
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run matlab_workflow_script;
54+
55+
- name: Run tests
56+
run: |
57+
cat test_report.log | grep 0
58+
bash <(curl -s https://codecov.io/bash)
59+
60+
- name: Upload coverage
61+
uses: actions/upload-artifact@v1
62+
with:
63+
name: coverage_file
64+
path: coverage.xml
65+
66+
- name: Code coverage
67+
uses: codecov/codecov-action@v1
68+
with:
69+
file: coverage.xml # optional
70+
flags: unittests # optional
71+
name: codecov-umbrella # optional
72+
fail_ci_if_error: true # optional (default = false)

.zenodo.json

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

CITATION.cff

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
cff-version: 1.2.0
2+
3+
title: "CPP SPM"
4+
5+
version: 1.1.4
6+
7+
abstract: CPP_SPM is a set pipelines and tools for Octave/MATLAB to process and analyze BIDS data sets using SPM.
8+
9+
message: "If you use this software, please cite it as below."
10+
11+
repository-code: "https://github.com/cpp-lln-lab/CPP_SPM"
12+
13+
identifiers:
14+
- description: This is the collection of archived snapshots of all releases of CPP SPM
15+
type: doi
16+
value: "10.5281/zenodo.3554331"
17+
18+
contact:
19+
- affiliation: "Université catholique de Louvain"
20+
21+
family-names: Gau
22+
given-names: Rémi
23+
24+
authors:
25+
- family-names: "Gau"
26+
given-names: "Rémi"
27+
orcid: "https://orcid.org/0000-0002-1535-9767"
28+
affiliation: "Université catholique de Louvain"
29+
30+
- family-names: "Barilari"
31+
given-names: "Marco"
32+
orcid: "https://orcid.org/0000-0002-3313-3120"
33+
affiliation: "Université catholique de Louvain"
34+
35+
- family-names: "Battal"
36+
given-names: "Ceren"
37+
orcid: "https://orcid.org/0000-0002-9844-7630"
38+
affiliation: "Université catholique de Louvain"
39+
40+
- family-names: "Rezk"
41+
given-names: "Mohamed"
42+
orcid: "https://orcid.org/0000-0002-1866-8645"
43+
affiliation: "Université catholique de Louvain"
44+
45+
- family-names: "Collignon"
46+
given-names: "Olivier"
47+
orcid: "https://orcid.org/0000-0003-1882-3550"
48+
affiliation: "Université catholique de Louvain"
49+
50+
- family-names: "Gurtubay"
51+
given-names: "Ane"
52+
orcid: "https://orcid.org/0000-0003-3824-2219"
53+
affiliation: "Université catholique de Louvain"
54+
55+
- family-names: "Falagiarda"
56+
given-names: "Federica"
57+
orcid: "https://orcid.org/0000-0001-7844-1605"
58+
affiliation: "Université catholique de Louvain"
59+
60+
- family-names: "MacLean"
61+
given-names: "Michèle"
62+
orcid: "https://orcid.org/0000-0002-0174-9326"
63+
affiliation: "Université de Montréal"
64+
65+
- family-names: "Cerpelloni"
66+
given-names: "Filippo"
67+
orcid: "https://orcid.org/0000-0001-8070-5753"
68+
affiliation: "Université catholique de Louvain"
69+
70+
license: GPL-3.0
71+
72+
keywords:
73+
- BIDS
74+
- brain imaging data structure
75+
- neuroimaging
76+
- automated pipeline
77+
- MRI
78+
- MATLAB
79+
- Octave
80+
- SPM

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: clean
2+
clean:
3+
rm version.txt
4+
5+
version.txt: CITATION.cff
6+
grep -w "^version" CITATION.cff | sed "s/version: /v/g" > version.txt
7+
8+
validate_cff: CITATION.cff
9+
cffconvert --validate
10+

docs/source/function_description.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ Utility functions
6969
.. autofunction:: getVersion
7070
.. autofunction:: isOctave
7171
.. autofunction:: loadAndCheckOptions
72-
.. autofunction:: manageWorkersPool
7372
.. autofunction:: printBatchName
7473
.. autofunction:: printCredits
7574
.. autofunction:: printProcessingRun

lib/miss_hit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable: false

miss_hit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
project_root
2+
3+
octave: true
4+
15
# styly guide (https://florianschanda.github.io/miss_hit/style_checker.html)
26
line_length: 100
37

48
regex_function_name: "[a-z]+([a-zA-Z0-9]){1}[a-zA-Z0-9]+"
59
regex_script_name: "[a-z0-9]+(_[a-z0-9]+)*"
610

11+
suppress_rule: "naming_parameters"
12+
713
exclude_dir: "lib"
814

915
copyright_entity: "JH"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Sphinx
22
sphinxcontrib-matlabdomain
33
sphinxcontrib-napoleon
44
sphinx_rtd_theme
5-
miss_hit==0.9.22
5+
miss_hit==0.9.29
66
pre-commit

src/QA/anatomicalQA.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function anatomicalQA(opt)
2626

2727
fprintf(1, ' ANATOMICAL: QUALITY CONTROL\n\n');
2828

29-
parfor iSub = 1:numel(opt.subjects)
29+
for iSub = 1:numel(opt.subjects)
3030

3131
subLabel = opt.subjects{iSub}; %#ok<*PFBNS>
3232

0 commit comments

Comments
 (0)