Menu

Unrecognized function or variable 'cfg_dep'

Help
2021-03-20
2021-03-22
  • Maria Ploumitsakou

    Hello,

    I am trying to make a script that will loop over participants and import and trim their data. I have made the correspondent batch and it works fine. However, when I try to run the script that loops over participants, I get the error:

    Unrecognized function or variable 'cfg_dep'.
    
    Error in import_trim_batch_job (line 32)
            matlabbatch{2}.pspm{1}.prep{1}.trim.datafile(1) = cfg_dep('Import: Output File',
            substruct('.','val', '{}',{1}, '.','val', '{}',{1}, '.','val', '{}',{1}),
            substruct('()',{':'}));
    

    To make my script I followed the template found on the PsPM Manual version 5.0.0 (page 120).

    I am wondering how the dependency can work properly on the batch but not when trying to run it through the script.

    UPDATE: I found out that the problem was being caused by PsPM - SPM interference, even though I have removed SPM from my path. I removed the folder SPM from PsPM folder 'ext' and then the problem is solved. Do you suggest any better solution? Can removing the SPM folder from PsPM cause other issues?

    Thank you!

     

    Last edit: Maria Ploumitsakou 2021-03-20
  • Dominik Bach

    Dominik Bach - 2021-03-22

    Hi Maria
    thanks for reaching out. Could you kindly share your full script, either on Github (https://github.com/bachlab/PsPM) or via email?
    This sourceforge page is not serviced regularly any longer.
    Best wishes
    Dominik

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.