|
@@ -1,4 +1,4 @@
|
|
|
-/* Generated by Cython 0.20.1post0 (Debian 0.20.1+git90-g0e6e38e-1ubuntu2) on Wed May 6 17:33:04 2015 */
|
|
|
+/* Generated by Cython 0.22 */
|
|
|
|
|
|
#define PY_SSIZE_T_CLEAN
|
|
|
#ifndef CYTHON_USE_PYLONG_INTERNALS
|
|
@@ -16,11 +16,11 @@
|
|
|
#include "Python.h"
|
|
|
#ifndef Py_PYTHON_H
|
|
|
#error Python headers needed to compile C extensions, please install development version of Python.
|
|
|
-#elif PY_VERSION_HEX < 0x02040000
|
|
|
- #error Cython requires Python 2.4+.
|
|
|
+#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
|
|
|
+ #error Cython requires Python 2.6+ or Python 3.2+.
|
|
|
#else
|
|
|
-#define CYTHON_ABI "0_20_1post0"
|
|
|
-#include <stddef.h> /* For offsetof */
|
|
|
+#define CYTHON_ABI "0_22"
|
|
|
+#include <stddef.h>
|
|
|
#ifndef offsetof
|
|
|
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
|
|
|
#endif
|
|
@@ -54,65 +54,11 @@
|
|
|
#define CYTHON_COMPILING_IN_PYPY 0
|
|
|
#define CYTHON_COMPILING_IN_CPYTHON 1
|
|
|
#endif
|
|
|
-#if CYTHON_COMPILING_IN_PYPY
|
|
|
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
|
|
|
#define Py_OptimizeFlag 0
|
|
|
#endif
|
|
|
-#if PY_VERSION_HEX < 0x02050000
|
|
|
- typedef int Py_ssize_t;
|
|
|
- #define PY_SSIZE_T_MAX INT_MAX
|
|
|
- #define PY_SSIZE_T_MIN INT_MIN
|
|
|
- #define PY_FORMAT_SIZE_T ""
|
|
|
- #define CYTHON_FORMAT_SSIZE_T ""
|
|
|
- #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
|
|
|
- #define PyInt_AsSsize_t(o) __Pyx_PyInt_As_int(o)
|
|
|
- #define PyNumber_Index(o) ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
|
|
|
- (PyErr_Format(PyExc_TypeError, \
|
|
|
- "expected index value, got %.200s", Py_TYPE(o)->tp_name), \
|
|
|
- (PyObject*)0))
|
|
|
- #define __Pyx_PyIndex_Check(o) (PyNumber_Check(o) && !PyFloat_Check(o) && \
|
|
|
- !PyComplex_Check(o))
|
|
|
- #define PyIndex_Check __Pyx_PyIndex_Check
|
|
|
- #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
|
|
|
- #define __PYX_BUILD_PY_SSIZE_T "i"
|
|
|
-#else
|
|
|
- #define __PYX_BUILD_PY_SSIZE_T "n"
|
|
|
- #define CYTHON_FORMAT_SSIZE_T "z"
|
|
|
- #define __Pyx_PyIndex_Check PyIndex_Check
|
|
|
-#endif
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
- #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
|
|
|
- #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
|
|
|
- #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
|
|
|
- #define PyVarObject_HEAD_INIT(type, size) \
|
|
|
- PyObject_HEAD_INIT(type) size,
|
|
|
- #define PyType_Modified(t)
|
|
|
- typedef struct {
|
|
|
- void *buf;
|
|
|
- PyObject *obj;
|
|
|
- Py_ssize_t len;
|
|
|
- Py_ssize_t itemsize;
|
|
|
- int readonly;
|
|
|
- int ndim;
|
|
|
- char *format;
|
|
|
- Py_ssize_t *shape;
|
|
|
- Py_ssize_t *strides;
|
|
|
- Py_ssize_t *suboffsets;
|
|
|
- void *internal;
|
|
|
- } Py_buffer;
|
|
|
- #define PyBUF_SIMPLE 0
|
|
|
- #define PyBUF_WRITABLE 0x0001
|
|
|
- #define PyBUF_FORMAT 0x0004
|
|
|
- #define PyBUF_ND 0x0008
|
|
|
- #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
|
|
|
- #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
|
|
|
- #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
|
|
|
- #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
|
|
|
- #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
|
|
|
- #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE)
|
|
|
- #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE)
|
|
|
- typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
|
|
|
- typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
|
|
|
-#endif
|
|
|
+#define __PYX_BUILD_PY_SSIZE_T "n"
|
|
|
+#define CYTHON_FORMAT_SSIZE_T "z"
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
|
|
|
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
|
|
@@ -124,22 +70,11 @@
|
|
|
PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
|
|
|
#define __Pyx_DefaultClassType PyType_Type
|
|
|
#endif
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
- #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict")
|
|
|
-#endif
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
#define Py_TPFLAGS_CHECKTYPES 0
|
|
|
#define Py_TPFLAGS_HAVE_INDEX 0
|
|
|
-#endif
|
|
|
-#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
|
|
|
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
|
|
|
#endif
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
- #define Py_TPFLAGS_HAVE_VERSION_TAG 0
|
|
|
-#endif
|
|
|
-#if PY_VERSION_HEX < 0x02060000 && !defined(Py_TPFLAGS_IS_ABSTRACT)
|
|
|
- #define Py_TPFLAGS_IS_ABSTRACT 0
|
|
|
-#endif
|
|
|
#if PY_VERSION_HEX < 0x030400a1 && !defined(Py_TPFLAGS_HAVE_FINALIZE)
|
|
|
#define Py_TPFLAGS_HAVE_FINALIZE 0
|
|
|
#endif
|
|
@@ -164,12 +99,14 @@
|
|
|
#if CYTHON_COMPILING_IN_PYPY
|
|
|
#define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
|
|
|
#define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
|
|
|
+ #define __Pyx_PyFrozenSet_Size(s) PyObject_Size(s)
|
|
|
#else
|
|
|
#define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
|
|
|
#define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ? \
|
|
|
PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
|
|
|
+ #define __Pyx_PyFrozenSet_Size(s) PySet_Size(s)
|
|
|
#endif
|
|
|
-#define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
|
|
|
+#define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
|
|
|
#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
#define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
|
|
@@ -183,36 +120,13 @@
|
|
|
#define PyString_Check PyUnicode_Check
|
|
|
#define PyString_CheckExact PyUnicode_CheckExact
|
|
|
#endif
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
- #define PyBytesObject PyStringObject
|
|
|
- #define PyBytes_Type PyString_Type
|
|
|
- #define PyBytes_Check PyString_Check
|
|
|
- #define PyBytes_CheckExact PyString_CheckExact
|
|
|
- #define PyBytes_FromString PyString_FromString
|
|
|
- #define PyBytes_FromStringAndSize PyString_FromStringAndSize
|
|
|
- #define PyBytes_FromFormat PyString_FromFormat
|
|
|
- #define PyBytes_DecodeEscape PyString_DecodeEscape
|
|
|
- #define PyBytes_AsString PyString_AsString
|
|
|
- #define PyBytes_AsStringAndSize PyString_AsStringAndSize
|
|
|
- #define PyBytes_Size PyString_Size
|
|
|
- #define PyBytes_AS_STRING PyString_AS_STRING
|
|
|
- #define PyBytes_GET_SIZE PyString_GET_SIZE
|
|
|
- #define PyBytes_Repr PyString_Repr
|
|
|
- #define PyBytes_Concat PyString_Concat
|
|
|
- #define PyBytes_ConcatAndDel PyString_ConcatAndDel
|
|
|
-#endif
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
|
|
|
#define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
|
|
|
#else
|
|
|
- #define __Pyx_PyBaseString_Check(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj) || \
|
|
|
- PyString_Check(obj) || PyUnicode_Check(obj))
|
|
|
+ #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
|
|
|
#define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
|
|
|
#endif
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
- #define PySet_Check(obj) PyObject_TypeCheck(obj, &PySet_Type)
|
|
|
- #define PyFrozenSet_Check(obj) PyObject_TypeCheck(obj, &PyFrozenSet_Type)
|
|
|
-#endif
|
|
|
#ifndef PySet_CheckExact
|
|
|
#define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
|
|
|
#endif
|
|
@@ -237,6 +151,11 @@
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
#define PyBoolObject PyLongObject
|
|
|
#endif
|
|
|
+#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
|
|
|
+ #ifndef PyUnicode_InternFromString
|
|
|
+ #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
|
|
|
+ #endif
|
|
|
+#endif
|
|
|
#if PY_VERSION_HEX < 0x030200A4
|
|
|
typedef long Py_hash_t;
|
|
|
#define __Pyx_PyInt_FromHash_t PyInt_FromLong
|
|
@@ -245,42 +164,10 @@
|
|
|
#define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
|
|
|
#define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
|
|
|
#endif
|
|
|
-#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
|
|
|
- #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
|
|
|
- #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
|
|
|
- #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
|
|
|
-#else
|
|
|
- #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
|
|
|
- (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
|
|
|
- (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
|
|
|
- (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
|
|
|
- #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
|
|
|
- (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
|
|
|
- (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
|
|
|
- (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
|
|
|
- #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
|
|
|
- (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
|
|
|
- (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
|
|
|
- (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
|
|
|
-#endif
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
- #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
|
|
|
-#endif
|
|
|
-#if PY_VERSION_HEX < 0x02050000
|
|
|
- #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
|
|
|
- #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
|
|
|
- #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n)))
|
|
|
+ #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
|
|
|
#else
|
|
|
- #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n))
|
|
|
- #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
|
|
|
- #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
|
|
|
-#endif
|
|
|
-#if PY_VERSION_HEX < 0x02050000
|
|
|
- #define __Pyx_NAMESTR(n) ((char *)(n))
|
|
|
- #define __Pyx_DOCSTR(n) ((char *)(n))
|
|
|
-#else
|
|
|
- #define __Pyx_NAMESTR(n) (n)
|
|
|
- #define __Pyx_DOCSTR(n) (n)
|
|
|
+ #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
|
|
|
#endif
|
|
|
#ifndef CYTHON_INLINE
|
|
|
#if defined(__GNUC__)
|
|
@@ -316,11 +203,22 @@ static CYTHON_INLINE float __PYX_NAN() {
|
|
|
return value;
|
|
|
}
|
|
|
#endif
|
|
|
+#define __Pyx_void_to_None(void_result) (void_result, Py_INCREF(Py_None), Py_None)
|
|
|
#ifdef __cplusplus
|
|
|
template<typename T>
|
|
|
void __Pyx_call_destructor(T* x) {
|
|
|
x->~T();
|
|
|
}
|
|
|
+template<typename T>
|
|
|
+class __Pyx_FakeReference {
|
|
|
+ public:
|
|
|
+ __Pyx_FakeReference() : ptr(NULL) { }
|
|
|
+ __Pyx_FakeReference(T& ref) : ptr(&ref) { }
|
|
|
+ T *operator->() { return ptr; }
|
|
|
+ operator T&() { return *ptr; }
|
|
|
+ private:
|
|
|
+ T *ptr;
|
|
|
+};
|
|
|
#endif
|
|
|
|
|
|
|
|
@@ -379,7 +277,7 @@ void __Pyx_call_destructor(T* x) {
|
|
|
# endif
|
|
|
#endif
|
|
|
typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
|
|
|
- const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
|
|
|
+ const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
|
|
|
|
|
|
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
|
|
|
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
|
|
@@ -412,17 +310,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
|
|
|
#endif
|
|
|
#define __Pyx_PyObject_AsSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
|
|
|
#define __Pyx_PyObject_AsUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
|
|
|
-#define __Pyx_PyObject_FromUString(s) __Pyx_PyObject_FromString((const char*)s)
|
|
|
-#define __Pyx_PyBytes_FromUString(s) __Pyx_PyBytes_FromString((const char*)s)
|
|
|
-#define __Pyx_PyByteArray_FromUString(s) __Pyx_PyByteArray_FromString((const char*)s)
|
|
|
-#define __Pyx_PyStr_FromUString(s) __Pyx_PyStr_FromString((const char*)s)
|
|
|
-#define __Pyx_PyUnicode_FromUString(s) __Pyx_PyUnicode_FromString((const char*)s)
|
|
|
+#define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
|
|
|
+#define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
|
|
|
+#define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
|
|
|
+#define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
|
|
|
+#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
|
|
|
{
|
|
|
const Py_UNICODE *u_end = u;
|
|
|
while (*u_end++) ;
|
|
|
- return u_end - u - 1;
|
|
|
+ return (size_t)(u_end - u - 1);
|
|
|
}
|
|
|
#else
|
|
|
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
|
|
@@ -445,18 +343,21 @@ static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
|
|
|
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
|
|
|
static int __Pyx_sys_getdefaultencoding_not_ascii;
|
|
|
static int __Pyx_init_sys_getdefaultencoding_params(void) {
|
|
|
- PyObject* sys = NULL;
|
|
|
+ PyObject* sys;
|
|
|
PyObject* default_encoding = NULL;
|
|
|
PyObject* ascii_chars_u = NULL;
|
|
|
PyObject* ascii_chars_b = NULL;
|
|
|
+ const char* default_encoding_c;
|
|
|
sys = PyImport_ImportModule("sys");
|
|
|
- if (sys == NULL) goto bad;
|
|
|
- default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
|
|
|
- if (default_encoding == NULL) goto bad;
|
|
|
- if (strcmp(PyBytes_AsString(default_encoding), "ascii") == 0) {
|
|
|
+ if (!sys) goto bad;
|
|
|
+ default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
|
|
|
+ Py_DECREF(sys);
|
|
|
+ if (!default_encoding) goto bad;
|
|
|
+ default_encoding_c = PyBytes_AsString(default_encoding);
|
|
|
+ if (!default_encoding_c) goto bad;
|
|
|
+ if (strcmp(default_encoding_c, "ascii") == 0) {
|
|
|
__Pyx_sys_getdefaultencoding_not_ascii = 0;
|
|
|
} else {
|
|
|
- const char* default_encoding_c = PyBytes_AS_STRING(default_encoding);
|
|
|
char ascii_chars[128];
|
|
|
int c;
|
|
|
for (c = 0; c < 128; c++) {
|
|
@@ -464,23 +365,21 @@ static int __Pyx_init_sys_getdefaultencoding_params(void) {
|
|
|
}
|
|
|
__Pyx_sys_getdefaultencoding_not_ascii = 1;
|
|
|
ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
|
|
|
- if (ascii_chars_u == NULL) goto bad;
|
|
|
+ if (!ascii_chars_u) goto bad;
|
|
|
ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
|
|
|
- if (ascii_chars_b == NULL || strncmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
|
|
|
+ if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
|
|
|
PyErr_Format(
|
|
|
PyExc_ValueError,
|
|
|
"This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
|
|
|
default_encoding_c);
|
|
|
goto bad;
|
|
|
}
|
|
|
+ Py_DECREF(ascii_chars_u);
|
|
|
+ Py_DECREF(ascii_chars_b);
|
|
|
}
|
|
|
- Py_XDECREF(sys);
|
|
|
- Py_XDECREF(default_encoding);
|
|
|
- Py_XDECREF(ascii_chars_u);
|
|
|
- Py_XDECREF(ascii_chars_b);
|
|
|
+ Py_DECREF(default_encoding);
|
|
|
return 0;
|
|
|
bad:
|
|
|
- Py_XDECREF(sys);
|
|
|
Py_XDECREF(default_encoding);
|
|
|
Py_XDECREF(ascii_chars_u);
|
|
|
Py_XDECREF(ascii_chars_b);
|
|
@@ -494,21 +393,22 @@ bad:
|
|
|
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
|
|
|
static char* __PYX_DEFAULT_STRING_ENCODING;
|
|
|
static int __Pyx_init_sys_getdefaultencoding_params(void) {
|
|
|
- PyObject* sys = NULL;
|
|
|
+ PyObject* sys;
|
|
|
PyObject* default_encoding = NULL;
|
|
|
char* default_encoding_c;
|
|
|
sys = PyImport_ImportModule("sys");
|
|
|
- if (sys == NULL) goto bad;
|
|
|
+ if (!sys) goto bad;
|
|
|
default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
|
|
|
- if (default_encoding == NULL) goto bad;
|
|
|
- default_encoding_c = PyBytes_AS_STRING(default_encoding);
|
|
|
+ Py_DECREF(sys);
|
|
|
+ if (!default_encoding) goto bad;
|
|
|
+ default_encoding_c = PyBytes_AsString(default_encoding);
|
|
|
+ if (!default_encoding_c) goto bad;
|
|
|
__PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
|
|
|
+ if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
|
|
|
strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
|
|
|
- Py_DECREF(sys);
|
|
|
Py_DECREF(default_encoding);
|
|
|
return 0;
|
|
|
bad:
|
|
|
- Py_XDECREF(sys);
|
|
|
Py_XDECREF(default_encoding);
|
|
|
return -1;
|
|
|
}
|
|
@@ -561,19 +461,18 @@ static const char *__pyx_f[] = {
|
|
|
"scattnlay.pyx",
|
|
|
"__init__.pxd",
|
|
|
"stringsource",
|
|
|
- "stringsource",
|
|
|
"type.pxd",
|
|
|
};
|
|
|
#define IS_UNSIGNED(type) (((type) -1) > 0)
|
|
|
struct __Pyx_StructField_;
|
|
|
#define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
|
|
|
typedef struct {
|
|
|
- const char* name; /* for error messages only */
|
|
|
+ const char* name;
|
|
|
struct __Pyx_StructField_* fields;
|
|
|
- size_t size; /* sizeof(type) */
|
|
|
- size_t arraysize[8]; /* length of array in each dimension */
|
|
|
+ size_t size;
|
|
|
+ size_t arraysize[8];
|
|
|
int ndim;
|
|
|
- char typegroup; /* _R_eal, _C_omplex, Signed _I_nt, _U_nsigned int, _S_truct, _P_ointer, _O_bject, c_H_ar */
|
|
|
+ char typegroup;
|
|
|
char is_unsigned;
|
|
|
int flags;
|
|
|
} __Pyx_TypeInfo;
|
|
@@ -600,7 +499,7 @@ typedef struct {
|
|
|
} __Pyx_BufFmt_Context;
|
|
|
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":723
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":726
|
|
|
* # in Cython to enable them only on the right systems.
|
|
|
*
|
|
|
* ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
|
|
@@ -609,7 +508,7 @@ typedef struct {
|
|
|
*/
|
|
|
typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":724
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":727
|
|
|
*
|
|
|
* ctypedef npy_int8 int8_t
|
|
|
* ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
|
|
@@ -618,7 +517,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t;
|
|
|
*/
|
|
|
typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":725
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":728
|
|
|
* ctypedef npy_int8 int8_t
|
|
|
* ctypedef npy_int16 int16_t
|
|
|
* ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
|
|
@@ -627,7 +526,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t;
|
|
|
*/
|
|
|
typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":726
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":729
|
|
|
* ctypedef npy_int16 int16_t
|
|
|
* ctypedef npy_int32 int32_t
|
|
|
* ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
|
|
@@ -636,7 +535,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t;
|
|
|
*/
|
|
|
typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":730
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":733
|
|
|
* #ctypedef npy_int128 int128_t
|
|
|
*
|
|
|
* ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
|
|
@@ -645,7 +544,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t;
|
|
|
*/
|
|
|
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":731
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":734
|
|
|
*
|
|
|
* ctypedef npy_uint8 uint8_t
|
|
|
* ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
|
|
@@ -654,7 +553,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t;
|
|
|
*/
|
|
|
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":732
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":735
|
|
|
* ctypedef npy_uint8 uint8_t
|
|
|
* ctypedef npy_uint16 uint16_t
|
|
|
* ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
|
|
@@ -663,7 +562,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t;
|
|
|
*/
|
|
|
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":733
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":736
|
|
|
* ctypedef npy_uint16 uint16_t
|
|
|
* ctypedef npy_uint32 uint32_t
|
|
|
* ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
|
|
@@ -672,7 +571,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t;
|
|
|
*/
|
|
|
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":737
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":740
|
|
|
* #ctypedef npy_uint128 uint128_t
|
|
|
*
|
|
|
* ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
|
|
@@ -681,7 +580,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t;
|
|
|
*/
|
|
|
typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":738
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":741
|
|
|
*
|
|
|
* ctypedef npy_float32 float32_t
|
|
|
* ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
|
|
@@ -690,7 +589,7 @@ typedef npy_float32 __pyx_t_5numpy_float32_t;
|
|
|
*/
|
|
|
typedef npy_float64 __pyx_t_5numpy_float64_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":747
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":750
|
|
|
* # The int types are mapped a bit surprising --
|
|
|
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
|
* ctypedef npy_long int_t # <<<<<<<<<<<<<<
|
|
@@ -699,7 +598,7 @@ typedef npy_float64 __pyx_t_5numpy_float64_t;
|
|
|
*/
|
|
|
typedef npy_long __pyx_t_5numpy_int_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":748
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":751
|
|
|
* # numpy.int corresponds to 'l' and numpy.long to 'q'
|
|
|
* ctypedef npy_long int_t
|
|
|
* ctypedef npy_longlong long_t # <<<<<<<<<<<<<<
|
|
@@ -708,7 +607,7 @@ typedef npy_long __pyx_t_5numpy_int_t;
|
|
|
*/
|
|
|
typedef npy_longlong __pyx_t_5numpy_long_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":749
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":752
|
|
|
* ctypedef npy_long int_t
|
|
|
* ctypedef npy_longlong long_t
|
|
|
* ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
|
|
@@ -717,7 +616,7 @@ typedef npy_longlong __pyx_t_5numpy_long_t;
|
|
|
*/
|
|
|
typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":751
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":754
|
|
|
* ctypedef npy_longlong longlong_t
|
|
|
*
|
|
|
* ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
|
|
@@ -726,7 +625,7 @@ typedef npy_longlong __pyx_t_5numpy_longlong_t;
|
|
|
*/
|
|
|
typedef npy_ulong __pyx_t_5numpy_uint_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":752
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":755
|
|
|
*
|
|
|
* ctypedef npy_ulong uint_t
|
|
|
* ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<<
|
|
@@ -735,7 +634,7 @@ typedef npy_ulong __pyx_t_5numpy_uint_t;
|
|
|
*/
|
|
|
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":753
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":756
|
|
|
* ctypedef npy_ulong uint_t
|
|
|
* ctypedef npy_ulonglong ulong_t
|
|
|
* ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
|
|
@@ -744,7 +643,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
|
|
|
*/
|
|
|
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":755
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":758
|
|
|
* ctypedef npy_ulonglong ulonglong_t
|
|
|
*
|
|
|
* ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
|
|
@@ -753,7 +652,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
|
|
|
*/
|
|
|
typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":756
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":759
|
|
|
*
|
|
|
* ctypedef npy_intp intp_t
|
|
|
* ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
|
|
@@ -762,7 +661,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t;
|
|
|
*/
|
|
|
typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":758
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":761
|
|
|
* ctypedef npy_uintp uintp_t
|
|
|
*
|
|
|
* ctypedef npy_double float_t # <<<<<<<<<<<<<<
|
|
@@ -771,7 +670,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t;
|
|
|
*/
|
|
|
typedef npy_double __pyx_t_5numpy_float_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":759
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":762
|
|
|
*
|
|
|
* ctypedef npy_double float_t
|
|
|
* ctypedef npy_double double_t # <<<<<<<<<<<<<<
|
|
@@ -780,7 +679,7 @@ typedef npy_double __pyx_t_5numpy_float_t;
|
|
|
*/
|
|
|
typedef npy_double __pyx_t_5numpy_double_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":760
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":763
|
|
|
* ctypedef npy_double float_t
|
|
|
* ctypedef npy_double double_t
|
|
|
* ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
|
|
@@ -811,7 +710,7 @@ typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
|
|
|
|
|
|
/*--- Type declarations ---*/
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":762
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":765
|
|
|
* ctypedef npy_longdouble longdouble_t
|
|
|
*
|
|
|
* ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
|
|
@@ -820,7 +719,7 @@ typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
|
|
|
*/
|
|
|
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":763
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":766
|
|
|
*
|
|
|
* ctypedef npy_cfloat cfloat_t
|
|
|
* ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
|
|
@@ -829,7 +728,7 @@ typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
|
|
|
*/
|
|
|
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":764
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":767
|
|
|
* ctypedef npy_cfloat cfloat_t
|
|
|
* ctypedef npy_cdouble cdouble_t
|
|
|
* ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
|
|
@@ -838,7 +737,7 @@ typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
|
|
|
*/
|
|
|
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":766
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":769
|
|
|
* ctypedef npy_clongdouble clongdouble_t
|
|
|
*
|
|
|
* ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
|
|
@@ -846,6 +745,8 @@ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
|
|
|
* cdef inline object PyArray_MultiIterNew1(a):
|
|
|
*/
|
|
|
typedef npy_cdouble __pyx_t_5numpy_complex_t;
|
|
|
+
|
|
|
+/* --- Runtime support code (head) --- */
|
|
|
#ifndef CYTHON_REFNANNY
|
|
|
#define CYTHON_REFNANNY 0
|
|
|
#endif
|
|
@@ -859,7 +760,7 @@ typedef npy_cdouble __pyx_t_5numpy_complex_t;
|
|
|
void (*FinishContext)(void**);
|
|
|
} __Pyx_RefNannyAPIStruct;
|
|
|
static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
|
|
|
- static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/
|
|
|
+ static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
|
|
|
#define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
|
|
|
#ifdef WITH_THREAD
|
|
|
#define __Pyx_RefNannySetupContext(name, acquire_gil) \
|
|
@@ -896,7 +797,7 @@ typedef npy_cdouble __pyx_t_5numpy_complex_t;
|
|
|
#define __Pyx_XDECREF(r) Py_XDECREF(r)
|
|
|
#define __Pyx_XGOTREF(r)
|
|
|
#define __Pyx_XGIVEREF(r)
|
|
|
-#endif /* CYTHON_REFNANNY */
|
|
|
+#endif
|
|
|
#define __Pyx_XDECREF_SET(r, v) do { \
|
|
|
PyObject *tmp = (PyObject *) r; \
|
|
|
r = v; __Pyx_XDECREF(tmp); \
|
|
@@ -923,42 +824,42 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject
|
|
|
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
|
|
|
#endif
|
|
|
|
|
|
-static PyObject *__Pyx_GetBuiltinName(PyObject *name); /*proto*/
|
|
|
+static PyObject *__Pyx_GetBuiltinName(PyObject *name);
|
|
|
|
|
|
-static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /*proto*/
|
|
|
+static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);
|
|
|
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
-static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); /*proto*/
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
|
|
|
#else
|
|
|
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
|
|
|
#endif
|
|
|
|
|
|
-static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
|
|
|
+static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);
|
|
|
|
|
|
-static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
|
|
|
-static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
|
|
|
+static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb);
|
|
|
+static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb);
|
|
|
|
|
|
static void __Pyx_WriteUnraisable(const char *name, int clineno,
|
|
|
int lineno, const char *filename,
|
|
|
- int full_traceback); /*proto*/
|
|
|
+ int full_traceback);
|
|
|
|
|
|
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
|
|
|
- Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
|
|
|
+ Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
|
|
|
|
|
|
-static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /*proto*/
|
|
|
+static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
|
|
|
|
|
|
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], \
|
|
|
PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, \
|
|
|
- const char* function_name); /*proto*/
|
|
|
+ const char* function_name);
|
|
|
|
|
|
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
|
|
|
- const char *name, int exact); /*proto*/
|
|
|
+ const char *name, int exact);
|
|
|
|
|
|
static CYTHON_INLINE int __Pyx_GetBufferAndValidate(Py_buffer* buf, PyObject* obj,
|
|
|
__Pyx_TypeInfo* dtype, int flags, int nd, int cast, __Pyx_BufFmt_StackElem* stack);
|
|
|
static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info);
|
|
|
|
|
|
-static void __Pyx_RaiseBufferFallbackError(void); /*proto*/
|
|
|
+static void __Pyx_RaiseBufferFallbackError(void);
|
|
|
|
|
|
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
|
|
|
(__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
|
|
@@ -981,7 +882,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j
|
|
|
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
|
|
|
int is_list, int wraparound, int boundscheck);
|
|
|
|
|
|
-static void __Pyx_RaiseBufferIndexError(int axis); /*proto*/
|
|
|
+static void __Pyx_RaiseBufferIndexError(int axis);
|
|
|
|
|
|
#define __Pyx_BufPtrStrided1d(type, buf, i0, s0) (type)((char*)buf + i0 * s0)
|
|
|
#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
|
|
@@ -993,7 +894,39 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyOb
|
|
|
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
|
|
|
int is_list, int wraparound, int boundscheck);
|
|
|
|
|
|
-static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/
|
|
|
+#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
|
|
|
+#endif
|
|
|
+
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
|
|
|
+
|
|
|
+#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
|
|
|
+#else
|
|
|
+#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
|
|
|
+#endif
|
|
|
+
|
|
|
+static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
|
|
|
+
|
|
|
+#if PY_MAJOR_VERSION >= 3
|
|
|
+static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
|
|
|
+ PyObject *value;
|
|
|
+ value = PyDict_GetItemWithError(d, key);
|
|
|
+ if (unlikely(!value)) {
|
|
|
+ if (!PyErr_Occurred()) {
|
|
|
+ PyObject* args = PyTuple_Pack(1, key);
|
|
|
+ if (likely(args))
|
|
|
+ PyErr_SetObject(PyExc_KeyError, args);
|
|
|
+ Py_XDECREF(args);
|
|
|
+ }
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+ Py_INCREF(value);
|
|
|
+ return value;
|
|
|
+}
|
|
|
+#else
|
|
|
+ #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
|
|
|
+#endif
|
|
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
|
|
|
|
|
@@ -1002,6 +935,23 @@ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
|
|
|
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);
|
|
|
|
|
|
typedef struct {
|
|
|
+ int code_line;
|
|
|
+ PyCodeObject* code_object;
|
|
|
+} __Pyx_CodeObjectCacheEntry;
|
|
|
+struct __Pyx_CodeObjectCache {
|
|
|
+ int count;
|
|
|
+ int max_count;
|
|
|
+ __Pyx_CodeObjectCacheEntry* entries;
|
|
|
+};
|
|
|
+static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
|
|
|
+static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
|
|
|
+static PyCodeObject *__pyx_find_code_object(int code_line);
|
|
|
+static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
|
|
|
+
|
|
|
+static void __Pyx_AddTraceback(const char *funcname, int c_line,
|
|
|
+ int py_line, const char *filename);
|
|
|
+
|
|
|
+typedef struct {
|
|
|
Py_ssize_t shape, strides, suboffsets;
|
|
|
} __Pyx_Buf_DimInfo;
|
|
|
typedef struct {
|
|
@@ -1026,7 +976,7 @@ typedef struct {
|
|
|
static Py_ssize_t __Pyx_zeros[] = {0, 0, 0, 0, 0, 0, 0, 0};
|
|
|
static Py_ssize_t __Pyx_minusones[] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
|
-static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /*proto*/
|
|
|
+static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
|
|
|
|
|
|
static CYTHON_INLINE npy_long __Pyx_PyInt_As_npy_long(PyObject *);
|
|
|
|
|
@@ -1152,28 +1102,11 @@ static int __Pyx_check_binary_version(void);
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
-static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
|
|
|
+static PyObject *__Pyx_ImportModule(const char *name);
|
|
|
|
|
|
-static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict); /*proto*/
|
|
|
+static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);
|
|
|
|
|
|
-typedef struct {
|
|
|
- int code_line;
|
|
|
- PyCodeObject* code_object;
|
|
|
-} __Pyx_CodeObjectCacheEntry;
|
|
|
-struct __Pyx_CodeObjectCache {
|
|
|
- int count;
|
|
|
- int max_count;
|
|
|
- __Pyx_CodeObjectCacheEntry* entries;
|
|
|
-};
|
|
|
-static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
|
|
|
-static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
|
|
|
-static PyCodeObject *__pyx_find_code_object(int code_line);
|
|
|
-static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
|
|
|
-
|
|
|
-static void __Pyx_AddTraceback(const char *funcname, int c_line,
|
|
|
- int py_line, const char *filename); /*proto*/
|
|
|
-
|
|
|
-static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
|
|
|
+static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
|
|
|
|
|
|
|
|
|
/* Module declarations from 'cpython.buffer' */
|
|
@@ -1207,8 +1140,8 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, cha
|
|
|
|
|
|
/* Module declarations from 'scattnlay' */
|
|
|
static CYTHON_INLINE double *__pyx_f_9scattnlay_npy2c(PyArrayObject *); /*proto*/
|
|
|
-static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *); /*proto*/
|
|
|
-static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_double_complex(PyObject *); /*proto*/
|
|
|
+static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *); /*proto*/
|
|
|
+static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_double_complex(PyObject *); /*proto*/
|
|
|
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_float64_t = { "float64_t", NULL, sizeof(__pyx_t_5numpy_float64_t), { 0 }, 0, 'R', 0, 0 };
|
|
|
static __Pyx_TypeInfo __Pyx_TypeInfo___pyx_t_double_complex = { "double complex", NULL, sizeof(__pyx_t_double_complex), { 0 }, 0, 'C', 0, 0 };
|
|
|
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int_t = { "int_t", NULL, sizeof(__pyx_t_5numpy_int_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int_t), 0 };
|
|
@@ -1301,10 +1234,8 @@ static char __pyx_k_complex128[] = "complex128";
|
|
|
static char __pyx_k_scattcoeffs[] = "scattcoeffs";
|
|
|
static char __pyx_k_C_CONTIGUOUS[] = "C_CONTIGUOUS";
|
|
|
static char __pyx_k_RuntimeError[] = "RuntimeError";
|
|
|
-static char __pyx_k_pyx_getbuffer[] = "__pyx_getbuffer";
|
|
|
-static char __pyx_k_pyx_releasebuffer[] = "__pyx_releasebuffer";
|
|
|
static char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous";
|
|
|
-static char __pyx_k_home_ovidio_scattering_scattnla[] = "/home/ovidio/scattering/scattnlay/python-scattnlay-2.0.0/scattnlay.pyx";
|
|
|
+static char __pyx_k_home_tig_KOsty_Documents_Simula[] = "/home/tig/KOsty/Documents/Simulations/Belov/Ovidio/python-scattnlay-dev/scattnlay.pyx";
|
|
|
static char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)";
|
|
|
static char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd";
|
|
|
static char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported";
|
|
@@ -1357,7 +1288,7 @@ static PyObject *__pyx_n_s_fieldnlay;
|
|
|
static PyObject *__pyx_n_s_flags;
|
|
|
static PyObject *__pyx_n_s_float64;
|
|
|
static PyObject *__pyx_n_s_g;
|
|
|
-static PyObject *__pyx_kp_s_home_ovidio_scattering_scattnla;
|
|
|
+static PyObject *__pyx_kp_s_home_tig_KOsty_Documents_Simula;
|
|
|
static PyObject *__pyx_n_s_i;
|
|
|
static PyObject *__pyx_n_s_import;
|
|
|
static PyObject *__pyx_n_s_int;
|
|
@@ -1369,8 +1300,6 @@ static PyObject *__pyx_n_s_nmax;
|
|
|
static PyObject *__pyx_n_s_np;
|
|
|
static PyObject *__pyx_n_s_numpy;
|
|
|
static PyObject *__pyx_n_s_pl;
|
|
|
-static PyObject *__pyx_n_s_pyx_getbuffer;
|
|
|
-static PyObject *__pyx_n_s_pyx_releasebuffer;
|
|
|
static PyObject *__pyx_n_s_range;
|
|
|
static PyObject *__pyx_n_s_scattcoeffs;
|
|
|
static PyObject *__pyx_n_s_scattnlay;
|
|
@@ -1565,7 +1494,7 @@ static CYTHON_INLINE double *__pyx_f_9scattnlay_npy2c(PyArrayObject *__pyx_v_a)
|
|
|
|
|
|
/* Python wrapper */
|
|
|
static PyObject *__pyx_pw_9scattnlay_1scattcoeffs(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
-static PyMethodDef __pyx_mdef_9scattnlay_1scattcoeffs = {__Pyx_NAMESTR("scattcoeffs"), (PyCFunction)__pyx_pw_9scattnlay_1scattcoeffs, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
|
+static PyMethodDef __pyx_mdef_9scattnlay_1scattcoeffs = {"scattcoeffs", (PyCFunction)__pyx_pw_9scattnlay_1scattcoeffs, METH_VARARGS|METH_KEYWORDS, 0};
|
|
|
static PyObject *__pyx_pw_9scattnlay_1scattcoeffs(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
PyArrayObject *__pyx_v_x = 0;
|
|
|
PyArrayObject *__pyx_v_m = 0;
|
|
@@ -1702,8 +1631,8 @@ static PyObject *__pyx_pf_9scattnlay_scattcoeffs(CYTHON_UNUSED PyObject *__pyx_s
|
|
|
PyArrayObject *__pyx_t_16 = NULL;
|
|
|
PyArrayObject *__pyx_t_17 = NULL;
|
|
|
PyArrayObject *__pyx_t_18 = NULL;
|
|
|
- std::vector<double> __pyx_t_19;
|
|
|
- std::vector<__pyx_t_double_complex> __pyx_t_20;
|
|
|
+ std::vector<double> __pyx_t_19;
|
|
|
+ std::vector<__pyx_t_double_complex> __pyx_t_20;
|
|
|
Py_ssize_t __pyx_t_21;
|
|
|
int __pyx_lineno = 0;
|
|
|
const char *__pyx_filename = NULL;
|
|
@@ -2334,7 +2263,7 @@ static PyObject *__pyx_pf_9scattnlay_scattcoeffs(CYTHON_UNUSED PyObject *__pyx_s
|
|
|
|
|
|
/* Python wrapper */
|
|
|
static PyObject *__pyx_pw_9scattnlay_3scattnlay(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
-static PyMethodDef __pyx_mdef_9scattnlay_3scattnlay = {__Pyx_NAMESTR("scattnlay"), (PyCFunction)__pyx_pw_9scattnlay_3scattnlay, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
|
+static PyMethodDef __pyx_mdef_9scattnlay_3scattnlay = {"scattnlay", (PyCFunction)__pyx_pw_9scattnlay_3scattnlay, METH_VARARGS|METH_KEYWORDS, 0};
|
|
|
static PyObject *__pyx_pw_9scattnlay_3scattnlay(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
PyArrayObject *__pyx_v_x = 0;
|
|
|
PyArrayObject *__pyx_v_m = 0;
|
|
@@ -2516,9 +2445,9 @@ static PyObject *__pyx_pf_9scattnlay_2scattnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
PyArrayObject *__pyx_t_23 = NULL;
|
|
|
PyArrayObject *__pyx_t_24 = NULL;
|
|
|
PyArrayObject *__pyx_t_25 = NULL;
|
|
|
- std::vector<double> __pyx_t_26;
|
|
|
- std::vector<__pyx_t_double_complex> __pyx_t_27;
|
|
|
- std::vector<double> __pyx_t_28;
|
|
|
+ std::vector<double> __pyx_t_26;
|
|
|
+ std::vector<__pyx_t_double_complex> __pyx_t_27;
|
|
|
+ std::vector<double> __pyx_t_28;
|
|
|
Py_ssize_t __pyx_t_29;
|
|
|
Py_ssize_t __pyx_t_30;
|
|
|
Py_ssize_t __pyx_t_31;
|
|
@@ -3643,7 +3572,7 @@ static PyObject *__pyx_pf_9scattnlay_2scattnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
|
|
|
/* Python wrapper */
|
|
|
static PyObject *__pyx_pw_9scattnlay_5fieldnlay(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
-static PyMethodDef __pyx_mdef_9scattnlay_5fieldnlay = {__Pyx_NAMESTR("fieldnlay"), (PyCFunction)__pyx_pw_9scattnlay_5fieldnlay, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
|
+static PyMethodDef __pyx_mdef_9scattnlay_5fieldnlay = {"fieldnlay", (PyCFunction)__pyx_pw_9scattnlay_5fieldnlay, METH_VARARGS|METH_KEYWORDS, 0};
|
|
|
static PyObject *__pyx_pw_9scattnlay_5fieldnlay(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
PyArrayObject *__pyx_v_x = 0;
|
|
|
PyArrayObject *__pyx_v_m = 0;
|
|
@@ -3828,14 +3757,16 @@ static PyObject *__pyx_pf_9scattnlay_4fieldnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
PyArrayObject *__pyx_t_24 = NULL;
|
|
|
PyArrayObject *__pyx_t_25 = NULL;
|
|
|
PyArrayObject *__pyx_t_26 = NULL;
|
|
|
- std::vector<double> __pyx_t_27;
|
|
|
- std::vector<__pyx_t_double_complex> __pyx_t_28;
|
|
|
- std::vector<double> __pyx_t_29;
|
|
|
- std::vector<double> __pyx_t_30;
|
|
|
- std::vector<double> __pyx_t_31;
|
|
|
+ std::vector<double> __pyx_t_27;
|
|
|
+ std::vector<__pyx_t_double_complex> __pyx_t_28;
|
|
|
+ std::vector<double> __pyx_t_29;
|
|
|
+ std::vector<double> __pyx_t_30;
|
|
|
+ std::vector<double> __pyx_t_31;
|
|
|
Py_ssize_t __pyx_t_32;
|
|
|
PyObject *__pyx_t_33 = NULL;
|
|
|
PyObject *__pyx_t_34 = NULL;
|
|
|
+ PyObject *__pyx_t_35 = NULL;
|
|
|
+ PyObject *__pyx_t_36 = NULL;
|
|
|
int __pyx_lineno = 0;
|
|
|
const char *__pyx_filename = NULL;
|
|
|
int __pyx_clineno = 0;
|
|
@@ -4842,99 +4773,131 @@ static PyObject *__pyx_pf_9scattnlay_4fieldnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
* H[i] = np.vstack((Hrx.copy('C') + 1.0j*Hix.copy('C'), Hry.copy('C') + 1.0j*Hiy.copy('C'), Hrz.copy('C') + 1.0j*Hiz.copy('C'))).transpose()
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_vstack); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_1);
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Erx), __pyx_n_s_copy); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Eix), __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyNumber_Multiply(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_vstack); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Erx), __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Ery), __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Eiy), __pyx_n_s_copy); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __pyx_t_33 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_33 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Eix), __pyx_n_s_copy); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_33);
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = PyNumber_Multiply(__pyx_t_2, __pyx_t_33); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
+ __pyx_t_34 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_34);
|
|
|
__Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = PyNumber_Add(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_33 = PyNumber_Multiply(__pyx_t_3, __pyx_t_34); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_33);
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Erz), __pyx_n_s_copy); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_3);
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Eiz), __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_34 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_34);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyNumber_Multiply(__pyx_t_5, __pyx_t_34); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
__Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0;
|
|
|
- __pyx_t_34 = PyNumber_Add(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_34 = PyNumber_Add(__pyx_t_4, __pyx_t_33); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_34);
|
|
|
+ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
+ __pyx_t_33 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Ery), __pyx_n_s_copy); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_4);
|
|
|
+ __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
+ __pyx_t_33 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Eiy), __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __pyx_t_35 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_35);
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
|
|
|
- __Pyx_GIVEREF(__pyx_t_4);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_33);
|
|
|
- __Pyx_GIVEREF(__pyx_t_33);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_34);
|
|
|
+ __pyx_t_3 = PyNumber_Multiply(__pyx_t_33, __pyx_t_35); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_35); __pyx_t_35 = 0;
|
|
|
+ __pyx_t_35 = PyNumber_Add(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_35);
|
|
|
+ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Erz), __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_4);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __pyx_t_3 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __pyx_t_33 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Eiz), __pyx_n_s_copy); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ __pyx_t_36 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
+ __pyx_t_33 = PyNumber_Multiply(__pyx_t_3, __pyx_t_36); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = PyNumber_Add(__pyx_t_4, __pyx_t_33); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
+ __pyx_t_33 = PyTuple_New(3); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_34);
|
|
|
__Pyx_GIVEREF(__pyx_t_34);
|
|
|
- __pyx_t_4 = 0;
|
|
|
- __pyx_t_33 = 0;
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_33, 1, __pyx_t_35);
|
|
|
+ __Pyx_GIVEREF(__pyx_t_35);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_33, 2, __pyx_t_36);
|
|
|
+ __Pyx_GIVEREF(__pyx_t_36);
|
|
|
__pyx_t_34 = 0;
|
|
|
- __pyx_t_34 = PyTuple_New(1); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_34);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_34, 0, __pyx_t_2);
|
|
|
- __Pyx_GIVEREF(__pyx_t_2);
|
|
|
- __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_34, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0;
|
|
|
- __pyx_t_34 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_transpose); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_34);
|
|
|
+ __pyx_t_35 = 0;
|
|
|
+ __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = NULL;
|
|
|
+ if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) {
|
|
|
+ __pyx_t_36 = PyMethod_GET_SELF(__pyx_t_2);
|
|
|
+ if (likely(__pyx_t_36)) {
|
|
|
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
|
|
|
+ __Pyx_INCREF(__pyx_t_36);
|
|
|
+ __Pyx_INCREF(function);
|
|
|
+ __Pyx_DECREF_SET(__pyx_t_2, function);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!__pyx_t_36) {
|
|
|
+ __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_33); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
+ __Pyx_GOTREF(__pyx_t_1);
|
|
|
+ } else {
|
|
|
+ __pyx_t_35 = PyTuple_New(1+1); if (unlikely(!__pyx_t_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_35);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_35, 0, __pyx_t_36); __Pyx_GIVEREF(__pyx_t_36); __pyx_t_36 = NULL;
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_35, 0+1, __pyx_t_33);
|
|
|
+ __Pyx_GIVEREF(__pyx_t_33);
|
|
|
+ __pyx_t_33 = 0;
|
|
|
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_35, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_1);
|
|
|
+ __Pyx_DECREF(__pyx_t_35); __pyx_t_35 = 0;
|
|
|
+ }
|
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_34, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_transpose); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
|
- __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0;
|
|
|
- if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_E), __pyx_v_i, __pyx_t_2, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ __pyx_t_1 = NULL;
|
|
|
+ if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
|
|
|
+ __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
|
|
|
+ if (likely(__pyx_t_1)) {
|
|
|
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
|
|
|
+ __Pyx_INCREF(__pyx_t_1);
|
|
|
+ __Pyx_INCREF(function);
|
|
|
+ __Pyx_DECREF_SET(__pyx_t_2, function);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (__pyx_t_1) {
|
|
|
+ __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ } else {
|
|
|
+ __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ }
|
|
|
+ __Pyx_GOTREF(__pyx_t_5);
|
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
+ if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_E), __pyx_v_i, __pyx_t_5, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
|
|
|
/* "scattnlay.pyx":147
|
|
|
*
|
|
@@ -4943,99 +4906,131 @@ static PyObject *__pyx_pf_9scattnlay_4fieldnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
*
|
|
|
* return terms, E, H
|
|
|
*/
|
|
|
- __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_34 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_vstack); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_34);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hrx), __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_33 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hix), __pyx_n_s_copy); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_35 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_vstack); if (unlikely(!__pyx_t_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_35);
|
|
|
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hrx), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_1);
|
|
|
+ __pyx_t_33 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_33);
|
|
|
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ __pyx_t_1 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_1);
|
|
|
+ __pyx_t_36 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hix), __pyx_n_s_copy); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __pyx_t_34 = __Pyx_PyObject_Call(__pyx_t_36, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_34);
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = PyNumber_Multiply(__pyx_t_1, __pyx_t_34); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0;
|
|
|
+ __pyx_t_34 = PyNumber_Add(__pyx_t_33, __pyx_t_36); if (unlikely(!__pyx_t_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_34);
|
|
|
__Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = PyNumber_Multiply(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hry), __pyx_n_s_copy); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __pyx_t_33 = __Pyx_PyObject_Call(__pyx_t_36, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_33);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_t_33); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hiy), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_1);
|
|
|
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hry), __pyx_n_s_copy); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = PyNumber_Multiply(__pyx_t_36, __pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
+ __pyx_t_4 = PyNumber_Add(__pyx_t_33, __pyx_t_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_4);
|
|
|
__Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hiy), __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_3);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyNumber_Multiply(__pyx_t_33, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_3);
|
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hrz), __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hrz), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __pyx_t_2 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_2);
|
|
|
- __pyx_t_33 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hiz), __pyx_n_s_copy); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_33 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_33);
|
|
|
- __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_33, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = PyNumber_Multiply(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_33); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ __pyx_t_1 = PyComplex_FromDoubles(0.0, 1.0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_1);
|
|
|
+ __pyx_t_36 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_Hiz), __pyx_n_s_copy); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_36, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = PyNumber_Multiply(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __pyx_t_3 = PyNumber_Add(__pyx_t_33, __pyx_t_36); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
__Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = PyTuple_New(3); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_33, 0, __pyx_t_4);
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __pyx_t_36 = PyTuple_New(3); if (unlikely(!__pyx_t_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_36);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_36, 0, __pyx_t_34);
|
|
|
+ __Pyx_GIVEREF(__pyx_t_34);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_36, 1, __pyx_t_4);
|
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_33, 1, __pyx_t_3);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_36, 2, __pyx_t_3);
|
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_33, 2, __pyx_t_5);
|
|
|
- __Pyx_GIVEREF(__pyx_t_5);
|
|
|
+ __pyx_t_34 = 0;
|
|
|
__pyx_t_4 = 0;
|
|
|
__pyx_t_3 = 0;
|
|
|
- __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_5);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_33);
|
|
|
- __Pyx_GIVEREF(__pyx_t_33);
|
|
|
- __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = __Pyx_PyObject_Call(__pyx_t_34, __pyx_t_5, NULL); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
- __Pyx_DECREF(__pyx_t_34); __pyx_t_34 = 0;
|
|
|
- __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_33, __pyx_n_s_transpose); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = NULL;
|
|
|
+ if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_35))) {
|
|
|
+ __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_35);
|
|
|
+ if (likely(__pyx_t_3)) {
|
|
|
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_35);
|
|
|
+ __Pyx_INCREF(__pyx_t_3);
|
|
|
+ __Pyx_INCREF(function);
|
|
|
+ __Pyx_DECREF_SET(__pyx_t_35, function);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!__pyx_t_3) {
|
|
|
+ __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_35, __pyx_t_36); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_36); __pyx_t_36 = 0;
|
|
|
+ __Pyx_GOTREF(__pyx_t_2);
|
|
|
+ } else {
|
|
|
+ __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_4);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = NULL;
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_36);
|
|
|
+ __Pyx_GIVEREF(__pyx_t_36);
|
|
|
+ __pyx_t_36 = 0;
|
|
|
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_35, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_2);
|
|
|
+ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
+ }
|
|
|
+ __Pyx_DECREF(__pyx_t_35); __pyx_t_35 = 0;
|
|
|
+ __pyx_t_35 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_transpose); if (unlikely(!__pyx_t_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_35);
|
|
|
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
+ __pyx_t_2 = NULL;
|
|
|
+ if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_35))) {
|
|
|
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_35);
|
|
|
+ if (likely(__pyx_t_2)) {
|
|
|
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_35);
|
|
|
+ __Pyx_INCREF(__pyx_t_2);
|
|
|
+ __Pyx_INCREF(function);
|
|
|
+ __Pyx_DECREF_SET(__pyx_t_35, function);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (__pyx_t_2) {
|
|
|
+ __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_35, __pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
+ } else {
|
|
|
+ __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_35); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ }
|
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
|
- __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
- __pyx_t_33 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ __Pyx_DECREF(__pyx_t_35); __pyx_t_35 = 0;
|
|
|
+ if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_H), __pyx_v_i, __pyx_t_5, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
|
- if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_H), __pyx_v_i, __pyx_t_33, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_DECREF(__pyx_t_33); __pyx_t_33 = 0;
|
|
|
}
|
|
|
|
|
|
/* "scattnlay.pyx":149
|
|
@@ -5045,19 +5040,19 @@ static PyObject *__pyx_pf_9scattnlay_4fieldnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
*
|
|
|
*/
|
|
|
__Pyx_XDECREF(__pyx_r);
|
|
|
- __pyx_t_33 = PyTuple_New(3); if (unlikely(!__pyx_t_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_33);
|
|
|
+ __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_5);
|
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_terms));
|
|
|
- PyTuple_SET_ITEM(__pyx_t_33, 0, ((PyObject *)__pyx_v_terms));
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_v_terms));
|
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_v_terms));
|
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_E));
|
|
|
- PyTuple_SET_ITEM(__pyx_t_33, 1, ((PyObject *)__pyx_v_E));
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_E));
|
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_v_E));
|
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_H));
|
|
|
- PyTuple_SET_ITEM(__pyx_t_33, 2, ((PyObject *)__pyx_v_H));
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_v_H));
|
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_v_H));
|
|
|
- __pyx_r = __pyx_t_33;
|
|
|
- __pyx_t_33 = 0;
|
|
|
+ __pyx_r = __pyx_t_5;
|
|
|
+ __pyx_t_5 = 0;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
/* "scattnlay.pyx":109
|
|
@@ -5077,6 +5072,8 @@ static PyObject *__pyx_pf_9scattnlay_4fieldnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
|
__Pyx_XDECREF(__pyx_t_33);
|
|
|
__Pyx_XDECREF(__pyx_t_34);
|
|
|
+ __Pyx_XDECREF(__pyx_t_35);
|
|
|
+ __Pyx_XDECREF(__pyx_t_36);
|
|
|
{ PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
|
|
|
__Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);
|
|
|
__Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_E.rcbuffer->pybuffer);
|
|
@@ -5141,7 +5138,7 @@ static PyObject *__pyx_pf_9scattnlay_4fieldnlay(CYTHON_UNUSED PyObject *__pyx_se
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":194
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":197
|
|
|
* # experimental exception made for __getbuffer__ and __releasebuffer__
|
|
|
* # -- the details of this may change.
|
|
|
* def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<<
|
|
@@ -5177,13 +5174,11 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__Pyx_RefNannyDeclarations
|
|
|
int __pyx_t_1;
|
|
|
int __pyx_t_2;
|
|
|
- int __pyx_t_3;
|
|
|
- PyObject *__pyx_t_4 = NULL;
|
|
|
+ PyObject *__pyx_t_3 = NULL;
|
|
|
+ int __pyx_t_4;
|
|
|
int __pyx_t_5;
|
|
|
- int __pyx_t_6;
|
|
|
- int __pyx_t_7;
|
|
|
- PyObject *__pyx_t_8 = NULL;
|
|
|
- char *__pyx_t_9;
|
|
|
+ PyObject *__pyx_t_6 = NULL;
|
|
|
+ char *__pyx_t_7;
|
|
|
int __pyx_lineno = 0;
|
|
|
const char *__pyx_filename = NULL;
|
|
|
int __pyx_clineno = 0;
|
|
@@ -5193,7 +5188,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__Pyx_GIVEREF(__pyx_v_info->obj);
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":200
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":203
|
|
|
* # of flags
|
|
|
*
|
|
|
* if info == NULL: return # <<<<<<<<<<<<<<
|
|
@@ -5206,7 +5201,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
goto __pyx_L0;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":203
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":206
|
|
|
*
|
|
|
* cdef int copy_shape, i, ndim
|
|
|
* cdef int endian_detector = 1 # <<<<<<<<<<<<<<
|
|
@@ -5215,7 +5210,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_endian_detector = 1;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":204
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":207
|
|
|
* cdef int copy_shape, i, ndim
|
|
|
* cdef int endian_detector = 1
|
|
|
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0) # <<<<<<<<<<<<<<
|
|
@@ -5224,7 +5219,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":206
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":209
|
|
|
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
|
|
|
*
|
|
|
* ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<<
|
|
@@ -5233,7 +5228,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_ndim = PyArray_NDIM(__pyx_v_self);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":208
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":211
|
|
|
* ndim = PyArray_NDIM(self)
|
|
|
*
|
|
|
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
|
|
@@ -5243,7 +5238,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":209
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":212
|
|
|
*
|
|
|
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
|
|
|
* copy_shape = 1 # <<<<<<<<<<<<<<
|
|
@@ -5255,7 +5250,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":211
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":214
|
|
|
* copy_shape = 1
|
|
|
* else:
|
|
|
* copy_shape = 0 # <<<<<<<<<<<<<<
|
|
@@ -5266,83 +5261,87 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
}
|
|
|
__pyx_L4:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":213
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":216
|
|
|
* copy_shape = 0
|
|
|
*
|
|
|
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
|
|
|
* raise ValueError(u"ndarray is not C contiguous")
|
|
|
*/
|
|
|
- __pyx_t_1 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
|
|
|
- if (__pyx_t_1) {
|
|
|
+ __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
|
|
|
+ if (__pyx_t_2) {
|
|
|
+ } else {
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ goto __pyx_L6_bool_binop_done;
|
|
|
+ }
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":214
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":217
|
|
|
*
|
|
|
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): # <<<<<<<<<<<<<<
|
|
|
* raise ValueError(u"ndarray is not C contiguous")
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0);
|
|
|
- __pyx_t_3 = __pyx_t_2;
|
|
|
- } else {
|
|
|
- __pyx_t_3 = __pyx_t_1;
|
|
|
- }
|
|
|
- if (__pyx_t_3) {
|
|
|
+ __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0);
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ __pyx_L6_bool_binop_done:;
|
|
|
+ if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":215
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":218
|
|
|
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
|
|
|
* raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
- __Pyx_Raise(__pyx_t_4, 0, 0, 0);
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __Pyx_Raise(__pyx_t_3, 0, 0, 0);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":217
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":220
|
|
|
* raise ValueError(u"ndarray is not C contiguous")
|
|
|
*
|
|
|
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
|
|
|
* raise ValueError(u"ndarray is not Fortran contiguous")
|
|
|
*/
|
|
|
- __pyx_t_3 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
|
|
|
- if (__pyx_t_3) {
|
|
|
+ __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
|
|
|
+ if (__pyx_t_2) {
|
|
|
+ } else {
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ goto __pyx_L9_bool_binop_done;
|
|
|
+ }
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":218
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":221
|
|
|
*
|
|
|
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): # <<<<<<<<<<<<<<
|
|
|
* raise ValueError(u"ndarray is not Fortran contiguous")
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_1 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0);
|
|
|
- __pyx_t_2 = __pyx_t_1;
|
|
|
- } else {
|
|
|
- __pyx_t_2 = __pyx_t_3;
|
|
|
- }
|
|
|
- if (__pyx_t_2) {
|
|
|
+ __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0);
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ __pyx_L9_bool_binop_done:;
|
|
|
+ if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":219
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":222
|
|
|
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
|
|
|
* raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* info.buf = PyArray_DATA(self)
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
- __Pyx_Raise(__pyx_t_4, 0, 0, 0);
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __Pyx_Raise(__pyx_t_3, 0, 0, 0);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":221
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":224
|
|
|
* raise ValueError(u"ndarray is not Fortran contiguous")
|
|
|
*
|
|
|
* info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<<
|
|
@@ -5351,7 +5350,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->buf = PyArray_DATA(__pyx_v_self);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":222
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":225
|
|
|
*
|
|
|
* info.buf = PyArray_DATA(self)
|
|
|
* info.ndim = ndim # <<<<<<<<<<<<<<
|
|
@@ -5360,17 +5359,17 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->ndim = __pyx_v_ndim;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":223
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":226
|
|
|
* info.buf = PyArray_DATA(self)
|
|
|
* info.ndim = ndim
|
|
|
* if copy_shape: # <<<<<<<<<<<<<<
|
|
|
* # Allocate new buffer for strides and shape info.
|
|
|
* # This is allocated as one block, strides first.
|
|
|
*/
|
|
|
- __pyx_t_2 = (__pyx_v_copy_shape != 0);
|
|
|
- if (__pyx_t_2) {
|
|
|
+ __pyx_t_1 = (__pyx_v_copy_shape != 0);
|
|
|
+ if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":226
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":229
|
|
|
* # Allocate new buffer for strides and shape info.
|
|
|
* # This is allocated as one block, strides first.
|
|
|
* info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2) # <<<<<<<<<<<<<<
|
|
@@ -5379,7 +5378,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2)));
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":227
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":230
|
|
|
* # This is allocated as one block, strides first.
|
|
|
* info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
|
|
|
* info.shape = info.strides + ndim # <<<<<<<<<<<<<<
|
|
@@ -5388,18 +5387,18 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":228
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":231
|
|
|
* info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
|
|
|
* info.shape = info.strides + ndim
|
|
|
* for i in range(ndim): # <<<<<<<<<<<<<<
|
|
|
* info.strides[i] = PyArray_STRIDES(self)[i]
|
|
|
* info.shape[i] = PyArray_DIMS(self)[i]
|
|
|
*/
|
|
|
- __pyx_t_5 = __pyx_v_ndim;
|
|
|
- for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
|
|
|
- __pyx_v_i = __pyx_t_6;
|
|
|
+ __pyx_t_4 = __pyx_v_ndim;
|
|
|
+ for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
|
|
|
+ __pyx_v_i = __pyx_t_5;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":229
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":232
|
|
|
* info.shape = info.strides + ndim
|
|
|
* for i in range(ndim):
|
|
|
* info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<<
|
|
@@ -5408,7 +5407,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
(__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":230
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":233
|
|
|
* for i in range(ndim):
|
|
|
* info.strides[i] = PyArray_STRIDES(self)[i]
|
|
|
* info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<<
|
|
@@ -5417,11 +5416,11 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
(__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]);
|
|
|
}
|
|
|
- goto __pyx_L7;
|
|
|
+ goto __pyx_L11;
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":232
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":235
|
|
|
* info.shape[i] = PyArray_DIMS(self)[i]
|
|
|
* else:
|
|
|
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self) # <<<<<<<<<<<<<<
|
|
@@ -5430,7 +5429,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":233
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":236
|
|
|
* else:
|
|
|
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
|
|
|
* info.shape = <Py_ssize_t*>PyArray_DIMS(self) # <<<<<<<<<<<<<<
|
|
@@ -5439,9 +5438,9 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self));
|
|
|
}
|
|
|
- __pyx_L7:;
|
|
|
+ __pyx_L11:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":234
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":237
|
|
|
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
|
|
|
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
|
|
|
* info.suboffsets = NULL # <<<<<<<<<<<<<<
|
|
@@ -5450,7 +5449,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->suboffsets = NULL;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":235
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":238
|
|
|
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
|
|
|
* info.suboffsets = NULL
|
|
|
* info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<<
|
|
@@ -5459,7 +5458,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":236
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":239
|
|
|
* info.suboffsets = NULL
|
|
|
* info.itemsize = PyArray_ITEMSIZE(self)
|
|
|
* info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<<
|
|
@@ -5468,7 +5467,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":239
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":242
|
|
|
*
|
|
|
* cdef int t
|
|
|
* cdef char* f = NULL # <<<<<<<<<<<<<<
|
|
@@ -5477,19 +5476,19 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_f = NULL;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":240
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":243
|
|
|
* cdef int t
|
|
|
* cdef char* f = NULL
|
|
|
* cdef dtype descr = self.descr # <<<<<<<<<<<<<<
|
|
|
* cdef list stack
|
|
|
* cdef int offset
|
|
|
*/
|
|
|
- __pyx_t_4 = ((PyObject *)__pyx_v_self->descr);
|
|
|
- __Pyx_INCREF(__pyx_t_4);
|
|
|
- __pyx_v_descr = ((PyArray_Descr *)__pyx_t_4);
|
|
|
- __pyx_t_4 = 0;
|
|
|
+ __pyx_t_3 = ((PyObject *)__pyx_v_self->descr);
|
|
|
+ __Pyx_INCREF(__pyx_t_3);
|
|
|
+ __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3);
|
|
|
+ __pyx_t_3 = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":244
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":247
|
|
|
* cdef int offset
|
|
|
*
|
|
|
* cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<<
|
|
@@ -5498,7 +5497,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":246
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":249
|
|
|
* cdef bint hasfields = PyDataType_HASFIELDS(descr)
|
|
|
*
|
|
|
* if not hasfields and not copy_shape: # <<<<<<<<<<<<<<
|
|
@@ -5507,14 +5506,16 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0);
|
|
|
if (__pyx_t_2) {
|
|
|
- __pyx_t_3 = ((!(__pyx_v_copy_shape != 0)) != 0);
|
|
|
- __pyx_t_1 = __pyx_t_3;
|
|
|
} else {
|
|
|
__pyx_t_1 = __pyx_t_2;
|
|
|
+ goto __pyx_L15_bool_binop_done;
|
|
|
}
|
|
|
+ __pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0);
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ __pyx_L15_bool_binop_done:;
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":248
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":251
|
|
|
* if not hasfields and not copy_shape:
|
|
|
* # do not call releasebuffer
|
|
|
* info.obj = None # <<<<<<<<<<<<<<
|
|
@@ -5526,11 +5527,11 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__Pyx_GOTREF(__pyx_v_info->obj);
|
|
|
__Pyx_DECREF(__pyx_v_info->obj);
|
|
|
__pyx_v_info->obj = Py_None;
|
|
|
- goto __pyx_L10;
|
|
|
+ goto __pyx_L14;
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":251
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":254
|
|
|
* else:
|
|
|
* # need to call releasebuffer
|
|
|
* info.obj = self # <<<<<<<<<<<<<<
|
|
@@ -5543,9 +5544,9 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__Pyx_DECREF(__pyx_v_info->obj);
|
|
|
__pyx_v_info->obj = ((PyObject *)__pyx_v_self);
|
|
|
}
|
|
|
- __pyx_L10:;
|
|
|
+ __pyx_L14:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":253
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":256
|
|
|
* info.obj = self
|
|
|
*
|
|
|
* if not hasfields: # <<<<<<<<<<<<<<
|
|
@@ -5555,66 +5556,69 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0);
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":254
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":257
|
|
|
*
|
|
|
* if not hasfields:
|
|
|
* t = descr.type_num # <<<<<<<<<<<<<<
|
|
|
* if ((descr.byteorder == c'>' and little_endian) or
|
|
|
* (descr.byteorder == c'<' and not little_endian)):
|
|
|
*/
|
|
|
- __pyx_t_5 = __pyx_v_descr->type_num;
|
|
|
- __pyx_v_t = __pyx_t_5;
|
|
|
+ __pyx_t_4 = __pyx_v_descr->type_num;
|
|
|
+ __pyx_v_t = __pyx_t_4;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":255
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":258
|
|
|
* if not hasfields:
|
|
|
* t = descr.type_num
|
|
|
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
|
|
|
* (descr.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported")
|
|
|
*/
|
|
|
- __pyx_t_1 = ((__pyx_v_descr->byteorder == '>') != 0);
|
|
|
- if (__pyx_t_1) {
|
|
|
- __pyx_t_2 = (__pyx_v_little_endian != 0);
|
|
|
+ __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0);
|
|
|
+ if (!__pyx_t_2) {
|
|
|
+ goto __pyx_L20_next_or;
|
|
|
} else {
|
|
|
- __pyx_t_2 = __pyx_t_1;
|
|
|
}
|
|
|
+ __pyx_t_2 = (__pyx_v_little_endian != 0);
|
|
|
if (!__pyx_t_2) {
|
|
|
+ } else {
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ goto __pyx_L19_bool_binop_done;
|
|
|
+ }
|
|
|
+ __pyx_L20_next_or:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":256
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":259
|
|
|
* t = descr.type_num
|
|
|
* if ((descr.byteorder == c'>' and little_endian) or
|
|
|
* (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<<
|
|
|
* raise ValueError(u"Non-native byte order not supported")
|
|
|
* if t == NPY_BYTE: f = "b"
|
|
|
*/
|
|
|
- __pyx_t_1 = ((__pyx_v_descr->byteorder == '<') != 0);
|
|
|
- if (__pyx_t_1) {
|
|
|
- __pyx_t_3 = ((!(__pyx_v_little_endian != 0)) != 0);
|
|
|
- __pyx_t_7 = __pyx_t_3;
|
|
|
- } else {
|
|
|
- __pyx_t_7 = __pyx_t_1;
|
|
|
- }
|
|
|
- __pyx_t_1 = __pyx_t_7;
|
|
|
+ __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0);
|
|
|
+ if (__pyx_t_2) {
|
|
|
} else {
|
|
|
__pyx_t_1 = __pyx_t_2;
|
|
|
+ goto __pyx_L19_bool_binop_done;
|
|
|
}
|
|
|
+ __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0);
|
|
|
+ __pyx_t_1 = __pyx_t_2;
|
|
|
+ __pyx_L19_bool_binop_done:;
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":257
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":260
|
|
|
* if ((descr.byteorder == c'>' and little_endian) or
|
|
|
* (descr.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
|
|
|
* if t == NPY_BYTE: f = "b"
|
|
|
* elif t == NPY_UBYTE: f = "B"
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
- __Pyx_Raise(__pyx_t_4, 0, 0, 0);
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __Pyx_Raise(__pyx_t_3, 0, 0, 0);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":274
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":277
|
|
|
* elif t == NPY_CDOUBLE: f = "Zd"
|
|
|
* elif t == NPY_CLONGDOUBLE: f = "Zg"
|
|
|
* elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<<
|
|
@@ -5623,7 +5627,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
switch (__pyx_v_t) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":258
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":261
|
|
|
* (descr.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported")
|
|
|
* if t == NPY_BYTE: f = "b" # <<<<<<<<<<<<<<
|
|
@@ -5634,7 +5638,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_b;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":259
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":262
|
|
|
* raise ValueError(u"Non-native byte order not supported")
|
|
|
* if t == NPY_BYTE: f = "b"
|
|
|
* elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<<
|
|
@@ -5645,7 +5649,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_B;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":260
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":263
|
|
|
* if t == NPY_BYTE: f = "b"
|
|
|
* elif t == NPY_UBYTE: f = "B"
|
|
|
* elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<<
|
|
@@ -5656,7 +5660,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_h;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":261
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":264
|
|
|
* elif t == NPY_UBYTE: f = "B"
|
|
|
* elif t == NPY_SHORT: f = "h"
|
|
|
* elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<<
|
|
@@ -5667,7 +5671,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_H;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":262
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":265
|
|
|
* elif t == NPY_SHORT: f = "h"
|
|
|
* elif t == NPY_USHORT: f = "H"
|
|
|
* elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<<
|
|
@@ -5678,7 +5682,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_i;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":263
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":266
|
|
|
* elif t == NPY_USHORT: f = "H"
|
|
|
* elif t == NPY_INT: f = "i"
|
|
|
* elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<<
|
|
@@ -5689,7 +5693,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_I;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":264
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":267
|
|
|
* elif t == NPY_INT: f = "i"
|
|
|
* elif t == NPY_UINT: f = "I"
|
|
|
* elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<<
|
|
@@ -5700,7 +5704,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_l;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":265
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":268
|
|
|
* elif t == NPY_UINT: f = "I"
|
|
|
* elif t == NPY_LONG: f = "l"
|
|
|
* elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<<
|
|
@@ -5711,7 +5715,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_L;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":266
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":269
|
|
|
* elif t == NPY_LONG: f = "l"
|
|
|
* elif t == NPY_ULONG: f = "L"
|
|
|
* elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<<
|
|
@@ -5722,7 +5726,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_q;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":267
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":270
|
|
|
* elif t == NPY_ULONG: f = "L"
|
|
|
* elif t == NPY_LONGLONG: f = "q"
|
|
|
* elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<<
|
|
@@ -5733,7 +5737,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_Q;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":268
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":271
|
|
|
* elif t == NPY_LONGLONG: f = "q"
|
|
|
* elif t == NPY_ULONGLONG: f = "Q"
|
|
|
* elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<<
|
|
@@ -5744,7 +5748,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_f;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":269
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":272
|
|
|
* elif t == NPY_ULONGLONG: f = "Q"
|
|
|
* elif t == NPY_FLOAT: f = "f"
|
|
|
* elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<<
|
|
@@ -5755,7 +5759,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_d;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":270
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":273
|
|
|
* elif t == NPY_FLOAT: f = "f"
|
|
|
* elif t == NPY_DOUBLE: f = "d"
|
|
|
* elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<<
|
|
@@ -5766,7 +5770,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_g;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":271
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":274
|
|
|
* elif t == NPY_DOUBLE: f = "d"
|
|
|
* elif t == NPY_LONGDOUBLE: f = "g"
|
|
|
* elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<<
|
|
@@ -5777,7 +5781,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_Zf;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":272
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":275
|
|
|
* elif t == NPY_LONGDOUBLE: f = "g"
|
|
|
* elif t == NPY_CFLOAT: f = "Zf"
|
|
|
* elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<<
|
|
@@ -5788,7 +5792,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_Zd;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":273
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":276
|
|
|
* elif t == NPY_CFLOAT: f = "Zf"
|
|
|
* elif t == NPY_CDOUBLE: f = "Zd"
|
|
|
* elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<<
|
|
@@ -5799,7 +5803,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_v_f = __pyx_k_Zg;
|
|
|
break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":274
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":277
|
|
|
* elif t == NPY_CDOUBLE: f = "Zd"
|
|
|
* elif t == NPY_CLONGDOUBLE: f = "Zg"
|
|
|
* elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<<
|
|
@@ -5811,33 +5815,33 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
break;
|
|
|
default:
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":276
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":279
|
|
|
* elif t == NPY_OBJECT: f = "O"
|
|
|
* else:
|
|
|
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<<
|
|
|
* info.format = f
|
|
|
* return
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_8);
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_4);
|
|
|
- PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8);
|
|
|
- __Pyx_GIVEREF(__pyx_t_8);
|
|
|
- __pyx_t_8 = 0;
|
|
|
- __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __Pyx_GOTREF(__pyx_t_8);
|
|
|
- __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __Pyx_Raise(__pyx_t_8, 0, 0, 0);
|
|
|
- __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_6);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_3);
|
|
|
+ PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
|
|
|
+ __Pyx_GIVEREF(__pyx_t_6);
|
|
|
+ __pyx_t_6 = 0;
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_GOTREF(__pyx_t_6);
|
|
|
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
+ __Pyx_Raise(__pyx_t_6, 0, 0, 0);
|
|
|
+ __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":277
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":280
|
|
|
* else:
|
|
|
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
|
|
|
* info.format = f # <<<<<<<<<<<<<<
|
|
@@ -5846,7 +5850,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->format = __pyx_v_f;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":278
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":281
|
|
|
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
|
|
|
* info.format = f
|
|
|
* return # <<<<<<<<<<<<<<
|
|
@@ -5858,7 +5862,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":280
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":283
|
|
|
* return
|
|
|
* else:
|
|
|
* info.format = <char*>stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<<
|
|
@@ -5867,7 +5871,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_info->format = ((char *)malloc(255));
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":281
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":284
|
|
|
* else:
|
|
|
* info.format = <char*>stdlib.malloc(_buffer_format_string_len)
|
|
|
* info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<<
|
|
@@ -5876,7 +5880,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
(__pyx_v_info->format[0]) = '^';
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":282
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":285
|
|
|
* info.format = <char*>stdlib.malloc(_buffer_format_string_len)
|
|
|
* info.format[0] = c'^' # Native data types, manual alignment
|
|
|
* offset = 0 # <<<<<<<<<<<<<<
|
|
@@ -5885,17 +5889,17 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
*/
|
|
|
__pyx_v_offset = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":283
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":286
|
|
|
* info.format[0] = c'^' # Native data types, manual alignment
|
|
|
* offset = 0
|
|
|
* f = _util_dtypestring(descr, info.format + 1, # <<<<<<<<<<<<<<
|
|
|
* info.format + _buffer_format_string_len,
|
|
|
* &offset)
|
|
|
*/
|
|
|
- __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 255), (&__pyx_v_offset)); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_v_f = __pyx_t_9;
|
|
|
+ __pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 255), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_v_f = __pyx_t_7;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":286
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":289
|
|
|
* info.format + _buffer_format_string_len,
|
|
|
* &offset)
|
|
|
* f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<<
|
|
@@ -5905,7 +5909,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
(__pyx_v_f[0]) = '\x00';
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":194
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":197
|
|
|
* # experimental exception made for __getbuffer__ and __releasebuffer__
|
|
|
* # -- the details of this may change.
|
|
|
* def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<<
|
|
@@ -5917,8 +5921,8 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
__pyx_r = 0;
|
|
|
goto __pyx_L0;
|
|
|
__pyx_L1_error:;
|
|
|
- __Pyx_XDECREF(__pyx_t_4);
|
|
|
- __Pyx_XDECREF(__pyx_t_8);
|
|
|
+ __Pyx_XDECREF(__pyx_t_3);
|
|
|
+ __Pyx_XDECREF(__pyx_t_6);
|
|
|
__Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
|
__pyx_r = -1;
|
|
|
if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) {
|
|
@@ -5937,7 +5941,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":288
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":291
|
|
|
* f[0] = c'\0' # Terminate format string
|
|
|
*
|
|
|
* def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<<
|
|
@@ -5961,7 +5965,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s
|
|
|
int __pyx_t_1;
|
|
|
__Pyx_RefNannySetupContext("__releasebuffer__", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":289
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":292
|
|
|
*
|
|
|
* def __releasebuffer__(ndarray self, Py_buffer* info):
|
|
|
* if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<<
|
|
@@ -5971,7 +5975,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s
|
|
|
__pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":290
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":293
|
|
|
* def __releasebuffer__(ndarray self, Py_buffer* info):
|
|
|
* if PyArray_HASFIELDS(self):
|
|
|
* stdlib.free(info.format) # <<<<<<<<<<<<<<
|
|
@@ -5983,7 +5987,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s
|
|
|
}
|
|
|
__pyx_L3:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":291
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":294
|
|
|
* if PyArray_HASFIELDS(self):
|
|
|
* stdlib.free(info.format)
|
|
|
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
|
|
@@ -5993,7 +5997,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s
|
|
|
__pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":292
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":295
|
|
|
* stdlib.free(info.format)
|
|
|
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
|
|
|
* stdlib.free(info.strides) # <<<<<<<<<<<<<<
|
|
@@ -6005,7 +6009,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s
|
|
|
}
|
|
|
__pyx_L4:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":288
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":291
|
|
|
* f[0] = c'\0' # Terminate format string
|
|
|
*
|
|
|
* def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<<
|
|
@@ -6017,7 +6021,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s
|
|
|
__Pyx_RefNannyFinishContext();
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":768
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":771
|
|
|
* ctypedef npy_cdouble complex_t
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
@@ -6034,7 +6038,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":769
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":772
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew1(a):
|
|
|
* return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
|
|
@@ -6042,13 +6046,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__
|
|
|
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
|
*/
|
|
|
__Pyx_XDECREF(__pyx_r);
|
|
|
- __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
__pyx_r = __pyx_t_1;
|
|
|
__pyx_t_1 = 0;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":768
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":771
|
|
|
* ctypedef npy_cdouble complex_t
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
|
|
@@ -6067,7 +6071,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":771
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":774
|
|
|
* return PyArray_MultiIterNew(1, <void*>a)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
@@ -6084,7 +6088,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":772
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":775
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew2(a, b):
|
|
|
* return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
|
|
@@ -6092,13 +6096,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__
|
|
|
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
|
*/
|
|
|
__Pyx_XDECREF(__pyx_r);
|
|
|
- __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 775; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
__pyx_r = __pyx_t_1;
|
|
|
__pyx_t_1 = 0;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":771
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":774
|
|
|
* return PyArray_MultiIterNew(1, <void*>a)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
|
|
@@ -6117,7 +6121,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":774
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":777
|
|
|
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
@@ -6134,7 +6138,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":775
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":778
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew3(a, b, c):
|
|
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
|
|
@@ -6142,13 +6146,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
|
*/
|
|
|
__Pyx_XDECREF(__pyx_r);
|
|
|
- __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 775; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
__pyx_r = __pyx_t_1;
|
|
|
__pyx_t_1 = 0;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":774
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":777
|
|
|
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
|
|
@@ -6167,7 +6171,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":777
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":780
|
|
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -6184,7 +6188,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":778
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":781
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
|
|
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
|
|
@@ -6192,13 +6196,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
|
*/
|
|
|
__Pyx_XDECREF(__pyx_r);
|
|
|
- __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
__pyx_r = __pyx_t_1;
|
|
|
__pyx_t_1 = 0;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":777
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":780
|
|
|
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
|
|
@@ -6217,7 +6221,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":780
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":783
|
|
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -6234,7 +6238,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":781
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":784
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
|
|
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
|
|
@@ -6242,13 +6246,13 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
|
|
|
*/
|
|
|
__Pyx_XDECREF(__pyx_r);
|
|
|
- __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
__pyx_r = __pyx_t_1;
|
|
|
__pyx_t_1 = 0;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":780
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":783
|
|
|
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
|
|
|
*
|
|
|
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
|
|
@@ -6267,7 +6271,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":783
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":786
|
|
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
|
*
|
|
|
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<<
|
|
@@ -6292,16 +6296,14 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
int __pyx_t_5;
|
|
|
int __pyx_t_6;
|
|
|
int __pyx_t_7;
|
|
|
- int __pyx_t_8;
|
|
|
- int __pyx_t_9;
|
|
|
- long __pyx_t_10;
|
|
|
- char *__pyx_t_11;
|
|
|
+ long __pyx_t_8;
|
|
|
+ char *__pyx_t_9;
|
|
|
int __pyx_lineno = 0;
|
|
|
const char *__pyx_filename = NULL;
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("_util_dtypestring", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":790
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":793
|
|
|
* cdef int delta_offset
|
|
|
* cdef tuple i
|
|
|
* cdef int endian_detector = 1 # <<<<<<<<<<<<<<
|
|
@@ -6310,7 +6312,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
*/
|
|
|
__pyx_v_endian_detector = 1;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":791
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":794
|
|
|
* cdef tuple i
|
|
|
* cdef int endian_detector = 1
|
|
|
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0) # <<<<<<<<<<<<<<
|
|
@@ -6319,7 +6321,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
*/
|
|
|
__pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":794
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":797
|
|
|
* cdef tuple fields
|
|
|
*
|
|
|
* for childname in descr.names: # <<<<<<<<<<<<<<
|
|
@@ -6328,33 +6330,37 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
*/
|
|
|
if (unlikely(__pyx_v_descr->names == Py_None)) {
|
|
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
__pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
|
|
|
for (;;) {
|
|
|
if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
- __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
#else
|
|
|
- __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
#endif
|
|
|
__Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
|
|
|
__pyx_t_3 = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":795
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":798
|
|
|
*
|
|
|
* for childname in descr.names:
|
|
|
* fields = descr.fields[childname] # <<<<<<<<<<<<<<
|
|
|
* child, new_offset = fields
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_3 = PyObject_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
|
+ if (unlikely(__pyx_v_descr->fields == Py_None)) {
|
|
|
+ PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ }
|
|
|
+ __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
|
|
|
__pyx_t_3 = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":796
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":799
|
|
|
* for childname in descr.names:
|
|
|
* fields = descr.fields[childname]
|
|
|
* child, new_offset = fields # <<<<<<<<<<<<<<
|
|
@@ -6371,7 +6377,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
if (unlikely(size != 2)) {
|
|
|
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
|
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
|
|
@@ -6379,101 +6385,104 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
__Pyx_INCREF(__pyx_t_3);
|
|
|
__Pyx_INCREF(__pyx_t_4);
|
|
|
#else
|
|
|
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
#endif
|
|
|
} else {
|
|
|
- __Pyx_RaiseNoneNotIterableError(); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __Pyx_RaiseNoneNotIterableError(); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
- if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
|
|
|
__pyx_t_3 = 0;
|
|
|
__Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
|
|
|
__pyx_t_4 = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":798
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":801
|
|
|
* child, new_offset = fields
|
|
|
*
|
|
|
* if (end - f) - <int>(new_offset - offset[0]) < 15: # <<<<<<<<<<<<<<
|
|
|
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
__pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0);
|
|
|
if (__pyx_t_6) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":799
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":802
|
|
|
*
|
|
|
* if (end - f) - <int>(new_offset - offset[0]) < 15:
|
|
|
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* if ((child.byteorder == c'>' and little_endian) or
|
|
|
*/
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":801
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":804
|
|
|
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
|
|
|
*
|
|
|
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
|
|
|
* (child.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported")
|
|
|
*/
|
|
|
- __pyx_t_6 = ((__pyx_v_child->byteorder == '>') != 0);
|
|
|
- if (__pyx_t_6) {
|
|
|
- __pyx_t_7 = (__pyx_v_little_endian != 0);
|
|
|
+ __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0);
|
|
|
+ if (!__pyx_t_7) {
|
|
|
+ goto __pyx_L8_next_or;
|
|
|
} else {
|
|
|
- __pyx_t_7 = __pyx_t_6;
|
|
|
}
|
|
|
+ __pyx_t_7 = (__pyx_v_little_endian != 0);
|
|
|
if (!__pyx_t_7) {
|
|
|
+ } else {
|
|
|
+ __pyx_t_6 = __pyx_t_7;
|
|
|
+ goto __pyx_L7_bool_binop_done;
|
|
|
+ }
|
|
|
+ __pyx_L8_next_or:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":802
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":805
|
|
|
*
|
|
|
* if ((child.byteorder == c'>' and little_endian) or
|
|
|
* (child.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<<
|
|
|
* raise ValueError(u"Non-native byte order not supported")
|
|
|
* # One could encode it in the format string and have Cython
|
|
|
*/
|
|
|
- __pyx_t_6 = ((__pyx_v_child->byteorder == '<') != 0);
|
|
|
- if (__pyx_t_6) {
|
|
|
- __pyx_t_8 = ((!(__pyx_v_little_endian != 0)) != 0);
|
|
|
- __pyx_t_9 = __pyx_t_8;
|
|
|
- } else {
|
|
|
- __pyx_t_9 = __pyx_t_6;
|
|
|
- }
|
|
|
- __pyx_t_6 = __pyx_t_9;
|
|
|
+ __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0);
|
|
|
+ if (__pyx_t_7) {
|
|
|
} else {
|
|
|
__pyx_t_6 = __pyx_t_7;
|
|
|
+ goto __pyx_L7_bool_binop_done;
|
|
|
}
|
|
|
+ __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0);
|
|
|
+ __pyx_t_6 = __pyx_t_7;
|
|
|
+ __pyx_L7_bool_binop_done:;
|
|
|
if (__pyx_t_6) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":803
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":806
|
|
|
* if ((child.byteorder == c'>' and little_endian) or
|
|
|
* (child.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
|
|
|
* # One could encode it in the format string and have Cython
|
|
|
* # complain instead, BUT: < and > in format strings also imply
|
|
|
*/
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 806; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 806; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":813
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":816
|
|
|
*
|
|
|
* # Output padding bytes
|
|
|
* while offset[0] < new_offset: # <<<<<<<<<<<<<<
|
|
@@ -6481,15 +6490,15 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
* f += 1
|
|
|
*/
|
|
|
while (1) {
|
|
|
- __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (!__pyx_t_6) break;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":814
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":817
|
|
|
* # Output padding bytes
|
|
|
* while offset[0] < new_offset:
|
|
|
* f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<<
|
|
@@ -6498,7 +6507,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
*/
|
|
|
(__pyx_v_f[0]) = 120;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":815
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":818
|
|
|
* while offset[0] < new_offset:
|
|
|
* f[0] = 120 # "x"; pad byte
|
|
|
* f += 1 # <<<<<<<<<<<<<<
|
|
@@ -6507,28 +6516,28 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
*/
|
|
|
__pyx_v_f = (__pyx_v_f + 1);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":816
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":819
|
|
|
* f[0] = 120 # "x"; pad byte
|
|
|
* f += 1
|
|
|
* offset[0] += 1 # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* offset[0] += child.itemsize
|
|
|
*/
|
|
|
- __pyx_t_10 = 0;
|
|
|
- (__pyx_v_offset[__pyx_t_10]) = ((__pyx_v_offset[__pyx_t_10]) + 1);
|
|
|
+ __pyx_t_8 = 0;
|
|
|
+ (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1);
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":818
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":821
|
|
|
* offset[0] += 1
|
|
|
*
|
|
|
* offset[0] += child.itemsize # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* if not PyDataType_HASFIELDS(child):
|
|
|
*/
|
|
|
- __pyx_t_10 = 0;
|
|
|
- (__pyx_v_offset[__pyx_t_10]) = ((__pyx_v_offset[__pyx_t_10]) + __pyx_v_child->elsize);
|
|
|
+ __pyx_t_8 = 0;
|
|
|
+ (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":820
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":823
|
|
|
* offset[0] += child.itemsize
|
|
|
*
|
|
|
* if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<<
|
|
@@ -6538,19 +6547,19 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
__pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
|
|
|
if (__pyx_t_6) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":821
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":824
|
|
|
*
|
|
|
* if not PyDataType_HASFIELDS(child):
|
|
|
* t = child.type_num # <<<<<<<<<<<<<<
|
|
|
* if end - f < 5:
|
|
|
* raise RuntimeError(u"Format string allocated too short.")
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
__Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
|
|
|
__pyx_t_4 = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":822
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":825
|
|
|
* if not PyDataType_HASFIELDS(child):
|
|
|
* t = child.type_num
|
|
|
* if end - f < 5: # <<<<<<<<<<<<<<
|
|
@@ -6560,357 +6569,357 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
__pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
|
|
|
if (__pyx_t_6) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":823
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":826
|
|
|
* t = child.type_num
|
|
|
* if end - f < 5:
|
|
|
* raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* # Until ticket #99 is fixed, use integers to avoid warnings
|
|
|
*/
|
|
|
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
__Pyx_Raise(__pyx_t_4, 0, 0, 0);
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":826
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":829
|
|
|
*
|
|
|
* # Until ticket #99 is fixed, use integers to avoid warnings
|
|
|
* if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_UBYTE: f[0] = 66 #"B"
|
|
|
* elif t == NPY_SHORT: f[0] = 104 #"h"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_BYTE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_BYTE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 98;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":827
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":830
|
|
|
* # Until ticket #99 is fixed, use integers to avoid warnings
|
|
|
* if t == NPY_BYTE: f[0] = 98 #"b"
|
|
|
* elif t == NPY_UBYTE: f[0] = 66 #"B" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_SHORT: f[0] = 104 #"h"
|
|
|
* elif t == NPY_USHORT: f[0] = 72 #"H"
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_UBYTE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_UBYTE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 66;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":828
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":831
|
|
|
* if t == NPY_BYTE: f[0] = 98 #"b"
|
|
|
* elif t == NPY_UBYTE: f[0] = 66 #"B"
|
|
|
* elif t == NPY_SHORT: f[0] = 104 #"h" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_USHORT: f[0] = 72 #"H"
|
|
|
* elif t == NPY_INT: f[0] = 105 #"i"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_SHORT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_SHORT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 104;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":829
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":832
|
|
|
* elif t == NPY_UBYTE: f[0] = 66 #"B"
|
|
|
* elif t == NPY_SHORT: f[0] = 104 #"h"
|
|
|
* elif t == NPY_USHORT: f[0] = 72 #"H" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_INT: f[0] = 105 #"i"
|
|
|
* elif t == NPY_UINT: f[0] = 73 #"I"
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_USHORT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_USHORT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 72;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":830
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":833
|
|
|
* elif t == NPY_SHORT: f[0] = 104 #"h"
|
|
|
* elif t == NPY_USHORT: f[0] = 72 #"H"
|
|
|
* elif t == NPY_INT: f[0] = 105 #"i" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_UINT: f[0] = 73 #"I"
|
|
|
* elif t == NPY_LONG: f[0] = 108 #"l"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_INT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_INT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 105;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":831
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":834
|
|
|
* elif t == NPY_USHORT: f[0] = 72 #"H"
|
|
|
* elif t == NPY_INT: f[0] = 105 #"i"
|
|
|
* elif t == NPY_UINT: f[0] = 73 #"I" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_LONG: f[0] = 108 #"l"
|
|
|
* elif t == NPY_ULONG: f[0] = 76 #"L"
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_UINT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_UINT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 73;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":832
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":835
|
|
|
* elif t == NPY_INT: f[0] = 105 #"i"
|
|
|
* elif t == NPY_UINT: f[0] = 73 #"I"
|
|
|
* elif t == NPY_LONG: f[0] = 108 #"l" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_ULONG: f[0] = 76 #"L"
|
|
|
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_LONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_LONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 108;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":833
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":836
|
|
|
* elif t == NPY_UINT: f[0] = 73 #"I"
|
|
|
* elif t == NPY_LONG: f[0] = 108 #"l"
|
|
|
* elif t == NPY_ULONG: f[0] = 76 #"L" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
|
|
|
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_ULONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_ULONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 76;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":834
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":837
|
|
|
* elif t == NPY_LONG: f[0] = 108 #"l"
|
|
|
* elif t == NPY_ULONG: f[0] = 76 #"L"
|
|
|
* elif t == NPY_LONGLONG: f[0] = 113 #"q" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
|
|
|
* elif t == NPY_FLOAT: f[0] = 102 #"f"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 113;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":835
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":838
|
|
|
* elif t == NPY_ULONG: f[0] = 76 #"L"
|
|
|
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
|
|
|
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_FLOAT: f[0] = 102 #"f"
|
|
|
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 81;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":836
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":839
|
|
|
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
|
|
|
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
|
|
|
* elif t == NPY_FLOAT: f[0] = 102 #"f" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
|
|
|
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_FLOAT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_FLOAT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 102;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":837
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":840
|
|
|
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
|
|
|
* elif t == NPY_FLOAT: f[0] = 102 #"f"
|
|
|
* elif t == NPY_DOUBLE: f[0] = 100 #"d" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
|
|
|
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 100;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":838
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":841
|
|
|
* elif t == NPY_FLOAT: f[0] = 102 #"f"
|
|
|
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
|
|
|
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
|
|
|
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 103;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":839
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":842
|
|
|
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
|
|
|
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
|
|
|
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
|
|
|
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 90;
|
|
|
(__pyx_v_f[1]) = 102;
|
|
|
__pyx_v_f = (__pyx_v_f + 1);
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":840
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":843
|
|
|
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
|
|
|
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
|
|
|
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
|
|
|
* elif t == NPY_OBJECT: f[0] = 79 #"O"
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 90;
|
|
|
(__pyx_v_f[1]) = 100;
|
|
|
__pyx_v_f = (__pyx_v_f + 1);
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":841
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":844
|
|
|
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
|
|
|
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
|
|
|
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg # <<<<<<<<<<<<<<
|
|
|
* elif t == NPY_OBJECT: f[0] = 79 #"O"
|
|
|
* else:
|
|
|
*/
|
|
|
- __pyx_t_3 = PyInt_FromLong(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyInt_FromLong(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 90;
|
|
|
(__pyx_v_f[1]) = 103;
|
|
|
__pyx_v_f = (__pyx_v_f + 1);
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":842
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":845
|
|
|
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
|
|
|
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
|
|
|
* elif t == NPY_OBJECT: f[0] = 79 #"O" # <<<<<<<<<<<<<<
|
|
|
* else:
|
|
|
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
|
|
|
*/
|
|
|
- __pyx_t_4 = PyInt_FromLong(NPY_OBJECT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyInt_FromLong(NPY_OBJECT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
- __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
if (__pyx_t_6) {
|
|
|
(__pyx_v_f[0]) = 79;
|
|
|
- goto __pyx_L11;
|
|
|
+ goto __pyx_L15;
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":844
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":847
|
|
|
* elif t == NPY_OBJECT: f[0] = 79 #"O"
|
|
|
* else:
|
|
|
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<<
|
|
|
* f += 1
|
|
|
* else:
|
|
|
*/
|
|
|
- __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
|
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
|
__pyx_t_3 = 0;
|
|
|
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
|
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
- {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
- __pyx_L11:;
|
|
|
+ __pyx_L15:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":845
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":848
|
|
|
* else:
|
|
|
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
|
|
|
* f += 1 # <<<<<<<<<<<<<<
|
|
@@ -6918,25 +6927,33 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
* # Cython ignores struct boundary information ("T{...}"),
|
|
|
*/
|
|
|
__pyx_v_f = (__pyx_v_f + 1);
|
|
|
- goto __pyx_L9;
|
|
|
+ goto __pyx_L13;
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":849
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":852
|
|
|
* # Cython ignores struct boundary information ("T{...}"),
|
|
|
* # so don't output it
|
|
|
* f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<<
|
|
|
* return f
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_11 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_11 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_v_f = __pyx_t_11;
|
|
|
+ __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_v_f = __pyx_t_9;
|
|
|
}
|
|
|
- __pyx_L9:;
|
|
|
+ __pyx_L13:;
|
|
|
+
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":797
|
|
|
+ * cdef tuple fields
|
|
|
+ *
|
|
|
+ * for childname in descr.names: # <<<<<<<<<<<<<<
|
|
|
+ * fields = descr.fields[childname]
|
|
|
+ * child, new_offset = fields
|
|
|
+ */
|
|
|
}
|
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":850
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":853
|
|
|
* # so don't output it
|
|
|
* f = _util_dtypestring(child, f, end, offset)
|
|
|
* return f # <<<<<<<<<<<<<<
|
|
@@ -6946,7 +6963,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
__pyx_r = __pyx_v_f;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":783
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":786
|
|
|
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
|
|
|
*
|
|
|
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<<
|
|
@@ -6971,7 +6988,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":966
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":969
|
|
|
*
|
|
|
*
|
|
|
* cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
|
|
@@ -6986,7 +7003,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
int __pyx_t_2;
|
|
|
__Pyx_RefNannySetupContext("set_array_base", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":968
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":971
|
|
|
* cdef inline void set_array_base(ndarray arr, object base):
|
|
|
* cdef PyObject* baseptr
|
|
|
* if base is None: # <<<<<<<<<<<<<<
|
|
@@ -6997,7 +7014,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
__pyx_t_2 = (__pyx_t_1 != 0);
|
|
|
if (__pyx_t_2) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":969
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":972
|
|
|
* cdef PyObject* baseptr
|
|
|
* if base is None:
|
|
|
* baseptr = NULL # <<<<<<<<<<<<<<
|
|
@@ -7009,7 +7026,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":971
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":974
|
|
|
* baseptr = NULL
|
|
|
* else:
|
|
|
* Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<<
|
|
@@ -7018,7 +7035,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
*/
|
|
|
Py_INCREF(__pyx_v_base);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":972
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":975
|
|
|
* else:
|
|
|
* Py_INCREF(base) # important to do this before decref below!
|
|
|
* baseptr = <PyObject*>base # <<<<<<<<<<<<<<
|
|
@@ -7029,7 +7046,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
}
|
|
|
__pyx_L3:;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":973
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":976
|
|
|
* Py_INCREF(base) # important to do this before decref below!
|
|
|
* baseptr = <PyObject*>base
|
|
|
* Py_XDECREF(arr.base) # <<<<<<<<<<<<<<
|
|
@@ -7038,7 +7055,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
*/
|
|
|
Py_XDECREF(__pyx_v_arr->base);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":974
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":977
|
|
|
* baseptr = <PyObject*>base
|
|
|
* Py_XDECREF(arr.base)
|
|
|
* arr.base = baseptr # <<<<<<<<<<<<<<
|
|
@@ -7047,7 +7064,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
*/
|
|
|
__pyx_v_arr->base = __pyx_v_baseptr;
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":966
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":969
|
|
|
*
|
|
|
*
|
|
|
* cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
|
|
@@ -7059,7 +7076,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
|
|
|
__Pyx_RefNannyFinishContext();
|
|
|
}
|
|
|
|
|
|
-/* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":976
|
|
|
+/* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":979
|
|
|
* arr.base = baseptr
|
|
|
*
|
|
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -7073,7 +7090,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
int __pyx_t_1;
|
|
|
__Pyx_RefNannySetupContext("get_array_base", 0);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":977
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":980
|
|
|
*
|
|
|
* cdef inline object get_array_base(ndarray arr):
|
|
|
* if arr.base is NULL: # <<<<<<<<<<<<<<
|
|
@@ -7083,7 +7100,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
__pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0);
|
|
|
if (__pyx_t_1) {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":978
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":981
|
|
|
* cdef inline object get_array_base(ndarray arr):
|
|
|
* if arr.base is NULL:
|
|
|
* return None # <<<<<<<<<<<<<<
|
|
@@ -7097,7 +7114,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
}
|
|
|
/*else*/ {
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":980
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":983
|
|
|
* return None
|
|
|
* else:
|
|
|
* return <object>arr.base # <<<<<<<<<<<<<<
|
|
@@ -7108,7 +7125,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
goto __pyx_L0;
|
|
|
}
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":976
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":979
|
|
|
* arr.base = baseptr
|
|
|
*
|
|
|
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
|
|
@@ -7123,7 +7140,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "vector.from_py":45
|
|
|
+/* "vector.from_py":49
|
|
|
*
|
|
|
* @cname("__pyx_convert_vector_from_py_double")
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py_double(object o) except *: # <<<<<<<<<<<<<<
|
|
@@ -7131,10 +7148,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py
|
|
|
* for item in o:
|
|
|
*/
|
|
|
|
|
|
-static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v_o) {
|
|
|
- std::vector<double> __pyx_v_v;
|
|
|
+static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v_o) {
|
|
|
+ std::vector<double> __pyx_v_v;
|
|
|
PyObject *__pyx_v_item = NULL;
|
|
|
- std::vector<double> __pyx_r;
|
|
|
+ std::vector<double> __pyx_r;
|
|
|
__Pyx_RefNannyDeclarations
|
|
|
PyObject *__pyx_t_1 = NULL;
|
|
|
Py_ssize_t __pyx_t_2;
|
|
@@ -7146,43 +7163,45 @@ static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_double", 0);
|
|
|
|
|
|
- /* "vector.from_py":47
|
|
|
+ /* "vector.from_py":51
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py_double(object o) except *:
|
|
|
* cdef vector[X] v
|
|
|
* for item in o: # <<<<<<<<<<<<<<
|
|
|
* v.push_back(X_from_py(item))
|
|
|
* return v
|
|
|
*/
|
|
|
- if (PyList_CheckExact(__pyx_v_o) || PyTuple_CheckExact(__pyx_v_o)) {
|
|
|
+ if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
|
|
|
__pyx_t_1 = __pyx_v_o; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
|
|
|
__pyx_t_3 = NULL;
|
|
|
} else {
|
|
|
- __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
- __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
|
+ __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
for (;;) {
|
|
|
- if (!__pyx_t_3 && PyList_CheckExact(__pyx_t_1)) {
|
|
|
- if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
|
- #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
- __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #else
|
|
|
- __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #endif
|
|
|
- } else if (!__pyx_t_3 && PyTuple_CheckExact(__pyx_t_1)) {
|
|
|
- if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
|
- #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
- __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #else
|
|
|
- __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #endif
|
|
|
+ if (likely(!__pyx_t_3)) {
|
|
|
+ if (likely(PyList_CheckExact(__pyx_t_1))) {
|
|
|
+ if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
|
+ #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+ __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #else
|
|
|
+ __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #endif
|
|
|
+ } else {
|
|
|
+ if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
|
+ #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+ __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #else
|
|
|
+ __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #endif
|
|
|
+ }
|
|
|
} else {
|
|
|
__pyx_t_4 = __pyx_t_3(__pyx_t_1);
|
|
|
if (unlikely(!__pyx_t_4)) {
|
|
|
PyObject* exc_type = PyErr_Occurred();
|
|
|
if (exc_type) {
|
|
|
if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
|
|
|
- else {__pyx_filename = __pyx_f[2]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ else {__pyx_filename = __pyx_f[2]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -7191,19 +7210,27 @@ static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v
|
|
|
__Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
|
|
|
__pyx_t_4 = 0;
|
|
|
|
|
|
- /* "vector.from_py":48
|
|
|
+ /* "vector.from_py":52
|
|
|
* cdef vector[X] v
|
|
|
* for item in o:
|
|
|
* v.push_back(X_from_py(item)) # <<<<<<<<<<<<<<
|
|
|
* return v
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_5 = __pyx_PyFloat_AsDouble(__pyx_v_item); if (unlikely(__pyx_t_5 == -1.0 && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_5 = __pyx_PyFloat_AsDouble(__pyx_v_item); if (unlikely(__pyx_t_5 == -1.0 && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__pyx_v_v.push_back(__pyx_t_5);
|
|
|
+
|
|
|
+ /* "vector.from_py":51
|
|
|
+ * cdef vector[X] __pyx_convert_vector_from_py_double(object o) except *:
|
|
|
+ * cdef vector[X] v
|
|
|
+ * for item in o: # <<<<<<<<<<<<<<
|
|
|
+ * v.push_back(X_from_py(item))
|
|
|
+ * return v
|
|
|
+ */
|
|
|
}
|
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
|
|
- /* "vector.from_py":49
|
|
|
+ /* "vector.from_py":53
|
|
|
* for item in o:
|
|
|
* v.push_back(X_from_py(item))
|
|
|
* return v # <<<<<<<<<<<<<<
|
|
@@ -7213,7 +7240,7 @@ static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v
|
|
|
__pyx_r = __pyx_v_v;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "vector.from_py":45
|
|
|
+ /* "vector.from_py":49
|
|
|
*
|
|
|
* @cname("__pyx_convert_vector_from_py_double")
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py_double(object o) except *: # <<<<<<<<<<<<<<
|
|
@@ -7232,7 +7259,7 @@ static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v
|
|
|
return __pyx_r;
|
|
|
}
|
|
|
|
|
|
-/* "vector.from_py":46
|
|
|
+/* "vector.from_py":50
|
|
|
*
|
|
|
* @cname("__pyx_convert_vector_from_py___pyx_t_double_complex")
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py___pyx_t_double_complex(object o) except *: # <<<<<<<<<<<<<<
|
|
@@ -7240,10 +7267,10 @@ static std::vector<double> __pyx_convert_vector_from_py_double(PyObject *__pyx_v
|
|
|
* for item in o:
|
|
|
*/
|
|
|
|
|
|
-static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_double_complex(PyObject *__pyx_v_o) {
|
|
|
- std::vector<__pyx_t_double_complex> __pyx_v_v;
|
|
|
+static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_double_complex(PyObject *__pyx_v_o) {
|
|
|
+ std::vector<__pyx_t_double_complex> __pyx_v_v;
|
|
|
PyObject *__pyx_v_item = NULL;
|
|
|
- std::vector<__pyx_t_double_complex> __pyx_r;
|
|
|
+ std::vector<__pyx_t_double_complex> __pyx_r;
|
|
|
__Pyx_RefNannyDeclarations
|
|
|
PyObject *__pyx_t_1 = NULL;
|
|
|
Py_ssize_t __pyx_t_2;
|
|
@@ -7255,43 +7282,45 @@ static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_
|
|
|
int __pyx_clineno = 0;
|
|
|
__Pyx_RefNannySetupContext("__pyx_convert_vector_from_py___pyx_t_double_complex", 0);
|
|
|
|
|
|
- /* "vector.from_py":48
|
|
|
+ /* "vector.from_py":52
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py___pyx_t_double_complex(object o) except *:
|
|
|
* cdef vector[X] v
|
|
|
* for item in o: # <<<<<<<<<<<<<<
|
|
|
* v.push_back(X_from_py(item))
|
|
|
* return v
|
|
|
*/
|
|
|
- if (PyList_CheckExact(__pyx_v_o) || PyTuple_CheckExact(__pyx_v_o)) {
|
|
|
+ if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
|
|
|
__pyx_t_1 = __pyx_v_o; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
|
|
|
__pyx_t_3 = NULL;
|
|
|
} else {
|
|
|
- __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
|
- __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
|
+ __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
for (;;) {
|
|
|
- if (!__pyx_t_3 && PyList_CheckExact(__pyx_t_1)) {
|
|
|
- if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
|
- #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
- __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #else
|
|
|
- __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #endif
|
|
|
- } else if (!__pyx_t_3 && PyTuple_CheckExact(__pyx_t_1)) {
|
|
|
- if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
|
- #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
- __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #else
|
|
|
- __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- #endif
|
|
|
+ if (likely(!__pyx_t_3)) {
|
|
|
+ if (likely(PyList_CheckExact(__pyx_t_1))) {
|
|
|
+ if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
|
+ #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+ __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #else
|
|
|
+ __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #endif
|
|
|
+ } else {
|
|
|
+ if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
|
+ #if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+ __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #else
|
|
|
+ __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ #endif
|
|
|
+ }
|
|
|
} else {
|
|
|
__pyx_t_4 = __pyx_t_3(__pyx_t_1);
|
|
|
if (unlikely(!__pyx_t_4)) {
|
|
|
PyObject* exc_type = PyErr_Occurred();
|
|
|
if (exc_type) {
|
|
|
if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
|
|
|
- else {__pyx_filename = __pyx_f[3]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ else {__pyx_filename = __pyx_f[2]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -7300,19 +7329,27 @@ static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_
|
|
|
__Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
|
|
|
__pyx_t_4 = 0;
|
|
|
|
|
|
- /* "vector.from_py":49
|
|
|
+ /* "vector.from_py":53
|
|
|
* cdef vector[X] v
|
|
|
* for item in o:
|
|
|
* v.push_back(X_from_py(item)) # <<<<<<<<<<<<<<
|
|
|
* return v
|
|
|
*
|
|
|
*/
|
|
|
- __pyx_t_5 = __Pyx_PyComplex_As___pyx_t_double_complex(__pyx_v_item); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_t_5 = __Pyx_PyComplex_As___pyx_t_double_complex(__pyx_v_item); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__pyx_v_v.push_back(__pyx_t_5);
|
|
|
+
|
|
|
+ /* "vector.from_py":52
|
|
|
+ * cdef vector[X] __pyx_convert_vector_from_py___pyx_t_double_complex(object o) except *:
|
|
|
+ * cdef vector[X] v
|
|
|
+ * for item in o: # <<<<<<<<<<<<<<
|
|
|
+ * v.push_back(X_from_py(item))
|
|
|
+ * return v
|
|
|
+ */
|
|
|
}
|
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
|
|
- /* "vector.from_py":50
|
|
|
+ /* "vector.from_py":54
|
|
|
* for item in o:
|
|
|
* v.push_back(X_from_py(item))
|
|
|
* return v # <<<<<<<<<<<<<<
|
|
@@ -7322,7 +7359,7 @@ static std::vector<__pyx_t_double_complex> __pyx_convert_vector_from_py___pyx_t_
|
|
|
__pyx_r = __pyx_v_v;
|
|
|
goto __pyx_L0;
|
|
|
|
|
|
- /* "vector.from_py":46
|
|
|
+ /* "vector.from_py":50
|
|
|
*
|
|
|
* @cname("__pyx_convert_vector_from_py___pyx_t_double_complex")
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py___pyx_t_double_complex(object o) except *: # <<<<<<<<<<<<<<
|
|
@@ -7352,7 +7389,7 @@ static struct PyModuleDef __pyx_moduledef = {
|
|
|
#else
|
|
|
PyModuleDef_HEAD_INIT,
|
|
|
#endif
|
|
|
- __Pyx_NAMESTR("scattnlay"),
|
|
|
+ "scattnlay",
|
|
|
0, /* m_doc */
|
|
|
-1, /* m_size */
|
|
|
__pyx_methods /* m_methods */,
|
|
@@ -7411,7 +7448,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
|
{&__pyx_n_s_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_float64, __pyx_k_float64, sizeof(__pyx_k_float64), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_g, __pyx_k_g, sizeof(__pyx_k_g), 0, 0, 1, 1},
|
|
|
- {&__pyx_kp_s_home_ovidio_scattering_scattnla, __pyx_k_home_ovidio_scattering_scattnla, sizeof(__pyx_k_home_ovidio_scattering_scattnla), 0, 0, 1, 0},
|
|
|
+ {&__pyx_kp_s_home_tig_KOsty_Documents_Simula, __pyx_k_home_tig_KOsty_Documents_Simula, sizeof(__pyx_k_home_tig_KOsty_Documents_Simula), 0, 0, 1, 0},
|
|
|
{&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_int, __pyx_k_int, sizeof(__pyx_k_int), 0, 0, 1, 1},
|
|
@@ -7423,8 +7460,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
|
{&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_pl, __pyx_k_pl, sizeof(__pyx_k_pl), 0, 0, 1, 1},
|
|
|
- {&__pyx_n_s_pyx_getbuffer, __pyx_k_pyx_getbuffer, sizeof(__pyx_k_pyx_getbuffer), 0, 0, 1, 1},
|
|
|
- {&__pyx_n_s_pyx_releasebuffer, __pyx_k_pyx_releasebuffer, sizeof(__pyx_k_pyx_releasebuffer), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_scattcoeffs, __pyx_k_scattcoeffs, sizeof(__pyx_k_scattcoeffs), 0, 0, 1, 1},
|
|
|
{&__pyx_n_s_scattnlay, __pyx_k_scattnlay, sizeof(__pyx_k_scattnlay), 0, 0, 1, 1},
|
|
@@ -7440,8 +7475,8 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
|
};
|
|
|
static int __Pyx_InitCachedBuiltins(void) {
|
|
|
__pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
return 0;
|
|
|
__pyx_L1_error:;
|
|
|
return -1;
|
|
@@ -7642,69 +7677,69 @@ static int __Pyx_InitCachedConstants(void) {
|
|
|
__Pyx_GOTREF(__pyx_tuple__38);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__38);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":215
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":218
|
|
|
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
|
|
|
* raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
|
|
|
*/
|
|
|
- __pyx_tuple__39 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__39)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_tuple__39 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__39)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__39);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__39);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":219
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":222
|
|
|
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
|
|
|
* and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
|
|
|
* raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* info.buf = PyArray_DATA(self)
|
|
|
*/
|
|
|
- __pyx_tuple__40 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__40)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_tuple__40 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__40)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__40);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__40);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":257
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":260
|
|
|
* if ((descr.byteorder == c'>' and little_endian) or
|
|
|
* (descr.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
|
|
|
* if t == NPY_BYTE: f = "b"
|
|
|
* elif t == NPY_UBYTE: f = "B"
|
|
|
*/
|
|
|
- __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__41)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__41)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__41);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__41);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":799
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":802
|
|
|
*
|
|
|
* if (end - f) - <int>(new_offset - offset[0]) < 15:
|
|
|
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* if ((child.byteorder == c'>' and little_endian) or
|
|
|
*/
|
|
|
- __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__42)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__42)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__42);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__42);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":803
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":806
|
|
|
* if ((child.byteorder == c'>' and little_endian) or
|
|
|
* (child.byteorder == c'<' and not little_endian)):
|
|
|
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
|
|
|
* # One could encode it in the format string and have Cython
|
|
|
* # complain instead, BUT: < and > in format strings also imply
|
|
|
*/
|
|
|
- __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__43)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__43)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 806; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__43);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__43);
|
|
|
|
|
|
- /* "/usr/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":823
|
|
|
+ /* "../../../../../../../../usr/local/lib/python2.7/dist-packages/Cython/Includes/numpy/__init__.pxd":826
|
|
|
* t = child.type_num
|
|
|
* if end - f < 5:
|
|
|
* raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<<
|
|
|
*
|
|
|
* # Until ticket #99 is fixed, use integers to avoid warnings
|
|
|
*/
|
|
|
- __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__44)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__44)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__44);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__44);
|
|
|
|
|
@@ -7718,7 +7753,7 @@ static int __Pyx_InitCachedConstants(void) {
|
|
|
__pyx_tuple__45 = PyTuple_Pack(12, __pyx_n_s_x, __pyx_n_s_m, __pyx_n_s_nmax, __pyx_n_s_pl, __pyx_n_s_i, __pyx_n_s_terms, __pyx_n_s_an, __pyx_n_s_bn, __pyx_n_s_anr, __pyx_n_s_ani, __pyx_n_s_bnr, __pyx_n_s_bni); if (unlikely(!__pyx_tuple__45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__45);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__45);
|
|
|
- __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(4, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_ovidio_scattering_scattnla, __pyx_n_s_scattcoeffs, 49, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(4, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tig_KOsty_Documents_Simula, __pyx_n_s_scattcoeffs, 49, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
|
|
/* "scattnlay.pyx":75
|
|
|
* return terms, an, bn
|
|
@@ -7733,7 +7768,7 @@ static int __Pyx_InitCachedConstants(void) {
|
|
|
__pyx_tuple__48 = PyTuple_Pack(20, __pyx_n_s_x, __pyx_n_s_m, __pyx_n_s_theta, __pyx_n_s_nmax, __pyx_n_s_pl, __pyx_n_s_i, __pyx_n_s_terms, __pyx_n_s_Qext, __pyx_n_s_Qabs, __pyx_n_s_Qsca, __pyx_n_s_Qbk, __pyx_n_s_Qpr, __pyx_n_s_g, __pyx_n_s_Albedo, __pyx_n_s_S1, __pyx_n_s_S2, __pyx_n_s_S1r, __pyx_n_s_S1i, __pyx_n_s_S2r, __pyx_n_s_S2i); if (unlikely(!__pyx_tuple__48)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__48);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__48);
|
|
|
- __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_ovidio_scattering_scattnla, __pyx_n_s_scattnlay, 75, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tig_KOsty_Documents_Simula, __pyx_n_s_scattnlay, 75, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
|
|
/* "scattnlay.pyx":109
|
|
|
* return terms, Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo, S1, S2
|
|
@@ -7745,7 +7780,7 @@ static int __Pyx_InitCachedConstants(void) {
|
|
|
__pyx_tuple__50 = PyTuple_Pack(21, __pyx_n_s_x, __pyx_n_s_m, __pyx_n_s_coords, __pyx_n_s_nmax, __pyx_n_s_pl, __pyx_n_s_i, __pyx_n_s_terms, __pyx_n_s_E, __pyx_n_s_H, __pyx_n_s_Erx, __pyx_n_s_Ery, __pyx_n_s_Erz, __pyx_n_s_Eix, __pyx_n_s_Eiy, __pyx_n_s_Eiz, __pyx_n_s_Hrx, __pyx_n_s_Hry, __pyx_n_s_Hrz, __pyx_n_s_Hix, __pyx_n_s_Hiy, __pyx_n_s_Hiz); if (unlikely(!__pyx_tuple__50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_GOTREF(__pyx_tuple__50);
|
|
|
__Pyx_GIVEREF(__pyx_tuple__50);
|
|
|
- __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(5, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_ovidio_scattering_scattnla, __pyx_n_s_fieldnlay, 109, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(5, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tig_KOsty_Documents_Simula, __pyx_n_s_fieldnlay, 109, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_RefNannyFinishContext();
|
|
|
return 0;
|
|
|
__pyx_L1_error:;
|
|
@@ -7811,25 +7846,25 @@ PyMODINIT_FUNC PyInit_scattnlay(void)
|
|
|
#endif
|
|
|
/*--- Module creation code ---*/
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
- __pyx_m = Py_InitModule4(__Pyx_NAMESTR("scattnlay"), __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
|
|
|
+ __pyx_m = Py_InitModule4("scattnlay", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
|
|
|
#else
|
|
|
__pyx_m = PyModule_Create(&__pyx_moduledef);
|
|
|
#endif
|
|
|
if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
Py_INCREF(__pyx_d);
|
|
|
- __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
#if CYTHON_COMPILING_IN_PYPY
|
|
|
Py_INCREF(__pyx_b);
|
|
|
#endif
|
|
|
- if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
|
+ if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
|
/*--- Initialize various global constants etc. ---*/
|
|
|
if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
#if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
|
|
|
if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
#endif
|
|
|
if (__pyx_module_is_main_scattnlay) {
|
|
|
- if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
|
+ if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
|
}
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
{
|
|
@@ -7854,12 +7889,12 @@ PyMODINIT_FUNC PyInit_scattnlay(void)
|
|
|
#else
|
|
|
sizeof(PyHeapTypeObject),
|
|
|
#endif
|
|
|
- 0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ 0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
- __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
+ __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
/*--- Variable import code ---*/
|
|
|
/*--- Function import code ---*/
|
|
|
/*--- Execution code ---*/
|
|
@@ -7944,13 +7979,16 @@ PyMODINIT_FUNC PyInit_scattnlay(void)
|
|
|
if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
|
|
- /* "vector.from_py":46
|
|
|
+ /* "vector.from_py":50
|
|
|
*
|
|
|
* @cname("__pyx_convert_vector_from_py___pyx_t_double_complex")
|
|
|
* cdef vector[X] __pyx_convert_vector_from_py___pyx_t_double_complex(object o) except *: # <<<<<<<<<<<<<<
|
|
|
* cdef vector[X] v
|
|
|
* for item in o:
|
|
|
*/
|
|
|
+
|
|
|
+ /*--- Wrapped vars code ---*/
|
|
|
+
|
|
|
goto __pyx_L0;
|
|
|
__pyx_L1_error:;
|
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
@@ -7958,7 +7996,9 @@ PyMODINIT_FUNC PyInit_scattnlay(void)
|
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
|
if (__pyx_m) {
|
|
|
- __Pyx_AddTraceback("init scattnlay", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
|
+ if (__pyx_d) {
|
|
|
+ __Pyx_AddTraceback("init scattnlay", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
|
+ }
|
|
|
Py_DECREF(__pyx_m); __pyx_m = 0;
|
|
|
} else if (!PyErr_Occurred()) {
|
|
|
PyErr_SetString(PyExc_ImportError, "init scattnlay");
|
|
@@ -7972,7 +8012,7 @@ PyMODINIT_FUNC PyInit_scattnlay(void)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-/* Runtime support code */
|
|
|
+/* --- Runtime support code --- */
|
|
|
#if CYTHON_REFNANNY
|
|
|
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
|
|
|
PyObject *m = NULL, *p = NULL;
|
|
@@ -7987,7 +8027,7 @@ end:
|
|
|
Py_XDECREF(m);
|
|
|
return (__Pyx_RefNannyAPIStruct *)r;
|
|
|
}
|
|
|
-#endif /* CYTHON_REFNANNY */
|
|
|
+#endif
|
|
|
|
|
|
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
|
|
|
PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
|
|
@@ -8006,7 +8046,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
|
|
|
PyObject *result;
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
result = PyDict_GetItem(__pyx_d, name);
|
|
|
- if (result) {
|
|
|
+ if (likely(result)) {
|
|
|
Py_INCREF(result);
|
|
|
} else {
|
|
|
#else
|
|
@@ -8025,14 +8065,10 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg
|
|
|
ternaryfunc call = func->ob_type->tp_call;
|
|
|
if (unlikely(!call))
|
|
|
return PyObject_Call(func, arg, kw);
|
|
|
-#if PY_VERSION_HEX >= 0x02060000
|
|
|
if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
|
|
|
return NULL;
|
|
|
-#endif
|
|
|
result = (*call)(func, arg, kw);
|
|
|
-#if PY_VERSION_HEX >= 0x02060000
|
|
|
Py_LeaveRecursiveCall();
|
|
|
-#endif
|
|
|
if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
|
|
|
PyErr_SetString(
|
|
|
PyExc_SystemError,
|
|
@@ -8325,7 +8361,7 @@ static int __Pyx_BufFmt_ParseNumber(const char** ts) {
|
|
|
}
|
|
|
static int __Pyx_BufFmt_ExpectNumber(const char **ts) {
|
|
|
int number = __Pyx_BufFmt_ParseNumber(ts);
|
|
|
- if (number == -1) /* First char was not a digit */
|
|
|
+ if (number == -1)
|
|
|
PyErr_Format(PyExc_ValueError,\
|
|
|
"Does not understand character buffer dtype format string ('%c')", **ts);
|
|
|
return number;
|
|
@@ -8570,7 +8606,7 @@ static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
|
|
|
ctx->fmt_offset += size;
|
|
|
if (arraysize)
|
|
|
ctx->fmt_offset += (arraysize - 1) * size;
|
|
|
- --ctx->enc_count; /* Consume from buffer string */
|
|
|
+ --ctx->enc_count;
|
|
|
while (1) {
|
|
|
if (field == &ctx->root) {
|
|
|
ctx->head = NULL;
|
|
@@ -8578,7 +8614,7 @@ static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
|
|
|
__Pyx_BufFmt_RaiseExpected(ctx);
|
|
|
return -1;
|
|
|
}
|
|
|
- break; /* breaks both loops as ctx->enc_count == 0 */
|
|
|
+ break;
|
|
|
}
|
|
|
ctx->head->field = ++field;
|
|
|
if (field->type == NULL) {
|
|
@@ -8587,7 +8623,7 @@ static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
|
|
|
continue;
|
|
|
} else if (field->type->typegroup == 'S') {
|
|
|
size_t parent_offset = ctx->head->parent_offset + field->offset;
|
|
|
- if (field->type->fields->type == NULL) continue; /* empty struct */
|
|
|
+ if (field->type->fields->type == NULL) continue;
|
|
|
field = field->type->fields;
|
|
|
++ctx->head;
|
|
|
ctx->head->field = field;
|
|
@@ -8619,7 +8655,7 @@ __pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx, const char** tsp)
|
|
|
while (*ts && *ts != ')') {
|
|
|
switch (*ts) {
|
|
|
case ' ': case '\f': case '\r': case '\n': case '\t': case '\v': continue;
|
|
|
- default: break; /* not a 'break' in the loop */
|
|
|
+ default: break;
|
|
|
}
|
|
|
number = __Pyx_BufFmt_ExpectNumber(&ts);
|
|
|
if (number == -1) return NULL;
|
|
@@ -8688,7 +8724,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha
|
|
|
case '^':
|
|
|
ctx->new_packmode = *ts++;
|
|
|
break;
|
|
|
- case 'T': /* substruct */
|
|
|
+ case 'T':
|
|
|
{
|
|
|
const char* ts_after_sub;
|
|
|
size_t i, struct_count = ctx->new_count;
|
|
@@ -8700,7 +8736,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha
|
|
|
return NULL;
|
|
|
}
|
|
|
if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
|
|
|
- ctx->enc_type = 0; /* Erase processed last struct element */
|
|
|
+ ctx->enc_type = 0;
|
|
|
ctx->enc_count = 0;
|
|
|
ctx->struct_alignment = 0;
|
|
|
++ts;
|
|
@@ -8713,12 +8749,12 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha
|
|
|
if (struct_alignment) ctx->struct_alignment = struct_alignment;
|
|
|
}
|
|
|
break;
|
|
|
- case '}': /* end of substruct; either repeat or move on */
|
|
|
+ case '}':
|
|
|
{
|
|
|
size_t alignment = ctx->struct_alignment;
|
|
|
++ts;
|
|
|
if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
|
|
|
- ctx->enc_type = 0; /* Erase processed last struct element */
|
|
|
+ ctx->enc_type = 0;
|
|
|
if (alignment && ctx->fmt_offset % alignment) {
|
|
|
ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment);
|
|
|
}
|
|
@@ -8962,6 +8998,70 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje
|
|
|
return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v);
|
|
|
}
|
|
|
|
|
|
+#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
|
|
|
+ PyObject *self, *result;
|
|
|
+ PyCFunction cfunc;
|
|
|
+ cfunc = PyCFunction_GET_FUNCTION(func);
|
|
|
+ self = PyCFunction_GET_SELF(func);
|
|
|
+ if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
|
|
|
+ return NULL;
|
|
|
+ result = cfunc(self, arg);
|
|
|
+ Py_LeaveRecursiveCall();
|
|
|
+ if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
|
|
|
+ PyErr_SetString(
|
|
|
+ PyExc_SystemError,
|
|
|
+ "NULL result without error in PyObject_Call");
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
+#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
|
|
|
+ PyObject *result;
|
|
|
+ PyObject *args = PyTuple_New(1);
|
|
|
+ if (unlikely(!args)) return NULL;
|
|
|
+ Py_INCREF(arg);
|
|
|
+ PyTuple_SET_ITEM(args, 0, arg);
|
|
|
+ result = __Pyx_PyObject_Call(func, args, NULL);
|
|
|
+ Py_DECREF(args);
|
|
|
+ return result;
|
|
|
+}
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
|
|
|
+#ifdef __Pyx_CyFunction_USED
|
|
|
+ if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
|
|
|
+#else
|
|
|
+ if (likely(PyCFunction_Check(func))) {
|
|
|
+#endif
|
|
|
+ if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
|
|
|
+ return __Pyx_PyObject_CallMethO(func, arg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return __Pyx__PyObject_CallOneArg(func, arg);
|
|
|
+}
|
|
|
+#else
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
|
|
|
+ PyObject* args = PyTuple_Pack(1, arg);
|
|
|
+ return (likely(args)) ? __Pyx_PyObject_Call(func, args, NULL) : NULL;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
+#if CYTHON_COMPILING_IN_CPYTHON
|
|
|
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
|
|
|
+#ifdef __Pyx_CyFunction_USED
|
|
|
+ if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
|
|
|
+#else
|
|
|
+ if (likely(PyCFunction_Check(func))) {
|
|
|
+#endif
|
|
|
+ if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
|
|
|
+ return __Pyx_PyObject_CallMethO(func, NULL);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
|
|
|
CYTHON_UNUSED PyObject *cause) {
|
|
@@ -8980,11 +9080,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
|
|
|
goto raise_error;
|
|
|
}
|
|
|
}
|
|
|
- #if PY_VERSION_HEX < 0x02050000
|
|
|
- if (PyClass_Check(type)) {
|
|
|
- #else
|
|
|
if (PyType_Check(type)) {
|
|
|
- #endif
|
|
|
#if CYTHON_COMPILING_IN_PYPY
|
|
|
if (!value) {
|
|
|
Py_INCREF(Py_None);
|
|
@@ -8999,17 +9095,6 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
|
|
|
goto raise_error;
|
|
|
}
|
|
|
value = type;
|
|
|
- #if PY_VERSION_HEX < 0x02050000
|
|
|
- if (PyInstance_Check(type)) {
|
|
|
- type = (PyObject*) ((PyInstanceObject*)type)->in_class;
|
|
|
- Py_INCREF(type);
|
|
|
- } else {
|
|
|
- type = 0;
|
|
|
- PyErr_SetString(PyExc_TypeError,
|
|
|
- "raise: exception must be an old-style class or instance");
|
|
|
- goto raise_error;
|
|
|
- }
|
|
|
- #else
|
|
|
type = (PyObject*) Py_TYPE(type);
|
|
|
Py_INCREF(type);
|
|
|
if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
|
|
@@ -9017,7 +9102,6 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
|
|
|
"raise: exception class must be a subclass of BaseException");
|
|
|
goto raise_error;
|
|
|
}
|
|
|
- #endif
|
|
|
}
|
|
|
__Pyx_ErrRestore(type, value, tb);
|
|
|
return;
|
|
@@ -9027,7 +9111,7 @@ raise_error:
|
|
|
Py_XDECREF(tb);
|
|
|
return;
|
|
|
}
|
|
|
-#else /* Python 3+ */
|
|
|
+#else
|
|
|
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
|
|
|
PyObject* owned_instance = NULL;
|
|
|
if (tb == Py_None) {
|
|
@@ -9113,6 +9197,13 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
|
|
|
}
|
|
|
PyErr_SetObject(type, value);
|
|
|
if (tb) {
|
|
|
+#if CYTHON_COMPILING_IN_PYPY
|
|
|
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
|
|
|
+ PyErr_Fetch(tmp_type, tmp_value, tmp_tb);
|
|
|
+ Py_INCREF(tb);
|
|
|
+ PyErr_Restore(tmp_type, tmp_value, tb);
|
|
|
+ Py_XDECREF(tmp_tb);
|
|
|
+#else
|
|
|
PyThreadState *tstate = PyThreadState_GET();
|
|
|
PyObject* tmp_tb = tstate->curexc_traceback;
|
|
|
if (tb != tmp_tb) {
|
|
@@ -9120,6 +9211,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
|
|
|
tstate->curexc_traceback = tb;
|
|
|
Py_XDECREF(tmp_tb);
|
|
|
}
|
|
|
+#endif
|
|
|
}
|
|
|
bad:
|
|
|
Py_XDECREF(owned_instance);
|
|
@@ -9142,72 +9234,187 @@ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
|
|
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
|
|
|
}
|
|
|
|
|
|
+static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
|
|
|
+ int start = 0, mid = 0, end = count - 1;
|
|
|
+ if (end >= 0 && code_line > entries[end].code_line) {
|
|
|
+ return count;
|
|
|
+ }
|
|
|
+ while (start < end) {
|
|
|
+ mid = (start + end) / 2;
|
|
|
+ if (code_line < entries[mid].code_line) {
|
|
|
+ end = mid;
|
|
|
+ } else if (code_line > entries[mid].code_line) {
|
|
|
+ start = mid + 1;
|
|
|
+ } else {
|
|
|
+ return mid;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (code_line <= entries[mid].code_line) {
|
|
|
+ return mid;
|
|
|
+ } else {
|
|
|
+ return mid + 1;
|
|
|
+ }
|
|
|
+}
|
|
|
+static PyCodeObject *__pyx_find_code_object(int code_line) {
|
|
|
+ PyCodeObject* code_object;
|
|
|
+ int pos;
|
|
|
+ if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+ pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
|
|
|
+ if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
|
|
|
+ return NULL;
|
|
|
+ }
|
|
|
+ code_object = __pyx_code_cache.entries[pos].code_object;
|
|
|
+ Py_INCREF(code_object);
|
|
|
+ return code_object;
|
|
|
+}
|
|
|
+static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
|
|
+ int pos, i;
|
|
|
+ __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
|
|
|
+ if (unlikely(!code_line)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (unlikely(!entries)) {
|
|
|
+ entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
|
|
|
+ if (likely(entries)) {
|
|
|
+ __pyx_code_cache.entries = entries;
|
|
|
+ __pyx_code_cache.max_count = 64;
|
|
|
+ __pyx_code_cache.count = 1;
|
|
|
+ entries[0].code_line = code_line;
|
|
|
+ entries[0].code_object = code_object;
|
|
|
+ Py_INCREF(code_object);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
|
|
|
+ if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
|
|
|
+ PyCodeObject* tmp = entries[pos].code_object;
|
|
|
+ entries[pos].code_object = code_object;
|
|
|
+ Py_DECREF(tmp);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
|
|
|
+ int new_max = __pyx_code_cache.max_count + 64;
|
|
|
+ entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
|
|
|
+ __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
|
|
|
+ if (unlikely(!entries)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ __pyx_code_cache.entries = entries;
|
|
|
+ __pyx_code_cache.max_count = new_max;
|
|
|
+ }
|
|
|
+ for (i=__pyx_code_cache.count; i>pos; i--) {
|
|
|
+ entries[i] = entries[i-1];
|
|
|
+ }
|
|
|
+ entries[pos].code_line = code_line;
|
|
|
+ entries[pos].code_object = code_object;
|
|
|
+ __pyx_code_cache.count++;
|
|
|
+ Py_INCREF(code_object);
|
|
|
+}
|
|
|
+
|
|
|
+#include "compile.h"
|
|
|
+#include "frameobject.h"
|
|
|
+#include "traceback.h"
|
|
|
+static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
|
|
|
+ const char *funcname, int c_line,
|
|
|
+ int py_line, const char *filename) {
|
|
|
+ PyCodeObject *py_code = 0;
|
|
|
+ PyObject *py_srcfile = 0;
|
|
|
+ PyObject *py_funcname = 0;
|
|
|
+ #if PY_MAJOR_VERSION < 3
|
|
|
+ py_srcfile = PyString_FromString(filename);
|
|
|
+ #else
|
|
|
+ py_srcfile = PyUnicode_FromString(filename);
|
|
|
+ #endif
|
|
|
+ if (!py_srcfile) goto bad;
|
|
|
+ if (c_line) {
|
|
|
+ #if PY_MAJOR_VERSION < 3
|
|
|
+ py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
|
|
|
+ #else
|
|
|
+ py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
|
|
|
+ #endif
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ #if PY_MAJOR_VERSION < 3
|
|
|
+ py_funcname = PyString_FromString(funcname);
|
|
|
+ #else
|
|
|
+ py_funcname = PyUnicode_FromString(funcname);
|
|
|
+ #endif
|
|
|
+ }
|
|
|
+ if (!py_funcname) goto bad;
|
|
|
+ py_code = __Pyx_PyCode_New(
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ __pyx_empty_bytes, /*PyObject *code,*/
|
|
|
+ __pyx_empty_tuple, /*PyObject *consts,*/
|
|
|
+ __pyx_empty_tuple, /*PyObject *names,*/
|
|
|
+ __pyx_empty_tuple, /*PyObject *varnames,*/
|
|
|
+ __pyx_empty_tuple, /*PyObject *freevars,*/
|
|
|
+ __pyx_empty_tuple, /*PyObject *cellvars,*/
|
|
|
+ py_srcfile, /*PyObject *filename,*/
|
|
|
+ py_funcname, /*PyObject *name,*/
|
|
|
+ py_line,
|
|
|
+ __pyx_empty_bytes /*PyObject *lnotab*/
|
|
|
+ );
|
|
|
+ Py_DECREF(py_srcfile);
|
|
|
+ Py_DECREF(py_funcname);
|
|
|
+ return py_code;
|
|
|
+bad:
|
|
|
+ Py_XDECREF(py_srcfile);
|
|
|
+ Py_XDECREF(py_funcname);
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+static void __Pyx_AddTraceback(const char *funcname, int c_line,
|
|
|
+ int py_line, const char *filename) {
|
|
|
+ PyCodeObject *py_code = 0;
|
|
|
+ PyFrameObject *py_frame = 0;
|
|
|
+ py_code = __pyx_find_code_object(c_line ? c_line : py_line);
|
|
|
+ if (!py_code) {
|
|
|
+ py_code = __Pyx_CreateCodeObjectForTraceback(
|
|
|
+ funcname, c_line, py_line, filename);
|
|
|
+ if (!py_code) goto bad;
|
|
|
+ __pyx_insert_code_object(c_line ? c_line : py_line, py_code);
|
|
|
+ }
|
|
|
+ py_frame = PyFrame_New(
|
|
|
+ PyThreadState_GET(), /*PyThreadState *tstate,*/
|
|
|
+ py_code, /*PyCodeObject *code,*/
|
|
|
+ __pyx_d, /*PyObject *globals,*/
|
|
|
+ 0 /*PyObject *locals*/
|
|
|
+ );
|
|
|
+ if (!py_frame) goto bad;
|
|
|
+ py_frame->f_lineno = py_line;
|
|
|
+ PyTraceBack_Here(py_frame);
|
|
|
+bad:
|
|
|
+ Py_XDECREF(py_code);
|
|
|
+ Py_XDECREF(py_frame);
|
|
|
+}
|
|
|
+
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) {
|
|
|
- #if PY_VERSION_HEX >= 0x02060000
|
|
|
if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags);
|
|
|
- #endif
|
|
|
if (PyObject_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags);
|
|
|
- #if PY_VERSION_HEX < 0x02060000
|
|
|
- if (obj->ob_type->tp_dict) {
|
|
|
- PyObject *getbuffer_cobj = PyObject_GetItem(
|
|
|
- obj->ob_type->tp_dict, __pyx_n_s_pyx_getbuffer);
|
|
|
- if (getbuffer_cobj) {
|
|
|
- getbufferproc func = (getbufferproc) PyCObject_AsVoidPtr(getbuffer_cobj);
|
|
|
- Py_DECREF(getbuffer_cobj);
|
|
|
- if (!func)
|
|
|
- goto fail;
|
|
|
- return func(obj, view, flags);
|
|
|
- } else {
|
|
|
- PyErr_Clear();
|
|
|
- }
|
|
|
- }
|
|
|
- #endif
|
|
|
PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
-fail:
|
|
|
-#endif
|
|
|
return -1;
|
|
|
}
|
|
|
static void __Pyx_ReleaseBuffer(Py_buffer *view) {
|
|
|
PyObject *obj = view->obj;
|
|
|
if (!obj) return;
|
|
|
- #if PY_VERSION_HEX >= 0x02060000
|
|
|
if (PyObject_CheckBuffer(obj)) {
|
|
|
PyBuffer_Release(view);
|
|
|
return;
|
|
|
}
|
|
|
- #endif
|
|
|
if (PyObject_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) { __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view); return; }
|
|
|
- #if PY_VERSION_HEX < 0x02060000
|
|
|
- if (obj->ob_type->tp_dict) {
|
|
|
- PyObject *releasebuffer_cobj = PyObject_GetItem(
|
|
|
- obj->ob_type->tp_dict, __pyx_n_s_pyx_releasebuffer);
|
|
|
- if (releasebuffer_cobj) {
|
|
|
- releasebufferproc func = (releasebufferproc) PyCObject_AsVoidPtr(releasebuffer_cobj);
|
|
|
- Py_DECREF(releasebuffer_cobj);
|
|
|
- if (!func)
|
|
|
- goto fail;
|
|
|
- func(obj, view);
|
|
|
- return;
|
|
|
- } else {
|
|
|
- PyErr_Clear();
|
|
|
- }
|
|
|
- }
|
|
|
- #endif
|
|
|
- goto nofail;
|
|
|
-#if PY_VERSION_HEX < 0x02060000
|
|
|
-fail:
|
|
|
-#endif
|
|
|
- PyErr_WriteUnraisable(obj);
|
|
|
-nofail:
|
|
|
Py_DECREF(obj);
|
|
|
view->obj = NULL;
|
|
|
}
|
|
|
-#endif /* PY_MAJOR_VERSION < 3 */
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
- static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
|
|
|
+ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
|
|
|
PyObject *empty_list = 0;
|
|
|
PyObject *module = 0;
|
|
|
PyObject *global_dict = 0;
|
|
@@ -9233,7 +9440,6 @@ nofail:
|
|
|
empty_dict = PyDict_New();
|
|
|
if (!empty_dict)
|
|
|
goto bad;
|
|
|
- #if PY_VERSION_HEX >= 0x02050000
|
|
|
{
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
|
if (level == -1) {
|
|
@@ -9255,7 +9461,7 @@ nofail:
|
|
|
PyErr_Clear();
|
|
|
}
|
|
|
}
|
|
|
- level = 0; /* try absolute import on failure */
|
|
|
+ level = 0;
|
|
|
}
|
|
|
#endif
|
|
|
if (!module) {
|
|
@@ -9272,14 +9478,6 @@ nofail:
|
|
|
#endif
|
|
|
}
|
|
|
}
|
|
|
- #else
|
|
|
- if (level>0) {
|
|
|
- PyErr_SetString(PyExc_RuntimeError, "Relative import is not supported for Python <=2.4.");
|
|
|
- goto bad;
|
|
|
- }
|
|
|
- module = PyObject_CallFunctionObjArgs(py_import,
|
|
|
- name, global_dict, empty_dict, list, NULL);
|
|
|
- #endif
|
|
|
bad:
|
|
|
#if PY_VERSION_HEX < 0x03030000
|
|
|
Py_XDECREF(py_import);
|
|
@@ -9289,17 +9487,16 @@ bad:
|
|
|
return module;
|
|
|
}
|
|
|
|
|
|
-#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func) \
|
|
|
+#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value) \
|
|
|
{ \
|
|
|
- func_type value = func(x); \
|
|
|
+ func_type value = func_value; \
|
|
|
if (sizeof(target_type) < sizeof(func_type)) { \
|
|
|
if (unlikely(value != (func_type) (target_type) value)) { \
|
|
|
func_type zero = 0; \
|
|
|
- PyErr_SetString(PyExc_OverflowError, \
|
|
|
- (is_unsigned && unlikely(value < zero)) ? \
|
|
|
- "can't convert negative value to " #target_type : \
|
|
|
- "value too large to convert to " #target_type); \
|
|
|
- return (target_type) -1; \
|
|
|
+ if (is_unsigned && unlikely(value < zero)) \
|
|
|
+ goto raise_neg_overflow; \
|
|
|
+ else \
|
|
|
+ goto raise_overflow; \
|
|
|
} \
|
|
|
} \
|
|
|
return (target_type) value; \
|
|
@@ -9310,19 +9507,18 @@ bad:
|
|
|
#include "longintrepr.h"
|
|
|
#endif
|
|
|
#endif
|
|
|
+
|
|
|
static CYTHON_INLINE npy_long __Pyx_PyInt_As_npy_long(PyObject *x) {
|
|
|
const npy_long neg_one = (npy_long) -1, const_zero = 0;
|
|
|
const int is_unsigned = neg_one > const_zero;
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
if (likely(PyInt_Check(x))) {
|
|
|
if (sizeof(npy_long) < sizeof(long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(npy_long, long, PyInt_AS_LONG)
|
|
|
+ __PYX_VERIFY_RETURN_INT(npy_long, long, PyInt_AS_LONG(x))
|
|
|
} else {
|
|
|
long val = PyInt_AS_LONG(x);
|
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
|
- PyErr_SetString(PyExc_OverflowError,
|
|
|
- "can't convert negative value to npy_long");
|
|
|
- return (npy_long) -1;
|
|
|
+ goto raise_neg_overflow;
|
|
|
}
|
|
|
return (npy_long) val;
|
|
|
}
|
|
@@ -9332,40 +9528,34 @@ static CYTHON_INLINE npy_long __Pyx_PyInt_As_npy_long(PyObject *x) {
|
|
|
if (is_unsigned) {
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- if (sizeof(digit) <= sizeof(npy_long)) {
|
|
|
- switch (Py_SIZE(x)) {
|
|
|
- case 0: return 0;
|
|
|
- case 1: return (npy_long) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- }
|
|
|
+ switch (Py_SIZE(x)) {
|
|
|
+ case 0: return 0;
|
|
|
+ case 1: __PYX_VERIFY_RETURN_INT(npy_long, digit, ((PyLongObject*)x)->ob_digit[0]);
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
|
- PyErr_SetString(PyExc_OverflowError,
|
|
|
- "can't convert negative value to npy_long");
|
|
|
- return (npy_long) -1;
|
|
|
+ goto raise_neg_overflow;
|
|
|
}
|
|
|
if (sizeof(npy_long) <= sizeof(unsigned long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(npy_long, unsigned long, PyLong_AsUnsignedLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(npy_long, unsigned long, PyLong_AsUnsignedLong(x))
|
|
|
} else if (sizeof(npy_long) <= sizeof(unsigned long long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(npy_long, unsigned long long, PyLong_AsUnsignedLongLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(npy_long, unsigned long long, PyLong_AsUnsignedLongLong(x))
|
|
|
}
|
|
|
} else {
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- if (sizeof(digit) <= sizeof(npy_long)) {
|
|
|
- switch (Py_SIZE(x)) {
|
|
|
- case 0: return 0;
|
|
|
- case 1: return +(npy_long) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- case -1: return -(npy_long) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- }
|
|
|
+ switch (Py_SIZE(x)) {
|
|
|
+ case 0: return 0;
|
|
|
+ case 1: __PYX_VERIFY_RETURN_INT(npy_long, digit, +(((PyLongObject*)x)->ob_digit[0]));
|
|
|
+ case -1: __PYX_VERIFY_RETURN_INT(npy_long, sdigit, -(sdigit) ((PyLongObject*)x)->ob_digit[0]);
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
if (sizeof(npy_long) <= sizeof(long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(npy_long, long, PyLong_AsLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(npy_long, long, PyLong_AsLong(x))
|
|
|
} else if (sizeof(npy_long) <= sizeof(long long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(npy_long, long long, PyLong_AsLongLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(npy_long, long long, PyLong_AsLongLong(x))
|
|
|
}
|
|
|
}
|
|
|
{
|
|
@@ -9403,6 +9593,14 @@ static CYTHON_INLINE npy_long __Pyx_PyInt_As_npy_long(PyObject *x) {
|
|
|
Py_DECREF(tmp);
|
|
|
return val;
|
|
|
}
|
|
|
+raise_overflow:
|
|
|
+ PyErr_SetString(PyExc_OverflowError,
|
|
|
+ "value too large to convert to npy_long");
|
|
|
+ return (npy_long) -1;
|
|
|
+raise_neg_overflow:
|
|
|
+ PyErr_SetString(PyExc_OverflowError,
|
|
|
+ "can't convert negative value to npy_long");
|
|
|
+ return (npy_long) -1;
|
|
|
}
|
|
|
|
|
|
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value) {
|
|
@@ -9736,24 +9934,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
- #if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- #include "longintrepr.h"
|
|
|
- #endif
|
|
|
-#endif
|
|
|
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
|
|
|
const int neg_one = (int) -1, const_zero = 0;
|
|
|
const int is_unsigned = neg_one > const_zero;
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
if (likely(PyInt_Check(x))) {
|
|
|
if (sizeof(int) < sizeof(long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG)
|
|
|
+ __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
|
|
|
} else {
|
|
|
long val = PyInt_AS_LONG(x);
|
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
|
- PyErr_SetString(PyExc_OverflowError,
|
|
|
- "can't convert negative value to int");
|
|
|
- return (int) -1;
|
|
|
+ goto raise_neg_overflow;
|
|
|
}
|
|
|
return (int) val;
|
|
|
}
|
|
@@ -9763,40 +9954,34 @@ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
|
|
|
if (is_unsigned) {
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- if (sizeof(digit) <= sizeof(int)) {
|
|
|
- switch (Py_SIZE(x)) {
|
|
|
- case 0: return 0;
|
|
|
- case 1: return (int) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- }
|
|
|
+ switch (Py_SIZE(x)) {
|
|
|
+ case 0: return 0;
|
|
|
+ case 1: __PYX_VERIFY_RETURN_INT(int, digit, ((PyLongObject*)x)->ob_digit[0]);
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
|
- PyErr_SetString(PyExc_OverflowError,
|
|
|
- "can't convert negative value to int");
|
|
|
- return (int) -1;
|
|
|
+ goto raise_neg_overflow;
|
|
|
}
|
|
|
if (sizeof(int) <= sizeof(unsigned long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(int, unsigned long, PyLong_AsUnsignedLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, PyLong_AsUnsignedLong(x))
|
|
|
} else if (sizeof(int) <= sizeof(unsigned long long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(int, unsigned long long, PyLong_AsUnsignedLongLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(int, unsigned long long, PyLong_AsUnsignedLongLong(x))
|
|
|
}
|
|
|
} else {
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- if (sizeof(digit) <= sizeof(int)) {
|
|
|
- switch (Py_SIZE(x)) {
|
|
|
- case 0: return 0;
|
|
|
- case 1: return +(int) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- case -1: return -(int) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- }
|
|
|
+ switch (Py_SIZE(x)) {
|
|
|
+ case 0: return 0;
|
|
|
+ case 1: __PYX_VERIFY_RETURN_INT(int, digit, +(((PyLongObject*)x)->ob_digit[0]));
|
|
|
+ case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, -(sdigit) ((PyLongObject*)x)->ob_digit[0]);
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
if (sizeof(int) <= sizeof(long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(int, long, PyLong_AsLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(int, long, PyLong_AsLong(x))
|
|
|
} else if (sizeof(int) <= sizeof(long long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(int, long long, PyLong_AsLongLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(int, long long, PyLong_AsLongLong(x))
|
|
|
}
|
|
|
}
|
|
|
{
|
|
@@ -9834,6 +10019,14 @@ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
|
|
|
Py_DECREF(tmp);
|
|
|
return val;
|
|
|
}
|
|
|
+raise_overflow:
|
|
|
+ PyErr_SetString(PyExc_OverflowError,
|
|
|
+ "value too large to convert to int");
|
|
|
+ return (int) -1;
|
|
|
+raise_neg_overflow:
|
|
|
+ PyErr_SetString(PyExc_OverflowError,
|
|
|
+ "can't convert negative value to int");
|
|
|
+ return (int) -1;
|
|
|
}
|
|
|
|
|
|
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
|
|
@@ -9862,24 +10055,17 @@ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
- #if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- #include "longintrepr.h"
|
|
|
- #endif
|
|
|
-#endif
|
|
|
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
|
|
|
const long neg_one = (long) -1, const_zero = 0;
|
|
|
const int is_unsigned = neg_one > const_zero;
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
if (likely(PyInt_Check(x))) {
|
|
|
if (sizeof(long) < sizeof(long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG)
|
|
|
+ __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
|
|
|
} else {
|
|
|
long val = PyInt_AS_LONG(x);
|
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
|
- PyErr_SetString(PyExc_OverflowError,
|
|
|
- "can't convert negative value to long");
|
|
|
- return (long) -1;
|
|
|
+ goto raise_neg_overflow;
|
|
|
}
|
|
|
return (long) val;
|
|
|
}
|
|
@@ -9889,40 +10075,34 @@ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
|
|
|
if (is_unsigned) {
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- if (sizeof(digit) <= sizeof(long)) {
|
|
|
- switch (Py_SIZE(x)) {
|
|
|
- case 0: return 0;
|
|
|
- case 1: return (long) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- }
|
|
|
+ switch (Py_SIZE(x)) {
|
|
|
+ case 0: return 0;
|
|
|
+ case 1: __PYX_VERIFY_RETURN_INT(long, digit, ((PyLongObject*)x)->ob_digit[0]);
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
|
- PyErr_SetString(PyExc_OverflowError,
|
|
|
- "can't convert negative value to long");
|
|
|
- return (long) -1;
|
|
|
+ goto raise_neg_overflow;
|
|
|
}
|
|
|
if (sizeof(long) <= sizeof(unsigned long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(long, unsigned long, PyLong_AsUnsignedLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, PyLong_AsUnsignedLong(x))
|
|
|
} else if (sizeof(long) <= sizeof(unsigned long long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(long, unsigned long long, PyLong_AsUnsignedLongLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(long, unsigned long long, PyLong_AsUnsignedLongLong(x))
|
|
|
}
|
|
|
} else {
|
|
|
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
#if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- if (sizeof(digit) <= sizeof(long)) {
|
|
|
- switch (Py_SIZE(x)) {
|
|
|
- case 0: return 0;
|
|
|
- case 1: return +(long) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- case -1: return -(long) ((PyLongObject*)x)->ob_digit[0];
|
|
|
- }
|
|
|
+ switch (Py_SIZE(x)) {
|
|
|
+ case 0: return 0;
|
|
|
+ case 1: __PYX_VERIFY_RETURN_INT(long, digit, +(((PyLongObject*)x)->ob_digit[0]));
|
|
|
+ case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, -(sdigit) ((PyLongObject*)x)->ob_digit[0]);
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
if (sizeof(long) <= sizeof(long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(long, long, PyLong_AsLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(long, long, PyLong_AsLong(x))
|
|
|
} else if (sizeof(long) <= sizeof(long long)) {
|
|
|
- __PYX_VERIFY_RETURN_INT(long, long long, PyLong_AsLongLong)
|
|
|
+ __PYX_VERIFY_RETURN_INT(long, long long, PyLong_AsLongLong(x))
|
|
|
}
|
|
|
}
|
|
|
{
|
|
@@ -9960,6 +10140,14 @@ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
|
|
|
Py_DECREF(tmp);
|
|
|
return val;
|
|
|
}
|
|
|
+raise_overflow:
|
|
|
+ PyErr_SetString(PyExc_OverflowError,
|
|
|
+ "value too large to convert to long");
|
|
|
+ return (long) -1;
|
|
|
+raise_neg_overflow:
|
|
|
+ PyErr_SetString(PyExc_OverflowError,
|
|
|
+ "can't convert negative value to long");
|
|
|
+ return (long) -1;
|
|
|
}
|
|
|
|
|
|
static int __Pyx_check_binary_version(void) {
|
|
@@ -9972,11 +10160,7 @@ static int __Pyx_check_binary_version(void) {
|
|
|
"compiletime version %s of module '%.100s' "
|
|
|
"does not match runtime version %s",
|
|
|
ctversion, __Pyx_MODULE_NAME, rtversion);
|
|
|
- #if PY_VERSION_HEX < 0x02050000
|
|
|
- return PyErr_Warn(NULL, message);
|
|
|
- #else
|
|
|
return PyErr_WarnEx(NULL, message, 1);
|
|
|
- #endif
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
@@ -10046,11 +10230,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
|
|
|
PyOS_snprintf(warning, sizeof(warning),
|
|
|
"%s.%s size changed, may indicate binary incompatibility",
|
|
|
module_name, class_name);
|
|
|
- #if PY_VERSION_HEX < 0x02050000
|
|
|
- if (PyErr_Warn(NULL, warning) < 0) goto bad;
|
|
|
- #else
|
|
|
if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
|
|
|
- #endif
|
|
|
}
|
|
|
else if ((size_t)basicsize != size) {
|
|
|
PyErr_Format(PyExc_ValueError,
|
|
@@ -10066,168 +10246,6 @@ bad:
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
|
|
|
- int start = 0, mid = 0, end = count - 1;
|
|
|
- if (end >= 0 && code_line > entries[end].code_line) {
|
|
|
- return count;
|
|
|
- }
|
|
|
- while (start < end) {
|
|
|
- mid = (start + end) / 2;
|
|
|
- if (code_line < entries[mid].code_line) {
|
|
|
- end = mid;
|
|
|
- } else if (code_line > entries[mid].code_line) {
|
|
|
- start = mid + 1;
|
|
|
- } else {
|
|
|
- return mid;
|
|
|
- }
|
|
|
- }
|
|
|
- if (code_line <= entries[mid].code_line) {
|
|
|
- return mid;
|
|
|
- } else {
|
|
|
- return mid + 1;
|
|
|
- }
|
|
|
-}
|
|
|
-static PyCodeObject *__pyx_find_code_object(int code_line) {
|
|
|
- PyCodeObject* code_object;
|
|
|
- int pos;
|
|
|
- if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
|
|
|
- return NULL;
|
|
|
- }
|
|
|
- pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
|
|
|
- if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
|
|
|
- return NULL;
|
|
|
- }
|
|
|
- code_object = __pyx_code_cache.entries[pos].code_object;
|
|
|
- Py_INCREF(code_object);
|
|
|
- return code_object;
|
|
|
-}
|
|
|
-static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
|
|
- int pos, i;
|
|
|
- __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
|
|
|
- if (unlikely(!code_line)) {
|
|
|
- return;
|
|
|
- }
|
|
|
- if (unlikely(!entries)) {
|
|
|
- entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
|
|
|
- if (likely(entries)) {
|
|
|
- __pyx_code_cache.entries = entries;
|
|
|
- __pyx_code_cache.max_count = 64;
|
|
|
- __pyx_code_cache.count = 1;
|
|
|
- entries[0].code_line = code_line;
|
|
|
- entries[0].code_object = code_object;
|
|
|
- Py_INCREF(code_object);
|
|
|
- }
|
|
|
- return;
|
|
|
- }
|
|
|
- pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
|
|
|
- if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
|
|
|
- PyCodeObject* tmp = entries[pos].code_object;
|
|
|
- entries[pos].code_object = code_object;
|
|
|
- Py_DECREF(tmp);
|
|
|
- return;
|
|
|
- }
|
|
|
- if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
|
|
|
- int new_max = __pyx_code_cache.max_count + 64;
|
|
|
- entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
|
|
|
- __pyx_code_cache.entries, new_max*sizeof(__Pyx_CodeObjectCacheEntry));
|
|
|
- if (unlikely(!entries)) {
|
|
|
- return;
|
|
|
- }
|
|
|
- __pyx_code_cache.entries = entries;
|
|
|
- __pyx_code_cache.max_count = new_max;
|
|
|
- }
|
|
|
- for (i=__pyx_code_cache.count; i>pos; i--) {
|
|
|
- entries[i] = entries[i-1];
|
|
|
- }
|
|
|
- entries[pos].code_line = code_line;
|
|
|
- entries[pos].code_object = code_object;
|
|
|
- __pyx_code_cache.count++;
|
|
|
- Py_INCREF(code_object);
|
|
|
-}
|
|
|
-
|
|
|
-#include "compile.h"
|
|
|
-#include "frameobject.h"
|
|
|
-#include "traceback.h"
|
|
|
-static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
|
|
|
- const char *funcname, int c_line,
|
|
|
- int py_line, const char *filename) {
|
|
|
- PyCodeObject *py_code = 0;
|
|
|
- PyObject *py_srcfile = 0;
|
|
|
- PyObject *py_funcname = 0;
|
|
|
- #if PY_MAJOR_VERSION < 3
|
|
|
- py_srcfile = PyString_FromString(filename);
|
|
|
- #else
|
|
|
- py_srcfile = PyUnicode_FromString(filename);
|
|
|
- #endif
|
|
|
- if (!py_srcfile) goto bad;
|
|
|
- if (c_line) {
|
|
|
- #if PY_MAJOR_VERSION < 3
|
|
|
- py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
|
|
|
- #else
|
|
|
- py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
|
|
|
- #endif
|
|
|
- }
|
|
|
- else {
|
|
|
- #if PY_MAJOR_VERSION < 3
|
|
|
- py_funcname = PyString_FromString(funcname);
|
|
|
- #else
|
|
|
- py_funcname = PyUnicode_FromString(funcname);
|
|
|
- #endif
|
|
|
- }
|
|
|
- if (!py_funcname) goto bad;
|
|
|
- py_code = __Pyx_PyCode_New(
|
|
|
- 0, /*int argcount,*/
|
|
|
- 0, /*int kwonlyargcount,*/
|
|
|
- 0, /*int nlocals,*/
|
|
|
- 0, /*int stacksize,*/
|
|
|
- 0, /*int flags,*/
|
|
|
- __pyx_empty_bytes, /*PyObject *code,*/
|
|
|
- __pyx_empty_tuple, /*PyObject *consts,*/
|
|
|
- __pyx_empty_tuple, /*PyObject *names,*/
|
|
|
- __pyx_empty_tuple, /*PyObject *varnames,*/
|
|
|
- __pyx_empty_tuple, /*PyObject *freevars,*/
|
|
|
- __pyx_empty_tuple, /*PyObject *cellvars,*/
|
|
|
- py_srcfile, /*PyObject *filename,*/
|
|
|
- py_funcname, /*PyObject *name,*/
|
|
|
- py_line, /*int firstlineno,*/
|
|
|
- __pyx_empty_bytes /*PyObject *lnotab*/
|
|
|
- );
|
|
|
- Py_DECREF(py_srcfile);
|
|
|
- Py_DECREF(py_funcname);
|
|
|
- return py_code;
|
|
|
-bad:
|
|
|
- Py_XDECREF(py_srcfile);
|
|
|
- Py_XDECREF(py_funcname);
|
|
|
- return NULL;
|
|
|
-}
|
|
|
-static void __Pyx_AddTraceback(const char *funcname, int c_line,
|
|
|
- int py_line, const char *filename) {
|
|
|
- PyCodeObject *py_code = 0;
|
|
|
- PyObject *py_globals = 0;
|
|
|
- PyFrameObject *py_frame = 0;
|
|
|
- py_code = __pyx_find_code_object(c_line ? c_line : py_line);
|
|
|
- if (!py_code) {
|
|
|
- py_code = __Pyx_CreateCodeObjectForTraceback(
|
|
|
- funcname, c_line, py_line, filename);
|
|
|
- if (!py_code) goto bad;
|
|
|
- __pyx_insert_code_object(c_line ? c_line : py_line, py_code);
|
|
|
- }
|
|
|
- py_globals = PyModule_GetDict(__pyx_m);
|
|
|
- if (!py_globals) goto bad;
|
|
|
- py_frame = PyFrame_New(
|
|
|
- PyThreadState_GET(), /*PyThreadState *tstate,*/
|
|
|
- py_code, /*PyCodeObject *code,*/
|
|
|
- py_globals, /*PyObject *globals,*/
|
|
|
- 0 /*PyObject *locals*/
|
|
|
- );
|
|
|
- if (!py_frame) goto bad;
|
|
|
- py_frame->f_lineno = py_line;
|
|
|
- PyTraceBack_Here(py_frame);
|
|
|
-bad:
|
|
|
- Py_XDECREF(py_code);
|
|
|
- Py_XDECREF(py_frame);
|
|
|
-}
|
|
|
-
|
|
|
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
|
|
|
while (t->p) {
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
@@ -10238,7 +10256,7 @@ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
|
|
|
} else {
|
|
|
*t->p = PyString_FromStringAndSize(t->s, t->n - 1);
|
|
|
}
|
|
|
- #else /* Python 3+ has unicode identifiers */
|
|
|
+ #else
|
|
|
if (t->is_unicode | t->is_str) {
|
|
|
if (t->intern) {
|
|
|
*t->p = PyUnicode_InternFromString(t->s);
|
|
@@ -10259,7 +10277,7 @@ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
|
|
|
}
|
|
|
|
|
|
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
|
|
|
- return __Pyx_PyUnicode_FromStringAndSize(c_str, strlen(c_str));
|
|
|
+ return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
|
|
|
}
|
|
|
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
|
|
|
Py_ssize_t ignore;
|
|
@@ -10288,11 +10306,11 @@ static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-#endif /*__PYX_DEFAULT_STRING_ENCODING_IS_ASCII*/
|
|
|
+#endif
|
|
|
*length = PyBytes_GET_SIZE(defenc);
|
|
|
return defenc_c;
|
|
|
-#else /* PY_VERSION_HEX < 0x03030000 */
|
|
|
- if (PyUnicode_READY(o) == -1) return NULL;
|
|
|
+#else
|
|
|
+ if (__Pyx_PyUnicode_READY(o) == -1) return NULL;
|
|
|
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
|
|
|
if (PyUnicode_IS_ASCII(o)) {
|
|
|
*length = PyUnicode_GET_LENGTH(o);
|
|
@@ -10301,20 +10319,18 @@ static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_
|
|
|
PyUnicode_AsASCIIString(o);
|
|
|
return NULL;
|
|
|
}
|
|
|
-#else /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII */
|
|
|
+#else
|
|
|
return PyUnicode_AsUTF8AndSize(o, length);
|
|
|
-#endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII */
|
|
|
-#endif /* PY_VERSION_HEX < 0x03030000 */
|
|
|
+#endif
|
|
|
+#endif
|
|
|
} else
|
|
|
-#endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT */
|
|
|
+#endif
|
|
|
#if !CYTHON_COMPILING_IN_PYPY
|
|
|
-#if PY_VERSION_HEX >= 0x02060000
|
|
|
if (PyByteArray_Check(o)) {
|
|
|
*length = PyByteArray_GET_SIZE(o);
|
|
|
return PyByteArray_AS_STRING(o);
|
|
|
} else
|
|
|
#endif
|
|
|
-#endif
|
|
|
{
|
|
|
char* result;
|
|
|
int r = PyBytes_AsStringAndSize(o, &result, length);
|
|
@@ -10375,11 +10391,6 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
-#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
|
|
|
- #if CYTHON_USE_PYLONG_INTERNALS
|
|
|
- #include "longintrepr.h"
|
|
|
- #endif
|
|
|
-#endif
|
|
|
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
|
|
|
Py_ssize_t ival;
|
|
|
PyObject *x;
|
|
@@ -10397,11 +10408,7 @@ static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
- #if PY_VERSION_HEX < 0x02060000
|
|
|
- return PyInt_AsSsize_t(b);
|
|
|
- #else
|
|
|
return PyLong_AsSsize_t(b);
|
|
|
- #endif
|
|
|
}
|
|
|
x = PyNumber_Index(b);
|
|
|
if (!x) return -1;
|
|
@@ -10410,17 +10417,7 @@ static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
|
|
|
return ival;
|
|
|
}
|
|
|
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
|
|
|
-#if PY_VERSION_HEX < 0x02050000
|
|
|
- if (ival <= LONG_MAX)
|
|
|
- return PyInt_FromLong((long)ival);
|
|
|
- else {
|
|
|
- unsigned char *bytes = (unsigned char *) &ival;
|
|
|
- int one = 1; int little = (int)*(unsigned char*)&one;
|
|
|
- return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
|
|
|
- }
|
|
|
-#else
|
|
|
- return PyInt_FromSize_t(ival);
|
|
|
-#endif
|
|
|
+ return PyInt_FromSize_t(ival);
|
|
|
}
|
|
|
|
|
|
|