Skip to content
Permalink
master
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
function BIDS = check_BIOMAX(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 23.1.2018
cd(BIDS.input.dir)
is_verified = dir('*VERIFIED*');
is_modified = dir('*MODIFIED*');
if is_verified.name | is_modified.name
fprintf('\nfound biomax_out file\n');
else
error('\nERROR. \nthe data have not been checked for consistency yet!\n\n');
end
if is_verified.name
BIDS.input.biomax = is_verified.name;
else
BIDS.input.biomax = is_modified.name;
end