Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

matlab_cmd for spm12 standalone #307

Open
isadenghien opened this issue Jul 11, 2018 · 0 comments
Open

matlab_cmd for spm12 standalone #307

isadenghien opened this issue Jul 11, 2018 · 0 comments

Comments

@isadenghien
Copy link

Hi,

I'm just updating files for a small example using pypreprocess and localizer data.
I wish to use spm standalone version. So it works by using spm8, but it failed
with spm12. In fact, pypreprocess failed without message error and no ouputs
are generated. But the matlab files are generated correctly
and I can launch them into a console.
If I take a look at into the report.rst of a node, I can see that pypreprocess uses
"matlab_cmd : /i2bm/local/bin/spm12 run script" in order to launch the script.
If I use this command in to a terminal, I've got this message:

/i2bm/local/bin/spm12 run script pyscript_slicetiming.m
Warning: "Run" is deprecated: use "Batch".

In spm_standalone at 20
SPM12, version 7219 (standalone)
MATLAB, version 7.10.0.499 (R2010a)


/ )( _ ( / )
_
\ )
/ ) ( Statistical Parametric Mapping
(
/(_) (_//_) SPM12 - http://www.fil.ion.ucl.ac.uk/spm/

Warning: Unknown extension: 'script'

In spm_jobman>load_jobs at 345
In spm_jobman at 143
In spm_standalone at 101
Warning: No batch job found in 'script'
In spm_jobman>load_jobs at 354
In spm_jobman at 143
In spm_standalone at 101
Execution failed: script
Bye for now...

Error using ==> spm_jobman at 246
No valid job.
Error in spm_jobman (line 246)
Error in spm_standalone (line 101)

But by using /i2bm/local/bin/spm12 run pyscript_slicetiming.m , it works.

After some tests, I changed how pypreprocess configure "matlab_cmd : /i2bm/local/bin/spm12 run script",
into configure_spm.py by removing "script" and all works fine.

So I didn't find another way to do that. So my question: Is there another way to change this calling ?
I tought to change that by using nipype configuration, but it seems to me that pypreprocess
will overwrite this configuration. Or I tried to add an option into the ini file, but it
doesn't work either.

Isa

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

No branches or pull requests

1 participant