[SciPy-User] Using special functions with keyword arguments

Pauli Virtanen pav at iki.fi
Thu Mar 10 05:21:22 EST 2016


Mon, 07 Mar 2016 17:00:57 -0800, Lutz Maibaum kirjoitti:
[clip]
> Is it still possible to call sph_harm (and presumably other special
> functions) with keyword arguments? 

Ufuncs in general don't support keyword arguments, so no.

> The reason I am trying to do this is
> that I would like to wrap sph_harm in a functools.partial object that
> takes only a single argument, and that I can then pass to
> multiprocessing.Pool.map.

You can probably still achieve that in some way.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list