Cython guidelines

Stéfan van der Walt stefan at sun.ac.za
Wed May 29 20:37:37 EDT 2013


On May 30, 2013 1:26 AM, "Josh Warner" <silvertrumpet999 at gmail.com> wrote:
>
> +1 for both of these. Should we add them to `CONTRIBUTING.txt`?

Sure, go ahead please.

> I got over-exuberant and memoryviewed everything, including the output
array, which created problems. Unless I missed something, to return NumPy
arrays we still need the `cnp.ndarray(...)` syntax for output(s).

Yes, you need to wrap the output in an np.asarray statement to convert a
memoryview to an ndarray.

Stéfan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130530/f96c848e/attachment.html>


More information about the scikit-image mailing list