[Neuroimaging] util.Function probs after update
mwaskom at nyu.edu
Fri Sep 8 13:57:53 EDT 2017
The docstring for the class is correct. You can pass a callable object to
the Function class constructor and it will internally get converted to a
string before the interface input trait is set. As far as I remember, when
the interface was written it was necessary to use strings (and not callable
objects) as the actual trait values. I do not know whether that changed at
some point ... perhaps it would help if you showed the code that used to
work and now fails.
On Thu, Sep 7, 2017 at 8:49 AM, Jörg Stadler <jstadler at lin-magdeburg.de>
> my script was running with nipype 0.13.-dev and I thought it is a good
> idea to update to the lasted dev version ;)
> I got stocked with an error from util.Function.
> After spending some time reading the docs I realized the change from
> inputs.function = function
> inputs.function_str = function definition as a string
> This drives my crazy.
> Is there an easy way to have the old behavior or do I have to go the
> long way?
> BTW: The docstring of util.wrappers.Function is outdated:
> function : callable
> callable python object. must be able to execute in an
> isolated namespace (possibly in concert with the ``imports``
> is now
> function_str: ....
> Neuroimaging mailing list
> Neuroimaging at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Neuroimaging