Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

problem with create_sots arguments BIDS/free #16

Open
MaurizioSicorello opened this issue Jul 29, 2024 · 0 comments
Open

problem with create_sots arguments BIDS/free #16

MaurizioSicorello opened this issue Jul 29, 2024 · 0 comments

Comments

@MaurizioSicorello
Copy link

I couldn't get the create_sots function to run when using the input argument "free". When using the "BIDS" input argument, I ran into error code #15. It worked well when removing the following code chunk:

        filename = [subject,write_ses,LogID,'.log'];
        logfile = dir([logdir,filesep,filename]); 
        % if isempty(logfile)
        %     filename = [prefix,filename];
        %     logfile = dir([logdir,filesep,filename]);
        % else
        %     out{dum,:} = 'Logfile not found.\nWarning #15\nContinue with next session.\n';
        %     return
        % end

Maybe I don't understand something important, but in my case this code chunk first successfully correctly creates the objects "filename" and "logfile", then tests if they were successfully created, and returns an error message if they were successfully created , skipping to the next subject.

My data structure:
In my logfiles folder, each participant has a subfolder, containing only one logfile. The folders are called e.g. 1234 for the first subject, without the "sub-" prefix.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant