Skip to content

Commit 0785232

Browse files
Correcting for forgotten merge
1 parent c150706 commit 0785232

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ md5sums.txt
1616
*.gz
1717
*.zip
1818
*.tmp
19+
*.asv
20+
src/original/ASD_MemorialSloanKettering/MRI-QAMPER_IVIM/test_data
21+
src/original/ASD_MemorialSloanKettering/MRI-QAMPER_IVIM/output_files
22+
23+
1924

2025
# Unit test / coverage reports
2126
.tox/

src/original/ASD_MemorialSloanKettering/MRI-QAMPER_IVIM/demo_QAMPER_IVIM.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
% bval_file: b-value information (txt file)
1010
% roi_nii: single-volume mask ROI image (NIfTI)
1111

12-
13-
qamper_path = 'path:\to\MRI-QAMPER_IVIM'; %path where the MRI-QAMPER folder is located
14-
addpath(genpath(qamper_path));
12+
%%% add quamper to main path
13+
%qamper_path = 'path:\to\MRI-QAMPER_IVIM'; %path where the MRI-QAMPER folder is located
14+
%addpath(genpath(qamper_path));
1515

1616
% Uncomment below and substitute the names of your files
1717
% img_nii = '702-D2019_10_08.nii';
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
function [img_nii,bval_file,roi_nii] = getTestData
22

33
[d,~,~] = fileparts(which('getTestData'));
4-
test_data_folder = fullfile(d,'test_data');
4+
d1 = fileparts(d); % one level up
5+
d2 = fileparts(d1); % two levels up
6+
d3 = fileparts(d2); % three levels up
7+
d4 = fileparts(d3); % three levels up
8+
test_data_folder = fullfile(d4, 'download');
59
if ~exist(test_data_folder,'dir')
610
mkdir(test_data_folder);
711
end
812

9-
zenodo_url = 'https://zenodo.org/records/14605039/files/OSIPI_TF24_data_phantoms.zip';
10-
save_zip = fullfile(test_data_folder,'OSIPI_TF24_data_phantoms.zip');
11-
websave(save_zip,zenodo_url);
12-
unzip(save_zip, test_data_folder);
13+
if ~exist(fullfile(test_data_folder,'OSIPI_TF24_data_phantoms.zip'),'file')
14+
zenodo_url = 'https://zenodo.org/records/14605039/files/OSIPI_TF24_data_phantoms.zip';
15+
save_zip = fullfile(test_data_folder,'OSIPI_TF24_data_phantoms.zip');
16+
websave(save_zip,zenodo_url);
17+
unzip(save_zip, test_data_folder);
18+
end
1319

14-
img_nii = fulllfile(test_data_folder,'Data','brain.nii.gz');
15-
bval_file = fulllfile(test_data_folder,'Data','brain.bval');
16-
roi_nii = fulllfile(test_data_folder,'Data','brain_mask_gray_matter.nii.gz');
20+
img_nii = fullfile(test_data_folder,'Data','brain.nii.gz');
21+
bval_file = fullfile(test_data_folder,'Data','brain.bval');
22+
roi_nii = fullfile(test_data_folder,'Data','brain_mask_gray_matter.nii.gz');

0 commit comments

Comments
 (0)