John Hunter wrote: > On Tue, Oct 14, 2008 at 2:58 PM, Eric Firing <[EMAIL PROTECTED]> wrote: >> mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions,PyArray_INT); >> >> in nxutils.cpp would become >> >> mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions, NPY_BOOL); >> >> Can anyone think of anything this would break, or any disadvantages? > > This looks better to me too - -I suggest testing it with the lasso > demo which was the example that motivated this code. > > JDH
It worked, so I went ahead and committed the change. I had to change one other line, and while in the neighborhood I replaced the other old-form PyArray_* with NPY_*. Eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users