Skip to content

Commit

Permalink
If index and acqp are in a different location, make a copy to the CAT…
Browse files Browse the repository at this point in the history
…O output dir independently from each other
  • Loading branch information
tombresser committed Feb 27, 2024
1 parent 0965ff5 commit 9c4c99b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ function structural_preprocessing(configParams)
'synb0File was set. acqpFile should have at least one echotime of zero (4th column).');
end

% if outputDir does not contain acqpFile and indexFile
% copy them to outputDir to keep track of the used files
% Store copy of acqpFile and indexFile in outputDir
if ~strcmp(configParams.general.outputDir, fileparts(acqpFile))
copyfile(acqpFile, fullfile(configParams.general.outputDir, 'acqp.txt'));
end
if ~strcmp(configParams.general.outputDir, fileparts(indexFile))
copyfile(indexFile, fullfile(configParams.general.outputDir, 'index.txt'));
end

Expand Down

0 comments on commit 9c4c99b

Please sign in to comment.