wrapping a matlab command

20 views
Skip to first unread message

basile

unread,
Nov 21, 2011, 4:27:23 AM11/21/11
to nipy...@googlegroups.com
Hi,

I have been trying to wrap a matlab command following the provided example:
http://www.mit.edu/~satra/nipype-nightly/devel/matlab_interface_devel.html

but there seems to be a problem with the line:
return result.runtime
runtime not being available.

Is this example not up-to-date? :
Is the following code more appropriated?

mlab = MatlabCommand(script=script, mfile=True)
result = mlab.run()
return result.runtime

Regards.

basile

Chris Filo Gorgolewski

unread,
Nov 21, 2011, 10:57:34 AM11/21/11
to nipy...@googlegroups.com
This should work... Could you try to run this snippet?

https://gist.github.com/1383038

basile

unread,
Nov 22, 2011, 6:13:48 AM11/22/11
to nipy...@googlegroups.com
Yes, it is running, I modified my interfaces accordingly and everything is working perfectly.
Should I report this kind of doc issues on the bugtracker? or patch it?

Chris Filo Gorgolewski

unread,
Nov 22, 2011, 6:17:10 AM11/22/11
to nipy...@googlegroups.com

Sending a patch or a pull request on github would be great, but if you don't have time to do this please file a bug report on github.

Best,
Chris

Reply all
Reply to author
Forward
0 new messages