Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] adapt tests after schema updates #626

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/run_tests_matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ on:
jobs:
test:


strategy:
fail-fast: false
matrix:
version: ["R2020a", "R2020b", "R2021a", "R2021b", "R2022a", "R2022b"]
version: [R2021a, R2023a]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
exclude:
- os: windows-latest
version: "R2020a" # MATLAB not available
- os: windows-latest
version: "R2020b" # MATLAB not available

runs-on: ${{matrix.os}}

Expand Down
13 changes: 13 additions & 0 deletions tests/data/reports/ds000117_anat.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
ANAT REPORT

The data acquisition was performed in the {{InstitutionName}}, {{InstitutionalDepartmentName}},
{{InstitutionAddress}}.

MRI scans were acquired at {{MagneticFieldStrength}} Tesla using a {{ManufacturersModelName}}
system from {{Manufacturer}}, with serial number {{DeviceSerialNumber}}.
The software version was {{SoftwareVersions}}.

{{PulseSequenceType}} {{ScanningSequence}} {{SequenceVariant}} FLASH structural
MRI data were collected ({{nb_slices}} slices; repetition time, TR= {{RepetitionTime}}
s; echo time, TE= {{echo_time}} ms; flip angle, FA= {{FlipAngle}} deg; field
of view, FOV= {{fov}} mm; matrix size= {{mat_size}}; voxel size= {{vox_size}}
mm).

The data acquisition was performed in the MRC Cognition and Brain Sciences Unit,
{{InstitutionalDepartmentName}}, 15 Chaucer Road, Cambridge CB2 7EF, UK.

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

expected.anat.metafile = {};
Expand All @@ -79,6 +80,10 @@ function test_append_to_layout_basic()
expected.anat.dependencies.data = {};
expected.anat.dependencies.group = {};

fields = fieldnames(expected.anat);
for i = 1:numel(fields)
assertEqual(subject.anat.(fields{i}), expected.anat.(fields{i}));
end
assertEqual(subject.anat, expected.anat);

end
Expand Down Expand Up @@ -123,6 +128,7 @@ function test_append_to_structure_basic_test()
'acq', 'hd', ...
'ce', '', ...
'rec', '', ...
'echo', '', ...
'part', ''));
expected.anat(1, 1).metafile = {};

Expand Down