Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Nov 6, 2023
2 parents 85a01a1 + 4dc20a3 commit 7a2c518
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run_tests_matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: Install bids validator
run: npm install -g bids-validator


- name: Install bids example
run: |
cd tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_octave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:

- name: Clone bids-matlab
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
steps:

- name: Clone bids-matlab
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get BIDS schema
run: make update_schema
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exclude: schema.json
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -12,7 +12,6 @@ repos:
- id: check-json

- repo: local

hooks:
- id: mh_style
name: mh_style
Expand Down
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: '3.12'

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand All @@ -22,6 +27,5 @@ formats:

# Optionally set the version of Python and requirements required to build your docs
python:
version: '3.8'
install:
- requirements: requirements.txt
6 changes: 4 additions & 2 deletions tests/test_bids_file.m
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ function test_reorder()
'dir'; ...
'run'; ...
'echo'; ...
'part'});
'part'; ...
'chunk'});
assertEqual(file.json_filename, 'wuasub-01_ses-test_task-faceRecognition_run-02_bold.json');

end
Expand Down Expand Up @@ -540,7 +541,8 @@ function test_bids_file_parsing_filename_schema_based()
'dir'
'run'
'echo'
'part'});
'part'
'chunk'});

assertEqual(file.prefix, '');
assertEqual(file.suffix, 'bold');
Expand Down
24 changes: 22 additions & 2 deletions tests/test_bids_schema.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,17 @@ function test_return_entities_for_suffix_modality()
schema = bids.Schema();
[entities, required] = schema.return_entities_for_suffix_modality('bold', 'func');

expected_entities = {'sub', 'ses', 'task', 'acq', 'ce', 'rec', 'dir', 'run', 'echo', 'part'};
expected_entities = {'sub', ...
'ses', ...
'task', ...
'acq', ...
'ce', ...
'rec', ...
'dir', ...
'run', ...
'echo', ...
'part', ...
'chunk'};
assertEqual(entities, expected_entities);

expected_required = {'sub', 'task'};
Expand Down Expand Up @@ -265,7 +275,17 @@ function test_schemaless()
suffix_group = schema.content.rules.datatypes.func.func;
entities = schema.return_entities_for_suffix_group(suffix_group);

expected_output = {'sub', 'ses', 'task', 'acq', 'ce', 'rec', 'dir', 'run', 'echo', 'part'};
expected_output = {'sub', ...
'ses', ...
'task', ...
'acq', ...
'ce', ...
'rec', ...
'dir', ...
'run', ...
'echo', ...
'part', ...
'chunk'};

assertEqual(entities, expected_output);

Expand Down
9 changes: 6 additions & 3 deletions tests/tests_private/test_append_to_layout.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function test_append_to_layout_basic()
'ce', '', ...
'rec', '', ...
'echo', '', ...
'part', ''));
'part', '', ...
'chunk', ''));

expected.anat.metafile = {};

Expand Down Expand Up @@ -129,7 +130,8 @@ function test_append_to_structure_basic_test()
'ce', '', ...
'rec', '', ...
'echo', '', ...
'part', ''));
'part', '', ...
'chunk', ''));
expected.anat(1, 1).metafile = {};

expected.anat(1, 1).dependencies.explicit = {};
Expand All @@ -147,7 +149,8 @@ function test_append_to_structure_basic_test()
'run', '1', ...
'acq', '', ...
'ce', '', ...
'rec', '')); %#ok<*STRNU>
'rec', '', ...
'chunk', '')); %#ok<*STRNU>

tmp.metafile = {};

Expand Down

0 comments on commit 7a2c518

Please sign in to comment.