~ubuntu-branches/debian/sid/python-biopython/sid

« back to all changes in this revision

Viewing changes to Bio/KDTree/KDTreemodule.c

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2014-06-08 10:25:35 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20140608102535-ebgnhcpcrum3i3w8
Tags: 1.64+dfsg-1
* New upstream version
* Build-Depends raxml only on those architectures where it is available
  Closes: #750845

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include <Python.h>
 
2
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
2
3
#include <numpy/arrayobject.h>
3
4
#include "KDTree.h"
4
5
 
553
554
                return Py_None;
554
555
        }
555
556
 
556
 
        array=(PyArrayObject *) PyArray_SimpleNew(1, &length, PyArray_LONG);
 
557
        array=(PyArrayObject *) PyArray_SimpleNew(1, &length, NPY_LONG);
557
558
        if (!array)
558
559
        {
559
560
                PyErr_SetString(PyExc_MemoryError,
583
584
                return Py_None;
584
585
        }
585
586
 
586
 
        array=(PyArrayObject *) PyArray_SimpleNew(1, &length, PyArray_FLOAT);
 
587
        array=(PyArrayObject *) PyArray_SimpleNew(1, &length, NPY_FLOAT32);
587
588
        if (!array)
588
589
        {
589
590
                PyErr_SetString(PyExc_MemoryError,