Masharipov / Non-selective-inhibition

Scripts used in "Non-selective response inhibition during an equal probability Go/NoGo task: Bayesian analysis of fMRI data". UPDATE: please see BayInf toolbox: https://github.com/Masharipov/Bayesian_inference
GNU General Public License v3.0
0 stars 0 forks source link

Improve compliance of Bayesian_inference.m with Linux #1

Open MMangnus opened 2 years ago

MMangnus commented 2 years ago

The use of the backslash in lines 75, 83 and 94 in the Bayesian_inference.m script doesn't work well when using a Linux environment, since the default file separator there is a forward slash. In this case, the saved files end up in the folder above the one specified in path, interfering with later analyses with the SPM.mat file.

If these lines could be written as [path filesep 'restOfTheFilename'], I think this would improve compliance with other operating systems.

Masharipov commented 2 years ago

Thanks for the improvement suggestion! I have updated the Bayesian_inference.m function. You may also be interested in BayInf toolbox: https://github.com/Masharipov/Bayesian_inference In the BayInf toolbox all scripts use [path filesep 'restOfTheFilename'] lines. Reference paper: https://doi.org/10.3389/fninf.2021.738342