Skip to content

Commit

Permalink
update run_DCE.yml, maybe fix .fig->.png, rename test files
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaca05 committed Apr 29, 2024
1 parent b5aeac9 commit 957fdb4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_DCE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Run T1 mapping
uses: matlab-actions/run-command@v2
with:
command: addpath .; addpath dce/; addpath external_programs/; addpath external_programs/niftitools/; addpath parametric_scripts/; addpath parametric_scripts/custom_scripts/; T1mapping_fit('test_data/BIDS_test/rawdata/sub-01/ses-01/anat/', 'test_data/BIDS_test/derivatives/sub-01/ses-01/anat/', 'sub-01_ses-01_space-DCEref_desc-bfczunified_VFA.nii.gz')
command: addpath .; addpath dce/; addpath external_programs/; addpath external_programs/niftitools/; addpath parametric_scripts/; addpath parametric_scripts/custom_scripts/; T1mapping_fit('test_data/BIDS_test/rawdata/sub-01/ses-01/anat/', 'test_data/BIDS_test/derivatives/sub-01/ses-01/anat/', 'sub-01_ses-01_space-DCEref_desc-bfczunified_VFA.nii')

- name: Run DCE
uses: matlab-actions/run-command@v2
Expand All @@ -48,7 +48,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Ktrans_result
path: test_data/BIDS_test/derivatives/sub-01/ses-01/dce_patlak_fit_Ktrans.nii
path: test_data/BIDS_test/derivatives/sub-01/ses-01/dce/dce_patlak_fit_Ktrans.nii
retention-days: 7
if-no-files-found: error

4 changes: 2 additions & 2 deletions run_dce_cli.m
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ function run_dce_cli(subject_source_path, subject_tp_path)
end
% fig to png
cd(subject_tp_path);
fig = openfig(strcat(subject_tp_path,'dce/dceAIF_fitting.fig'));
fig = openfig('dce/dceAIF_fitting.fig');
filename = 'dce/dceAIF_fitting.png';
saveas(fig, filename);

fig = openfig(strcat(subject_tp_path,'dce/dce_timecurves.fig'));
fig = openfig('dce/dce_timecurves.fig');
filename = 'dce/dce_timecurves.png';
saveas(fig, filename);

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 957fdb4

Please sign in to comment.