Skip to content

Commit 243be73

Browse files
authored
Merge pull request #118 from cpp-lln-lab/fix/117
[FIX] return all labels for HCPex atlas
2 parents 2906e31 + 695166b commit 243be73

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/run_tests_matlab.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
version: [R2021a, R2021b, R2022a, R2022b]
27+
version: [R2023b]
2828
os: [ubuntu-latest, macos-latest, windows-latest]
2929

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

3232
steps:
3333
- name: Install MATLAB
34-
uses: matlab-actions/setup-matlab@v2.0.0
34+
uses: matlab-actions/setup-matlab@v2.1.0
3535
with:
3636
release: ${{matrix.version}}
3737

@@ -54,7 +54,7 @@ jobs:
5454
run: make install_dev
5555

5656
- name: Run tests
57-
uses: matlab-actions/run-command@v2.0.0
57+
uses: matlab-actions/run-command@v2.1.0
5858
with:
5959
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab;
6060

src/atlas/getLookUpTable.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
fid = fopen(roiLabelLUT);
6464
pattern = '%f%s%s%f';
65-
C = textscan(fid, pattern, 'Headerlines', 1);
65+
C = textscan(fid, pattern, 'Headerlines', 0);
6666
fclose(fid);
6767

6868
for i = 1:numel(C{2})

tests/test_getLookUpTable.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ function test_lut_hcpex()
4747

4848
lut = getLookUpTable('hcpex');
4949

50-
assertEqual(lut.label, [2:426]');
51-
assertEqual(lut.ROI{417}, 'R_Gpe');
50+
assertEqual(lut.label, [1:426]');
51+
assertEqual(lut.ROI{417}, 'R_NAc');
5252

5353
end
5454

0 commit comments

Comments
 (0)