Skip to content
Permalink
Browse files

fixed zero dummyfile delete check

  • Loading branch information...
Mike Jones
Mike Jones committed May 28, 2019
1 parent 6de823a commit a1be166e53e31c29125da51e5a50274ff99a2215
Showing with 1 addition and 2 deletions.
  1. +1 −2 aa_toolbox/aa_export_toBIDS.m
@@ -241,8 +241,7 @@ function aa_export_toBIDS(varargin)
aas_makedir(aap,fullfile(subjpath,'func'));
dest = fullfile(subjpath,'func',sprintf('%s_task-%s_bold.nii',suboutname,valueValidate(taskname)));
if isRun, dest = strrep(dest,'bold.nii',sprintf('run-%d_bold.nii',runNo)); end
copyfile(src,dest); gzip(dest); delete(dest); if exist('src_dummy','file'), delete(src_dummy); clear src_dummy; end

copyfile(src,dest); gzip(dest); delete(dest); if (exist('src_dummy','var') && ~isempty(src_dummy)), delete(src); clear src_dummy; end
% header
loaded = load(fhdr); hdr = loaded.DICOMHEADERS{1};
if isempty(fieldnames(hdr))

0 comments on commit a1be166

Please sign in to comment.
You can’t perform that action at this time.