From 9c4c99b1589d07939d51cb7b7d69142b54bb89b3 Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 27 Feb 2024 11:58:32 +0100 Subject: [PATCH] If index and acqp are in a different location, make a copy to the CATO output dir independently from each other --- .../Preprocessing/structural_preprocessing.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structural_pipeline/Preprocessing/structural_preprocessing.m b/src/structural_pipeline/Preprocessing/structural_preprocessing.m index a25670f..7267f5f 100644 --- a/src/structural_pipeline/Preprocessing/structural_preprocessing.m +++ b/src/structural_pipeline/Preprocessing/structural_preprocessing.m @@ -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