Skip to content
Permalink
02f25a58e6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (23 sloc) 647 Bytes
function BIDS = OPTIMA_check_BIOMAX_4(BIDS)
%
% check for existing biomax file
%
% this function checks if a file biomax.out exists in the
% current subject's folder
%
% file history:
% created M. Czisch 13.11.2019
cd(BIDS.input.dir)
% two versions are possible
is_verified = dir('*VERIFIED*');
is_modified = dir('*MODIFIED*');
if ~isempty(is_verified) || ~isempty(is_modified)
fprintf('\nfound biomax_out file\n');
else
error('\nERROR. \nthe data have not been checked for consistency yet!\n\n');
end
if ~isempty(is_verified)
BIDS.input.biomax = is_verified.name;
else
BIDS.input.biomax = is_modified.name;
end