@@ -258,10 +258,12 @@ delaunay(PyObject *self, PyObject *args)
258
258
npy_intp npoints;
259
259
const double * x;
260
260
const double * y;
261
+ int verbose = 0 ;
261
262
262
- if (!PyArg_ParseTuple (args, " O&O&" ,
263
+ if (!PyArg_ParseTuple (args, " O&O&i:delaunay " ,
263
264
&xarray.converter_contiguous , &xarray,
264
- &yarray.converter_contiguous , &yarray)) {
265
+ &yarray.converter_contiguous , &yarray,
266
+ &verbose)) {
265
267
return NULL ;
266
268
}
267
269
@@ -288,7 +290,7 @@ delaunay(PyObject *self, PyObject *args)
288
290
}
289
291
290
292
CALL_CPP (" qhull.delaunay" ,
291
- (ret = delaunay_impl (npoints, x, y, Py_VerboseFlag == 0 )));
293
+ (ret = delaunay_impl (npoints, x, y, verbose == 0 )));
292
294
293
295
return ret;
294
296
}
@@ -302,7 +304,7 @@ version(PyObject *self, PyObject *arg)
302
304
303
305
static PyMethodDef qhull_methods[] = {
304
306
{" delaunay" , delaunay, METH_VARARGS,
305
- " delaunay(x, y, /)\n "
307
+ " delaunay(x, y, verbose, /)\n "
306
308
" --\n\n "
307
309
" Compute a Delaunay triangulation.\n "
308
310
" \n "
@@ -311,6 +313,8 @@ static PyMethodDef qhull_methods[] = {
311
313
" x, y : 1d arrays\n "
312
314
" The coordinates of the point set, which must consist of at least\n "
313
315
" three unique points.\n "
316
+ " verbose : int\n "
317
+ " Python's verbosity level.\n "
314
318
" \n "
315
319
" Returns\n "
316
320
" -------\n "
0 commit comments