diff --git a/root_numpy/src/_librootnumpy.cpp b/root_numpy/src/_librootnumpy.cpp index 7c25fbe..1c65a64 100644 --- a/root_numpy/src/_librootnumpy.cpp +++ b/root_numpy/src/_librootnumpy.cpp @@ -1,13 +1,14 @@ -/* Generated by Cython 0.25.2 */ +/* Generated by Cython 0.28.4 */ #define PY_SSIZE_T_CLEAN #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 < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) - #error Cython requires Python 2.6+ or Python 3.2+. +#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) + #error Cython requires Python 2.6+ or Python 3.3+. #else -#define CYTHON_ABI "0_25_2" +#define CYTHON_ABI "0_28_4" +#define CYTHON_FUTURE_DIVISION 0 #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) @@ -29,8 +30,9 @@ #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif +#define __PYX_COMMA , #ifndef HAVE_LONG_LONG - #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) + #if PY_VERSION_HEX >= 0x02070000 #define HAVE_LONG_LONG #endif #endif @@ -46,8 +48,14 @@ #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 - #undef CYTHON_USE_ASYNC_SLOTS - #define CYTHON_USE_ASYNC_SLOTS 0 + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #if PY_VERSION_HEX < 0x03050000 + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #elif !defined(CYTHON_USE_ASYNC_SLOTS) + #define CYTHON_USE_ASYNC_SLOTS 1 + #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS @@ -66,6 +74,10 @@ #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #undef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 @@ -73,6 +85,8 @@ #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS @@ -97,6 +111,10 @@ #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #undef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 @@ -104,6 +122,12 @@ #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif + #if PY_VERSION_HEX < 0x02070000 + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #elif !defined(CYTHON_USE_PYTYPE_LOOKUP) + #define CYTHON_USE_PYTYPE_LOOKUP 1 + #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 @@ -143,6 +167,12 @@ #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif + #ifndef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000) + #endif + #ifndef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) + #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) @@ -153,6 +183,117 @@ #undef BASE #undef MASK #endif +#ifndef __has_attribute + #define __has_attribute(x) 0 +#endif +#ifndef __has_cpp_attribute + #define __has_cpp_attribute(x) 0 +#endif +#ifndef CYTHON_RESTRICT + #if defined(__GNUC__) + #define CYTHON_RESTRICT __restrict__ + #elif defined(_MSC_VER) && _MSC_VER >= 1400 + #define CYTHON_RESTRICT __restrict + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + #define CYTHON_RESTRICT restrict + #else + #define CYTHON_RESTRICT + #endif +#endif +#ifndef CYTHON_UNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define CYTHON_UNUSED __attribute__ ((__unused__)) +# else +# define CYTHON_UNUSED +# endif +# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) +# define CYTHON_UNUSED __attribute__ ((__unused__)) +# else +# define CYTHON_UNUSED +# endif +#endif +#ifndef CYTHON_MAYBE_UNUSED_VAR +# if defined(__cplusplus) + template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } +# else +# define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) +# endif +#endif +#ifndef CYTHON_NCP_UNUSED +# if CYTHON_COMPILING_IN_CPYTHON +# define CYTHON_NCP_UNUSED +# else +# define CYTHON_NCP_UNUSED CYTHON_UNUSED +# endif +#endif +#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) +#ifdef _MSC_VER + #ifndef _MSC_STDINT_H_ + #if _MSC_VER < 1300 + typedef unsigned char uint8_t; + typedef unsigned int uint32_t; + #else + typedef unsigned __int8 uint8_t; + typedef unsigned __int32 uint32_t; + #endif + #endif +#else + #include +#endif +#ifndef CYTHON_FALLTHROUGH + #if defined(__cplusplus) && __cplusplus >= 201103L + #if __has_cpp_attribute(fallthrough) + #define CYTHON_FALLTHROUGH [[fallthrough]] + #elif __has_cpp_attribute(clang::fallthrough) + #define CYTHON_FALLTHROUGH [[clang::fallthrough]] + #elif __has_cpp_attribute(gnu::fallthrough) + #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] + #endif + #endif + #ifndef CYTHON_FALLTHROUGH + #if __has_attribute(fallthrough) + #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) + #else + #define CYTHON_FALLTHROUGH + #endif + #endif + #if defined(__clang__ ) && defined(__apple_build_version__) + #if __apple_build_version__ < 7000000 + #undef CYTHON_FALLTHROUGH + #define CYTHON_FALLTHROUGH + #endif + #endif +#endif + +#ifndef __cplusplus + #error "Cython files generated with the C++ option must be compiled with a C++ compiler." +#endif +#ifndef CYTHON_INLINE + #if defined(__clang__) + #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) + #else + #define CYTHON_INLINE inline + #endif +#endif +template +void __Pyx_call_destructor(T& x) { + x.~T(); +} +template +class __Pyx_FakeReference { + public: + __Pyx_FakeReference() : ptr(NULL) { } + __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } + T *operator->() { return ptr; } + T *operator&() { return ptr; } + operator T&() { return *ptr; } + template bool operator ==(U other) { return *ptr == other; } + template bool operator !=(U other) { return *ptr != other; } + private: + T *ptr; +}; + #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif @@ -181,19 +322,91 @@ #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif -#ifndef METH_FASTCALL - #define METH_FASTCALL 0x80 - typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, - Py_ssize_t nargs, PyObject *kwnames); +#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) + #ifndef METH_FASTCALL + #define METH_FASTCALL 0x80 + #endif + typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); + typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, + Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast + #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ - ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) + ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif +#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) + #define PyObject_Malloc(s) PyMem_Malloc(s) + #define PyObject_Free(p) PyMem_Free(p) + #define PyObject_Realloc(p) PyMem_Realloc(p) +#endif +#if CYTHON_COMPILING_IN_PYSTON + #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) +#else + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) +#endif +#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 + #define __Pyx_PyThreadState_Current PyThreadState_GET() +#elif PY_VERSION_HEX >= 0x03060000 + #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() +#elif PY_VERSION_HEX >= 0x03000000 + #define __Pyx_PyThreadState_Current PyThreadState_GET() +#else + #define __Pyx_PyThreadState_Current _PyThreadState_Current +#endif +#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) +#include "pythread.h" +#define Py_tss_NEEDS_INIT 0 +typedef int Py_tss_t; +static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { + *key = PyThread_create_key(); + return 0; // PyThread_create_key reports success always +} +static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { + Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); + *key = Py_tss_NEEDS_INIT; + return key; +} +static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { + PyObject_Free(key); +} +static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { + return *key != Py_tss_NEEDS_INIT; +} +static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { + PyThread_delete_key(*key); + *key = Py_tss_NEEDS_INIT; +} +static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { + return PyThread_set_key_value(*key, value); +} +static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { + return PyThread_get_key_value(*key); +} +#endif // TSS (Thread Specific Storage) API +#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) +#define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) +#else +#define __Pyx_PyDict_NewPresized(n) PyDict_New() +#endif +#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION + #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) + #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) +#else + #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) + #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) +#endif +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS +#define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) +#else +#define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name) +#endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ @@ -238,18 +451,6 @@ #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif -#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) - #define PyObject_Malloc(s) PyMem_Malloc(s) - #define PyObject_Free(p) PyMem_Free(p) - #define PyObject_Realloc(p) PyMem_Realloc(p) -#endif -#if CYTHON_COMPILING_IN_PYSTON - #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) - #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) -#else - #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) - #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) -#endif #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 @@ -266,6 +467,7 @@ #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact + #define PyObject_Unicode PyObject_Str #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) @@ -277,8 +479,11 @@ #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif -#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) -#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) +#if CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) +#else + #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) +#endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type @@ -313,7 +518,7 @@ #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 - #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) + #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif @@ -322,83 +527,18 @@ #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else - typedef struct { - unaryfunc am_await; - unaryfunc am_aiter; - unaryfunc am_anext; - } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif -#ifndef CYTHON_RESTRICT - #if defined(__GNUC__) - #define CYTHON_RESTRICT __restrict__ - #elif defined(_MSC_VER) && _MSC_VER >= 1400 - #define CYTHON_RESTRICT __restrict - #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - #define CYTHON_RESTRICT restrict - #else - #define CYTHON_RESTRICT - #endif -#endif -#ifndef CYTHON_UNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define CYTHON_UNUSED __attribute__ ((__unused__)) -# else -# define CYTHON_UNUSED -# endif -# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) -# define CYTHON_UNUSED __attribute__ ((__unused__)) -# else -# define CYTHON_UNUSED -# endif -#endif -#ifndef CYTHON_MAYBE_UNUSED_VAR -# if defined(__cplusplus) - template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } -# else -# define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) -# endif -#endif -#ifndef CYTHON_NCP_UNUSED -# if CYTHON_COMPILING_IN_CPYTHON -# define CYTHON_NCP_UNUSED -# else -# define CYTHON_NCP_UNUSED CYTHON_UNUSED -# endif +#ifndef __Pyx_PyAsyncMethodsStruct + typedef struct { + unaryfunc am_await; + unaryfunc am_aiter; + unaryfunc am_anext; + } __Pyx_PyAsyncMethodsStruct; #endif -#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) - -#ifndef __cplusplus - #error "Cython files generated with the C++ option must be compiled with a C++ compiler." -#endif -#ifndef CYTHON_INLINE - #if defined(__clang__) - #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) - #else - #define CYTHON_INLINE inline - #endif -#endif -template -void __Pyx_call_destructor(T& x) { - x.~T(); -} -template -class __Pyx_FakeReference { - public: - __Pyx_FakeReference() : ptr(NULL) { } - __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } - T *operator->() { return ptr; } - T *operator&() { return ptr; } - operator T&() { return *ptr; } - template bool operator ==(U other) { return *ptr == other; } - template bool operator !=(U other) { return *ptr != other; } - private: - T *ptr; -}; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES @@ -425,14 +565,6 @@ static CYTHON_INLINE float __PYX_NAN() { __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } -#if PY_MAJOR_VERSION >= 3 - #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) - #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) -#else - #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) - #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) -#endif - #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" @@ -443,9 +575,9 @@ static CYTHON_INLINE float __PYX_NAN() { #define __PYX_HAVE___librootnumpy #define __PYX_HAVE_API___librootnumpy +/* Early includes */ #include #include -#include #include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "pythread.h" @@ -457,6 +589,7 @@ static CYTHON_INLINE float __PYX_NAN() { #include #include #include +#include #include "TClass.h" #include "TObject.h" #include "TDirectory.h" @@ -503,7 +636,7 @@ static CYTHON_INLINE float __PYX_NAN() { #include #endif /* _OPENMP */ -#ifdef PYREX_WITHOUT_ASSERTIONS +#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif @@ -534,8 +667,8 @@ typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* enc #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) -#elif defined (_MSC_VER) && defined (_M_X64) - #define __Pyx_sst_abs(value) _abs64(value) +#elif defined (_MSC_VER) + #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) @@ -543,8 +676,8 @@ typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* enc #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif -static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); -static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); +static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); +static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString @@ -557,31 +690,37 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #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_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(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) -{ +static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } -#else -#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen -#endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) -#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) +static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); +#define __Pyx_PySequence_Tuple(obj)\ + (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS @@ -680,10 +819,12 @@ static int __Pyx_init_sys_getdefaultencoding_params(void) { #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ +static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } -static PyObject *__pyx_m; +static PyObject *__pyx_m = NULL; static PyObject *__pyx_d; static PyObject *__pyx_b; +static PyObject *__pyx_cython_runtime = NULL; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; @@ -726,14 +867,26 @@ static const char *__pyx_f[] = { "root_numpy/src/graph.pyx", "root_numpy/src/evaluate.pyx", "root_numpy/src/innerjoin.pyx", - "array.pxd", "__init__.pxd", + "array.pxd", "stringsource", "root_numpy/src/_librootnumpy.pyx", "type.pxd", "bool.pxd", "complex.pxd", }; +/* ForceInitThreads.proto */ +#ifndef __PYX_FORCE_INIT_THREADS + #define __PYX_FORCE_INIT_THREADS 0 +#endif + +/* NoFastGil.proto */ +#define __Pyx_PyGILState_Ensure PyGILState_Ensure +#define __Pyx_PyGILState_Release PyGILState_Release +#define __Pyx_FastGIL_Remember() +#define __Pyx_FastGIL_Forget() +#define __Pyx_FastGilFuncInit() + /* BufferFormatStructs.proto */ #define IS_UNSIGNED(type) (((type) -1) > 0) struct __Pyx_StructField_; @@ -771,7 +924,7 @@ typedef struct { } __Pyx_BufFmt_Context; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":725 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":730 * # in Cython to enable them only on the right systems. * * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<< @@ -779,10 +932,10 @@ typedef struct { * ctypedef npy_int32 int32_t */ -#line 725 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 730 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int8 __pyx_t_5numpy_int8_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":726 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":731 * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< @@ -790,10 +943,10 @@ typedef npy_int8 __pyx_t_5numpy_int8_t; * ctypedef npy_int64 int64_t */ -#line 726 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 731 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int16 __pyx_t_5numpy_int16_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":727 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":732 * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<< @@ -801,10 +954,10 @@ typedef npy_int16 __pyx_t_5numpy_int16_t; * #ctypedef npy_int96 int96_t */ -#line 727 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 732 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int32 __pyx_t_5numpy_int32_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":728 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":733 * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<< @@ -812,10 +965,10 @@ typedef npy_int32 __pyx_t_5numpy_int32_t; * #ctypedef npy_int128 int128_t */ -#line 728 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 733 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int64 __pyx_t_5numpy_int64_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":732 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":737 * #ctypedef npy_int128 int128_t * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< @@ -823,10 +976,10 @@ typedef npy_int64 __pyx_t_5numpy_int64_t; * ctypedef npy_uint32 uint32_t */ -#line 732 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 737 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint8 __pyx_t_5numpy_uint8_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":733 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":738 * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< @@ -834,10 +987,10 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t; * ctypedef npy_uint64 uint64_t */ -#line 733 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 738 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint16 __pyx_t_5numpy_uint16_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":734 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":739 * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<< @@ -845,10 +998,10 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t; * #ctypedef npy_uint96 uint96_t */ -#line 734 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 739 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint32 __pyx_t_5numpy_uint32_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":735 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":740 * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<< @@ -856,10 +1009,10 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t; * #ctypedef npy_uint128 uint128_t */ -#line 735 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 740 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint64 __pyx_t_5numpy_uint64_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":739 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":744 * #ctypedef npy_uint128 uint128_t * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< @@ -867,10 +1020,10 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t; * #ctypedef npy_float80 float80_t */ -#line 739 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 744 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_float32 __pyx_t_5numpy_float32_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":740 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":745 * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< @@ -878,10 +1031,10 @@ typedef npy_float32 __pyx_t_5numpy_float32_t; * #ctypedef npy_float128 float128_t */ -#line 740 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 745 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_float64 __pyx_t_5numpy_float64_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":749 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":754 * # The int types are mapped a bit surprising -- * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t # <<<<<<<<<<<<<< @@ -889,10 +1042,10 @@ typedef npy_float64 __pyx_t_5numpy_float64_t; * ctypedef npy_longlong longlong_t */ -#line 749 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 754 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_long __pyx_t_5numpy_int_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":750 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":755 * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t * ctypedef npy_longlong long_t # <<<<<<<<<<<<<< @@ -900,10 +1053,10 @@ typedef npy_long __pyx_t_5numpy_int_t; * */ -#line 750 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 755 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_longlong __pyx_t_5numpy_long_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":751 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":756 * ctypedef npy_long int_t * ctypedef npy_longlong long_t * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< @@ -911,10 +1064,10 @@ typedef npy_longlong __pyx_t_5numpy_long_t; * ctypedef npy_ulong uint_t */ -#line 751 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 756 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_longlong __pyx_t_5numpy_longlong_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":753 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":758 * ctypedef npy_longlong longlong_t * * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<< @@ -922,10 +1075,10 @@ typedef npy_longlong __pyx_t_5numpy_longlong_t; * ctypedef npy_ulonglong ulonglong_t */ -#line 753 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 758 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_ulong __pyx_t_5numpy_uint_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":754 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":759 * * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<< @@ -933,10 +1086,10 @@ typedef npy_ulong __pyx_t_5numpy_uint_t; * */ -#line 754 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 759 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_ulonglong __pyx_t_5numpy_ulong_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":755 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":760 * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< @@ -944,10 +1097,10 @@ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; * ctypedef npy_intp intp_t */ -#line 755 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 760 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":757 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":762 * ctypedef npy_ulonglong ulonglong_t * * ctypedef npy_intp intp_t # <<<<<<<<<<<<<< @@ -955,10 +1108,10 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; * */ -#line 757 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 762 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_intp __pyx_t_5numpy_intp_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":758 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":763 * * ctypedef npy_intp intp_t * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<< @@ -966,10 +1119,10 @@ typedef npy_intp __pyx_t_5numpy_intp_t; * ctypedef npy_double float_t */ -#line 758 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 763 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uintp __pyx_t_5numpy_uintp_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":760 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":765 * ctypedef npy_uintp uintp_t * * ctypedef npy_double float_t # <<<<<<<<<<<<<< @@ -977,10 +1130,10 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t; * ctypedef npy_longdouble longdouble_t */ -#line 760 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 765 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_double __pyx_t_5numpy_float_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":761 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":766 * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< @@ -988,10 +1141,10 @@ typedef npy_double __pyx_t_5numpy_float_t; * */ -#line 761 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 766 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_double __pyx_t_5numpy_double_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":762 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":767 * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< @@ -999,7 +1152,7 @@ typedef npy_double __pyx_t_5numpy_double_t; * ctypedef npy_cfloat cfloat_t */ -#line 762 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 767 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_longdouble __pyx_t_5numpy_longdouble_t; /* "root_numpy/src/setup.pxi":37 @@ -1109,7 +1262,7 @@ struct arrayobject; typedef struct arrayobject arrayobject; #endif -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":764 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":769 * ctypedef npy_longdouble longdouble_t * * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<< @@ -1117,10 +1270,10 @@ typedef struct arrayobject arrayobject; * ctypedef npy_clongdouble clongdouble_t */ -#line 764 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 769 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_cfloat __pyx_t_5numpy_cfloat_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":765 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 * * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<< @@ -1128,10 +1281,10 @@ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; * */ -#line 765 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 770 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_cdouble __pyx_t_5numpy_cdouble_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":766 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":771 * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<< @@ -1139,10 +1292,10 @@ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; * ctypedef npy_cdouble complex_t */ -#line 766 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 771 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":768 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 * ctypedef npy_clongdouble clongdouble_t * * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<< @@ -1150,88 +1303,88 @@ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; * cdef inline object PyArray_MultiIterNew1(a): */ -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_cdouble __pyx_t_5numpy_complex_t; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_write_array; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_write_array_vectorbool; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_write_array_vectorstring; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_Converter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_BasicConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_ObjectConverterBase; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VaryArrayConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_FixedArrayConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_CharArrayConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" template -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VectorConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" template -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VectorVectorConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VectorBoolConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VectorVectorBoolConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_StringConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VectorStringConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_VectorVectorStringConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_get_converter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_NP2ROOTConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_t_13_librootnumpy_FixedNP2ROOTConverter; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_21FixedNP2ROOTConverter___init__; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_list_objects_recursive; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_get_tree_structure; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_humanize_bytes; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_handle_load; -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" struct __pyx_opt_args_13_librootnumpy_array2tree; /* "root_numpy/src/converters.pyx":50 @@ -1320,11 +1473,25 @@ int get_dtypecode(void); virtual #line 160 "root_numpy/src/converters.pyx" bool can_truncate(void); - virtual ~__pyx_t_13_librootnumpy_Converter() { } + virtual #line 160 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_Converter() { + + /* "root_numpy/src/converters.pyx":203 + * + * + * cdef cppclass Converter: # <<<<<<<<<<<<<< + * + * int write(Column* col, void* here) except -1: + */ + +#line 203 "root_numpy/src/converters.pyx" + } + +#line 203 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_BasicConverter : public __pyx_t_13_librootnumpy_Converter -#line 160 "root_numpy/src/converters.pyx" +#line 203 "root_numpy/src/converters.pyx" { /* "root_numpy/src/converters.pyx":218 @@ -1345,7 +1512,7 @@ struct __pyx_t_13_librootnumpy_BasicConverter : public __pyx_t_13_librootnumpy_C std::string nptype; #line 218 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_BasicConverter(int, std::string, int); + void __pyx_f___init__BasicConverter(int, std::string &, int); virtual #line 218 "root_numpy/src/converters.pyx" int write(Column *, void *); @@ -1355,7 +1522,22 @@ PyObject *get_dtype(Column *); virtual #line 218 "root_numpy/src/converters.pyx" int get_dtypecode(void); - virtual ~__pyx_t_13_librootnumpy_BasicConverter() { } + +#line 218 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_BasicConverter(int __pyx_v_size, std::string __pyx_v_nptype, int __pyx_v_nptypecode) { + +#line 218 "root_numpy/src/converters.pyx" + __pyx_f___init__BasicConverter(__pyx_v_size, __pyx_v_nptype, __pyx_v_nptypecode); + +#line 218 "root_numpy/src/converters.pyx" + } + virtual +#line 218 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_BasicConverter() { + +#line 218 "root_numpy/src/converters.pyx" + } + #line 218 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_ObjectConverterBase : public __pyx_t_13_librootnumpy_Converter @@ -1367,11 +1549,25 @@ PyObject *get_dtype(Column *); virtual #line 218 "root_numpy/src/converters.pyx" int get_dtypecode(void); - virtual ~__pyx_t_13_librootnumpy_ObjectConverterBase() { } + virtual #line 218 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_ObjectConverterBase() { + + /* "root_numpy/src/converters.pyx":240 + * + * + * cdef cppclass ObjectConverterBase(Converter): # <<<<<<<<<<<<<< + * + * object get_dtype(Column* col): + */ + +#line 240 "root_numpy/src/converters.pyx" + } + +#line 240 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_VaryArrayConverter : public __pyx_t_13_librootnumpy_ObjectConverterBase -#line 218 "root_numpy/src/converters.pyx" +#line 240 "root_numpy/src/converters.pyx" { /* "root_numpy/src/converters.pyx":249 @@ -1398,10 +1594,10 @@ struct __pyx_t_13_librootnumpy_VaryArrayConverter : public __pyx_t_13_librootnum int elesize; #line 249 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VaryArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *, int, __pyx_t_13_librootnumpy_SIZE_t *); - virtual + void __pyx_f___init__VaryArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *, int, __pyx_t_13_librootnumpy_SIZE_t *); + #line 249 "root_numpy/src/converters.pyx" - ~__pyx_t_13_librootnumpy_VaryArrayConverter(void); + void __pyx_f___dealloc__VaryArrayConverter(void); virtual #line 249 "root_numpy/src/converters.pyx" int write(Column *, void *); @@ -1412,6 +1608,24 @@ PyObject *get_dtype(Column *); #line 249 "root_numpy/src/converters.pyx" bool can_truncate(void); +#line 249 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_VaryArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *__pyx_v_conv, int __pyx_v_ndim, __pyx_t_13_librootnumpy_SIZE_t *__pyx_v_dims) { + +#line 249 "root_numpy/src/converters.pyx" + __pyx_f___init__VaryArrayConverter(__pyx_v_conv, __pyx_v_ndim, __pyx_v_dims); + +#line 249 "root_numpy/src/converters.pyx" + } + virtual +#line 249 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VaryArrayConverter() { + +#line 249 "root_numpy/src/converters.pyx" + __pyx_f___dealloc__VaryArrayConverter(); + +#line 249 "root_numpy/src/converters.pyx" + } + #line 249 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_FixedArrayConverter : public __pyx_t_13_librootnumpy_Converter @@ -1433,10 +1647,10 @@ struct __pyx_t_13_librootnumpy_FixedArrayConverter : public __pyx_t_13_librootnu PyObject *shape; #line 287 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *, PyObject *); - virtual + void __pyx_f___init__FixedArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *, PyObject *); + #line 287 "root_numpy/src/converters.pyx" - ~__pyx_t_13_librootnumpy_FixedArrayConverter(void); + void __pyx_f___dealloc__FixedArrayConverter(void); virtual #line 287 "root_numpy/src/converters.pyx" int write(Column *, void *); @@ -1447,6 +1661,24 @@ PyObject *get_dtype(Column *); #line 287 "root_numpy/src/converters.pyx" int get_dtypecode(void); +#line 287 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_FixedArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *__pyx_v_conv, PyObject *__pyx_v_shape) { + +#line 287 "root_numpy/src/converters.pyx" + __pyx_f___init__FixedArrayConverter(__pyx_v_conv, __pyx_v_shape); + +#line 287 "root_numpy/src/converters.pyx" + } + virtual +#line 287 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_FixedArrayConverter() { + +#line 287 "root_numpy/src/converters.pyx" + __pyx_f___dealloc__FixedArrayConverter(); + +#line 287 "root_numpy/src/converters.pyx" + } + #line 287 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_CharArrayConverter : public __pyx_t_13_librootnumpy_Converter @@ -1468,7 +1700,7 @@ struct __pyx_t_13_librootnumpy_CharArrayConverter : public __pyx_t_13_librootnum int size; #line 311 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_CharArrayConverter(int); + void __pyx_f___init__CharArrayConverter(int); virtual #line 311 "root_numpy/src/converters.pyx" int write(Column *, void *); @@ -1478,7 +1710,22 @@ PyObject *get_dtype(Column *); virtual #line 311 "root_numpy/src/converters.pyx" int get_dtypecode(void); - virtual ~__pyx_t_13_librootnumpy_CharArrayConverter() { } + +#line 311 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_CharArrayConverter(int __pyx_v_size) { + +#line 311 "root_numpy/src/converters.pyx" + __pyx_f___init__CharArrayConverter(__pyx_v_size); + +#line 311 "root_numpy/src/converters.pyx" + } + virtual +#line 311 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_CharArrayConverter() { + +#line 311 "root_numpy/src/converters.pyx" + } + #line 311 "root_numpy/src/converters.pyx" }; @@ -1509,7 +1756,7 @@ struct __pyx_t_13_librootnumpy_VectorConverter : public __pyx_t_13_librootnumpy_ std::string nptype; #line 334 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VectorConverter(void); + void __pyx_f___init__VectorConverter(void); virtual #line 334 "root_numpy/src/converters.pyx" int write(Column *, void *); @@ -1519,7 +1766,22 @@ PyObject *get_dtype(Column *); virtual #line 334 "root_numpy/src/converters.pyx" bool can_truncate(void); - virtual ~__pyx_t_13_librootnumpy_VectorConverter() { } + +#line 334 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_VectorConverter(void) { + +#line 334 "root_numpy/src/converters.pyx" + __pyx_f___init__VectorConverter(); + +#line 334 "root_numpy/src/converters.pyx" + } + virtual +#line 334 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VectorConverter() { + +#line 334 "root_numpy/src/converters.pyx" + } + #line 334 "root_numpy/src/converters.pyx" }; @@ -1547,11 +1809,26 @@ struct __pyx_t_13_librootnumpy_VectorVectorConverter : public __pyx_t_13_libroot Vector2Array v2a; #line 370 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VectorVectorConverter(void); + void __pyx_f___init__VectorVectorConverter(void); virtual #line 370 "root_numpy/src/converters.pyx" int write(Column *, void *); - virtual ~__pyx_t_13_librootnumpy_VectorVectorConverter() { } + +#line 370 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_VectorVectorConverter(void) { + +#line 370 "root_numpy/src/converters.pyx" + __pyx_f___init__VectorVectorConverter(); + +#line 370 "root_numpy/src/converters.pyx" + } + virtual +#line 370 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VectorVectorConverter() { + +#line 370 "root_numpy/src/converters.pyx" + } + #line 370 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_VectorBoolConverter : public __pyx_t_13_librootnumpy_ObjectConverterBase @@ -1566,44 +1843,114 @@ PyObject *get_dtype(Column *); virtual #line 370 "root_numpy/src/converters.pyx" bool can_truncate(void); - virtual ~__pyx_t_13_librootnumpy_VectorBoolConverter() { } + virtual #line 370 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VectorBoolConverter() { + + /* "root_numpy/src/converters.pyx":413 + * + * + * cdef cppclass VectorBoolConverter(ObjectConverterBase): # <<<<<<<<<<<<<< + * # Requires special treament since vector stores contents as bits... + * int write(Column* col, void* here) except -1: + */ + +#line 413 "root_numpy/src/converters.pyx" + } + +#line 413 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_VectorVectorBoolConverter : public __pyx_t_13_librootnumpy_ObjectConverterBase -#line 370 "root_numpy/src/converters.pyx" +#line 413 "root_numpy/src/converters.pyx" { virtual -#line 370 "root_numpy/src/converters.pyx" +#line 413 "root_numpy/src/converters.pyx" int write(Column *, void *); - virtual ~__pyx_t_13_librootnumpy_VectorVectorBoolConverter() { } -#line 370 "root_numpy/src/converters.pyx" + virtual +#line 413 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VectorVectorBoolConverter() { + + /* "root_numpy/src/converters.pyx":434 + * + * + * cdef cppclass VectorVectorBoolConverter(ObjectConverterBase): # <<<<<<<<<<<<<< + * # Requires special treament since vector stores contents as bits... + * int write(Column* col, void* here) except -1: + */ + +#line 434 "root_numpy/src/converters.pyx" + } + +#line 434 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_StringConverter : public __pyx_t_13_librootnumpy_ObjectConverterBase -#line 370 "root_numpy/src/converters.pyx" +#line 434 "root_numpy/src/converters.pyx" { virtual -#line 370 "root_numpy/src/converters.pyx" +#line 434 "root_numpy/src/converters.pyx" int write(Column *, void *); - virtual ~__pyx_t_13_librootnumpy_StringConverter() { } -#line 370 "root_numpy/src/converters.pyx" + virtual +#line 434 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_StringConverter() { + + /* "root_numpy/src/converters.pyx":465 + * + * + * cdef cppclass StringConverter(ObjectConverterBase): # <<<<<<<<<<<<<< + * int write(Column* col, void* here) except -1: + * cdef string* s = col.GetValuePointer() + */ + +#line 465 "root_numpy/src/converters.pyx" + } + +#line 465 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_VectorStringConverter : public __pyx_t_13_librootnumpy_ObjectConverterBase -#line 370 "root_numpy/src/converters.pyx" +#line 465 "root_numpy/src/converters.pyx" { virtual -#line 370 "root_numpy/src/converters.pyx" +#line 465 "root_numpy/src/converters.pyx" int write(Column *, void *); - virtual ~__pyx_t_13_librootnumpy_VectorStringConverter() { } -#line 370 "root_numpy/src/converters.pyx" + virtual +#line 465 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VectorStringConverter() { + + /* "root_numpy/src/converters.pyx":477 + * + * + * cdef cppclass VectorStringConverter(ObjectConverterBase): # <<<<<<<<<<<<<< + * int write(Column* col, void* here) except -1: + * cdef vector[string]* tmp = col.GetValuePointer() + */ + +#line 477 "root_numpy/src/converters.pyx" + } + +#line 477 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_VectorVectorStringConverter : public __pyx_t_13_librootnumpy_ObjectConverterBase -#line 370 "root_numpy/src/converters.pyx" +#line 477 "root_numpy/src/converters.pyx" { virtual -#line 370 "root_numpy/src/converters.pyx" +#line 477 "root_numpy/src/converters.pyx" int write(Column *, void *); - virtual ~__pyx_t_13_librootnumpy_VectorVectorStringConverter() { } -#line 370 "root_numpy/src/converters.pyx" + virtual +#line 477 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_VectorVectorStringConverter() { + + /* "root_numpy/src/converters.pyx":483 + * + * + * cdef cppclass VectorVectorStringConverter(ObjectConverterBase): # <<<<<<<<<<<<<< + * int write(Column* col, void* here) except -1: + * cdef vector[vector[string]]* tmp = col.GetValuePointer() + */ + +#line 483 "root_numpy/src/converters.pyx" + } + +#line 483 "root_numpy/src/converters.pyx" }; /* "root_numpy/src/converters.pyx":513 @@ -1653,11 +2000,25 @@ struct __pyx_t_13_librootnumpy_NP2ROOTConverter virtual #line 638 "root_numpy/src/converters.pyx" void fill_from(void *); - virtual ~__pyx_t_13_librootnumpy_NP2ROOTConverter() { } + virtual #line 638 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_NP2ROOTConverter() { + + /* "root_numpy/src/converters.pyx":683 + * #################################### + * + * cdef cppclass NP2ROOTConverter: # <<<<<<<<<<<<<< + * + * void fill_from(void* source): + */ + +#line 683 "root_numpy/src/converters.pyx" + } + +#line 683 "root_numpy/src/converters.pyx" }; struct __pyx_t_13_librootnumpy_FixedNP2ROOTConverter : public __pyx_t_13_librootnumpy_NP2ROOTConverter -#line 638 "root_numpy/src/converters.pyx" +#line 683 "root_numpy/src/converters.pyx" { /* "root_numpy/src/converters.pyx":689 @@ -1678,14 +2039,32 @@ struct __pyx_t_13_librootnumpy_FixedNP2ROOTConverter : public __pyx_t_13_libroot TBranch *branch; #line 689 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedNP2ROOTConverter(TTree *, std::string, std::string, int, int, struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ *__pyx_optional_args); - virtual + void __pyx_f___init__FixedNP2ROOTConverter(TTree *, std::string &, std::string &, int, int, struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ *__pyx_optional_args); + #line 689 "root_numpy/src/converters.pyx" - ~__pyx_t_13_librootnumpy_FixedNP2ROOTConverter(void); + void __pyx_f___dealloc__FixedNP2ROOTConverter(void); virtual #line 689 "root_numpy/src/converters.pyx" void fill_from(void *); +#line 689 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_FixedNP2ROOTConverter(TTree *__pyx_v_tree, std::string __pyx_v_name, std::string __pyx_v_roottype, int __pyx_v_length, int __pyx_v_elembytes, struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ *__pyx_optional_args) { + +#line 689 "root_numpy/src/converters.pyx" + __pyx_f___init__FixedNP2ROOTConverter(__pyx_v_tree, __pyx_v_name, __pyx_v_roottype, __pyx_v_length, __pyx_v_elembytes, __pyx_optional_args); + +#line 689 "root_numpy/src/converters.pyx" + } + virtual +#line 689 "root_numpy/src/converters.pyx" +~__pyx_t_13_librootnumpy_FixedNP2ROOTConverter() { + +#line 689 "root_numpy/src/converters.pyx" + __pyx_f___dealloc__FixedNP2ROOTConverter(); + +#line 689 "root_numpy/src/converters.pyx" + } + #line 689 "root_numpy/src/converters.pyx" }; @@ -1903,16 +2282,7 @@ struct __pyx_opt_args_13_librootnumpy_array2tree { /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS -static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { - PyTypeObject* tp = Py_TYPE(obj); - if (likely(tp->tp_getattro)) - return tp->tp_getattro(obj, attr_name); -#if PY_MAJOR_VERSION < 3 - if (likely(tp->tp_getattr)) - return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); -#endif - return PyObject_GetAttr(obj, attr_name); -} +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif @@ -1948,26 +2318,46 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif +/* PyObjectCallMethO.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); +#endif + +/* PyObjectCallOneArg.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); + /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; -#define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); +#define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; +#define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign +#define __Pyx_PyErr_Occurred() PyErr_Occurred() #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE +#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) +#else +#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) +#endif #else +#define __Pyx_PyErr_Clear() PyErr_Clear() +#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) +#define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) +#define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif @@ -1983,14 +2373,17 @@ static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename, int full_traceback, int nogil); -/* PyObjectCallMethO.proto */ -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); +/* DictGetItem.proto */ +#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY +static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); +#define __Pyx_PyObject_Dict_GetItem(obj, name)\ + (likely(PyDict_CheckExact(obj)) ?\ + __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) +#else +#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) +#define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif -/* PyObjectCallOneArg.proto */ -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); - /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ @@ -2009,7 +2402,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); +static 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); @@ -2038,6 +2431,13 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long int (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2)) #endif +/* ObjectGetItem.proto */ +#if CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key); +#else +#define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key) +#endif + /* SliceObject.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice( PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, @@ -2186,6 +2586,12 @@ static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif +/* pyfrozenset_new.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it); + +/* PySetContains.proto */ +static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq); + /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) @@ -2194,23 +2600,32 @@ static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject * static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif -/* ForceInitThreads.proto */ -#ifndef __PYX_FORCE_INIT_THREADS - #define __PYX_FORCE_INIT_THREADS 0 -#endif - /* ArgTypeTest.proto */ -static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, - const char *name, int exact); +#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ + ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\ + __Pyx__ArgTypeTest(obj, type, name, exact)) +static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); + +/* IsLittleEndian.proto */ +static CYTHON_INLINE int __Pyx_Is_Little_Endian(void); /* BufferFormatCheck.proto */ -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 const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts); static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, - __Pyx_TypeInfo* type); // PROTO + __Pyx_TypeInfo* type); + +/* BufferGetAndValidate.proto */ +#define __Pyx_GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack)\ + ((obj == Py_None || obj == NULL) ?\ + (__Pyx_ZeroBuffer(buf), 0) :\ + __Pyx__GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack)) +static int __Pyx__GetBufferAndValidate(Py_buffer* buf, PyObject* obj, + __Pyx_TypeInfo* dtype, int flags, int nd, int cast, __Pyx_BufFmt_StackElem* stack); +static void __Pyx_ZeroBuffer(Py_buffer* buf); +static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info); +static Py_ssize_t __Pyx_minusones[] = { -1, -1, -1, -1, -1, -1, -1, -1 }; +static Py_ssize_t __Pyx_zeros[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; #define __Pyx_BufPtrStrided1d(type, buf, i0, s0) (type)((char*)buf + i0 * s0) #define __Pyx_BufPtrStrided2d(type, buf, i0, s0, i1, s1) (type)((char*)buf + i0 * s0 + i1 * s1) @@ -2223,40 +2638,26 @@ static void __Pyx_RaiseBufferFallbackError(void); __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ __Pyx_SetItemInt_Generic(o, to_py_func(i), v))) -static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); +static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, int wraparound, int boundscheck); /* BufferIndexError.proto */ static void __Pyx_RaiseBufferIndexError(int axis); -/* DictGetItem.proto */ -#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY -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 - /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); +/* CLineInTraceback.proto */ +#ifdef CYTHON_CLINE_IN_TRACEBACK +#define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) +#else +static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); +#endif + /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; @@ -2302,6 +2703,10 @@ struct arrayobject { char *as_chars; unsigned long *as_ulongs; long *as_longs; +#if PY_MAJOR_VERSION >= 3 + unsigned long long *as_ulonglongs; + long long *as_longlongs; +#endif short *as_shorts; unsigned short *as_ushorts; Py_UNICODE *as_pyunicodes; @@ -2410,10 +2815,6 @@ typedef struct { #endif -/* None.proto */ -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}; - /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value); @@ -2596,6 +2997,19 @@ static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_As_PY_LONG_LONG(PyObject *); +/* FastTypeChecks.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) +static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); +#else +#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) +#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) +#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) +#endif +#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) + /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); @@ -2701,8 +3115,6 @@ static PyTypeObject *__pyx_ptype_7cpython_7complex_complex = 0; /* Module declarations from 'cpython.ref' */ -/* Module declarations from 'libc.stdlib' */ - /* Module declarations from 'numpy' */ /* Module declarations from 'numpy' */ @@ -2736,6 +3148,8 @@ static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *, ch /* Module declarations from 'libcpp.string' */ +/* Module declarations from 'libc.stdlib' */ + /* Module declarations from '_librootnumpy' */ static __pyx_t_13_librootnumpy_CONVERTERS_TYPE __pyx_v_13_librootnumpy_CONVERTERS; static CYTHON_INLINE PyObject *__pyx_f_13_librootnumpy_resolve_type(char const *); /*proto*/ @@ -2770,6 +3184,7 @@ static __Pyx_TypeInfo __Pyx_TypeInfo_short = { "short", NULL, sizeof(short), { 0 static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_int8_t = { "int8_t", NULL, sizeof(__pyx_t_5numpy_int8_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_int8_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_int8_t), 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 }; #define __Pyx_MODULE_NAME "_librootnumpy" +extern int __pyx_module_is_main__librootnumpy; int __pyx_module_is_main__librootnumpy = 0; /* Implementation of '_librootnumpy' */ @@ -3074,6 +3489,7 @@ static const char __pyx_k_array2tree_toCObj[] = "array2tree_toCObj"; static const char __pyx_k_vector_vector_int[] = "vector >"; static const char __pyx_k_warn_missing_tree[] = "warn_missing_tree"; static const char __pyx_k_cannot_open_file_0[] = "cannot open file {0}"; +static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_extern_ordereddict[] = "extern.ordereddict"; static const char __pyx_k_unsigned_long_long[] = "unsigned long long"; static const char __pyx_k_vector_vector_bool[] = "vector >"; @@ -3099,14 +3515,21 @@ static const char __pyx_k_vector_unsigned_short[] = "vector"; static const char __pyx_k_branch_0_has_no_leaves[] = "branch '{0}' has no leaves"; static const char __pyx_k_file_0_is_not_writable[] = "file {0} is not writable"; static const char __pyx_k_multiple_trees_found_0[] = "multiple trees found: {0}"; +static const char __pyx_k_root_numpy_src_hist_pyx[] = "root_numpy/src/hist.pyx"; +static const char __pyx_k_root_numpy_src_tree_pyx[] = "root_numpy/src/tree.pyx"; static const char __pyx_k_unable_to_get_keys_in_0[] = "unable to get keys in {0}"; static const char __pyx_k_vector_vector_long_long[] = "vector >"; static const char __pyx_k_cannot_open_current_file[] = "cannot open current file"; +static const char __pyx_k_root_numpy_src_array_pyx[] = "root_numpy/src/array.pyx"; +static const char __pyx_k_root_numpy_src_graph_pyx[] = "root_numpy/src/graph.pyx"; static const char __pyx_k_branches_is_an_empty_list[] = "branches is an empty list"; +static const char __pyx_k_root_numpy_src_matrix_pyx[] = "root_numpy/src/matrix.pyx"; +static const char __pyx_k_root_numpy_src_sample_pyx[] = "root_numpy/src/sample.pyx"; static const char __pyx_k_vector_unsigned_long_long[] = "vector"; static const char __pyx_k_could_not_allocate_d_bytes[] = "could not allocate %d bytes"; static const char __pyx_k_vector_vector_unsigned_int[] = "vector >"; static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous"; +static const char __pyx_k_root_numpy_src_evaluate_pyx[] = "root_numpy/src/evaluate.pyx"; static const char __pyx_k_vector_vector_unsigned_char[] = "vector >"; static const char __pyx_k_vector_vector_unsigned_long[] = "vector >"; static const char __pyx_k_duplicate_branches_requested[] = "duplicate branches requested"; @@ -3114,8 +3537,8 @@ static const char __pyx_k_the_chain_is_not_initialized[] = "the chain is not ini static const char __pyx_k_unable_to_access_tree_0_in_1[] = "unable to access tree '{0}' in {1}"; static const char __pyx_k_vector_vector_unsigned_short[] = "vector >"; static const char __pyx_k_RootNumpyUnconvertibleWarning[] = "RootNumpyUnconvertibleWarning"; +static const char __pyx_k_root_numpy_src_converters_pyx[] = "root_numpy/src/converters.pyx"; static const char __pyx_k_the_expression_0_is_not_valid[] = "the expression '{0}' is not valid"; -static const char __pyx_k_home_endw_workspace_root_numpy[] = "/home/endw/workspace/root_numpy/root_numpy/src/converters.pyx"; static const char __pyx_k_cannot_convert_leaf_0_of_branch[] = "cannot convert leaf '{0}' of branch '{1}' with type '{2}'"; static const char __pyx_k_failed_to_allocate_memory_for_0[] = "failed to allocate memory for {0} array of {1} records with {2} fields"; static const char __pyx_k_ignoring_duplicate_branch_named[] = "ignoring duplicate branch named '{0}'"; @@ -3135,13 +3558,6 @@ static const char __pyx_k_converter_for_r_is_not_implement[] = "converter for {! static const char __pyx_k_could_not_compile_selection_expr[] = "could not compile selection expression '{0}'"; static const char __pyx_k_could_not_find_a_formula_convert[] = "could not find a formula converter for '{0}'. Please report this bug."; static const char __pyx_k_field_0_of_type_1_is_not_compati[] = "field '{0}' of type '{1}' is not compatible with existing branch of type '{2}'"; -static const char __pyx_k_home_endw_workspace_root_numpy_2[] = "/home/endw/workspace/root_numpy/root_numpy/src/tree.pyx"; -static const char __pyx_k_home_endw_workspace_root_numpy_3[] = "/home/endw/workspace/root_numpy/root_numpy/src/array.pyx"; -static const char __pyx_k_home_endw_workspace_root_numpy_4[] = "/home/endw/workspace/root_numpy/root_numpy/src/matrix.pyx"; -static const char __pyx_k_home_endw_workspace_root_numpy_5[] = "/home/endw/workspace/root_numpy/root_numpy/src/sample.pyx"; -static const char __pyx_k_home_endw_workspace_root_numpy_6[] = "/home/endw/workspace/root_numpy/root_numpy/src/hist.pyx"; -static const char __pyx_k_home_endw_workspace_root_numpy_7[] = "/home/endw/workspace/root_numpy/root_numpy/src/graph.pyx"; -static const char __pyx_k_home_endw_workspace_root_numpy_8[] = "/home/endw/workspace/root_numpy/root_numpy/src/evaluate.pyx"; static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous"; static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import"; static const char __pyx_k_object_selection_contains_branch[] = "object_selection contains branches that are not present in the tree or included in the output array"; @@ -3244,6 +3660,7 @@ static PyObject *__pyx_n_b_char; static PyObject *__pyx_n_s_char; static PyObject *__pyx_n_s_classes; static PyObject *__pyx_n_s_cleanup; +static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_s_clsname; static PyObject *__pyx_n_s_collections; static PyObject *__pyx_n_s_compile; @@ -3343,14 +3760,6 @@ static PyObject *__pyx_n_s_h3i_array; static PyObject *__pyx_n_s_h3s_array; static PyObject *__pyx_n_s_hist; static PyObject *__pyx_n_s_hist_2; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_2; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_3; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_4; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_5; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_6; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_7; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_8; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_ibin; static PyObject *__pyx_n_s_idx; @@ -3431,6 +3840,14 @@ static PyObject *__pyx_n_s_root2array_fromtree; static PyObject *__pyx_n_s_root_arr; static PyObject *__pyx_n_s_root_hist; static PyObject *__pyx_n_s_root_mat; +static PyObject *__pyx_kp_s_root_numpy_src_array_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_converters_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_evaluate_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_graph_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_hist_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_matrix_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_sample_pyx; +static PyObject *__pyx_kp_s_root_numpy_src_tree_pyx; static PyObject *__pyx_n_s_rtree; static PyObject *__pyx_n_s_s; static PyObject *__pyx_kp_s_s_0_9; @@ -3593,10 +4010,10 @@ static PyObject *__pyx_pf_13_librootnumpy_122evaluate_formula_4d(CYTHON_UNUSED P static PyObject *__pyx_pf_13_librootnumpy_124evaluate_graph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyArrayObject *__pyx_v_array); /* proto */ static PyObject *__pyx_pf_13_librootnumpy_126evaluate_spline(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_spline, PyArrayObject *__pyx_v_array); /* proto */ static PyObject *__pyx_pf_13_librootnumpy_128_blockwise_inner_join(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data, PyObject *__pyx_v_left, PyObject *__pyx_v_fk, PyObject *__pyx_v_right, PyObject *__pyx_v_force_repeat, PyObject *__pyx_v_fk_name); /* proto */ -static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags); /* proto */ -static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ +static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags); /* proto */ +static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; @@ -3794,6 +4211,7 @@ static PyObject *__pyx_codeobj__188; static PyObject *__pyx_codeobj__190; static PyObject *__pyx_codeobj__192; static PyObject *__pyx_codeobj__194; +/* Late includes */ /* "root_numpy/src/converters.pyx":43 * @@ -4229,7 +4647,10 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v char *__pyx_t_15; #line 54 "root_numpy/src/converters.pyx" - size_t __pyx_t_16; + std::vector ::size_type __pyx_t_16; + +#line 54 "root_numpy/src/converters.pyx" + std::vector ::size_type __pyx_t_17; #line 54 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("write_array", 0); @@ -4374,7 +4795,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v __pyx_t_1 = ((__pyx_v_selector->selected.size() != ((__pyx_t_13_librootnumpy_unsigned_long)(__pyx_v__dims[0]))) != 0); #line 68 "root_numpy/src/converters.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/converters.pyx":70 * if selector.selected.size() != _dims[0]: @@ -4616,35 +5037,20 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v */ #line 69 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 69, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 69, __pyx_L1_error) #line 69 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 69 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 69 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 69 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 69 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 69, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 69 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 69 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 69 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 69 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 69 "root_numpy/src/converters.pyx" __PYX_ERR(1, 69, __pyx_L1_error) @@ -4778,19 +5184,19 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v /*else*/ { #line 82 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyArray_EMPTY(__pyx_v_ndim, __pyx_v__dims, __pyx_v_typecode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 82, __pyx_L1_error) + __pyx_t_3 = PyArray_EMPTY(__pyx_v_ndim, __pyx_v__dims, __pyx_v_typecode, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 82, __pyx_L1_error) #line 82 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 82 "root_numpy/src/converters.pyx" - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 82, __pyx_L1_error) + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 82, __pyx_L1_error) #line 82 "root_numpy/src/converters.pyx" - __pyx_v_tmp = ((PyArrayObject *)__pyx_t_2); + __pyx_v_tmp = ((PyArrayObject *)__pyx_t_3); #line 82 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/converters.pyx":83 * else: @@ -4871,7 +5277,10 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v __pyx_t_16 = __pyx_v_selector->selected.size(); #line 91 "root_numpy/src/converters.pyx" - for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_16; __pyx_t_14+=1) { + __pyx_t_17 = __pyx_t_16; + +#line 91 "root_numpy/src/converters.pyx" + for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_17; __pyx_t_14+=1) { #line 91 "root_numpy/src/converters.pyx" __pyx_v_i = __pyx_t_14; @@ -4899,7 +5308,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v */ #line 93 "root_numpy/src/converters.pyx" - memcpy((static_cast(__pyx_v_dest) + (__pyx_v_j * __pyx_v_elesize)), (static_cast(__pyx_v_src) + (__pyx_v_i * __pyx_v_elesize)), __pyx_v_elesize); + (void)(memcpy((static_cast(__pyx_v_dest) + (__pyx_v_j * __pyx_v_elesize)), (static_cast(__pyx_v_src) + (__pyx_v_i * __pyx_v_elesize)), __pyx_v_elesize)); /* "root_numpy/src/converters.pyx":96 * static_cast['char*'](src) + i * elesize, @@ -5016,7 +5425,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v /*else*/ { #line 102 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_dest, __pyx_v_src, __pyx_v_nbytes); + (void)(memcpy(__pyx_v_dest, __pyx_v_src, __pyx_v_nbytes)); #line 102 "root_numpy/src/converters.pyx" } @@ -5047,7 +5456,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array(std::string __pyx_v */ #line 105 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":106 * # now write PyObject* to the array @@ -5242,14 +5651,20 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str char *__pyx_t_12; #line 113 "root_numpy/src/converters.pyx" - size_t __pyx_t_13; + std::vector ::size_type __pyx_t_13; #line 113 "root_numpy/src/converters.pyx" - unsigned long __pyx_t_14; + std::vector ::size_type __pyx_t_14; #line 113 "root_numpy/src/converters.pyx" unsigned long __pyx_t_15; +#line 113 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_16; + +#line 113 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_17; + #line 113 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("write_array_vectorbool", 0); @@ -5339,7 +5754,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str __pyx_t_1 = ((__pyx_v_selector->selected.size() != ((__pyx_t_13_librootnumpy_unsigned_long)(__pyx_v_dims[0]))) != 0); #line 121 "root_numpy/src/converters.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/converters.pyx":123 * if selector.selected.size() != dims[0]: @@ -5581,35 +5996,20 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str */ #line 122 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 122, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 122, __pyx_L1_error) #line 122 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 122 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 122 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 122 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 122 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 122, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 122 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 122 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 122 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 122 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 122 "root_numpy/src/converters.pyx" __PYX_ERR(1, 122, __pyx_L1_error) @@ -5711,19 +6111,19 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str /*else*/ { #line 132 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyArray_EMPTY(1, __pyx_v_dims, NPY_BOOL, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 132, __pyx_L1_error) + __pyx_t_3 = PyArray_EMPTY(1, __pyx_v_dims, NPY_BOOL, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 132, __pyx_L1_error) #line 132 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 132 "root_numpy/src/converters.pyx" - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 132, __pyx_L1_error) + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 132, __pyx_L1_error) #line 132 "root_numpy/src/converters.pyx" - __pyx_v_tmp = ((PyArrayObject *)__pyx_t_2); + __pyx_v_tmp = ((PyArrayObject *)__pyx_t_3); #line 132 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/converters.pyx":133 * else: @@ -5793,10 +6193,13 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str __pyx_t_13 = __pyx_v_selector->selected.size(); #line 139 "root_numpy/src/converters.pyx" - for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) { + __pyx_t_14 = __pyx_t_13; #line 139 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_14; + for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) { + +#line 139 "root_numpy/src/converters.pyx" + __pyx_v_i = __pyx_t_15; /* "root_numpy/src/converters.pyx":140 * # copy with selection @@ -5938,13 +6341,16 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str /*else*/ { #line 148 "root_numpy/src/converters.pyx" - __pyx_t_14 = __pyx_v_numele; + __pyx_t_15 = __pyx_v_numele; #line 148 "root_numpy/src/converters.pyx" - for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) { + __pyx_t_16 = __pyx_t_15; #line 148 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_15; + for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { + +#line 148 "root_numpy/src/converters.pyx" + __pyx_v_i = __pyx_t_17; /* "root_numpy/src/converters.pyx":149 * # can't use memcpy here... @@ -6053,7 +6459,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorbool(std::str */ #line 155 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":156 * # now write PyObject* to the array @@ -6251,14 +6657,20 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s __pyx_t_13_librootnumpy_unsigned_int __pyx_t_11; #line 162 "root_numpy/src/converters.pyx" - size_t __pyx_t_12; + std::vector ::size_type __pyx_t_12; #line 162 "root_numpy/src/converters.pyx" - unsigned long __pyx_t_13; + std::vector ::size_type __pyx_t_13; #line 162 "root_numpy/src/converters.pyx" unsigned long __pyx_t_14; +#line 162 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_15; + +#line 162 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_16; + #line 162 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("write_array_vectorstring", 0); @@ -6339,7 +6751,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s __pyx_t_1 = ((__pyx_v_selector->selected.size() != ((__pyx_t_13_librootnumpy_unsigned_long)(__pyx_v_dims[0]))) != 0); #line 169 "root_numpy/src/converters.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/converters.pyx":171 * if selector.selected.size() != dims[0]: @@ -6581,35 +6993,20 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 170 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 170, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 170, __pyx_L1_error) #line 170 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 170 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 170 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 170 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 170 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 170, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 170 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 170 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 170 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 170 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 170 "root_numpy/src/converters.pyx" __PYX_ERR(1, 170, __pyx_L1_error) @@ -6658,16 +7055,16 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 175 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 175, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple_, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 175, __pyx_L1_error) #line 175 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 175 "root_numpy/src/converters.pyx" - __pyx_t_9 = ((PyArray_Descr *)__pyx_t_2)->elsize; + __pyx_t_9 = ((PyArray_Descr *)__pyx_t_3)->elsize; #line 175 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 175 "root_numpy/src/converters.pyx" __pyx_v_objsize = __pyx_t_9; @@ -6681,19 +7078,19 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 176 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyArray_EMPTY(1, __pyx_v_dims, NPY_OBJECT, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 176, __pyx_L1_error) + __pyx_t_3 = PyArray_EMPTY(1, __pyx_v_dims, NPY_OBJECT, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 176, __pyx_L1_error) #line 176 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 176 "root_numpy/src/converters.pyx" - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 176, __pyx_L1_error) + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 176, __pyx_L1_error) #line 176 "root_numpy/src/converters.pyx" - __pyx_v_tmp = ((PyArrayObject *)__pyx_t_2); + __pyx_v_tmp = ((PyArrayObject *)__pyx_t_3); #line 176 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/converters.pyx":177 * cdef int objsize = np.dtype('O').itemsize @@ -6754,10 +7151,13 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s __pyx_t_12 = __pyx_v_selector->selected.size(); #line 184 "root_numpy/src/converters.pyx" - for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) { + __pyx_t_13 = __pyx_t_12; + +#line 184 "root_numpy/src/converters.pyx" + for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) { #line 184 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_13; + __pyx_v_i = __pyx_t_14; /* "root_numpy/src/converters.pyx":185 * # copy with selection @@ -6782,28 +7182,13 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 186 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_convert_PyStr_string_to_py_std__in_string(((*__pyx_v_src)[__pyx_v_i])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 186, __pyx_L1_error) - -#line 186 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 186 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 186, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(((*__pyx_v_src)[__pyx_v_i])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 186, __pyx_L1_error) #line 186 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 186 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 186 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 186 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 186 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 186, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 186, __pyx_L1_error) #line 186 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -6848,7 +7233,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 189 "root_numpy/src/converters.pyx" - memcpy((&(__pyx_v_dataptr[(__pyx_v_j * __pyx_v_objsize)])), (&__pyx_v_tmpstrobj), (sizeof(PyObject *))); + (void)(memcpy((&(__pyx_v_dataptr[(__pyx_v_j * __pyx_v_objsize)])), (&__pyx_v_tmpstrobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":190 * tmpstrobj = py_bytes @@ -6901,13 +7286,16 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s /*else*/ { #line 193 "root_numpy/src/converters.pyx" - __pyx_t_13 = __pyx_v_numele; + __pyx_t_14 = __pyx_v_numele; + +#line 193 "root_numpy/src/converters.pyx" + __pyx_t_15 = __pyx_t_14; #line 193 "root_numpy/src/converters.pyx" - for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) { + for (__pyx_t_16 = 0; __pyx_t_16 < __pyx_t_15; __pyx_t_16+=1) { #line 193 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_14; + __pyx_v_i = __pyx_t_16; /* "root_numpy/src/converters.pyx":194 * # can't use memcpy here... @@ -6924,34 +7312,19 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s __Pyx_GOTREF(__pyx_t_2); #line 194 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 194, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 194, __pyx_L1_error) #line 194 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 194 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 194 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 194 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 194 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 194, __pyx_L1_error) - -#line 194 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 194 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 194 "root_numpy/src/converters.pyx" - __Pyx_XDECREF_SET(__pyx_v_py_bytes, __pyx_t_2); + __Pyx_XDECREF_SET(__pyx_v_py_bytes, __pyx_t_3); #line 194 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/converters.pyx":195 * for i in range(numele): @@ -6984,7 +7357,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 197 "root_numpy/src/converters.pyx" - memcpy((&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), (&__pyx_v_tmpstrobj), (sizeof(PyObject *))); + (void)(memcpy((&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), (&__pyx_v_tmpstrobj), (sizeof(PyObject *)))); #line 197 "root_numpy/src/converters.pyx" } @@ -7004,7 +7377,7 @@ static CYTHON_INLINE int __pyx_f_13_librootnumpy_write_array_vectorstring(std::s */ #line 199 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":200 * # now write PyObject* to the array @@ -7286,7 +7659,7 @@ bool __pyx_t_13_librootnumpy_Converter::can_truncate(void) { #line 223 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_BasicConverter::__pyx_t_13_librootnumpy_BasicConverter(int __pyx_v_size, std::string __pyx_v_nptype, int __pyx_v_nptypecode) { +void __pyx_t_13_librootnumpy_BasicConverter::__pyx_f___init__BasicConverter(int __pyx_v_size, std::string &__pyx_v_nptype, int __pyx_v_nptypecode) { #line 223 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -7393,7 +7766,7 @@ int __pyx_t_13_librootnumpy_BasicConverter::write(Column *__pyx_v_col, void *__p */ #line 230 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, __pyx_v_src, this->size); + (void)(memcpy(__pyx_v_here, __pyx_v_src, this->size)); /* "root_numpy/src/converters.pyx":231 * cdef void* src = col.GetValuePointer() @@ -7482,34 +7855,19 @@ PyObject *__pyx_t_13_librootnumpy_BasicConverter::get_dtype(CYTHON_UNUSED Column __Pyx_GOTREF(__pyx_t_1); #line 234 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 234, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 234, __pyx_L1_error) #line 234 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); #line 234 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 234 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - -#line 234 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; - -#line 234 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 234, __pyx_L1_error) - -#line 234 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); - -#line 234 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 234 "root_numpy/src/converters.pyx" - __pyx_r = __pyx_t_1; + __pyx_r = __pyx_t_2; #line 234 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __pyx_t_2 = 0; #line 234 "root_numpy/src/converters.pyx" goto __pyx_L0; @@ -7804,7 +8162,7 @@ int __pyx_t_13_librootnumpy_ObjectConverterBase::get_dtypecode(void) { #line 256 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VaryArrayConverter::__pyx_t_13_librootnumpy_VaryArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *__pyx_v_conv, int __pyx_v_ndim, __pyx_t_13_librootnumpy_SIZE_t *__pyx_v_dims) { +void __pyx_t_13_librootnumpy_VaryArrayConverter::__pyx_f___init__VaryArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *__pyx_v_conv, int __pyx_v_ndim, __pyx_t_13_librootnumpy_SIZE_t *__pyx_v_dims) { #line 256 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -7905,7 +8263,7 @@ int __pyx_t_13_librootnumpy_ObjectConverterBase::get_dtypecode(void) { #line 263 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VaryArrayConverter::~__pyx_t_13_librootnumpy_VaryArrayConverter(void) { +void __pyx_t_13_librootnumpy_VaryArrayConverter::__pyx_f___dealloc__VaryArrayConverter(void) { #line 263 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -8008,7 +8366,7 @@ int __pyx_t_13_librootnumpy_VaryArrayConverter::write(Column *__pyx_v_col, void __pyx_t_2.max_length = __pyx_v_col->max_length; #line 269 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_f_13_librootnumpy_write_array(__pyx_v_col->name, __pyx_v_here, __pyx_v_col->GetValuePointer(), this->typecode, __pyx_v_col->GetLen(), this->elesize, &__pyx_t_2); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(1, 269, __pyx_L1_error) + __pyx_t_1 = __pyx_f_13_librootnumpy_write_array(__pyx_v_col->name, __pyx_v_here, __pyx_v_col->GetValuePointer(), this->typecode, __pyx_v_col->GetLen(), this->elesize, &__pyx_t_2); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 269, __pyx_L1_error) #line 269 "root_numpy/src/converters.pyx" __pyx_r = __pyx_t_1; @@ -8118,34 +8476,19 @@ PyObject *__pyx_t_13_librootnumpy_VaryArrayConverter::get_dtype(Column *__pyx_v_ __Pyx_GOTREF(__pyx_t_2); #line 276 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 276, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 276, __pyx_L1_error) #line 276 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 276 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 276 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 276 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 276 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 276, __pyx_L1_error) - -#line 276 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 276 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 276 "root_numpy/src/converters.pyx" - __pyx_r = __pyx_t_2; + __pyx_r = __pyx_t_3; #line 276 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 276 "root_numpy/src/converters.pyx" goto __pyx_L0; @@ -8187,28 +8530,13 @@ PyObject *__pyx_t_13_librootnumpy_VaryArrayConverter::get_dtype(Column *__pyx_v_ __Pyx_XDECREF(__pyx_r); #line 279 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_convert_PyStr_string_to_py_std__in_string(this->conv->nptype); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 279, __pyx_L1_error) - -#line 279 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 279 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 279, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(this->conv->nptype); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 279, __pyx_L1_error) #line 279 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 279 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 279 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 279 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 279 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 279, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 279, __pyx_L1_error) #line 279 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -8423,7 +8751,7 @@ bool __pyx_t_13_librootnumpy_VaryArrayConverter::can_truncate(void) { #line 291 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedArrayConverter::__pyx_t_13_librootnumpy_FixedArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *__pyx_v_conv, PyObject *__pyx_v_shape) { +void __pyx_t_13_librootnumpy_FixedArrayConverter::__pyx_f___init__FixedArrayConverter(__pyx_t_13_librootnumpy_BasicConverter *__pyx_v_conv, PyObject *__pyx_v_shape) { #line 291 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -8496,7 +8824,7 @@ bool __pyx_t_13_librootnumpy_VaryArrayConverter::can_truncate(void) { #line 296 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedArrayConverter::~__pyx_t_13_librootnumpy_FixedArrayConverter(void) { +void __pyx_t_13_librootnumpy_FixedArrayConverter::__pyx_f___dealloc__FixedArrayConverter(void) { #line 296 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -8581,7 +8909,7 @@ int __pyx_t_13_librootnumpy_FixedArrayConverter::write(Column *__pyx_v_col, void */ #line 301 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, __pyx_v_col->GetValuePointer(), __pyx_v_nbytes); + (void)(memcpy(__pyx_v_here, __pyx_v_col->GetValuePointer(), __pyx_v_nbytes)); /* "root_numpy/src/converters.pyx":302 * cdef int nbytes = col.GetSize() @@ -8670,40 +8998,25 @@ PyObject *__pyx_t_13_librootnumpy_FixedArrayConverter::get_dtype(CYTHON_UNUSED C __Pyx_GOTREF(__pyx_t_1); #line 305 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 305, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 305, __pyx_L1_error) #line 305 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); #line 305 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 305 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - -#line 305 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 305 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 305, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 305, __pyx_L1_error) #line 305 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); #line 305 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - -#line 305 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 305, __pyx_L1_error) - -#line 305 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 305 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); + __Pyx_GIVEREF(__pyx_t_2); #line 305 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); #line 305 "root_numpy/src/converters.pyx" __Pyx_INCREF(((PyObject *)this->shape)); @@ -8712,16 +9025,16 @@ PyObject *__pyx_t_13_librootnumpy_FixedArrayConverter::get_dtype(CYTHON_UNUSED C __Pyx_GIVEREF(((PyObject *)this->shape)); #line 305 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)this->shape)); + PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)this->shape)); #line 305 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __pyx_t_2 = 0; #line 305 "root_numpy/src/converters.pyx" - __pyx_r = __pyx_t_2; + __pyx_r = __pyx_t_1; #line 305 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_1 = 0; #line 305 "root_numpy/src/converters.pyx" goto __pyx_L0; @@ -8845,7 +9158,7 @@ int __pyx_t_13_librootnumpy_FixedArrayConverter::get_dtypecode(void) { #line 315 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_CharArrayConverter::__pyx_t_13_librootnumpy_CharArrayConverter(int __pyx_v_size) { +void __pyx_t_13_librootnumpy_CharArrayConverter::__pyx_f___init__CharArrayConverter(int __pyx_v_size) { #line 315 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -8902,7 +9215,7 @@ int __pyx_t_13_librootnumpy_FixedArrayConverter::get_dtypecode(void) { __pyx_L1_error:; #line 315 "root_numpy/src/converters.pyx" - __Pyx_WriteUnraisable("CharArrayConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __Pyx_WriteUnraisable("CharArrayConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #line 315 "root_numpy/src/converters.pyx" __pyx_L0:; @@ -8976,7 +9289,7 @@ int __pyx_t_13_librootnumpy_CharArrayConverter::write(Column *__pyx_v_col, void */ #line 322 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, __pyx_v_col->GetValuePointer(), __pyx_v_nbytes); + (void)(memcpy(__pyx_v_here, __pyx_v_col->GetValuePointer(), __pyx_v_nbytes)); /* "root_numpy/src/converters.pyx":323 * cdef int length = strlen( col.GetValuePointer()) @@ -9001,7 +9314,7 @@ int __pyx_t_13_librootnumpy_CharArrayConverter::write(Column *__pyx_v_col, void */ #line 324 "root_numpy/src/converters.pyx" - memset((((char *)__pyx_v_here) + __pyx_v_length), '\x00', (__pyx_v_nbytes - __pyx_v_length)); + (void)(memset((((char *)__pyx_v_here) + __pyx_v_length), '\x00', (__pyx_v_nbytes - __pyx_v_length))); /* "root_numpy/src/converters.pyx":323 * cdef int length = strlen( col.GetValuePointer()) @@ -9393,7 +9706,7 @@ int __pyx_t_13_librootnumpy_CharArrayConverter::get_dtypecode(void) { template #line 340 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VectorConverter ::__pyx_t_13_librootnumpy_VectorConverter(void) { +void __pyx_t_13_librootnumpy_VectorConverter ::__pyx_f___init__VectorConverter(void) { TypeName __pyx_v_ast #line 340 "root_numpy/src/converters.pyx" ; @@ -9454,7 +9767,7 @@ template __Pyx_GOTREF(__pyx_t_2); #line 342 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 342, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 342, __pyx_L1_error) #line 342 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -9588,7 +9901,7 @@ template __Pyx_XDECREF(__pyx_t_3); #line 340 "root_numpy/src/converters.pyx" - __Pyx_WriteUnraisable("VectorConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __Pyx_WriteUnraisable("VectorConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #line 340 "root_numpy/src/converters.pyx" __pyx_L0:; @@ -9700,7 +10013,7 @@ int __pyx_t_13_librootnumpy_VectorConverter ::write(Column *__pyx_v_col, void __pyx_t_2.max_length = __pyx_v_col->max_length; #line 352 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_f_13_librootnumpy_write_array(__pyx_v_col->name, __pyx_v_here, __pyx_v_fa, this->nptypecode, __pyx_v_numele, this->elesize, &__pyx_t_2); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(1, 352, __pyx_L1_error) + __pyx_t_1 = __pyx_f_13_librootnumpy_write_array(__pyx_v_col->name, __pyx_v_here, __pyx_v_fa, this->nptypecode, __pyx_v_numele, this->elesize, &__pyx_t_2); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 352, __pyx_L1_error) #line 352 "root_numpy/src/converters.pyx" __pyx_r = __pyx_t_1; @@ -9813,34 +10126,19 @@ PyObject *__pyx_t_13_librootnumpy_VectorConverter ::get_dtype(Column *__pyx_v __Pyx_GOTREF(__pyx_t_2); #line 359 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 359, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 359, __pyx_L1_error) #line 359 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 359 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 359 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 359 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 359 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 359, __pyx_L1_error) - -#line 359 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 359 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 359 "root_numpy/src/converters.pyx" - __pyx_r = __pyx_t_2; + __pyx_r = __pyx_t_3; #line 359 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 359 "root_numpy/src/converters.pyx" goto __pyx_L0; @@ -9882,28 +10180,13 @@ PyObject *__pyx_t_13_librootnumpy_VectorConverter ::get_dtype(Column *__pyx_v __Pyx_XDECREF(__pyx_r); #line 362 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_convert_PyStr_string_to_py_std__in_string(this->nptype); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 362, __pyx_L1_error) - -#line 362 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 362 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 362, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(this->nptype); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 362, __pyx_L1_error) #line 362 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 362 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 362 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 362 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; - -#line 362 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 362, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 362, __pyx_L1_error) #line 362 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -10124,7 +10407,7 @@ bool __pyx_t_13_librootnumpy_VectorConverter ::can_truncate(void) { template #line 375 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_VectorVectorConverter ::__pyx_t_13_librootnumpy_VectorVectorConverter(void) { +void __pyx_t_13_librootnumpy_VectorVectorConverter ::__pyx_f___init__VectorVectorConverter(void) { TypeName __pyx_v_ast #line 375 "root_numpy/src/converters.pyx" ; @@ -10182,7 +10465,7 @@ template __Pyx_GOTREF(__pyx_t_2); #line 377 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 377, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 377, __pyx_L1_error) #line 377 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -10284,7 +10567,7 @@ template __Pyx_XDECREF(__pyx_t_3); #line 375 "root_numpy/src/converters.pyx" - __Pyx_WriteUnraisable("VectorVectorConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __Pyx_WriteUnraisable("VectorVectorConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #line 375 "root_numpy/src/converters.pyx" __pyx_L0:; @@ -10363,6 +10646,9 @@ int __pyx_t_13_librootnumpy_VectorVectorConverter ::write(Column *__pyx_v_col #line 381 "root_numpy/src/converters.pyx" unsigned long __pyx_t_4; +#line 381 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_5; + #line 381 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("write", 0); @@ -10487,7 +10773,7 @@ int __pyx_t_13_librootnumpy_VectorVectorConverter ::write(Column *__pyx_v_col */ #line 400 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_outerobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_outerobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":403 * # build a dataptr pointing to outer, so we can shift and write each @@ -10512,10 +10798,13 @@ int __pyx_t_13_librootnumpy_VectorVectorConverter ::write(Column *__pyx_v_col __pyx_t_3 = __pyx_v_numele; #line 406 "root_numpy/src/converters.pyx" - for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { + __pyx_t_4 = __pyx_t_3; + +#line 406 "root_numpy/src/converters.pyx" + for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { #line 406 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_4; + __pyx_v_i = __pyx_t_5; /* "root_numpy/src/converters.pyx":407 * cdef unsigned long i @@ -10537,7 +10826,7 @@ int __pyx_t_13_librootnumpy_VectorVectorConverter ::write(Column *__pyx_v_col */ #line 408 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_f_13_librootnumpy_write_array(__pyx_v_col->name, (&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), __pyx_v_fa, this->nptypecode, ((__pyx_v_tmp[0])[__pyx_v_i]).size(), this->elesize, NULL); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(1, 408, __pyx_L1_error) + __pyx_t_2 = __pyx_f_13_librootnumpy_write_array(__pyx_v_col->name, (&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), __pyx_v_fa, this->nptypecode, ((__pyx_v_tmp[0])[__pyx_v_i]).size(), this->elesize, NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(1, 408, __pyx_L1_error) #line 408 "root_numpy/src/converters.pyx" } @@ -10658,7 +10947,7 @@ int __pyx_t_13_librootnumpy_VectorBoolConverter::write(Column *__pyx_v_col, void __pyx_t_2.max_length = __pyx_v_col->max_length; #line 417 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_f_13_librootnumpy_write_array_vectorbool(__pyx_v_col->name, __pyx_v_here, __pyx_v_tmp, &__pyx_t_2); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(1, 417, __pyx_L1_error) + __pyx_t_1 = __pyx_f_13_librootnumpy_write_array_vectorbool(__pyx_v_col->name, __pyx_v_here, __pyx_v_tmp, &__pyx_t_2); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 417, __pyx_L1_error) #line 417 "root_numpy/src/converters.pyx" __pyx_r = __pyx_t_1; @@ -10777,34 +11066,19 @@ PyObject *__pyx_t_13_librootnumpy_VectorBoolConverter::get_dtype(Column *__pyx_v __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 423 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 423, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 423, __pyx_L1_error) #line 423 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); #line 423 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_3); - -#line 423 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); - -#line 423 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; - -#line 423 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 423, __pyx_L1_error) - -#line 423 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); - -#line 423 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 423 "root_numpy/src/converters.pyx" - __pyx_r = __pyx_t_3; + __pyx_r = __pyx_t_2; #line 423 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; + __pyx_t_2 = 0; #line 423 "root_numpy/src/converters.pyx" goto __pyx_L0; @@ -10846,37 +11120,22 @@ PyObject *__pyx_t_13_librootnumpy_VectorBoolConverter::get_dtype(Column *__pyx_v __Pyx_XDECREF(__pyx_r); #line 426 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 426, __pyx_L1_error) - -#line 426 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); - -#line 426 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_bool); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 426, __pyx_L1_error) + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 426, __pyx_L1_error) #line 426 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); #line 426 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - -#line 426 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 426, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_bool); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 426, __pyx_L1_error) #line 426 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 426 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 426 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 426 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 426 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 426, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 426, __pyx_L1_error) #line 426 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -11138,6 +11397,9 @@ int __pyx_t_13_librootnumpy_VectorVectorBoolConverter::write(Column *__pyx_v_col #line 436 "root_numpy/src/converters.pyx" unsigned long __pyx_t_4; +#line 436 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_5; + #line 436 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("write", 0); @@ -11262,7 +11524,7 @@ int __pyx_t_13_librootnumpy_VectorVectorBoolConverter::write(Column *__pyx_v_col */ #line 454 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_outerobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_outerobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":457 * # build a dataptr pointing to outer, so we can shift and write each @@ -11287,10 +11549,13 @@ int __pyx_t_13_librootnumpy_VectorVectorBoolConverter::write(Column *__pyx_v_col __pyx_t_3 = __pyx_v_numele; #line 460 "root_numpy/src/converters.pyx" - for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { + __pyx_t_4 = __pyx_t_3; #line 460 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_4; + for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { + +#line 460 "root_numpy/src/converters.pyx" + __pyx_v_i = __pyx_t_5; /* "root_numpy/src/converters.pyx":461 * cdef unsigned long i @@ -11301,7 +11566,7 @@ int __pyx_t_13_librootnumpy_VectorVectorBoolConverter::write(Column *__pyx_v_col */ #line 461 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_f_13_librootnumpy_write_array_vectorbool(__pyx_v_col->name, (&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), (&((__pyx_v_tmp[0])[__pyx_v_i])), NULL); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(1, 461, __pyx_L1_error) + __pyx_t_2 = __pyx_f_13_librootnumpy_write_array_vectorbool(__pyx_v_col->name, (&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), (&((__pyx_v_tmp[0])[__pyx_v_i])), NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(1, 461, __pyx_L1_error) #line 461 "root_numpy/src/converters.pyx" } @@ -11425,34 +11690,19 @@ int __pyx_t_13_librootnumpy_StringConverter::write(Column *__pyx_v_col, void *__ __Pyx_GOTREF(__pyx_t_1); #line 468 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 468, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 468, __pyx_L1_error) #line 468 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); #line 468 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 468 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - -#line 468 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; - -#line 468 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 468, __pyx_L1_error) - -#line 468 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); - -#line 468 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 468 "root_numpy/src/converters.pyx" - __pyx_v_py_bytes = __pyx_t_1; + __pyx_v_py_bytes = __pyx_t_2; #line 468 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __pyx_t_2 = 0; /* "root_numpy/src/converters.pyx":469 * cdef string* s = col.GetValuePointer() @@ -11485,7 +11735,7 @@ int __pyx_t_13_librootnumpy_StringConverter::write(Column *__pyx_v_col, void *__ */ #line 473 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_tmpobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":474 * # now write PyObject* to the array @@ -11603,7 +11853,7 @@ int __pyx_t_13_librootnumpy_VectorStringConverter::write(Column *__pyx_v_col, vo __pyx_t_2.selector = __pyx_v_col->selector; #line 480 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_f_13_librootnumpy_write_array_vectorstring(__pyx_v_col->name, __pyx_v_here, __pyx_v_tmp, &__pyx_t_2); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(1, 480, __pyx_L1_error) + __pyx_t_1 = __pyx_f_13_librootnumpy_write_array_vectorstring(__pyx_v_col->name, __pyx_v_here, __pyx_v_tmp, &__pyx_t_2); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 480, __pyx_L1_error) #line 480 "root_numpy/src/converters.pyx" __pyx_r = __pyx_t_1; @@ -11705,6 +11955,9 @@ int __pyx_t_13_librootnumpy_VectorVectorStringConverter::write(Column *__pyx_v_c #line 484 "root_numpy/src/converters.pyx" unsigned long __pyx_t_4; +#line 484 "root_numpy/src/converters.pyx" + unsigned long __pyx_t_5; + #line 484 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("write", 0); @@ -11829,7 +12082,7 @@ int __pyx_t_13_librootnumpy_VectorVectorStringConverter::write(Column *__pyx_v_c */ #line 502 "root_numpy/src/converters.pyx" - memcpy(__pyx_v_here, (&__pyx_v_outerobj), (sizeof(PyObject *))); + (void)(memcpy(__pyx_v_here, (&__pyx_v_outerobj), (sizeof(PyObject *)))); /* "root_numpy/src/converters.pyx":505 * # build a dataptr pointing to outer, so we can shift and write each @@ -11854,10 +12107,13 @@ int __pyx_t_13_librootnumpy_VectorVectorStringConverter::write(Column *__pyx_v_c __pyx_t_3 = __pyx_v_numele; #line 508 "root_numpy/src/converters.pyx" - for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { + __pyx_t_4 = __pyx_t_3; + +#line 508 "root_numpy/src/converters.pyx" + for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { #line 508 "root_numpy/src/converters.pyx" - __pyx_v_i = __pyx_t_4; + __pyx_v_i = __pyx_t_5; /* "root_numpy/src/converters.pyx":509 * cdef unsigned long i @@ -11868,7 +12124,7 @@ int __pyx_t_13_librootnumpy_VectorVectorStringConverter::write(Column *__pyx_v_c */ #line 509 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_f_13_librootnumpy_write_array_vectorstring(__pyx_v_col->name, (&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), (&((__pyx_v_tmp[0])[__pyx_v_i])), NULL); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(1, 509, __pyx_L1_error) + __pyx_t_2 = __pyx_f_13_librootnumpy_write_array_vectorstring(__pyx_v_col->name, (&(__pyx_v_dataptr[(__pyx_v_i * __pyx_v_objsize)])), (&((__pyx_v_tmp[0])[__pyx_v_i])), NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(1, 509, __pyx_L1_error) #line 509 "root_numpy/src/converters.pyx" } @@ -12327,7 +12583,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P if (exc_type) { #line 600 "root_numpy/src/converters.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 600 "root_numpy/src/converters.pyx" else __PYX_ERR(1, 600, __pyx_L1_error) @@ -12523,7 +12779,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P */ #line 612 "root_numpy/src/converters.pyx" - __pyx_t_4 = PyTuple_GET_SIZE(__pyx_v_shape); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(1, 612, __pyx_L1_error) + __pyx_t_4 = PyTuple_GET_SIZE(__pyx_v_shape); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(1, 612, __pyx_L1_error) #line 612 "root_numpy/src/converters.pyx" __pyx_t_2 = PyInt_FromSsize_t((__pyx_t_4 + 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 612, __pyx_L1_error) @@ -12581,7 +12837,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P __pyx_t_3 = ((__pyx_v_dims == NULL) != 0); #line 614 "root_numpy/src/converters.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/converters.pyx":615 * dims = malloc(ndim * sizeof(SIZE_t)) @@ -12616,35 +12872,20 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 615 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 615, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 615, __pyx_L1_error) #line 615 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_2); #line 615 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 615 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - -#line 615 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; - -#line 615 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 615, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 615 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 615 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 615 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - -#line 615 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - #line 615 "root_numpy/src/converters.pyx" __PYX_ERR(1, 615, __pyx_L1_error) @@ -12674,16 +12915,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P for (__pyx_t_10 = 1; __pyx_t_10 < __pyx_t_9; __pyx_t_10++) { #line 618 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 618, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 618, __pyx_L1_error) #line 618 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); #line 618 "root_numpy/src/converters.pyx" - __Pyx_XDECREF_SET(__pyx_v_idim, __pyx_t_1); + __Pyx_XDECREF_SET(__pyx_v_idim, __pyx_t_2); #line 618 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __pyx_t_2 = 0; /* "root_numpy/src/converters.pyx":619 * # so dims[0] is set dynamically for each entry @@ -12694,25 +12935,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P */ #line 619 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyInt_SubtractObjC(__pyx_v_idim, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 619, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_v_idim, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 619, __pyx_L1_error) #line 619 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); #line 619 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyObject_GetItem(__pyx_v_shape, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 619, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_shape, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 619, __pyx_L1_error) #line 619 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_1); #line 619 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 619 "root_numpy/src/converters.pyx" - __pyx_t_11 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_2); if (unlikely((__pyx_t_11 == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(1, 619, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_1); if (unlikely((__pyx_t_11 == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(1, 619, __pyx_L1_error) #line 619 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 619 "root_numpy/src/converters.pyx" __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idim); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 619, __pyx_L1_error) @@ -12735,16 +12976,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P */ #line 618 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 618, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 618, __pyx_L1_error) #line 618 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_1); #line 618 "root_numpy/src/converters.pyx" - __Pyx_XDECREF_SET(__pyx_v_idim, __pyx_t_2); + __Pyx_XDECREF_SET(__pyx_v_idim, __pyx_t_1); #line 618 "root_numpy/src/converters.pyx" - __pyx_t_2 = 0; + __pyx_t_1 = 0; /* "root_numpy/src/converters.pyx":621 * dims[idim] = shape[idim - 1] @@ -12777,25 +13018,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P */ #line 622 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_typename); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 622, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_typename); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 622, __pyx_L1_error) #line 622 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_1); #line 622 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_v_arraydef); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 622, __pyx_L1_error) + __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_v_arraydef); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 622, __pyx_L1_error) #line 622 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); #line 622 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 622 "root_numpy/src/converters.pyx" - __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 622, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 622, __pyx_L1_error) #line 622 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 622 "root_numpy/src/converters.pyx" try { @@ -12878,25 +13119,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P */ #line 626 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_typename); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 626, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_typename); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 626, __pyx_L1_error) #line 626 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); #line 626 "root_numpy/src/converters.pyx" - __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_v_arraydef); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 626, __pyx_L1_error) + __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_v_arraydef); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 626, __pyx_L1_error) #line 626 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_1); #line 626 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 626 "root_numpy/src/converters.pyx" - __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 626, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 626, __pyx_L1_error) #line 626 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 626 "root_numpy/src/converters.pyx" __pyx_v_conv = __pyx_f_13_librootnumpy_find_converter_by_typename(__pyx_t_7); @@ -12985,25 +13226,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P */ #line 634 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_typename); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 634, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_typename); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 634, __pyx_L1_error) #line 634 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_1); #line 634 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_v_arraydef); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 634, __pyx_L1_error) + __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_v_arraydef); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 634, __pyx_L1_error) #line 634 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); #line 634 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 634 "root_numpy/src/converters.pyx" - __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 634, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 634, __pyx_L1_error) #line 634 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 634 "root_numpy/src/converters.pyx" try { @@ -13093,7 +13334,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_arraytokens); if (unlikely(!__pyx_t_2)) __P __Pyx_XDECREF(__pyx_t_6); #line 595 "root_numpy/src/converters.pyx" - __Pyx_WriteUnraisable("_librootnumpy.get_array_converter", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __Pyx_WriteUnraisable("_librootnumpy.get_array_converter", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #line 595 "root_numpy/src/converters.pyx" __pyx_r = 0; @@ -14307,7 +14548,7 @@ static PyObject *__pyx_pf_13_librootnumpy_cleanup(CYTHON_UNUSED PyObject *__pyx_ */ #line 676 "root_numpy/src/converters.pyx" - (++__pyx_v_it); + (void)((++__pyx_v_it)); #line 676 "root_numpy/src/converters.pyx" } @@ -14385,7 +14626,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p #line 694 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedNP2ROOTConverter::__pyx_t_13_librootnumpy_FixedNP2ROOTConverter(TTree *__pyx_v_tree, std::string __pyx_v_name, std::string __pyx_v_roottype, int __pyx_v_length, int __pyx_v_elembytes, struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ *__pyx_optional_args) { +void __pyx_t_13_librootnumpy_FixedNP2ROOTConverter::__pyx_f___init__FixedNP2ROOTConverter(TTree *__pyx_v_tree, std::string &__pyx_v_name, std::string &__pyx_v_roottype, int __pyx_v_length, int __pyx_v_elembytes, struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ *__pyx_optional_args) { #line 694 "root_numpy/src/converters.pyx" int __pyx_v_ndim = ((int)0); @@ -14414,16 +14655,16 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_RefNannyDeclarations #line 696 "root_numpy/src/converters.pyx" - std::string __pyx_t_1; + int __pyx_t_1; #line 696 "root_numpy/src/converters.pyx" - int __pyx_t_2; + PyObject *__pyx_t_2 = NULL; #line 696 "root_numpy/src/converters.pyx" PyObject *__pyx_t_3 = NULL; #line 696 "root_numpy/src/converters.pyx" - PyObject *__pyx_t_4 = NULL; + int __pyx_t_4; #line 696 "root_numpy/src/converters.pyx" int __pyx_t_5; @@ -14447,11 +14688,14 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p char *__pyx_t_11; #line 696 "root_numpy/src/converters.pyx" - PyObject *__pyx_t_12 = NULL; + std::string __pyx_t_12; #line 696 "root_numpy/src/converters.pyx" PyObject *__pyx_t_13 = NULL; +#line 696 "root_numpy/src/converters.pyx" + PyObject *__pyx_t_14 = NULL; + #line 696 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("", 0); @@ -14499,13 +14743,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 700 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_C); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 700, __pyx_L1_error) - -#line 700 "root_numpy/src/converters.pyx" - __pyx_t_2 = ((__pyx_v_roottype.compare(__pyx_t_1) == 0) != 0); + __pyx_t_1 = ((__pyx_v_roottype.compare(__pyx_k_C) == 0) != 0); #line 700 "root_numpy/src/converters.pyx" - if (__pyx_t_2) { + if (__pyx_t_1) { /* "root_numpy/src/converters.pyx":702 * if roottype.compare('C') == 0: @@ -14527,10 +14768,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 703 "root_numpy/src/converters.pyx" - __pyx_t_2 = ((this->value == NULL) != 0); + __pyx_t_1 = ((this->value == NULL) != 0); #line 703 "root_numpy/src/converters.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/converters.pyx":704 * this.value = malloc(nbytes + 1) @@ -14541,49 +14782,34 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 704 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyInt_From_long((nbytes + 1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 704, __pyx_L1_error) - -#line 704 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); - -#line 704 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_could_not_allocate_d_bytes, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 704, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_long((nbytes + 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 704, __pyx_L1_error) #line 704 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); - -#line 704 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_2); #line 704 "root_numpy/src/converters.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 704, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_could_not_allocate_d_bytes, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 704, __pyx_L1_error) #line 704 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 704 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_4); - -#line 704 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); - -#line 704 "root_numpy/src/converters.pyx" - __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 704 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 704, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 704, __pyx_L1_error) #line 704 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); #line 704 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 704 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 704 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 704 "root_numpy/src/converters.pyx" __PYX_ERR(1, 704, __pyx_L1_error) @@ -14647,10 +14873,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 708 "root_numpy/src/converters.pyx" - __pyx_t_2 = ((this->value == NULL) != 0); + __pyx_t_1 = ((this->value == NULL) != 0); #line 708 "root_numpy/src/converters.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/converters.pyx":709 * this.value = malloc(nbytes) @@ -14661,49 +14887,34 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 709 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyInt_From_int(nbytes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 709, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(nbytes); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 709, __pyx_L1_error) #line 709 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); #line 709 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_could_not_allocate_d_bytes, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 709, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_could_not_allocate_d_bytes, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 709, __pyx_L1_error) #line 709 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 709 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - -#line 709 "root_numpy/src/converters.pyx" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 709, __pyx_L1_error) - -#line 709 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); - -#line 709 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_3); - -#line 709 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); - -#line 709 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 709 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 709, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 709, __pyx_L1_error) #line 709 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 709 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 709 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 709 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 709 "root_numpy/src/converters.pyx" __PYX_ERR(1, 709, __pyx_L1_error) @@ -14745,16 +14956,16 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 712 "root_numpy/src/converters.pyx" - __pyx_t_5 = ((__pyx_v_ndim > 0) != 0); + __pyx_t_4 = ((__pyx_v_ndim > 0) != 0); #line 712 "root_numpy/src/converters.pyx" - if (__pyx_t_5) { + if (__pyx_t_4) { #line 712 "root_numpy/src/converters.pyx" } else { #line 712 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_t_5; + __pyx_t_1 = __pyx_t_4; #line 712 "root_numpy/src/converters.pyx" goto __pyx_L7_bool_binop_done; @@ -14763,19 +14974,16 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p } #line 712 "root_numpy/src/converters.pyx" - __pyx_t_1 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_C); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 712, __pyx_L1_error) - -#line 712 "root_numpy/src/converters.pyx" - __pyx_t_5 = ((__pyx_v_roottype.compare(__pyx_t_1) != 0) != 0); + __pyx_t_4 = ((__pyx_v_roottype.compare(__pyx_k_C) != 0) != 0); #line 712 "root_numpy/src/converters.pyx" - __pyx_t_2 = __pyx_t_5; + __pyx_t_1 = __pyx_t_4; #line 712 "root_numpy/src/converters.pyx" __pyx_L7_bool_binop_done:; #line 712 "root_numpy/src/converters.pyx" - if (__pyx_t_2) { + if (__pyx_t_1) { /* "root_numpy/src/converters.pyx":713 * leaflist = name @@ -14786,7 +14994,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 713 "root_numpy/src/converters.pyx" - __pyx_t_6 = __pyx_v_ndim; + __pyx_t_5 = __pyx_v_ndim; + +#line 713 "root_numpy/src/converters.pyx" + __pyx_t_6 = __pyx_t_5; #line 713 "root_numpy/src/converters.pyx" for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) { @@ -14803,10 +15014,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 714 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_3); #line 714 "root_numpy/src/converters.pyx" __pyx_t_8 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_dims[__pyx_v_axis])); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 714, __pyx_L1_error) @@ -14818,16 +15029,16 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __pyx_t_9 = NULL; #line 714 "root_numpy/src/converters.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 714 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); #line 714 "root_numpy/src/converters.pyx" if (likely(__pyx_t_9)) { #line 714 "root_numpy/src/converters.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); #line 714 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_t_9); @@ -14836,7 +15047,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_INCREF(function); #line 714 "root_numpy/src/converters.pyx" - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_3, function); #line 714 "root_numpy/src/converters.pyx" } @@ -14848,13 +15059,13 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p if (!__pyx_t_9) { #line 714 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 714 "root_numpy/src/converters.pyx" } else { @@ -14863,19 +15074,19 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p #if CYTHON_FAST_PYCALL #line 714 "root_numpy/src/converters.pyx" - if (PyFunction_Check(__pyx_t_4)) { + if (PyFunction_Check(__pyx_t_3)) { #line 714 "root_numpy/src/converters.pyx" PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_8}; #line 714 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 714 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -14890,19 +15101,19 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p #if CYTHON_FAST_PYCCALL #line 714 "root_numpy/src/converters.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 714 "root_numpy/src/converters.pyx" PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_8}; #line 714 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 714 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -14935,10 +15146,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __pyx_t_8 = 0; #line 714 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 714 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -14950,31 +15161,31 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p } #line 714 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 714 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_3); #line 714 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 714 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 714, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 714, __pyx_L1_error) #line 714 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 714 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 714 "root_numpy/src/converters.pyx" - __Pyx_XDECREF_SET(__pyx_v_token, __pyx_t_3); + __Pyx_XDECREF_SET(__pyx_v_token, __pyx_t_2); #line 714 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; + __pyx_t_2 = 0; /* "root_numpy/src/converters.pyx":715 * for axis in range(ndim): @@ -14985,10 +15196,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 715 "root_numpy/src/converters.pyx" - __pyx_t_11 = __Pyx_PyObject_AsString(__pyx_v_token); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(1, 715, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_AsWritableString(__pyx_v_token); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(1, 715, __pyx_L1_error) #line 715 "root_numpy/src/converters.pyx" - __pyx_v_leaflist.append(((char *)__pyx_t_11)); + (void)(__pyx_v_leaflist.append(((char *)__pyx_t_11))); #line 715 "root_numpy/src/converters.pyx" } @@ -15013,7 +15224,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 716 "root_numpy/src/converters.pyx" - __pyx_v_leaflist.append(((char *)"/")); + (void)(__pyx_v_leaflist.append(((char const *)"/"))); /* "root_numpy/src/converters.pyx":717 * leaflist.append( token) @@ -15024,7 +15235,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 717 "root_numpy/src/converters.pyx" - __pyx_v_leaflist.append(__pyx_v_roottype); + (void)(__pyx_v_leaflist.append(__pyx_v_roottype)); /* "root_numpy/src/converters.pyx":718 * leaflist.append(b'/') @@ -15046,10 +15257,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 719 "root_numpy/src/converters.pyx" - __pyx_t_2 = ((this->branch == NULL) != 0); + __pyx_t_1 = ((this->branch == NULL) != 0); #line 719 "root_numpy/src/converters.pyx" - if (__pyx_t_2) { + if (__pyx_t_1) { /* "root_numpy/src/converters.pyx":720 * this.branch = tree.GetBranch(name.c_str()) @@ -15091,7 +15302,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p try { #line 723 "root_numpy/src/converters.pyx" - __pyx_t_1 = std::string(this->branch->GetTitle()); + __pyx_t_12 = std::string(this->branch->GetTitle()); #line 723 "root_numpy/src/converters.pyx" } catch(...) { @@ -15106,10 +15317,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p } #line 723 "root_numpy/src/converters.pyx" - __pyx_t_2 = ((__pyx_v_leaflist.compare(__pyx_t_1) != 0) != 0); + __pyx_t_1 = ((__pyx_v_leaflist.compare(__pyx_t_12) != 0) != 0); #line 723 "root_numpy/src/converters.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/converters.pyx":726 * raise TypeError( @@ -15120,10 +15331,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 726 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_field_0_of_type_1_is_not_compati, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 726, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_field_0_of_type_1_is_not_compati, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 726, __pyx_L1_error) #line 726 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_3); /* "root_numpy/src/converters.pyx":727 * "field '{0}' of type '{1}' is not compatible " @@ -15152,58 +15363,43 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_GOTREF(__pyx_t_9); #line 727 "root_numpy/src/converters.pyx" - __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 727, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_9); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 727, __pyx_L1_error) #line 727 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_12); - -#line 727 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); - -#line 727 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_9); - -#line 727 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; - -#line 727 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_12, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 727, __pyx_L1_error) - -#line 727 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_13); #line 727 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 727 "root_numpy/src/converters.pyx" - __pyx_t_12 = NULL; + __pyx_t_9 = NULL; #line 727 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_5 = 0; #line 727 "root_numpy/src/converters.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { #line 727 "root_numpy/src/converters.pyx" - __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_4); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); #line 727 "root_numpy/src/converters.pyx" - if (likely(__pyx_t_12)) { + if (likely(__pyx_t_9)) { #line 727 "root_numpy/src/converters.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); #line 727 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_t_12); + __Pyx_INCREF(__pyx_t_9); #line 727 "root_numpy/src/converters.pyx" __Pyx_INCREF(function); #line 727 "root_numpy/src/converters.pyx" - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_3, function); #line 727 "root_numpy/src/converters.pyx" - __pyx_t_6 = 1; + __pyx_t_5 = 1; #line 727 "root_numpy/src/converters.pyx" } @@ -15215,19 +15411,19 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p #if CYTHON_FAST_PYCALL #line 727 "root_numpy/src/converters.pyx" - if (PyFunction_Check(__pyx_t_4)) { + if (PyFunction_Check(__pyx_t_3)) { #line 727 "root_numpy/src/converters.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_t_10, __pyx_t_8, __pyx_t_9}; + PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_t_10, __pyx_t_8, __pyx_t_13}; #line 727 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 726, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 3+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 726, __pyx_L1_error) #line 727 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 727 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 727 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -15236,7 +15432,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 727 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; #line 727 "root_numpy/src/converters.pyx" } else @@ -15248,19 +15444,19 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p #if CYTHON_FAST_PYCCALL #line 727 "root_numpy/src/converters.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { #line 727 "root_numpy/src/converters.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_t_10, __pyx_t_8, __pyx_t_9}; + PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_t_10, __pyx_t_8, __pyx_t_13}; #line 727 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 726, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 3+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 726, __pyx_L1_error) #line 727 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 727 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 727 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -15269,7 +15465,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 727 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; #line 727 "root_numpy/src/converters.pyx" } else @@ -15281,16 +15477,16 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p { #line 727 "root_numpy/src/converters.pyx" - __pyx_t_13 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 726, __pyx_L1_error) + __pyx_t_14 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 726, __pyx_L1_error) #line 727 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_13); + __Pyx_GOTREF(__pyx_t_14); #line 727 "root_numpy/src/converters.pyx" - if (__pyx_t_12) { + if (__pyx_t_9) { #line 727 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL; + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_9); __pyx_t_9 = NULL; #line 727 "root_numpy/src/converters.pyx" } @@ -15299,19 +15495,19 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_GIVEREF(__pyx_t_10); #line 727 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_6, __pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_5, __pyx_t_10); #line 727 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_8); #line 727 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_6, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_5, __pyx_t_8); #line 727 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_13); #line 727 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 2+__pyx_t_6, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_14, 2+__pyx_t_5, __pyx_t_13); #line 727 "root_numpy/src/converters.pyx" __pyx_t_10 = 0; @@ -15320,22 +15516,22 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __pyx_t_8 = 0; #line 727 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __pyx_t_13 = 0; #line 727 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_13, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 726, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 726, __pyx_L1_error) #line 727 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 727 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 727 "root_numpy/src/converters.pyx" } #line 727 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "root_numpy/src/converters.pyx":724 * # check type compatibility of existing branch @@ -15346,28 +15542,13 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p */ #line 724 "root_numpy/src/converters.pyx" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 724, __pyx_L1_error) - -#line 724 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); - -#line 724 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_3); - -#line 724 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); - -#line 724 "root_numpy/src/converters.pyx" - __pyx_t_3 = 0; - -#line 724 "root_numpy/src/converters.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 724, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 724, __pyx_L1_error) #line 724 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_3); #line 724 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 724 "root_numpy/src/converters.pyx" __Pyx_Raise(__pyx_t_3, 0, 0, 0); @@ -15438,10 +15619,10 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __pyx_L1_error:; #line 694 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_2); #line 694 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_3); #line 694 "root_numpy/src/converters.pyx" __Pyx_XDECREF(__pyx_t_8); @@ -15453,13 +15634,13 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p __Pyx_XDECREF(__pyx_t_10); #line 694 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_12); + __Pyx_XDECREF(__pyx_t_13); #line 694 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_13); + __Pyx_XDECREF(__pyx_t_14); #line 694 "root_numpy/src/converters.pyx" - __Pyx_WriteUnraisable("FixedNP2ROOTConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __Pyx_WriteUnraisable("FixedNP2ROOTConverter.", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #line 694 "root_numpy/src/converters.pyx" __pyx_L0:; @@ -15485,7 +15666,7 @@ void __pyx_t_13_librootnumpy_NP2ROOTConverter::fill_from(CYTHON_UNUSED void *__p #line 731 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedNP2ROOTConverter::~__pyx_t_13_librootnumpy_FixedNP2ROOTConverter(void) { +void __pyx_t_13_librootnumpy_FixedNP2ROOTConverter::__pyx_f___dealloc__FixedNP2ROOTConverter(void) { #line 731 "root_numpy/src/converters.pyx" __Pyx_RefNannyDeclarations @@ -15553,7 +15734,7 @@ void __pyx_t_13_librootnumpy_FixedNP2ROOTConverter::fill_from(void *__pyx_v_sour */ #line 735 "root_numpy/src/converters.pyx" - memcpy(this->value, __pyx_v_source, this->nbytes); + (void)(memcpy(this->value, __pyx_v_source, this->nbytes)); /* "root_numpy/src/converters.pyx":736 * void fill_from(void* source): @@ -15564,7 +15745,7 @@ void __pyx_t_13_librootnumpy_FixedNP2ROOTConverter::fill_from(void *__pyx_v_sour */ #line 736 "root_numpy/src/converters.pyx" - this->branch->Fill(); + (void)(this->branch->Fill()); /* "root_numpy/src/converters.pyx":734 * free(this.value) @@ -15661,22 +15842,25 @@ static __pyx_t_13_librootnumpy_NP2ROOTConverter *__pyx_f_13_librootnumpy_find_np int __pyx_t_9; #line 739 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_SIZE_t __pyx_t_10; + int __pyx_t_10; #line 739 "root_numpy/src/converters.pyx" - PyObject *__pyx_t_11 = NULL; + __pyx_t_13_librootnumpy_SIZE_t __pyx_t_11; #line 739 "root_numpy/src/converters.pyx" - std::string __pyx_t_12; + PyObject *__pyx_t_12 = NULL; #line 739 "root_numpy/src/converters.pyx" std::string __pyx_t_13; #line 739 "root_numpy/src/converters.pyx" - __pyx_t_13_librootnumpy_FixedNP2ROOTConverter *__pyx_t_14; + std::string __pyx_t_14; + +#line 739 "root_numpy/src/converters.pyx" + __pyx_t_13_librootnumpy_FixedNP2ROOTConverter *__pyx_t_15; #line 739 "root_numpy/src/converters.pyx" - struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ __pyx_t_15; + struct __pyx_opt_args_21FixedNP2ROOTConverter___init__ __pyx_t_16; #line 739 "root_numpy/src/converters.pyx" __Pyx_RefNannySetupContext("find_np2root_converter", 0); @@ -15780,19 +15964,7 @@ static __pyx_t_13_librootnumpy_NP2ROOTConverter *__pyx_f_13_librootnumpy_find_np PyObject* sequence = __pyx_v_subdtype; #line 750 "root_numpy/src/converters.pyx" - #if !CYTHON_COMPILING_IN_PYPY - -#line 750 "root_numpy/src/converters.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 750 "root_numpy/src/converters.pyx" - #else - -#line 750 "root_numpy/src/converters.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 750 "root_numpy/src/converters.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 750 "root_numpy/src/converters.pyx" if (unlikely(size != 2)) { @@ -15938,7 +16110,7 @@ goto __pyx_L4_unpacking_failed; */ #line 751 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyObject_Length(__pyx_v_shape); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(1, 751, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_shape); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(1, 751, __pyx_L1_error) #line 751 "root_numpy/src/converters.pyx" __pyx_v_ndim = __pyx_t_7; @@ -15966,7 +16138,7 @@ goto __pyx_L4_unpacking_failed; __pyx_t_3 = ((__pyx_v_dims == NULL) != 0); #line 753 "root_numpy/src/converters.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/converters.pyx":754 * dims = malloc(ndim * sizeof(SIZE_t)) @@ -15992,35 +16164,20 @@ goto __pyx_L4_unpacking_failed; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 754 "root_numpy/src/converters.pyx" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 754, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 754, __pyx_L1_error) #line 754 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_4); #line 754 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 754 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); - -#line 754 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; - -#line 754 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 754, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 754 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_Raise(__pyx_t_4, 0, 0, 0); #line 754 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 754 "root_numpy/src/converters.pyx" - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - -#line 754 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - #line 754 "root_numpy/src/converters.pyx" __PYX_ERR(1, 754, __pyx_L1_error) @@ -16047,10 +16204,13 @@ goto __pyx_L4_unpacking_failed; __pyx_t_8 = __pyx_v_ndim; #line 755 "root_numpy/src/converters.pyx" - for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { + __pyx_t_9 = __pyx_t_8; + +#line 755 "root_numpy/src/converters.pyx" + for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { #line 755 "root_numpy/src/converters.pyx" - __pyx_v_axis = __pyx_t_9; + __pyx_v_axis = __pyx_t_10; /* "root_numpy/src/converters.pyx":756 * raise MemoryError("could not allocate %d bytes" % (ndim * sizeof(SIZE_t))) @@ -16061,19 +16221,19 @@ goto __pyx_L4_unpacking_failed; */ #line 756 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_shape, __pyx_v_axis, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 756, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_shape, __pyx_v_axis, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 756, __pyx_L1_error) #line 756 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_4); #line 756 "root_numpy/src/converters.pyx" - __pyx_t_10 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_1); if (unlikely((__pyx_t_10 == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(1, 756, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_As_Py_intptr_t(__pyx_t_4); if (unlikely((__pyx_t_11 == ((npy_intp)-1)) && PyErr_Occurred())) __PYX_ERR(1, 756, __pyx_L1_error) #line 756 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 756 "root_numpy/src/converters.pyx" - (__pyx_v_dims[__pyx_v_axis]) = __pyx_t_10; + (__pyx_v_dims[__pyx_v_axis]) = __pyx_t_11; /* "root_numpy/src/converters.pyx":757 * for axis in range(ndim): @@ -16109,16 +16269,16 @@ goto __pyx_L4_unpacking_failed; */ #line 758 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_TYPES_NUMPY2ROOT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 758, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_TYPES_NUMPY2ROOT); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 758, __pyx_L1_error) #line 758 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_4); #line 758 "root_numpy/src/converters.pyx" - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_dtype, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(1, 758, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_dtype, __pyx_t_4, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(1, 758, __pyx_L1_error) #line 758 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 758 "root_numpy/src/converters.pyx" __pyx_t_2 = (__pyx_t_3 != 0); @@ -16135,40 +16295,28 @@ goto __pyx_L4_unpacking_failed; */ #line 759 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_TYPES_NUMPY2ROOT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 759, __pyx_L1_error) - -#line 759 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); - -#line 759 "root_numpy/src/converters.pyx" - __pyx_t_4 = PyObject_GetItem(__pyx_t_1, __pyx_v_dtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 759, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_TYPES_NUMPY2ROOT); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 759, __pyx_L1_error) #line 759 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_4); #line 759 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - -#line 759 "root_numpy/src/converters.pyx" - if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) { + __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 759, __pyx_L1_error) #line 759 "root_numpy/src/converters.pyx" - PyObject* sequence = __pyx_t_4; - -#line 759 "root_numpy/src/converters.pyx" - #if !CYTHON_COMPILING_IN_PYPY + __Pyx_GOTREF(__pyx_t_1); #line 759 "root_numpy/src/converters.pyx" - Py_ssize_t size = Py_SIZE(sequence); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 759 "root_numpy/src/converters.pyx" - #else + if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { #line 759 "root_numpy/src/converters.pyx" - Py_ssize_t size = PySequence_Size(sequence); + PyObject* sequence = __pyx_t_1; #line 759 "root_numpy/src/converters.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 759 "root_numpy/src/converters.pyx" if (unlikely(size != 2)) { @@ -16192,7 +16340,7 @@ goto __pyx_L4_unpacking_failed; if (likely(PyTuple_CheckExact(sequence))) { #line 759 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); #line 759 "root_numpy/src/converters.pyx" __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); @@ -16201,7 +16349,7 @@ goto __pyx_L4_unpacking_failed; } else { #line 759 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyList_GET_ITEM(sequence, 0); + __pyx_t_4 = PyList_GET_ITEM(sequence, 0); #line 759 "root_numpy/src/converters.pyx" __pyx_t_5 = PyList_GET_ITEM(sequence, 1); @@ -16210,7 +16358,7 @@ goto __pyx_L4_unpacking_failed; } #line 759 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_t_1); + __Pyx_INCREF(__pyx_t_4); #line 759 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_t_5); @@ -16219,10 +16367,10 @@ goto __pyx_L4_unpacking_failed; #else #line 759 "root_numpy/src/converters.pyx" - __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 759, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 759, __pyx_L1_error) #line 759 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_4); #line 759 "root_numpy/src/converters.pyx" __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 759, __pyx_L1_error) @@ -16234,7 +16382,7 @@ goto __pyx_L4_unpacking_failed; #endif #line 759 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 759 "root_numpy/src/converters.pyx" } else { @@ -16243,23 +16391,23 @@ goto __pyx_L4_unpacking_failed; Py_ssize_t index = -1; #line 759 "root_numpy/src/converters.pyx" - __pyx_t_11 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 759, __pyx_L1_error) + __pyx_t_12 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 759, __pyx_L1_error) #line 759 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_12); #line 759 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 759 "root_numpy/src/converters.pyx" - __pyx_t_6 = Py_TYPE(__pyx_t_11)->tp_iternext; - index = 0; __pyx_t_1 = __pyx_t_6(__pyx_t_11); if (unlikely(!__pyx_t_1)) + __pyx_t_6 = Py_TYPE(__pyx_t_12)->tp_iternext; + index = 0; __pyx_t_4 = __pyx_t_6(__pyx_t_12); if (unlikely(!__pyx_t_4)) #line 759 "root_numpy/src/converters.pyx" goto __pyx_L10_unpacking_failed; #line 759 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); - index = 1; __pyx_t_5 = __pyx_t_6(__pyx_t_11); if (unlikely(!__pyx_t_5)) + __Pyx_GOTREF(__pyx_t_4); + index = 1; __pyx_t_5 = __pyx_t_6(__pyx_t_12); if (unlikely(!__pyx_t_5)) #line 759 "root_numpy/src/converters.pyx" goto __pyx_L10_unpacking_failed; @@ -16267,13 +16415,13 @@ goto __pyx_L10_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); #line 759 "root_numpy/src/converters.pyx" - if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_11), 2) < 0) __PYX_ERR(1, 759, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_12), 2) < 0) __PYX_ERR(1, 759, __pyx_L1_error) #line 759 "root_numpy/src/converters.pyx" __pyx_t_6 = NULL; #line 759 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; #line 759 "root_numpy/src/converters.pyx" goto __pyx_L11_unpacking_done; @@ -16282,7 +16430,7 @@ goto __pyx_L10_unpacking_failed; __pyx_L10_unpacking_failed:; #line 759 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; #line 759 "root_numpy/src/converters.pyx" __pyx_t_6 = NULL; @@ -16300,10 +16448,10 @@ goto __pyx_L10_unpacking_failed; } #line 759 "root_numpy/src/converters.pyx" - __pyx_v_elembytes = __pyx_t_1; + __pyx_v_elembytes = __pyx_t_4; #line 759 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; + __pyx_t_4 = 0; #line 759 "root_numpy/src/converters.pyx" __pyx_v_roottype = __pyx_t_5; @@ -16320,28 +16468,28 @@ goto __pyx_L10_unpacking_failed; */ #line 760 "root_numpy/src/converters.pyx" - __pyx_t_12 = __pyx_convert_string_from_py_std__in_string(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 760, __pyx_L1_error) + __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 760, __pyx_L1_error) #line 760 "root_numpy/src/converters.pyx" - __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_roottype); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 760, __pyx_L1_error) + __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_roottype); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 760, __pyx_L1_error) #line 760 "root_numpy/src/converters.pyx" __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_elembytes); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 760, __pyx_L1_error) #line 760 "root_numpy/src/converters.pyx" - __pyx_t_15.__pyx_n = 2; + __pyx_t_16.__pyx_n = 2; #line 760 "root_numpy/src/converters.pyx" - __pyx_t_15.ndim = __pyx_v_ndim; + __pyx_t_16.ndim = __pyx_v_ndim; #line 760 "root_numpy/src/converters.pyx" - __pyx_t_15.dims = __pyx_v_dims; + __pyx_t_16.dims = __pyx_v_dims; #line 760 "root_numpy/src/converters.pyx" - __pyx_t_14 = new __pyx_t_13_librootnumpy_FixedNP2ROOTConverter(__pyx_v_tree, __pyx_t_12, __pyx_t_13, __pyx_v_length, __pyx_t_8, &__pyx_t_15); + __pyx_t_15 = new __pyx_t_13_librootnumpy_FixedNP2ROOTConverter(__pyx_v_tree, __pyx_t_13, __pyx_t_14, __pyx_v_length, __pyx_t_8, &__pyx_t_16); #line 760 "root_numpy/src/converters.pyx" - __pyx_v_conv = __pyx_t_14; + __pyx_v_conv = __pyx_t_15; /* "root_numpy/src/converters.pyx":758 * dims[axis] = shape[axis] @@ -16366,16 +16514,16 @@ goto __pyx_L10_unpacking_failed; */ #line 761 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_kind); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 761, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 761, __pyx_L1_error) #line 761 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_1); #line 761 "root_numpy/src/converters.pyx" - __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_4, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 761, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_S, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 761, __pyx_L1_error) #line 761 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 761 "root_numpy/src/converters.pyx" if (__pyx_t_2) { @@ -16389,25 +16537,25 @@ goto __pyx_L10_unpacking_failed; */ #line 762 "root_numpy/src/converters.pyx" - __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error) + __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error) #line 762 "root_numpy/src/converters.pyx" - __pyx_t_12 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_C); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error) + __pyx_t_13 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_C); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error) #line 762 "root_numpy/src/converters.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 762, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 762, __pyx_L1_error) #line 762 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_1); #line 762 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error) #line 762 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 762 "root_numpy/src/converters.pyx" - __pyx_v_conv = new __pyx_t_13_librootnumpy_FixedNP2ROOTConverter(__pyx_v_tree, __pyx_t_13, __pyx_t_12, __pyx_t_8, 1, NULL); + __pyx_v_conv = new __pyx_t_13_librootnumpy_FixedNP2ROOTConverter(__pyx_v_tree, __pyx_t_14, __pyx_t_13, __pyx_t_8, 1, NULL); /* "root_numpy/src/converters.pyx":761 * elembytes, roottype = TYPES_NUMPY2ROOT[dtype] @@ -16472,10 +16620,10 @@ goto __pyx_L10_unpacking_failed; __Pyx_XDECREF(__pyx_t_5); #line 739 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_11); + __Pyx_XDECREF(__pyx_t_12); #line 739 "root_numpy/src/converters.pyx" - __Pyx_WriteUnraisable("_librootnumpy.find_np2root_converter", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __Pyx_WriteUnraisable("_librootnumpy.find_np2root_converter", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); #line 739 "root_numpy/src/converters.pyx" __pyx_r = 0; @@ -16582,16 +16730,19 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py int __pyx_t_7; #line 4 "root_numpy/src/tree.pyx" - const char *__pyx_t_8; + int __pyx_t_8; #line 4 "root_numpy/src/tree.pyx" - int __pyx_t_9; + const char *__pyx_t_9; #line 4 "root_numpy/src/tree.pyx" - Py_ssize_t __pyx_t_10; + int __pyx_t_10; + +#line 4 "root_numpy/src/tree.pyx" + Py_ssize_t __pyx_t_11; #line 4 "root_numpy/src/tree.pyx" - struct __pyx_opt_args_13_librootnumpy_list_objects_recursive __pyx_t_11; + struct __pyx_opt_args_13_librootnumpy_list_objects_recursive __pyx_t_12; #line 4 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("list_objects_recursive", 0); @@ -16634,7 +16785,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __pyx_t_1 = ((__pyx_v_keys == NULL) != 0); #line 6 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":7 * cdef TList* keys = rdir.GetListOfKeys() @@ -16780,35 +16931,20 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 7 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error) #line 7 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 7 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 7 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 7 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; - -#line 7 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 7 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 7 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 7 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 7 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 7 "root_numpy/src/tree.pyx" __PYX_ERR(2, 7, __pyx_L1_error) @@ -16843,16 +16979,16 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 12 "root_numpy/src/tree.pyx" - __pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 12, __pyx_L1_error) + __pyx_t_3 = PySet_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 12, __pyx_L1_error) #line 12 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 12 "root_numpy/src/tree.pyx" - __pyx_v_unique_objects = ((PyObject*)__pyx_t_2); + __pyx_v_unique_objects = ((PyObject*)__pyx_t_3); #line 12 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":13 * cdef TKey* key @@ -16863,16 +16999,16 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 13 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error) #line 13 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 13 "root_numpy/src/tree.pyx" - __pyx_v_directories = ((PyObject*)__pyx_t_2); + __pyx_v_directories = ((PyObject*)__pyx_t_3); #line 13 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":14 * unique_objects = set() # multiple cycles of the same key may exist @@ -16886,10 +17022,13 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __pyx_t_6 = __pyx_v_nkeys; #line 14 "root_numpy/src/tree.pyx" - for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) { + __pyx_t_7 = __pyx_t_6; + +#line 14 "root_numpy/src/tree.pyx" + for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { #line 14 "root_numpy/src/tree.pyx" - __pyx_v_i = __pyx_t_7; + __pyx_v_i = __pyx_t_8; /* "root_numpy/src/tree.pyx":15 * directories = list() @@ -16911,28 +17050,13 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 16 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyStr_FromString(__pyx_v_key->GetClassName()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 16, __pyx_L1_error) - -#line 16 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 16 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_key->GetClassName()); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 16, __pyx_L1_error) #line 16 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 16 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 16 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 16 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; - -#line 16 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 16, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 16, __pyx_L1_error) #line 16 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -16969,10 +17093,10 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 18 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_clsname); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(2, 18, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_AsString(__pyx_v_clsname); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(2, 18, __pyx_L1_error) #line 18 "root_numpy/src/tree.pyx" - __pyx_v_tclass = TClass::GetClass(__pyx_t_8, 1, 1); + __pyx_v_tclass = TClass::GetClass(__pyx_t_9, 1, 1); /* "root_numpy/src/tree.pyx":19 * if not classes.empty(): @@ -17045,22 +17169,16 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __Pyx_GOTREF(__pyx_t_2); #line 23 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 23, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 23, __pyx_L1_error) #line 23 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 23 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 23 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 23 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 23 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 23, __pyx_L1_error) + __pyx_t_2 = PyNumber_Add(__pyx_v_path, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 23, __pyx_L1_error) #line 23 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -17069,20 +17187,11 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 23 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyNumber_Add(__pyx_v_path, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 23, __pyx_L1_error) - -#line 23 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_10 = PySet_Add(__pyx_v_unique_objects, __pyx_t_2); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 23, __pyx_L1_error) #line 23 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 23 "root_numpy/src/tree.pyx" - __pyx_t_9 = PySet_Add(__pyx_v_unique_objects, __pyx_t_3); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(2, 23, __pyx_L1_error) - -#line 23 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "root_numpy/src/tree.pyx":24 * if tclass.InheritsFrom(deref(it)): * unique_objects.add(path + str(key.GetName())) @@ -17114,7 +17223,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 25 "root_numpy/src/tree.pyx" - (++__pyx_v_it); + (void)((++__pyx_v_it)); #line 25 "root_numpy/src/tree.pyx" } @@ -17159,28 +17268,13 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py /*else*/ { #line 27 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_key->GetName()); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 27, __pyx_L1_error) - -#line 27 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); - -#line 27 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 27, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyStr_FromString(__pyx_v_key->GetName()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 27, __pyx_L1_error) #line 27 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_2); #line 27 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_3); - -#line 27 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); - -#line 27 "root_numpy/src/tree.pyx" - __pyx_t_3 = 0; - -#line 27 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 27, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 27, __pyx_L1_error) #line 27 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -17198,7 +17292,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 27 "root_numpy/src/tree.pyx" - __pyx_t_9 = PySet_Add(__pyx_v_unique_objects, __pyx_t_2); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(2, 27, __pyx_L1_error) + __pyx_t_10 = PySet_Add(__pyx_v_unique_objects, __pyx_t_2); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 27, __pyx_L1_error) #line 27 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -17238,35 +17332,20 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __Pyx_GOTREF(__pyx_t_2); #line 29 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 29, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 29, __pyx_L1_error) #line 29 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 29 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 29 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 29 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; - -#line 29 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyString_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 29, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 29 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_directories, __pyx_t_3); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 29, __pyx_L1_error) #line 29 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 29 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_directories, __pyx_t_2); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(2, 29, __pyx_L1_error) - -#line 29 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "root_numpy/src/tree.pyx":28 * else: * unique_objects.add(path + str(key.GetName())) @@ -17290,25 +17369,25 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 30 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_objects, __pyx_n_s_extend); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 30, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_objects, __pyx_n_s_extend); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error) #line 30 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 30 "root_numpy/src/tree.pyx" __pyx_t_5 = NULL; #line 30 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 30 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); #line 30 "root_numpy/src/tree.pyx" if (likely(__pyx_t_5)) { #line 30 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 30 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_5); @@ -17317,7 +17396,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py __Pyx_INCREF(function); #line 30 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_3, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 30 "root_numpy/src/tree.pyx" } @@ -17329,10 +17408,10 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py if (!__pyx_t_5) { #line 30 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_unique_objects); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_unique_objects); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 30, __pyx_L1_error) #line 30 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 30 "root_numpy/src/tree.pyx" } else { @@ -17341,19 +17420,19 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py #if CYTHON_FAST_PYCALL #line 30 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_3)) { + if (PyFunction_Check(__pyx_t_2)) { #line 30 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_unique_objects}; #line 30 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 30, __pyx_L1_error) #line 30 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 30 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 30 "root_numpy/src/tree.pyx" } else @@ -17365,19 +17444,19 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py #if CYTHON_FAST_PYCCALL #line 30 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 30 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_unique_objects}; #line 30 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 30, __pyx_L1_error) #line 30 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 30 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 30 "root_numpy/src/tree.pyx" } else @@ -17407,10 +17486,10 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_unique_objects); #line 30 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 30, __pyx_L1_error) #line 30 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 30 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -17422,10 +17501,10 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py } #line 30 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 30 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":32 * objects.extend(unique_objects) @@ -17436,37 +17515,37 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 32 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_v_directories; __Pyx_INCREF(__pyx_t_2); __pyx_t_10 = 0; + __pyx_t_3 = __pyx_v_directories; __Pyx_INCREF(__pyx_t_3); __pyx_t_11 = 0; #line 32 "root_numpy/src/tree.pyx" for (;;) { #line 32 "root_numpy/src/tree.pyx" - if (__pyx_t_10 >= PyList_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_3)) break; #line 32 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 32 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_10); __Pyx_INCREF(__pyx_t_3); __pyx_t_10++; if (unlikely(0 < 0)) __PYX_ERR(2, 32, __pyx_L1_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(2, 32, __pyx_L1_error) #line 32 "root_numpy/src/tree.pyx" #else #line 32 "root_numpy/src/tree.pyx" - __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_10); __pyx_t_10++; if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 32, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 32, __pyx_L1_error) #line 32 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 32 "root_numpy/src/tree.pyx" #endif #line 32 "root_numpy/src/tree.pyx" - __Pyx_XDECREF_SET(__pyx_v_dirname, __pyx_t_3); + __Pyx_XDECREF_SET(__pyx_v_dirname, __pyx_t_2); #line 32 "root_numpy/src/tree.pyx" - __pyx_t_3 = 0; + __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":34 * for dirname in directories: @@ -17477,7 +17556,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 34 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_dirname); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(2, 34, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_AsString(__pyx_v_dirname); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(2, 34, __pyx_L1_error) /* "root_numpy/src/tree.pyx":36 * list_objects_recursive( rdir.Get(dirname), @@ -17488,19 +17567,19 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 36 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyNumber_Add(__pyx_v_path, __pyx_v_dirname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 36, __pyx_L1_error) + __pyx_t_2 = PyNumber_Add(__pyx_v_path, __pyx_v_dirname); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 36, __pyx_L1_error) #line 36 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 36 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_kp_s__16); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 36, __pyx_L1_error) + __pyx_t_4 = PyNumber_Add(__pyx_t_2, __pyx_kp_s__16); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 36, __pyx_L1_error) #line 36 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_4); #line 36 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":34 * for dirname in directories: @@ -17511,22 +17590,22 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py */ #line 34 "root_numpy/src/tree.pyx" - __pyx_t_11.__pyx_n = 1; + __pyx_t_12.__pyx_n = 1; #line 34 "root_numpy/src/tree.pyx" - __pyx_t_11.path = __pyx_t_4; + __pyx_t_12.path = __pyx_t_4; #line 34 "root_numpy/src/tree.pyx" - __pyx_t_3 = __pyx_f_13_librootnumpy_list_objects_recursive(((TDirectory *)__pyx_v_rdir->Get(__pyx_t_8)), __pyx_v_objects, __pyx_v_classes, &__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 34, __pyx_L1_error) + __pyx_t_2 = __pyx_f_13_librootnumpy_list_objects_recursive(((TDirectory *)__pyx_v_rdir->Get(__pyx_t_9)), __pyx_v_objects, __pyx_v_classes, &__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 34, __pyx_L1_error) #line 34 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 34 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 34 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":32 * objects.extend(unique_objects) @@ -17540,7 +17619,7 @@ static PyObject *__pyx_f_13_librootnumpy_list_objects_recursive(TDirectory *__py } #line 32 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":4 * @@ -17674,10 +17753,16 @@ static PyObject *__pyx_pw_13_librootnumpy_3list_objects(PyObject *__pyx_self, Py case 2: #line 39 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 39 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 39 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 39 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 39 "root_numpy/src/tree.pyx" case 0: break; default: @@ -17697,11 +17782,14 @@ goto __pyx_L5_argtuple_error; case 0: #line 39 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--; else #line 39 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 39 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 39 "root_numpy/src/tree.pyx" case 1: @@ -17709,7 +17797,7 @@ goto __pyx_L5_argtuple_error; if (kw_args > 0) { #line 39 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_types); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_types); #line 39 "root_numpy/src/tree.pyx" if (value) { values[1] = value; kw_args--; } @@ -17737,6 +17825,9 @@ goto __pyx_L5_argtuple_error; case 2: #line 39 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 39 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 39 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); @@ -17986,7 +18077,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR if (exc_type) { #line 44 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 44 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 44, __pyx_L1_error) @@ -18038,7 +18129,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR __pyx_t_2 = ((__pyx_v_tclass == NULL) != 0); #line 46 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_2)) { /* "root_numpy/src/tree.pyx":47 * tclass = GetClass(clsname, True, True) @@ -18184,35 +18275,20 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 47 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 47, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 47, __pyx_L1_error) #line 47 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_8); #line 47 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_6); - -#line 47 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); - -#line 47 "root_numpy/src/tree.pyx" - __pyx_t_6 = 0; - -#line 47 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 47 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_Raise(__pyx_t_8, 0, 0, 0); #line 47 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 47 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_6, 0, 0, 0); - -#line 47 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - #line 47 "root_numpy/src/tree.pyx" __PYX_ERR(2, 47, __pyx_L1_error) @@ -18304,7 +18380,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR __pyx_t_2 = ((__pyx_v_rfile == NULL) != 0); #line 50 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_2)) { /* "root_numpy/src/tree.pyx":51 * cdef TFile* rfile = Open(fname, 'read') @@ -18315,34 +18391,34 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR */ #line 51 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_cannot_read_0, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 51, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_cannot_read_0, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 51, __pyx_L1_error) #line 51 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_8); #line 51 "root_numpy/src/tree.pyx" - __pyx_t_8 = NULL; + __pyx_t_6 = NULL; #line 51 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { #line 51 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8); #line 51 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_8)) { + if (likely(__pyx_t_6)) { #line 51 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); #line 51 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(__pyx_t_6); #line 51 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 51 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_6, function); + __Pyx_DECREF_SET(__pyx_t_8, function); #line 51 "root_numpy/src/tree.pyx" } @@ -18351,10 +18427,10 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR } #line 51 "root_numpy/src/tree.pyx" - if (!__pyx_t_8) { + if (!__pyx_t_6) { #line 51 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_fname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_fname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) #line 51 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -18366,16 +18442,16 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR #if CYTHON_FAST_PYCALL #line 51 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_6)) { + if (PyFunction_Check(__pyx_t_8)) { #line 51 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_fname}; + PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_fname}; #line 51 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) #line 51 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; #line 51 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -18390,16 +18466,16 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR #if CYTHON_FAST_PYCCALL #line 51 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { #line 51 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_fname}; + PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_fname}; #line 51 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) #line 51 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; #line 51 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -18420,7 +18496,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR __Pyx_GOTREF(__pyx_t_10); #line 51 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL; #line 51 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_fname); @@ -18432,7 +18508,7 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_fname); #line 51 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) #line 51 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -18447,37 +18523,22 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR } #line 51 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - -#line 51 "root_numpy/src/tree.pyx" - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 51, __pyx_L1_error) - -#line 51 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); - -#line 51 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_3); - -#line 51 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); - -#line 51 "root_numpy/src/tree.pyx" - __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 51 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 51, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 51, __pyx_L1_error) #line 51 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_8); #line 51 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 51 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); + __Pyx_Raise(__pyx_t_8, 0, 0, 0); #line 51 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 51 "root_numpy/src/tree.pyx" __PYX_ERR(2, 51, __pyx_L1_error) @@ -18502,16 +18563,16 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR */ #line 52 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 52, __pyx_L1_error) + __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 52, __pyx_L1_error) #line 52 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_8); #line 52 "root_numpy/src/tree.pyx" - __pyx_v_objects = ((PyObject*)__pyx_t_3); + __pyx_v_objects = ((PyObject*)__pyx_t_8); #line 52 "root_numpy/src/tree.pyx" - __pyx_t_3 = 0; + __pyx_t_8 = 0; /* "root_numpy/src/tree.pyx":53 * raise IOError("cannot read {0}".format(fname)) @@ -18522,13 +18583,13 @@ __pyx_t_3 = PyObject_GetIter(__pyx_v_types); if (unlikely(!__pyx_t_3)) __PYX_ERR */ #line 53 "root_numpy/src/tree.pyx" - __pyx_t_3 = __pyx_f_13_librootnumpy_list_objects_recursive(__pyx_v_rfile, __pyx_v_objects, __pyx_v_classes, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 53, __pyx_L1_error) + __pyx_t_8 = __pyx_f_13_librootnumpy_list_objects_recursive(__pyx_v_rfile, __pyx_v_objects, __pyx_v_classes, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 53, __pyx_L1_error) #line 53 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_8); #line 53 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "root_numpy/src/tree.pyx":54 * objects = [] @@ -18741,7 +18802,7 @@ static PyObject *__pyx_pf_13_librootnumpy_4list_trees(CYTHON_UNUSED PyObject *__ PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_fname); #line 60 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error) #line 60 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -18951,7 +19012,7 @@ static PyObject *__pyx_pf_13_librootnumpy_6list_directories(CYTHON_UNUSED PyObje PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_fname); #line 64 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 64, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 64, __pyx_L1_error) #line 64 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -19115,10 +19176,16 @@ static PyObject *__pyx_pw_13_librootnumpy_9list_structures(PyObject *__pyx_self, case 2: #line 67 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 67 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 67 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 67 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 67 "root_numpy/src/tree.pyx" case 0: break; default: @@ -19138,11 +19205,14 @@ goto __pyx_L5_argtuple_error; case 0: #line 67 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--; else #line 67 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 67 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 67 "root_numpy/src/tree.pyx" case 1: @@ -19150,7 +19220,7 @@ goto __pyx_L5_argtuple_error; if (kw_args > 0) { #line 67 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_tree); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tree); #line 67 "root_numpy/src/tree.pyx" if (value) { values[1] = value; kw_args--; } @@ -19178,6 +19248,9 @@ goto __pyx_L5_argtuple_error; case 2: #line 67 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 67 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 67 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); @@ -19477,13 +19550,13 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec */ #line 71 "root_numpy/src/tree.pyx" - __pyx_t_6 = PyObject_Length(__pyx_v_tree); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(2, 71, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_tree); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 71, __pyx_L1_error) #line 71 "root_numpy/src/tree.pyx" __pyx_t_2 = ((__pyx_t_6 != 1) != 0); #line 71 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_2)) { /* "root_numpy/src/tree.pyx":72 * tree = list_trees(fname) @@ -19644,35 +19717,20 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 72 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 72, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 72, __pyx_L1_error) #line 72 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 72 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 72 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); - -#line 72 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; - -#line 72 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 72, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 72 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 72 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 72 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - -#line 72 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - #line 72 "root_numpy/src/tree.pyx" __PYX_ERR(2, 72, __pyx_L1_error) @@ -19696,16 +19754,16 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec */ #line 73 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tree, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 73, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_tree, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 73, __pyx_L1_error) #line 73 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_3); #line 73 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_v_tree, __pyx_t_1); + __Pyx_DECREF_SET(__pyx_v_tree, __pyx_t_3); #line 73 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":68 * @@ -19744,7 +19802,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __pyx_t_2 = ((__pyx_v_rfile == NULL) != 0); #line 75 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_2)) { /* "root_numpy/src/tree.pyx":76 * cdef TFile* rfile = Open(fname, 'read') @@ -19755,25 +19813,25 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec */ #line 76 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_cannot_read_0, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 76, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_cannot_read_0, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) #line 76 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_1); #line 76 "root_numpy/src/tree.pyx" __pyx_t_7 = NULL; #line 76 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { #line 76 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); #line 76 "root_numpy/src/tree.pyx" if (likely(__pyx_t_7)) { #line 76 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); #line 76 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_7); @@ -19782,7 +19840,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __Pyx_INCREF(function); #line 76 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_3, function); + __Pyx_DECREF_SET(__pyx_t_1, function); #line 76 "root_numpy/src/tree.pyx" } @@ -19794,10 +19852,10 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec if (!__pyx_t_7) { #line 76 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_fname); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_fname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 76, __pyx_L1_error) #line 76 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_3); #line 76 "root_numpy/src/tree.pyx" } else { @@ -19806,19 +19864,19 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec #if CYTHON_FAST_PYCALL #line 76 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_3)) { + if (PyFunction_Check(__pyx_t_1)) { #line 76 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_fname}; #line 76 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 76, __pyx_L1_error) #line 76 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 76 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_3); #line 76 "root_numpy/src/tree.pyx" } else @@ -19830,19 +19888,19 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec #if CYTHON_FAST_PYCCALL #line 76 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { #line 76 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_fname}; #line 76 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 76, __pyx_L1_error) #line 76 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 76 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_3); #line 76 "root_numpy/src/tree.pyx" } else @@ -19872,10 +19930,10 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_fname); #line 76 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 76, __pyx_L1_error) #line 76 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_3); #line 76 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -19887,25 +19945,10 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec } #line 76 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - -#line 76 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 76, __pyx_L1_error) - -#line 76 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); - -#line 76 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 76 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); - -#line 76 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 76 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error) #line 76 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -19959,7 +20002,7 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __pyx_t_2 = ((__pyx_v_rtree == NULL) != 0); #line 78 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (unlikely(__pyx_t_2)) { /* "root_numpy/src/tree.pyx":79 * cdef TTree* rtree = rfile.Get(tree) @@ -20111,35 +20154,20 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 79 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 79, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 79, __pyx_L1_error) #line 79 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 79 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 79 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); - -#line 79 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; - -#line 79 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 79, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 79 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 79 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 79 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - -#line 79 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - #line 79 "root_numpy/src/tree.pyx" __PYX_ERR(2, 79, __pyx_L1_error) @@ -20163,16 +20191,16 @@ static PyObject *__pyx_pf_13_librootnumpy_8list_structures(CYTHON_UNUSED PyObjec */ #line 80 "root_numpy/src/tree.pyx" - __pyx_t_1 = __pyx_f_13_librootnumpy_get_tree_structure(__pyx_v_rtree, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 80, __pyx_L1_error) + __pyx_t_3 = __pyx_f_13_librootnumpy_get_tree_structure(__pyx_v_rtree, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 80, __pyx_L1_error) #line 80 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_3); #line 80 "root_numpy/src/tree.pyx" - __pyx_v_structure = __pyx_t_1; + __pyx_v_structure = __pyx_t_3; #line 80 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":81 * raise IOError("tree '{0}' not found in {1}".format(tree, fname)) @@ -20339,10 +20367,16 @@ static PyObject *__pyx_pw_13_librootnumpy_11list_branches(PyObject *__pyx_self, case 2: #line 86 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 86 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 86 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 86 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 86 "root_numpy/src/tree.pyx" case 0: break; default: @@ -20362,11 +20396,14 @@ goto __pyx_L5_argtuple_error; case 0: #line 86 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--; else #line 86 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 86 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 86 "root_numpy/src/tree.pyx" case 1: @@ -20374,7 +20411,7 @@ goto __pyx_L5_argtuple_error; if (kw_args > 0) { #line 86 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_tree); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tree); #line 86 "root_numpy/src/tree.pyx" if (value) { values[1] = value; kw_args--; } @@ -20402,6 +20439,9 @@ goto __pyx_L5_argtuple_error; case 2: #line 86 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 86 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 86 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); @@ -20850,6 +20890,9 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b #line 90 "root_numpy/src/tree.pyx" int __pyx_t_10; +#line 90 "root_numpy/src/tree.pyx" + int __pyx_t_11; + #line 90 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("get_branch_structure", 0); @@ -20876,7 +20919,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __pyx_t_1 = ((__pyx_v_leaves == NULL) != 0); #line 95 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":96 * leaves = branch.GetListOfLeaves() @@ -21037,35 +21080,20 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 96 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 96, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 96, __pyx_L1_error) #line 96 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_3); #line 96 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 96 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 96 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; - -#line 96 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 96, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 96 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 96 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 96 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 96 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 96 "root_numpy/src/tree.pyx" __PYX_ERR(2, 96, __pyx_L1_error) @@ -21089,16 +21117,16 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b */ #line 97 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 97, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 97, __pyx_L1_error) #line 97 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 97 "root_numpy/src/tree.pyx" - __pyx_v_leaflist = ((PyObject*)__pyx_t_2); + __pyx_v_leaflist = ((PyObject*)__pyx_t_3); #line 97 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/src/tree.pyx":98 * raise RuntimeError("branch '{0}' has no leaves".format(branch.GetName())) @@ -21112,10 +21140,13 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __pyx_t_7 = __pyx_v_leaves->GetEntries(); #line 98 "root_numpy/src/tree.pyx" - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { + __pyx_t_8 = __pyx_t_7; + +#line 98 "root_numpy/src/tree.pyx" + for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { #line 98 "root_numpy/src/tree.pyx" - __pyx_v_ileaf = __pyx_t_8; + __pyx_v_ileaf = __pyx_t_9; /* "root_numpy/src/tree.pyx":99 * leaflist = [] @@ -21137,16 +21168,16 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b */ #line 100 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyStr_FromString(__pyx_v_leaf->GetTitle()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 100, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_leaf->GetTitle()); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 100, __pyx_L1_error) #line 100 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 100 "root_numpy/src/tree.pyx" - __pyx_t_3 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_leaf->GetTypeName()); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 100, __pyx_L1_error) + __pyx_t_2 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_leaf->GetTypeName()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 100, __pyx_L1_error) #line 100 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 100 "root_numpy/src/tree.pyx" __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 100, __pyx_L1_error) @@ -21155,25 +21186,25 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __Pyx_GOTREF(__pyx_t_6); #line 100 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_3); #line 100 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); #line 100 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_3); + __Pyx_GIVEREF(__pyx_t_2); #line 100 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2); #line 100 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 100 "root_numpy/src/tree.pyx" - __pyx_t_3 = 0; + __pyx_t_2 = 0; #line 100 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_leaflist, __pyx_t_6); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(2, 100, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_leaflist, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 100, __pyx_L1_error) #line 100 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -21190,13 +21221,13 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b */ #line 101 "root_numpy/src/tree.pyx" - __pyx_t_1 = (__pyx_v_leaflist != Py_None) && (PyList_GET_SIZE(__pyx_v_leaflist) != 0); + __pyx_t_1 = (PyList_GET_SIZE(__pyx_v_leaflist) != 0); #line 101 "root_numpy/src/tree.pyx" - __pyx_t_10 = ((!__pyx_t_1) != 0); + __pyx_t_11 = ((!__pyx_t_1) != 0); #line 101 "root_numpy/src/tree.pyx" - if (__pyx_t_10) { + if (unlikely(__pyx_t_11)) { /* "root_numpy/src/tree.pyx":103 * if not leaflist: @@ -21207,10 +21238,10 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b */ #line 103 "root_numpy/src/tree.pyx" - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_leaf_list_for_branch_0_is_empty, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_leaf_list_for_branch_0_is_empty, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 103, __pyx_L1_error) #line 103 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); /* "root_numpy/src/tree.pyx":104 * raise RuntimeError( @@ -21221,25 +21252,25 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b */ #line 104 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyStr_FromString(__pyx_v_branch->GetName()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 104, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_branch->GetName()); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 104, __pyx_L1_error) #line 104 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 104 "root_numpy/src/tree.pyx" __pyx_t_4 = NULL; #line 104 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 104 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); #line 104 "root_numpy/src/tree.pyx" if (likely(__pyx_t_4)) { #line 104 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 104 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_4); @@ -21248,7 +21279,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __Pyx_INCREF(function); #line 104 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_3, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 104 "root_numpy/src/tree.pyx" } @@ -21260,10 +21291,10 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b if (!__pyx_t_4) { #line 104 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) #line 104 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 104 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_6); @@ -21275,13 +21306,13 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b #if CYTHON_FAST_PYCALL #line 104 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_3)) { + if (PyFunction_Check(__pyx_t_2)) { #line 104 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; #line 104 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) #line 104 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -21290,7 +21321,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __Pyx_GOTREF(__pyx_t_6); #line 104 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 104 "root_numpy/src/tree.pyx" } else @@ -21302,13 +21333,13 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b #if CYTHON_FAST_PYCCALL #line 104 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 104 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2}; + PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3}; #line 104 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) #line 104 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -21317,7 +21348,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __Pyx_GOTREF(__pyx_t_6); #line 104 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 104 "root_numpy/src/tree.pyx" } else @@ -21338,16 +21369,16 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; #line 104 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_3); #line 104 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); #line 104 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 104 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 103, __pyx_L1_error) #line 104 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_6); @@ -21362,7 +21393,7 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b } #line 104 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":102 * leaflist.append((leaf.GetTitle(), resolve_type(leaf.GetTypeName()))) @@ -21373,34 +21404,19 @@ static PyObject *__pyx_f_13_librootnumpy_get_branch_structure(TBranch *__pyx_v_b */ #line 102 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 102, __pyx_L1_error) - -#line 102 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_3); - -#line 102 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_6); - -#line 102 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); - -#line 102 "root_numpy/src/tree.pyx" - __pyx_t_6 = 0; - -#line 102 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 102, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 102, __pyx_L1_error) #line 102 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_2); #line 102 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 102 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_6, 0, 0, 0); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 102 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 102 "root_numpy/src/tree.pyx" __PYX_ERR(2, 102, __pyx_L1_error) @@ -21560,6 +21576,9 @@ static PyObject *__pyx_f_13_librootnumpy_get_tree_structure(TTree *__pyx_v_tree, #line 108 "root_numpy/src/tree.pyx" int __pyx_t_10; +#line 108 "root_numpy/src/tree.pyx" + int __pyx_t_11; + #line 108 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("get_tree_structure", 0); @@ -21774,7 +21793,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_1)) __PYX_ if (exc_type) { #line 113 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 113 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 113, __pyx_L1_error) @@ -21995,10 +22014,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_1)) __PYX_ __pyx_t_9 = __pyx_v_all_branches->GetEntries(); #line 123 "root_numpy/src/tree.pyx" - for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { + __pyx_t_10 = __pyx_t_9; + +#line 123 "root_numpy/src/tree.pyx" + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { #line 123 "root_numpy/src/tree.pyx" - __pyx_v_ibranch = __pyx_t_10; + __pyx_v_ibranch = __pyx_t_11; /* "root_numpy/src/tree.pyx":124 * return ret @@ -22288,19 +22310,7 @@ static PyObject *__pyx_f_13_librootnumpy_humanize_bytes(long __pyx_v_value, stru PyObject* sequence = __pyx_t_4; #line 139 "root_numpy/src/tree.pyx" - #if !CYTHON_COMPILING_IN_PYPY - -#line 139 "root_numpy/src/tree.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 139 "root_numpy/src/tree.pyx" - #else - -#line 139 "root_numpy/src/tree.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 139 "root_numpy/src/tree.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 139 "root_numpy/src/tree.pyx" if (unlikely(size != 2)) { @@ -22463,7 +22473,7 @@ static PyObject *__pyx_f_13_librootnumpy_humanize_bytes(long __pyx_v_value, stru if (unlikely(!__pyx_v_factor)) { __Pyx_RaiseUnboundLocalError("factor"); __PYX_ERR(2, 142, __pyx_L1_error) } #line 142 "root_numpy/src/tree.pyx" - __pyx_t_7 = __Pyx_PyObject_AsDouble(__pyx_v_factor); if (unlikely(__pyx_t_7 == ((double)-1) && PyErr_Occurred())) __PYX_ERR(2, 142, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_AsDouble(__pyx_v_factor); if (unlikely(__pyx_t_7 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(2, 142, __pyx_L1_error) #line 142 "root_numpy/src/tree.pyx" if (unlikely(__pyx_t_7 == 0)) { @@ -23235,7 +23245,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec int __pyx_t_23; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_24 = NULL; + int __pyx_t_24; #line 165 "root_numpy/src/tree.pyx" PyObject *__pyx_t_25 = NULL; @@ -23244,73 +23254,85 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec PyObject *__pyx_t_26 = NULL; #line 165 "root_numpy/src/tree.pyx" - int __pyx_t_27; + PyObject *__pyx_t_27 = NULL; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_28 = NULL; + int __pyx_t_28; #line 165 "root_numpy/src/tree.pyx" - int __pyx_t_29; + PyObject *__pyx_t_29 = NULL; #line 165 "root_numpy/src/tree.pyx" - Selector *__pyx_t_30; + int __pyx_t_30; #line 165 "root_numpy/src/tree.pyx" - int __pyx_t_31; + Selector *__pyx_t_31; #line 165 "root_numpy/src/tree.pyx" - __pyx_t_13_librootnumpy_Converter *__pyx_t_32; + int __pyx_t_32; #line 165 "root_numpy/src/tree.pyx" - struct __pyx_opt_args_13_librootnumpy_get_converter __pyx_t_33; + int __pyx_t_33; #line 165 "root_numpy/src/tree.pyx" - int __pyx_t_34; + __pyx_t_13_librootnumpy_Converter *__pyx_t_34; #line 165 "root_numpy/src/tree.pyx" - __pyx_t_13_librootnumpy_unsigned_int __pyx_t_35; + struct __pyx_opt_args_13_librootnumpy_get_converter __pyx_t_35; #line 165 "root_numpy/src/tree.pyx" - std::string __pyx_t_36; + int __pyx_t_36; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_37 = NULL; + __pyx_t_13_librootnumpy_unsigned_int __pyx_t_37; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_38 = NULL; + std::string __pyx_t_38; #line 165 "root_numpy/src/tree.pyx" - char *__pyx_t_39; + PyObject *__pyx_t_39 = NULL; #line 165 "root_numpy/src/tree.pyx" - size_t __pyx_t_40; + PyObject *__pyx_t_40 = NULL; #line 165 "root_numpy/src/tree.pyx" - unsigned int __pyx_t_41; + char *__pyx_t_41; #line 165 "root_numpy/src/tree.pyx" - long __pyx_t_42; + std::vector ::size_type __pyx_t_42; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_43 = NULL; + std::vector ::size_type __pyx_t_43; #line 165 "root_numpy/src/tree.pyx" - PY_LONG_LONG __pyx_t_44; + unsigned int __pyx_t_44; #line 165 "root_numpy/src/tree.pyx" - unsigned int __pyx_t_45; + long __pyx_t_45; #line 165 "root_numpy/src/tree.pyx" - char const *__pyx_t_46; + PyObject *__pyx_t_46 = NULL; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_47 = NULL; + PY_LONG_LONG __pyx_t_47; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_48 = NULL; + unsigned int __pyx_t_48; #line 165 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_49 = NULL; + unsigned int __pyx_t_49; + +#line 165 "root_numpy/src/tree.pyx" + char const *__pyx_t_50; + +#line 165 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_51 = NULL; + +#line 165 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_52 = NULL; + +#line 165 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_53 = NULL; #line 165 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("tree2array", 0); @@ -23327,7 +23349,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec __pyx_t_1 = ((__pyx_v_tree->GetNbranches() == 0) != 0); #line 171 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":172 * @@ -23400,7 +23422,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec */ #line 176 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyObject_Length(__pyx_v_branches); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 176, __pyx_L1_error) + __pyx_t_4 = PyObject_Length(__pyx_v_branches); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 176, __pyx_L1_error) #line 176 "root_numpy/src/tree.pyx" __pyx_v_num_requested_branches = __pyx_t_4; @@ -23417,7 +23439,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec __pyx_t_3 = ((__pyx_v_num_requested_branches == 0) != 0); #line 177 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":178 * num_requested_branches = len(branches) @@ -23681,7 +23703,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec */ #line 237 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 237, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 237, __pyx_L1_error) #line 237 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -23903,7 +23925,7 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec __pyx_L13_bool_binop_done:; #line 252 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":253 * selection_formula = new TTreeFormula("selection", selection.c_str(), tree) @@ -24083,35 +24105,20 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec */ #line 254 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 254, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 254, __pyx_L9_error) #line 254 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_8); #line 254 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 254 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); - -#line 254 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; - -#line 254 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 254, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 254 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_8, 0, 0, 0); #line 254 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 254 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 254 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 254 "root_numpy/src/tree.pyx" __PYX_ERR(2, 254, __pyx_L9_error) @@ -24171,36 +24178,36 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec */ #line 261 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 261, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 261, __pyx_L9_error) #line 261 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 261 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_v_branch_dict, __pyx_t_2); + __Pyx_DECREF_SET(__pyx_v_branch_dict, __pyx_t_8); #line 261 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_8 = 0; /* "root_numpy/src/tree.pyx":262 * if num_requested_branches > 0: * branch_dict = dict() * for idx, branch_spec in enumerate(branches): # <<<<<<<<<<<<<< * if isinstance(branch_spec, tuple): - * # branch_spec should be (branch_name, default_value) or + * # branch_spec should be (branch_name, fill_value) or */ #line 262 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_int_0); #line 262 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_int_0; + __pyx_t_8 = __pyx_int_0; #line 262 "root_numpy/src/tree.pyx" if (likely(PyList_CheckExact(__pyx_v_branches)) || PyTuple_CheckExact(__pyx_v_branches)) { #line 262 "root_numpy/src/tree.pyx" - __pyx_t_8 = __pyx_v_branches; __Pyx_INCREF(__pyx_t_8); __pyx_t_4 = 0; + __pyx_t_2 = __pyx_v_branches; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; #line 262 "root_numpy/src/tree.pyx" __pyx_t_12 = NULL; @@ -24209,13 +24216,13 @@ static PyObject *__pyx_f_13_librootnumpy_tree2array(TTree *__pyx_v_tree, PyObjec } else { __pyx_t_4 = -1; #line 262 "root_numpy/src/tree.pyx" -__pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 262, __pyx_L9_error) +__pyx_t_2 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 262 "root_numpy/src/tree.pyx" - __pyx_t_12 = Py_TYPE(__pyx_t_8)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 262, __pyx_L9_error) + __pyx_t_12 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" } @@ -24227,22 +24234,22 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ if (likely(!__pyx_t_12)) { #line 262 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_8))) { + if (likely(PyList_CheckExact(__pyx_t_2))) { #line 262 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_8)) break; + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 262 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 262 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_t_11); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 262, __pyx_L9_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_11); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" #else #line 262 "root_numpy/src/tree.pyx" - __pyx_t_11 = PySequence_ITEM(__pyx_t_8, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 262, __pyx_L9_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); @@ -24254,19 +24261,19 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ } else { #line 262 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_8)) break; + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 262 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 262 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_t_11); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 262, __pyx_L9_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_11); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" #else #line 262 "root_numpy/src/tree.pyx" - __pyx_t_11 = PySequence_ITEM(__pyx_t_8, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 262, __pyx_L9_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); @@ -24281,7 +24288,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ { #line 262 "root_numpy/src/tree.pyx" - __pyx_t_11 = __pyx_t_12(__pyx_t_8); + __pyx_t_11 = __pyx_t_12(__pyx_t_2); #line 262 "root_numpy/src/tree.pyx" if (unlikely(!__pyx_t_11)) { @@ -24293,7 +24300,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ if (exc_type) { #line 262 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 262 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 262, __pyx_L9_error) @@ -24320,22 +24327,22 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ __pyx_t_11 = 0; #line 262 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(__pyx_t_8); #line 262 "root_numpy/src/tree.pyx" - __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_2); + __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_8); #line 262 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyInt_AddObjC(__pyx_t_2, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 262, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyInt_AddObjC(__pyx_t_8, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 262, __pyx_L9_error) #line 262 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); #line 262 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_8); #line 262 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_t_11; + __pyx_t_8 = __pyx_t_11; #line 262 "root_numpy/src/tree.pyx" __pyx_t_11 = 0; @@ -24344,8 +24351,8 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ * branch_dict = dict() * for idx, branch_spec in enumerate(branches): * if isinstance(branch_spec, tuple): # <<<<<<<<<<<<<< - * # branch_spec should be (branch_name, default_value) or - * # (branch_name, cropped_length, fill_value) + * # branch_spec should be (branch_name, fill_value) or + * # (branch_name, fill_value, length) */ #line 263 "root_numpy/src/tree.pyx" @@ -24358,15 +24365,15 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ if (__pyx_t_1) { /* "root_numpy/src/tree.pyx":266 - * # branch_spec should be (branch_name, default_value) or - * # (branch_name, cropped_length, fill_value) + * # branch_spec should be (branch_name, fill_value) or + * # (branch_name, fill_value, length) * if len(branch_spec) == 2: # <<<<<<<<<<<<<< * # max_length is implicitly equal to one * branch_dict[branch_spec[0]] = (idx, 1) */ #line 266 "root_numpy/src/tree.pyx" - __pyx_t_13 = PyObject_Length(__pyx_v_branch_spec); if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(2, 266, __pyx_L9_error) + __pyx_t_13 = PyObject_Length(__pyx_v_branch_spec); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(2, 266, __pyx_L9_error) #line 266 "root_numpy/src/tree.pyx" __pyx_t_1 = ((__pyx_t_13 == 2) != 0); @@ -24422,8 +24429,8 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; /* "root_numpy/src/tree.pyx":266 - * # branch_spec should be (branch_name, default_value) or - * # (branch_name, cropped_length, fill_value) + * # branch_spec should be (branch_name, fill_value) or + * # (branch_name, fill_value, length) * if len(branch_spec) == 2: # <<<<<<<<<<<<<< * # max_length is implicitly equal to one * branch_dict[branch_spec[0]] = (idx, 1) @@ -24444,13 +24451,13 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 269 "root_numpy/src/tree.pyx" - __pyx_t_13 = PyObject_Length(__pyx_v_branch_spec); if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(2, 269, __pyx_L9_error) + __pyx_t_13 = PyObject_Length(__pyx_v_branch_spec); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(2, 269, __pyx_L9_error) #line 269 "root_numpy/src/tree.pyx" __pyx_t_1 = ((__pyx_t_13 == 3) != 0); #line 269 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (likely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":270 * branch_dict[branch_spec[0]] = (idx, 1) @@ -24479,7 +24486,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 270 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":272 * if branch_spec[2] < 1: @@ -24633,35 +24640,20 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 271 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 271, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 271, __pyx_L9_error) #line 271 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); #line 271 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); - -#line 271 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); - -#line 271 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; - -#line 271 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_11, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 271, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 271 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_Raise(__pyx_t_11, 0, 0, 0); #line 271 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; -#line 271 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_9, 0, 0, 0); - -#line 271 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - #line 271 "root_numpy/src/tree.pyx" __PYX_ERR(2, 271, __pyx_L9_error) @@ -24685,16 +24677,16 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 273 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_branch_spec, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 273, __pyx_L9_error) + __pyx_t_11 = __Pyx_GetItemInt(__pyx_v_branch_spec, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 273, __pyx_L9_error) #line 273 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_11); #line 273 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 273, __pyx_L9_error) + __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 273, __pyx_L9_error) #line 273 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_9); #line 273 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_idx); @@ -24703,31 +24695,31 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ __Pyx_GIVEREF(__pyx_v_idx); #line 273 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_idx); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_idx); #line 273 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_11); #line 273 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_11); #line 273 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_11 = 0; #line 273 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_branch_spec, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 273, __pyx_L9_error) + __pyx_t_11 = __Pyx_GetItemInt(__pyx_v_branch_spec, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 273, __pyx_L9_error) #line 273 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_11); #line 273 "root_numpy/src/tree.pyx" - if (unlikely(PyObject_SetItem(__pyx_v_branch_dict, __pyx_t_9, __pyx_t_11) < 0)) __PYX_ERR(2, 273, __pyx_L9_error) + if (unlikely(PyObject_SetItem(__pyx_v_branch_dict, __pyx_t_11, __pyx_t_9) < 0)) __PYX_ERR(2, 273, __pyx_L9_error) #line 273 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 273 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":269 * # max_length is implicitly equal to one @@ -24763,25 +24755,25 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 280 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_invalid_branch_tuple_0_A_branch, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 280, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_invalid_branch_tuple_0_A_branch, __pyx_n_s_format); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 280, __pyx_L9_error) #line 280 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_11); #line 280 "root_numpy/src/tree.pyx" __pyx_t_14 = NULL; #line 280 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { #line 280 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_9); + __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_11); #line 280 "root_numpy/src/tree.pyx" if (likely(__pyx_t_14)) { #line 280 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); #line 280 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_14); @@ -24790,7 +24782,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ __Pyx_INCREF(function); #line 280 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_9, function); + __Pyx_DECREF_SET(__pyx_t_11, function); #line 280 "root_numpy/src/tree.pyx" } @@ -24802,10 +24794,10 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ if (!__pyx_t_14) { #line 280 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_branch_spec); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 280, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_v_branch_spec); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 280, __pyx_L9_error) #line 280 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_9); #line 280 "root_numpy/src/tree.pyx" } else { @@ -24814,19 +24806,19 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ #if CYTHON_FAST_PYCALL #line 280 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_9)) { + if (PyFunction_Check(__pyx_t_11)) { #line 280 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_branch_spec}; #line 280 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 280, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 280, __pyx_L9_error) #line 280 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 280 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_9); #line 280 "root_numpy/src/tree.pyx" } else @@ -24838,19 +24830,19 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ #if CYTHON_FAST_PYCCALL #line 280 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) { #line 280 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_branch_spec}; #line 280 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 280, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 280, __pyx_L9_error) #line 280 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 280 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_9); #line 280 "root_numpy/src/tree.pyx" } else @@ -24880,10 +24872,10 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_branch_spec); #line 280 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 280, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 280, __pyx_L9_error) #line 280 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_9); #line 280 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -24895,7 +24887,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ } #line 280 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; /* "root_numpy/src/tree.pyx":275 * branch_dict[branch_spec[0]] = (idx, branch_spec[2]) @@ -24906,22 +24898,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 275 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 275, __pyx_L9_error) - -#line 275 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 275 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); - -#line 275 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_11); - -#line 275 "root_numpy/src/tree.pyx" - __pyx_t_11 = 0; - -#line 275 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_9, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 275, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 275, __pyx_L9_error) #line 275 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); @@ -24977,8 +24954,8 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ * branch_dict = dict() * for idx, branch_spec in enumerate(branches): * if isinstance(branch_spec, tuple): # <<<<<<<<<<<<<< - * # branch_spec should be (branch_name, default_value) or - * # (branch_name, cropped_length, fill_value) + * # branch_spec should be (branch_name, fill_value) or + * # (branch_name, fill_value, length) */ #line 263 "root_numpy/src/tree.pyx" @@ -25039,17 +25016,17 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ * branch_dict = dict() * for idx, branch_spec in enumerate(branches): # <<<<<<<<<<<<<< * if isinstance(branch_spec, tuple): - * # branch_spec should be (branch_name, default_value) or + * # branch_spec should be (branch_name, fill_value) or */ #line 262 "root_numpy/src/tree.pyx" } #line 262 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 262 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "root_numpy/src/tree.pyx":284 * else: @@ -25060,13 +25037,13 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 284 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyObject_Length(__pyx_v_branch_dict); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 284, __pyx_L9_error) + __pyx_t_4 = PyObject_Length(__pyx_v_branch_dict); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 284, __pyx_L9_error) #line 284 "root_numpy/src/tree.pyx" __pyx_t_1 = ((__pyx_t_4 != __pyx_v_num_requested_branches) != 0); #line 284 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":285 * branch_dict[branch_spec] = (idx, 0) @@ -25077,16 +25054,16 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 285 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 285, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 285, __pyx_L9_error) #line 285 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 285 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_Raise(__pyx_t_8, 0, 0, 0); #line 285 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 285 "root_numpy/src/tree.pyx" __PYX_ERR(2, 285, __pyx_L9_error) @@ -25136,25 +25113,25 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ */ #line 290 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_object_selection, __pyx_n_s_items); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_object_selection, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 290 "root_numpy/src/tree.pyx" __pyx_t_11 = NULL; #line 290 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 290 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2); #line 290 "root_numpy/src/tree.pyx" if (likely(__pyx_t_11)) { #line 290 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 290 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_11); @@ -25163,7 +25140,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ __Pyx_INCREF(function); #line 290 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 290 "root_numpy/src/tree.pyx" } @@ -25175,7 +25152,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ if (__pyx_t_11) { #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -25184,22 +25161,22 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ } else { #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" } #line 290 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 290 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 290 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { + if (likely(PyList_CheckExact(__pyx_t_8)) || PyTuple_CheckExact(__pyx_t_8)) { #line 290 "root_numpy/src/tree.pyx" - __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8); __pyx_t_4 = 0; + __pyx_t_2 = __pyx_t_8; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; #line 290 "root_numpy/src/tree.pyx" __pyx_t_12 = NULL; @@ -25208,19 +25185,19 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_branches); if (unlikely(!__pyx_t_8)) __PYX_ } else { __pyx_t_4 = -1; #line 290 "root_numpy/src/tree.pyx" -__pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 290, __pyx_L9_error) +__pyx_t_2 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 290 "root_numpy/src/tree.pyx" - __pyx_t_12 = Py_TYPE(__pyx_t_8)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_12 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" } #line 290 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 290 "root_numpy/src/tree.pyx" for (;;) { @@ -25229,25 +25206,25 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, if (likely(!__pyx_t_12)) { #line 290 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_8))) { + if (likely(PyList_CheckExact(__pyx_t_2))) { #line 290 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_8)) break; + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; #line 290 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" #else #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = PySequence_ITEM(__pyx_t_8, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 290 "root_numpy/src/tree.pyx" #endif @@ -25256,22 +25233,22 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, } else { #line 290 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_8)) break; + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #line 290 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" #else #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = PySequence_ITEM(__pyx_t_8, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 290 "root_numpy/src/tree.pyx" #endif @@ -25283,10 +25260,10 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, { #line 290 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_t_12(__pyx_t_8); + __pyx_t_8 = __pyx_t_12(__pyx_t_2); #line 290 "root_numpy/src/tree.pyx" - if (unlikely(!__pyx_t_2)) { + if (unlikely(!__pyx_t_8)) { #line 290 "root_numpy/src/tree.pyx" PyObject* exc_type = PyErr_Occurred(); @@ -25295,7 +25272,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, if (exc_type) { #line 290 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 290 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 290, __pyx_L9_error) @@ -25310,31 +25287,19 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, } #line 290 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 290 "root_numpy/src/tree.pyx" } #line 290 "root_numpy/src/tree.pyx" - if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) { + if ((likely(PyTuple_CheckExact(__pyx_t_8))) || (PyList_CheckExact(__pyx_t_8))) { #line 290 "root_numpy/src/tree.pyx" - PyObject* sequence = __pyx_t_2; + PyObject* sequence = __pyx_t_8; #line 290 "root_numpy/src/tree.pyx" - #if !CYTHON_COMPILING_IN_PYPY - -#line 290 "root_numpy/src/tree.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 290 "root_numpy/src/tree.pyx" - #else - -#line 290 "root_numpy/src/tree.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 290 "root_numpy/src/tree.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 290 "root_numpy/src/tree.pyx" if (unlikely(size != 2)) { @@ -25400,7 +25365,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, #endif #line 290 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 290 "root_numpy/src/tree.pyx" } else { @@ -25409,13 +25374,13 @@ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, Py_ssize_t index = -1; #line 290 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 290, __pyx_L9_error) + __pyx_t_10 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 290, __pyx_L9_error) #line 290 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_10); #line 290 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 290 "root_numpy/src/tree.pyx" __pyx_t_15 = Py_TYPE(__pyx_t_10)->tp_iternext; @@ -25533,10 +25498,10 @@ goto __pyx_L25_unpacking_failed; */ #line 292 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 292, __pyx_L9_error) + __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 292, __pyx_L9_error) #line 292 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 292 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_subselection_branches); @@ -25545,13 +25510,13 @@ goto __pyx_L25_unpacking_failed; __Pyx_GIVEREF(__pyx_v_subselection_branches); #line 292 "root_numpy/src/tree.pyx" - PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_subselection_branches); + PyList_SET_ITEM(__pyx_t_8, 0, __pyx_v_subselection_branches); #line 292 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_v_subselection_branches, __pyx_t_2); + __Pyx_DECREF_SET(__pyx_v_subselection_branches, __pyx_t_8); #line 292 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_8 = 0; /* "root_numpy/src/tree.pyx":291 * if perform_object_selection: @@ -25617,7 +25582,7 @@ goto __pyx_L25_unpacking_failed; __pyx_L31_bool_binop_done:; #line 294 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":295 * formula = new TTreeFormula(subselection, subselection, tree) @@ -25678,10 +25643,10 @@ goto __pyx_L25_unpacking_failed; if (!__pyx_t_11) { #line 298 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_subselection); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 298, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_subselection); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 298, __pyx_L9_error) #line 298 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 298 "root_numpy/src/tree.pyx" } else { @@ -25696,13 +25661,13 @@ goto __pyx_L25_unpacking_failed; PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection}; #line 298 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 298, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 298, __pyx_L9_error) #line 298 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 298 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 298 "root_numpy/src/tree.pyx" } else @@ -25720,13 +25685,13 @@ goto __pyx_L25_unpacking_failed; PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection}; #line 298 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 298, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 298, __pyx_L9_error) #line 298 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 298 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 298 "root_numpy/src/tree.pyx" } else @@ -25756,10 +25721,10 @@ goto __pyx_L25_unpacking_failed; PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_subselection); #line 298 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 298, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 298, __pyx_L9_error) #line 298 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_8); #line 298 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -25782,35 +25747,20 @@ goto __pyx_L25_unpacking_failed; */ #line 296 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 296, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 296, __pyx_L9_error) #line 296 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_9); #line 296 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 296 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); - -#line 296 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; - -#line 296 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 296, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 296 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_9, 0, 0, 0); #line 296 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; -#line 296 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 296 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 296 "root_numpy/src/tree.pyx" __PYX_ERR(2, 296, __pyx_L9_error) @@ -25859,7 +25809,7 @@ goto __pyx_L25_unpacking_failed; if (likely(PyList_CheckExact(__pyx_v_subselection_branches)) || PyTuple_CheckExact(__pyx_v_subselection_branches)) { #line 301 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_v_subselection_branches; __Pyx_INCREF(__pyx_t_2); __pyx_t_13 = 0; + __pyx_t_9 = __pyx_v_subselection_branches; __Pyx_INCREF(__pyx_t_9); __pyx_t_13 = 0; #line 301 "root_numpy/src/tree.pyx" __pyx_t_19 = NULL; @@ -25868,13 +25818,13 @@ goto __pyx_L25_unpacking_failed; } else { __pyx_t_13 = -1; #line 301 "root_numpy/src/tree.pyx" -__pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 301, __pyx_L9_error) +__pyx_t_9 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 301, __pyx_L9_error) #line 301 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 301 "root_numpy/src/tree.pyx" - __pyx_t_19 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 301, __pyx_L9_error) + __pyx_t_19 = Py_TYPE(__pyx_t_9)->tp_iternext; if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 301, __pyx_L9_error) #line 301 "root_numpy/src/tree.pyx" } @@ -25886,25 +25836,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (likely(!__pyx_t_19)) { #line 301 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_2))) { + if (likely(PyList_CheckExact(__pyx_t_9))) { #line 301 "root_numpy/src/tree.pyx" - if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_9)) break; #line 301 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 301 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_13); __Pyx_INCREF(__pyx_t_9); __pyx_t_13++; if (unlikely(0 < 0)) __PYX_ERR(2, 301, __pyx_L9_error) + __pyx_t_8 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_13); __Pyx_INCREF(__pyx_t_8); __pyx_t_13++; if (unlikely(0 < 0)) __PYX_ERR(2, 301, __pyx_L9_error) #line 301 "root_numpy/src/tree.pyx" #else #line 301 "root_numpy/src/tree.pyx" - __pyx_t_9 = PySequence_ITEM(__pyx_t_2, __pyx_t_13); __pyx_t_13++; if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 301, __pyx_L9_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_9, __pyx_t_13); __pyx_t_13++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 301, __pyx_L9_error) #line 301 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 301 "root_numpy/src/tree.pyx" #endif @@ -25913,22 +25863,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } else { #line 301 "root_numpy/src/tree.pyx" - if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_9)) break; #line 301 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 301 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_13); __Pyx_INCREF(__pyx_t_9); __pyx_t_13++; if (unlikely(0 < 0)) __PYX_ERR(2, 301, __pyx_L9_error) + __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_13); __Pyx_INCREF(__pyx_t_8); __pyx_t_13++; if (unlikely(0 < 0)) __PYX_ERR(2, 301, __pyx_L9_error) #line 301 "root_numpy/src/tree.pyx" #else #line 301 "root_numpy/src/tree.pyx" - __pyx_t_9 = PySequence_ITEM(__pyx_t_2, __pyx_t_13); __pyx_t_13++; if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 301, __pyx_L9_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_9, __pyx_t_13); __pyx_t_13++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 301, __pyx_L9_error) #line 301 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 301 "root_numpy/src/tree.pyx" #endif @@ -25940,10 +25890,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 301 "root_numpy/src/tree.pyx" - __pyx_t_9 = __pyx_t_19(__pyx_t_2); + __pyx_t_8 = __pyx_t_19(__pyx_t_9); #line 301 "root_numpy/src/tree.pyx" - if (unlikely(!__pyx_t_9)) { + if (unlikely(!__pyx_t_8)) { #line 301 "root_numpy/src/tree.pyx" PyObject* exc_type = PyErr_Occurred(); @@ -25952,7 +25902,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (exc_type) { #line 301 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 301 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 301, __pyx_L9_error) @@ -25967,16 +25917,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 301 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 301 "root_numpy/src/tree.pyx" } #line 301 "root_numpy/src/tree.pyx" - __Pyx_XDECREF_SET(__pyx_v_subselection_branch, __pyx_t_9); + __Pyx_XDECREF_SET(__pyx_v_subselection_branch, __pyx_t_8); #line 301 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_8 = 0; /* "root_numpy/src/tree.pyx":302 * chain.AddSelector(selector) @@ -25993,7 +25943,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_3 = ((__pyx_v_selector_map.find(__pyx_t_20) != __pyx_v_selector_map.end()) != 0); #line 302 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":306 * raise ValueError( @@ -26043,10 +25993,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (!__pyx_t_11) { #line 306 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_v_subselection_branch); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 306, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_v_subselection_branch); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 306, __pyx_L9_error) #line 306 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 306 "root_numpy/src/tree.pyx" } else { @@ -26061,13 +26011,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection_branch}; #line 306 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 306, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 306, __pyx_L9_error) #line 306 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 306 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 306 "root_numpy/src/tree.pyx" } else @@ -26085,13 +26035,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_subselection_branch}; #line 306 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 306, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 306, __pyx_L9_error) #line 306 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 306 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 306 "root_numpy/src/tree.pyx" } else @@ -26121,10 +26071,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_v_subselection_branch); #line 306 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 306, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 306, __pyx_L9_error) #line 306 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 306 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -26147,35 +26097,20 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 304 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 304, __pyx_L9_error) + __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 304, __pyx_L9_error) #line 304 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_10); #line 304 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); - -#line 304 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); - -#line 304 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; - -#line 304 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 304, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 304 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_Raise(__pyx_t_10, 0, 0, 0); #line 304 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; -#line 304 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_9, 0, 0, 0); - -#line 304 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - #line 304 "root_numpy/src/tree.pyx" __PYX_ERR(2, 304, __pyx_L9_error) @@ -26249,7 +26184,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 301 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":290 * # Create reverse lookup dictionary mapping field names to Selectors @@ -26263,7 +26198,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 290 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":289 * # Set up object selection if present @@ -26285,16 +26220,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 310 "root_numpy/src/tree.pyx" - __pyx_t_8 = PySet_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 310, __pyx_L9_error) + __pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 310, __pyx_L9_error) #line 310 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 310 "root_numpy/src/tree.pyx" - __pyx_v_seen_branches = ((PyObject*)__pyx_t_8); + __pyx_v_seen_branches = ((PyObject*)__pyx_t_2); #line 310 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":313 * @@ -26322,10 +26257,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_22 = __pyx_v_num_branches; #line 314 "root_numpy/src/tree.pyx" - for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_22; __pyx_t_23+=1) { + __pyx_t_23 = __pyx_t_22; #line 314 "root_numpy/src/tree.pyx" - __pyx_v_ibranch = __pyx_t_23; + for (__pyx_t_24 = 0; __pyx_t_24 < __pyx_t_23; __pyx_t_24+=1) { + +#line 314 "root_numpy/src/tree.pyx" + __pyx_v_ibranch = __pyx_t_24; /* "root_numpy/src/tree.pyx":315 * branch_spec = None @@ -26372,7 +26310,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 318 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyObject_Length(__pyx_v_branch_dict); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 318, __pyx_L9_error) + __pyx_t_4 = PyObject_Length(__pyx_v_branch_dict); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 318, __pyx_L9_error) #line 318 "root_numpy/src/tree.pyx" __pyx_t_3 = ((__pyx_t_4 == 0) != 0); @@ -26420,10 +26358,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_PyThreadState_assign #line 321 "root_numpy/src/tree.pyx" - __Pyx_ExceptionSave(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26); - -#line 321 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_24); + __Pyx_ExceptionSave(&__pyx_t_25, &__pyx_t_26, &__pyx_t_27); #line 321 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_25); @@ -26431,6 +26366,9 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #line 321 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_26); +#line 321 "root_numpy/src/tree.pyx" + __Pyx_XGOTREF(__pyx_t_27); + #line 321 "root_numpy/src/tree.pyx" /*try:*/ { @@ -26443,40 +26381,40 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 322 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_branch_dict, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 322, __pyx_L40_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_branch_dict, __pyx_n_s_pop); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 322, __pyx_L40_error) #line 322 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 322 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 322, __pyx_L40_error) + __pyx_t_10 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 322, __pyx_L40_error) #line 322 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 322 "root_numpy/src/tree.pyx" - __pyx_t_10 = NULL; + __pyx_t_8 = NULL; #line 322 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 322 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9); #line 322 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_10)) { + if (likely(__pyx_t_8)) { #line 322 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 322 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_10); + __Pyx_INCREF(__pyx_t_8); #line 322 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 322 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 322 "root_numpy/src/tree.pyx" } @@ -26485,16 +26423,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 322 "root_numpy/src/tree.pyx" - if (!__pyx_t_10) { + if (!__pyx_t_8) { #line 322 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 322, __pyx_L40_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 322, __pyx_L40_error) #line 322 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 322 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 322 "root_numpy/src/tree.pyx" } else { @@ -26503,22 +26441,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCALL #line 322 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_9)) { #line 322 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_10}; #line 322 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 322, __pyx_L40_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 322, __pyx_L40_error) #line 322 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 322 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 322 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 322 "root_numpy/src/tree.pyx" } else @@ -26530,22 +26468,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCCALL #line 322 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 322 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_10}; #line 322 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 322, __pyx_L40_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 322, __pyx_L40_error) #line 322 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 322 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 322 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 322 "root_numpy/src/tree.pyx" } else @@ -26563,22 +26501,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_14); #line 322 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_10); __pyx_t_10 = NULL; + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8); __pyx_t_8 = NULL; #line 322 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_10); #line 322 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_10); #line 322 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 322 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 322, __pyx_L40_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 322, __pyx_L40_error) #line 322 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 322 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -26590,13 +26528,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 322 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 322 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_v_branch_spec, __pyx_t_8); + __Pyx_DECREF_SET(__pyx_v_branch_spec, __pyx_t_2); #line 322 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":321 * # No more branches to consider @@ -26609,9 +26547,6 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #line 321 "root_numpy/src/tree.pyx" } -#line 321 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_24); __pyx_t_24 = 0; - #line 321 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; @@ -26619,31 +26554,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_XDECREF(__pyx_t_26); __pyx_t_26 = 0; #line 321 "root_numpy/src/tree.pyx" - goto __pyx_L47_try_end; + __Pyx_XDECREF(__pyx_t_27); __pyx_t_27 = 0; #line 321 "root_numpy/src/tree.pyx" - __pyx_L40_error:; + goto __pyx_L47_try_end; #line 321 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign + __pyx_L40_error:; #line 321 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 321 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 321 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 321 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 321 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 321 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":323 * try: @@ -26654,22 +26589,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 323 "root_numpy/src/tree.pyx" - __pyx_t_27 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError); + __pyx_t_28 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError); #line 323 "root_numpy/src/tree.pyx" - if (__pyx_t_27) { + if (__pyx_t_28) { #line 323 "root_numpy/src/tree.pyx" __Pyx_AddTraceback("_librootnumpy.tree2array", __pyx_clineno, __pyx_lineno, __pyx_filename); #line 323 "root_numpy/src/tree.pyx" - if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_14) < 0) __PYX_ERR(2, 323, __pyx_L42_except_error) + if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_9, &__pyx_t_14) < 0) __PYX_ERR(2, 323, __pyx_L42_except_error) #line 323 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 323 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 323 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); @@ -26689,10 +26624,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_L49_except_continue:; #line 325 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 325 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 325 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -26717,12 +26652,6 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx * except KeyError: */ -#line 321 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign - -#line 321 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_24); - #line 321 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_25); @@ -26730,19 +26659,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_XGIVEREF(__pyx_t_26); #line 321 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26); + __Pyx_XGIVEREF(__pyx_t_27); #line 321 "root_numpy/src/tree.pyx" - goto __pyx_L9_error; + __Pyx_ExceptionReset(__pyx_t_25, __pyx_t_26, __pyx_t_27); #line 321 "root_numpy/src/tree.pyx" - __pyx_L46_try_continue:; - -#line 321 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign + goto __pyx_L9_error; #line 321 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_24); + __pyx_L46_try_continue:; #line 321 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_25); @@ -26751,7 +26677,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_XGIVEREF(__pyx_t_26); #line 321 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26); + __Pyx_XGIVEREF(__pyx_t_27); + +#line 321 "root_numpy/src/tree.pyx" + __Pyx_ExceptionReset(__pyx_t_25, __pyx_t_26, __pyx_t_27); #line 321 "root_numpy/src/tree.pyx" goto __pyx_L36_continue; @@ -26777,13 +26706,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_14); #line 326 "root_numpy/src/tree.pyx" - __pyx_t_27 = __Pyx_PyInt_As_int(__pyx_t_14); if (unlikely((__pyx_t_27 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 326, __pyx_L9_error) + __pyx_t_28 = __Pyx_PyInt_As_int(__pyx_t_14); if (unlikely((__pyx_t_28 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 326, __pyx_L9_error) #line 326 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 326 "root_numpy/src/tree.pyx" - __pyx_v_branch_idx = __pyx_t_27; + __pyx_v_branch_idx = __pyx_t_28; /* "root_numpy/src/tree.pyx":317 * tbranch = branch_array.At(ibranch) @@ -26814,7 +26743,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_14); #line 327 "root_numpy/src/tree.pyx" - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_14, __pyx_v_seen_branches, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 327, __pyx_L9_error) + __pyx_t_3 = (__Pyx_PySet_ContainsTF(__pyx_t_14, __pyx_v_seen_branches, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 327, __pyx_L9_error) #line 327 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -26834,46 +26763,46 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 328 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 328 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_warn); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_warn); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 328 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_ignoring_duplicate_branch_named, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_ignoring_duplicate_branch_named, __pyx_n_s_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 328 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_8); #line 328 "root_numpy/src/tree.pyx" __pyx_t_11 = NULL; #line 328 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 328 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_9); + __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_10); #line 328 "root_numpy/src/tree.pyx" if (likely(__pyx_t_11)) { #line 328 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); #line 328 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_11); @@ -26882,7 +26811,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_INCREF(function); #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_9, function); + __Pyx_DECREF_SET(__pyx_t_10, function); #line 328 "root_numpy/src/tree.pyx" } @@ -26894,13 +26823,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (!__pyx_t_11) { #line 328 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 328 "root_numpy/src/tree.pyx" } else { @@ -26909,22 +26838,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCALL #line 328 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_9)) { + if (PyFunction_Check(__pyx_t_10)) { #line 328 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_10}; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_8}; #line 328 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 328 "root_numpy/src/tree.pyx" } else @@ -26936,22 +26865,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCCALL #line 328 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { #line 328 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_10}; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_8}; #line 328 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 328 "root_numpy/src/tree.pyx" } else @@ -26963,31 +26892,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 328 "root_numpy/src/tree.pyx" - __pyx_t_28 = PyTuple_New(1+1); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_29 = PyTuple_New(1+1); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 328 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_28, 0, __pyx_t_11); __pyx_t_11 = NULL; + __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_29, 0, __pyx_t_11); __pyx_t_11 = NULL; #line 328 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); #line 328 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_28, 0+1, __pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_29, 0+1, __pyx_t_8); #line 328 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + __pyx_t_8 = 0; #line 328 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_29, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 328, __pyx_L9_error) #line 328 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 328 "root_numpy/src/tree.pyx" } @@ -26996,7 +26925,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 328 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "root_numpy/src/tree.pyx":329 * elif branch_name in seen_branches: @@ -27007,34 +26936,34 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 329 "root_numpy/src/tree.pyx" - __pyx_t_9 = NULL; + __pyx_t_10 = NULL; #line 329 "root_numpy/src/tree.pyx" - __pyx_t_27 = 0; + __pyx_t_28 = 0; #line 329 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { #line 329 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); #line 329 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_9)) { + if (likely(__pyx_t_10)) { #line 329 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 329 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_10); #line 329 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 329 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 329 "root_numpy/src/tree.pyx" - __pyx_t_27 = 1; + __pyx_t_28 = 1; #line 329 "root_numpy/src/tree.pyx" } @@ -27046,22 +26975,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCALL #line 329 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_8)) { + if (PyFunction_Check(__pyx_t_2)) { #line 329 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_2, __pyx_builtin_RuntimeWarning}; + PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_builtin_RuntimeWarning}; #line 329 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_27, 2+__pyx_t_27); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_28, 2+__pyx_t_28); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 328, __pyx_L9_error) #line 329 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 329 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 329 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 329 "root_numpy/src/tree.pyx" } else @@ -27073,22 +27002,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCCALL #line 329 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 329 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_2, __pyx_builtin_RuntimeWarning}; + PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_builtin_RuntimeWarning}; #line 329 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_27, 2+__pyx_t_27); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_28, 2+__pyx_t_28); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 328, __pyx_L9_error) #line 329 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 329 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 329 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 329 "root_numpy/src/tree.pyx" } else @@ -27100,25 +27029,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 329 "root_numpy/src/tree.pyx" - __pyx_t_28 = PyTuple_New(2+__pyx_t_27); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_29 = PyTuple_New(2+__pyx_t_28); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 328, __pyx_L9_error) #line 329 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 329 "root_numpy/src/tree.pyx" - if (__pyx_t_9) { + if (__pyx_t_10) { #line 329 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_28, 0, __pyx_t_9); __pyx_t_9 = NULL; + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_29, 0, __pyx_t_10); __pyx_t_10 = NULL; #line 329 "root_numpy/src/tree.pyx" } #line 329 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_9); #line 329 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_28, 0+__pyx_t_27, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_29, 0+__pyx_t_28, __pyx_t_9); #line 329 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_builtin_RuntimeWarning); @@ -27127,25 +27056,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GIVEREF(__pyx_builtin_RuntimeWarning); #line 329 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_28, 1+__pyx_t_27, __pyx_builtin_RuntimeWarning); + PyTuple_SET_ITEM(__pyx_t_29, 1+__pyx_t_28, __pyx_builtin_RuntimeWarning); #line 329 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_9 = 0; #line 329 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_28, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 328, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_29, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 328, __pyx_L9_error) #line 329 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 329 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 329 "root_numpy/src/tree.pyx" } #line 329 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 329 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -27190,7 +27119,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_14); #line 333 "root_numpy/src/tree.pyx" - __pyx_t_29 = PySet_Add(__pyx_v_seen_branches, __pyx_t_14); if (unlikely(__pyx_t_29 == -1)) __PYX_ERR(2, 333, __pyx_L9_error) + __pyx_t_30 = PySet_Add(__pyx_v_seen_branches, __pyx_t_14); if (unlikely(__pyx_t_30 == ((int)-1))) __PYX_ERR(2, 333, __pyx_L9_error) #line 333 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -27412,10 +27341,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 348 "root_numpy/src/tree.pyx" - __pyx_t_30 = (*__pyx_v_selector_map_it).second; + __pyx_t_31 = (*__pyx_v_selector_map_it).second; #line 348 "root_numpy/src/tree.pyx" - __pyx_v_selector = __pyx_t_30; + __pyx_v_selector = __pyx_t_31; /* "root_numpy/src/tree.pyx":352 * # present in the object_selection but not in the tree or @@ -27482,13 +27411,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 356 "root_numpy/src/tree.pyx" - __pyx_t_27 = __pyx_v_leaf_array->GetEntries(); + __pyx_t_28 = __pyx_v_leaf_array->GetEntries(); + +#line 356 "root_numpy/src/tree.pyx" + __pyx_t_32 = __pyx_t_28; #line 356 "root_numpy/src/tree.pyx" - for (__pyx_t_31 = 0; __pyx_t_31 < __pyx_t_27; __pyx_t_31+=1) { + for (__pyx_t_33 = 0; __pyx_t_33 < __pyx_t_32; __pyx_t_33+=1) { #line 356 "root_numpy/src/tree.pyx" - __pyx_v_ileaf = __pyx_t_31; + __pyx_v_ileaf = __pyx_t_33; /* "root_numpy/src/tree.pyx":357 * @@ -27521,16 +27453,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 359 "root_numpy/src/tree.pyx" - __pyx_t_33.__pyx_n = 1; + __pyx_t_35.__pyx_n = 1; #line 359 "root_numpy/src/tree.pyx" - __pyx_t_33.type_code = __pyx_v_type_code; + __pyx_t_35.type_code = __pyx_v_type_code; #line 359 "root_numpy/src/tree.pyx" - __pyx_t_32 = __pyx_f_13_librootnumpy_get_converter(__pyx_v_tleaf, &__pyx_t_33); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 359, __pyx_L9_error) + __pyx_t_34 = __pyx_f_13_librootnumpy_get_converter(__pyx_v_tleaf, &__pyx_t_35); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 359, __pyx_L9_error) #line 359 "root_numpy/src/tree.pyx" - __pyx_v_conv = __pyx_t_32; + __pyx_v_conv = __pyx_t_34; /* "root_numpy/src/tree.pyx":360 * leaf_name = tleaf.GetName() @@ -27601,7 +27533,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b__33); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 364, __pyx_L9_error) #line 364 "root_numpy/src/tree.pyx" - __pyx_v_column_name.append(((std::string)__pyx_t_20)); + (void)(__pyx_v_column_name.append(((std::string)__pyx_t_20))); /* "root_numpy/src/tree.pyx":365 * if not shortname: @@ -27612,7 +27544,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 365 "root_numpy/src/tree.pyx" - __pyx_v_column_name.append(__pyx_v_leaf_name); + (void)(__pyx_v_column_name.append(__pyx_v_leaf_name)); /* "root_numpy/src/tree.pyx":363 * # A converter exists for this leaf @@ -27651,7 +27583,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_1 = ((__pyx_v_selector != NULL) != 0); #line 368 "root_numpy/src/tree.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/src/tree.pyx":371 * raise TypeError( @@ -27662,40 +27594,40 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 371 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_attempting_to_apply_selection_on, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_attempting_to_apply_selection_on, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 371 "root_numpy/src/tree.pyx" - __pyx_t_28 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_column_name); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_29 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_column_name); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 371 "root_numpy/src/tree.pyx" - __pyx_t_2 = NULL; + __pyx_t_9 = NULL; #line 371 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 371 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); #line 371 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_2)) { + if (likely(__pyx_t_9)) { #line 371 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 371 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(__pyx_t_9); #line 371 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 371 "root_numpy/src/tree.pyx" } @@ -27704,13 +27636,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 371 "root_numpy/src/tree.pyx" - if (!__pyx_t_2) { + if (!__pyx_t_9) { #line 371 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_28); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_29); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 371 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); @@ -27722,22 +27654,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCALL #line 371 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_8)) { + if (PyFunction_Check(__pyx_t_2)) { #line 371 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_28}; + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_29}; #line 371 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 371 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 371 "root_numpy/src/tree.pyx" } else @@ -27749,22 +27681,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCCALL #line 371 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 371 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_28}; + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_29}; #line 371 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 371 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 371 "root_numpy/src/tree.pyx" } else @@ -27776,31 +27708,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 371 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 371 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); __pyx_t_2 = NULL; + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; #line 371 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_28); + __Pyx_GIVEREF(__pyx_t_29); #line 371 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_t_28); + PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_t_29); #line 371 "root_numpy/src/tree.pyx" - __pyx_t_28 = 0; + __pyx_t_29 = 0; #line 371 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_10, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 371, __pyx_L9_error) #line 371 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 371 "root_numpy/src/tree.pyx" } @@ -27809,7 +27741,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 371 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":369 * if conv.get_dtypecode() != np.NPY_OBJECT: @@ -27820,34 +27752,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 369 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 369, __pyx_L9_error) - -#line 369 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 369 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_14); - -#line 369 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_14); - -#line 369 "root_numpy/src/tree.pyx" - __pyx_t_14 = 0; + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 369, __pyx_L9_error) #line 369 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 369, __pyx_L9_error) - -#line 369 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 369 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 369 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_14, 0, 0, 0); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 369 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 369 "root_numpy/src/tree.pyx" __PYX_ERR(2, 369, __pyx_L9_error) @@ -27933,22 +27850,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 382 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 382, __pyx_L9_error) + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 382, __pyx_L9_error) #line 382 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 382 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyObject_RichCompare(__pyx_t_14, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 382, __pyx_L9_error) + __pyx_t_14 = PyObject_RichCompare(__pyx_t_2, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_14); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 382, __pyx_L9_error) #line 382 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 382 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 382, __pyx_L9_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_14); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 382, __pyx_L9_error) #line 382 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 382 "root_numpy/src/tree.pyx" if (__pyx_t_1) { @@ -27975,7 +27892,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_L63_bool_binop_done:; #line 382 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":385 * raise TypeError( @@ -27986,10 +27903,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 385 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_unable_to_truncate_column_0_of_t, __pyx_n_s_format); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 385, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_unable_to_truncate_column_0_of_t, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 385, __pyx_L9_error) #line 385 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); /* "root_numpy/src/tree.pyx":386 * "unable to truncate column '{0}' " @@ -28000,46 +27917,46 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 386 "root_numpy/src/tree.pyx" - __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_column_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 386, __pyx_L9_error) + __pyx_t_10 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_column_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 386, __pyx_L9_error) #line 386 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 386 "root_numpy/src/tree.pyx" - __pyx_t_28 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_tleaf->GetTypeName()); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 386, __pyx_L9_error) + __pyx_t_29 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_tleaf->GetTypeName()); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 386, __pyx_L9_error) #line 386 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 386 "root_numpy/src/tree.pyx" - __pyx_t_2 = NULL; + __pyx_t_9 = NULL; #line 386 "root_numpy/src/tree.pyx" - __pyx_t_34 = 0; + __pyx_t_36 = 0; #line 386 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 386 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); #line 386 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_2)) { + if (likely(__pyx_t_9)) { #line 386 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 386 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(__pyx_t_9); #line 386 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_14, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 386 "root_numpy/src/tree.pyx" - __pyx_t_34 = 1; + __pyx_t_36 = 1; #line 386 "root_numpy/src/tree.pyx" } @@ -28051,25 +27968,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCALL #line 386 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_14)) { + if (PyFunction_Check(__pyx_t_2)) { #line 386 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_9, __pyx_t_28}; + PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_10, __pyx_t_29}; #line 386 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_34, 2+__pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 385, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_36, 2+__pyx_t_36); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 385, __pyx_L9_error) #line 386 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 386 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 386 "root_numpy/src/tree.pyx" } else @@ -28081,25 +27998,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCCALL #line 386 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 386 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_9, __pyx_t_28}; + PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_10, __pyx_t_29}; #line 386 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_34, 2+__pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 385, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_36, 2+__pyx_t_36); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 385, __pyx_L9_error) #line 386 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 386 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 386 "root_numpy/src/tree.pyx" } else @@ -28111,52 +28028,52 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 386 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyTuple_New(2+__pyx_t_34); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 385, __pyx_L9_error) + __pyx_t_8 = PyTuple_New(2+__pyx_t_36); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 385, __pyx_L9_error) #line 386 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_8); #line 386 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (__pyx_t_9) { #line 386 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __pyx_t_2 = NULL; + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); __pyx_t_9 = NULL; #line 386 "root_numpy/src/tree.pyx" } #line 386 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_10); #line 386 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_34, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_36, __pyx_t_10); #line 386 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_28); + __Pyx_GIVEREF(__pyx_t_29); #line 386 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_34, __pyx_t_28); + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_36, __pyx_t_29); #line 386 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 386 "root_numpy/src/tree.pyx" - __pyx_t_28 = 0; + __pyx_t_29 = 0; #line 386 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 385, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 385, __pyx_L9_error) #line 386 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 386 "root_numpy/src/tree.pyx" } #line 386 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":383 * if branch_spec is not None: @@ -28167,34 +28084,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 383 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 383, __pyx_L9_error) - -#line 383 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); - -#line 383 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 383 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8); + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 383, __pyx_L9_error) #line 383 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; - -#line 383 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 383, __pyx_L9_error) - -#line 383 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 383 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 383 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 383 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 383 "root_numpy/src/tree.pyx" __PYX_ERR(2, 383, __pyx_L9_error) @@ -28219,19 +28121,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 387 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 387, __pyx_L9_error) + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 387, __pyx_L9_error) #line 387 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 387 "root_numpy/src/tree.pyx" - __pyx_t_35 = __Pyx_PyInt_As_unsigned_int(__pyx_t_8); if (unlikely((__pyx_t_35 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 387, __pyx_L9_error) + __pyx_t_37 = __Pyx_PyInt_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_37 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 387, __pyx_L9_error) #line 387 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 387 "root_numpy/src/tree.pyx" - __pyx_v_col->max_length = __pyx_t_35; + __pyx_v_col->max_length = __pyx_t_37; /* "root_numpy/src/tree.pyx":381 * col.selector = selector @@ -28415,7 +28317,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx try { #line 396 "root_numpy/src/tree.pyx" - __pyx_t_36 = std::string(__pyx_v_leaf_name); + __pyx_t_38 = std::string(__pyx_v_leaf_name); #line 396 "root_numpy/src/tree.pyx" } catch(...) { @@ -28438,7 +28340,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 397 "root_numpy/src/tree.pyx" - __pyx_v_chain->AddColumn(__pyx_t_20, __pyx_t_36, ((BranchColumn *)__pyx_v_col)); + __pyx_v_chain->AddColumn(__pyx_t_20, __pyx_t_38, ((BranchColumn *)__pyx_v_col)); /* "root_numpy/src/tree.pyx":360 * leaf_name = tleaf.GetName() @@ -28466,7 +28368,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __pyx_t_3 = ((__pyx_v_num_requested_branches > 0) != 0); #line 399 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":404 * raise TypeError( @@ -28491,16 +28393,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 405 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 405, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 405, __pyx_L9_error) #line 405 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_8); #line 405 "root_numpy/src/tree.pyx" - __pyx_t_28 = __Pyx_PyStr_FromString(__pyx_v_leaf_name); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 405, __pyx_L9_error) + __pyx_t_29 = __Pyx_PyStr_FromString(__pyx_v_leaf_name); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 405, __pyx_L9_error) #line 405 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); /* "root_numpy/src/tree.pyx":406 * "with type '{2}'".format( @@ -28511,31 +28413,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 406 "root_numpy/src/tree.pyx" - __pyx_t_9 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_tleaf->GetTypeName()); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 406, __pyx_L9_error) + __pyx_t_10 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_tleaf->GetTypeName()); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 406, __pyx_L9_error) #line 406 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 406 "root_numpy/src/tree.pyx" - __pyx_t_2 = NULL; + __pyx_t_9 = NULL; #line 406 "root_numpy/src/tree.pyx" - __pyx_t_34 = 0; + __pyx_t_36 = 0; #line 406 "root_numpy/src/tree.pyx" if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { #line 406 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_14); #line 406 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_2)) { + if (likely(__pyx_t_9)) { #line 406 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14); #line 406 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(__pyx_t_9); #line 406 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -28544,7 +28446,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_14, function); #line 406 "root_numpy/src/tree.pyx" - __pyx_t_34 = 1; + __pyx_t_36 = 1; #line 406 "root_numpy/src/tree.pyx" } @@ -28559,25 +28461,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (PyFunction_Check(__pyx_t_14)) { #line 406 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_t_10, __pyx_t_28, __pyx_t_9}; + PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_t_8, __pyx_t_29, __pyx_t_10}; #line 406 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_34, 3+__pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 404, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_36, 3+__pyx_t_36); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 404, __pyx_L9_error) #line 406 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 406 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 406 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 406 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 406 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 406 "root_numpy/src/tree.pyx" } else @@ -28592,25 +28494,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { #line 406 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_2, __pyx_t_10, __pyx_t_28, __pyx_t_9}; + PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_t_8, __pyx_t_29, __pyx_t_10}; #line 406 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_34, 3+__pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 404, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_36, 3+__pyx_t_36); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 404, __pyx_L9_error) #line 406 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 406 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 406 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 406 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 406 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 406 "root_numpy/src/tree.pyx" } else @@ -28622,52 +28524,52 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 406 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(3+__pyx_t_34); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 404, __pyx_L9_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_36); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 404, __pyx_L9_error) #line 406 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); #line 406 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (__pyx_t_9) { #line 406 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_2); __pyx_t_2 = NULL; + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; #line 406 "root_numpy/src/tree.pyx" } #line 406 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); #line 406 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_34, __pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_36, __pyx_t_8); #line 406 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_28); + __Pyx_GIVEREF(__pyx_t_29); #line 406 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_34, __pyx_t_28); + PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_36, __pyx_t_29); #line 406 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_10); #line 406 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_34, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_36, __pyx_t_10); #line 406 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + __pyx_t_8 = 0; #line 406 "root_numpy/src/tree.pyx" - __pyx_t_28 = 0; + __pyx_t_29 = 0; #line 406 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 406 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 404, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 404, __pyx_L9_error) #line 406 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_2); #line 406 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -28687,35 +28589,20 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 402 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 402, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 402, __pyx_L9_error) #line 402 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_14); #line 402 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 402 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8); - -#line 402 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; - -#line 402 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 402, __pyx_L9_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 402 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_Raise(__pyx_t_14, 0, 0, 0); #line 402 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; -#line 402 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); - -#line 402 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - #line 402 "root_numpy/src/tree.pyx" __PYX_ERR(2, 402, __pyx_L9_error) @@ -28742,19 +28629,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx /*else*/ { #line 409 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 409, __pyx_L9_error) + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 409, __pyx_L9_error) #line 409 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 409 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_warn); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 409, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_warn); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 409, __pyx_L9_error) #line 409 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); #line 409 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":411 * warnings.warn( @@ -28765,10 +28652,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 411 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_cannot_convert_leaf_0_of_branch_2, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 411, __pyx_L9_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_cannot_convert_leaf_0_of_branch_2, __pyx_n_s_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 411, __pyx_L9_error) #line 411 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); /* "root_numpy/src/tree.pyx":412 * "cannot convert leaf '{0}' of branch '{1}' " @@ -28779,16 +28666,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 412 "root_numpy/src/tree.pyx" - __pyx_t_28 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 412, __pyx_L9_error) + __pyx_t_29 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 412, __pyx_L9_error) #line 412 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 412 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyStr_FromString(__pyx_v_leaf_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 412, __pyx_L9_error) + __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v_leaf_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 412, __pyx_L9_error) #line 412 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_8); /* "root_numpy/src/tree.pyx":413 * "with type '{2}' (skipping)".format( @@ -28799,40 +28686,40 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 413 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_tleaf->GetTypeName()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 413, __pyx_L9_error) + __pyx_t_9 = __pyx_f_13_librootnumpy_resolve_type(__pyx_v_tleaf->GetTypeName()); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 413, __pyx_L9_error) #line 413 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 413 "root_numpy/src/tree.pyx" - __pyx_t_37 = NULL; + __pyx_t_39 = NULL; #line 413 "root_numpy/src/tree.pyx" - __pyx_t_34 = 0; + __pyx_t_36 = 0; #line 413 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 413 "root_numpy/src/tree.pyx" - __pyx_t_37 = PyMethod_GET_SELF(__pyx_t_9); + __pyx_t_39 = PyMethod_GET_SELF(__pyx_t_10); #line 413 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_37)) { + if (likely(__pyx_t_39)) { #line 413 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); #line 413 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_37); + __Pyx_INCREF(__pyx_t_39); #line 413 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_9, function); + __Pyx_DECREF_SET(__pyx_t_10, function); #line 413 "root_numpy/src/tree.pyx" - __pyx_t_34 = 1; + __pyx_t_36 = 1; #line 413 "root_numpy/src/tree.pyx" } @@ -28844,28 +28731,28 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCALL #line 413 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_9)) { + if (PyFunction_Check(__pyx_t_10)) { #line 413 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_37, __pyx_t_28, __pyx_t_10, __pyx_t_2}; + PyObject *__pyx_temp[4] = {__pyx_t_39, __pyx_t_29, __pyx_t_8, __pyx_t_9}; #line 413 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_34, 3+__pyx_t_34); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 411, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_36, 3+__pyx_t_36); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 411, __pyx_L9_error) #line 413 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; + __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; #line 413 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 413 "root_numpy/src/tree.pyx" } else @@ -28877,28 +28764,28 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx #if CYTHON_FAST_PYCCALL #line 413 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { #line 413 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_37, __pyx_t_28, __pyx_t_10, __pyx_t_2}; + PyObject *__pyx_temp[4] = {__pyx_t_39, __pyx_t_29, __pyx_t_8, __pyx_t_9}; #line 413 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_34, 3+__pyx_t_34); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 411, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_36, 3+__pyx_t_36); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 411, __pyx_L9_error) #line 413 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; + __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; #line 413 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 413 "root_numpy/src/tree.pyx" } else @@ -28910,61 +28797,61 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 413 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyTuple_New(3+__pyx_t_34); if (unlikely(!__pyx_t_38)) __PYX_ERR(2, 411, __pyx_L9_error) + __pyx_t_40 = PyTuple_New(3+__pyx_t_36); if (unlikely(!__pyx_t_40)) __PYX_ERR(2, 411, __pyx_L9_error) #line 413 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_38); + __Pyx_GOTREF(__pyx_t_40); #line 413 "root_numpy/src/tree.pyx" - if (__pyx_t_37) { + if (__pyx_t_39) { #line 413 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_37); PyTuple_SET_ITEM(__pyx_t_38, 0, __pyx_t_37); __pyx_t_37 = NULL; + __Pyx_GIVEREF(__pyx_t_39); PyTuple_SET_ITEM(__pyx_t_40, 0, __pyx_t_39); __pyx_t_39 = NULL; #line 413 "root_numpy/src/tree.pyx" } #line 413 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_28); + __Pyx_GIVEREF(__pyx_t_29); #line 413 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_38, 0+__pyx_t_34, __pyx_t_28); + PyTuple_SET_ITEM(__pyx_t_40, 0+__pyx_t_36, __pyx_t_29); #line 413 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); #line 413 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_38, 1+__pyx_t_34, __pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_40, 1+__pyx_t_36, __pyx_t_8); #line 413 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_9); #line 413 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_38, 2+__pyx_t_34, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_40, 2+__pyx_t_36, __pyx_t_9); #line 413 "root_numpy/src/tree.pyx" - __pyx_t_28 = 0; + __pyx_t_29 = 0; #line 413 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + __pyx_t_8 = 0; #line 413 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_9 = 0; #line 413 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_38, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 411, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_40, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 411, __pyx_L9_error) #line 413 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 413 "root_numpy/src/tree.pyx" } #line 413 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "root_numpy/src/tree.pyx":414 * branch_name, leaf_name, @@ -28975,31 +28862,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx */ #line 414 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_RootNumpyUnconvertibleWarning); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 414, __pyx_L9_error) + __pyx_t_10 = __Pyx_GetModuleGlobalName(__pyx_n_s_RootNumpyUnconvertibleWarning); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 414, __pyx_L9_error) #line 414 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 414 "root_numpy/src/tree.pyx" - __pyx_t_38 = NULL; + __pyx_t_40 = NULL; #line 414 "root_numpy/src/tree.pyx" - __pyx_t_34 = 0; + __pyx_t_36 = 0; #line 414 "root_numpy/src/tree.pyx" if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) { #line 414 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyMethod_GET_SELF(__pyx_t_11); + __pyx_t_40 = PyMethod_GET_SELF(__pyx_t_11); #line 414 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_38)) { + if (likely(__pyx_t_40)) { #line 414 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); #line 414 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_38); + __Pyx_INCREF(__pyx_t_40); #line 414 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -29008,7 +28895,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF_SET(__pyx_t_11, function); #line 414 "root_numpy/src/tree.pyx" - __pyx_t_34 = 1; + __pyx_t_36 = 1; #line 414 "root_numpy/src/tree.pyx" } @@ -29023,22 +28910,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (PyFunction_Check(__pyx_t_11)) { #line 414 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_38, __pyx_t_14, __pyx_t_9}; + PyObject *__pyx_temp[3] = {__pyx_t_40, __pyx_t_2, __pyx_t_10}; #line 414 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_34, 2+__pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 409, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_36, 2+__pyx_t_36); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 409, __pyx_L9_error) #line 414 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 414 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 414 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 414 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 414 "root_numpy/src/tree.pyx" } else @@ -29053,22 +28940,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) { #line 414 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_38, __pyx_t_14, __pyx_t_9}; + PyObject *__pyx_temp[3] = {__pyx_t_40, __pyx_t_2, __pyx_t_10}; #line 414 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_34, 2+__pyx_t_34); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 409, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_36, 2+__pyx_t_36); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 409, __pyx_L9_error) #line 414 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 414 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 414 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 414 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 414 "root_numpy/src/tree.pyx" } else @@ -29080,46 +28967,46 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx { #line 414 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(2+__pyx_t_34); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 409, __pyx_L9_error) + __pyx_t_9 = PyTuple_New(2+__pyx_t_36); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 409, __pyx_L9_error) #line 414 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 414 "root_numpy/src/tree.pyx" - if (__pyx_t_38) { + if (__pyx_t_40) { #line 414 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_38); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_38); __pyx_t_38 = NULL; + __Pyx_GIVEREF(__pyx_t_40); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_40); __pyx_t_40 = NULL; #line 414 "root_numpy/src/tree.pyx" } #line 414 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_2); #line 414 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_34, __pyx_t_14); + PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_36, __pyx_t_2); #line 414 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_10); #line 414 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_34, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_36, __pyx_t_10); #line 414 "root_numpy/src/tree.pyx" - __pyx_t_14 = 0; + __pyx_t_2 = 0; #line 414 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 414 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 409, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_9, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 409, __pyx_L9_error) #line 414 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 414 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 414 "root_numpy/src/tree.pyx" } @@ -29128,7 +29015,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 414 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 414 "root_numpy/src/tree.pyx" } @@ -29177,22 +29064,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx __Pyx_GOTREF(__pyx_t_11); #line 418 "root_numpy/src/tree.pyx" - __pyx_t_2 = NULL; + __pyx_t_9 = NULL; #line 418 "root_numpy/src/tree.pyx" if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { #line 418 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_11); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_11); #line 418 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_2)) { + if (likely(__pyx_t_9)) { #line 418 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); #line 418 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(__pyx_t_9); #line 418 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -29207,34 +29094,34 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } #line 418 "root_numpy/src/tree.pyx" - if (__pyx_t_2) { + if (__pyx_t_9) { #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 418, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_t_9); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 418 "root_numpy/src/tree.pyx" } else { #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallNoArg(__pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 418, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallNoArg(__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" } #line 418 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 418 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 418 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_8)) || PyTuple_CheckExact(__pyx_t_8)) { + if (likely(PyList_CheckExact(__pyx_t_14)) || PyTuple_CheckExact(__pyx_t_14)) { #line 418 "root_numpy/src/tree.pyx" - __pyx_t_11 = __pyx_t_8; __Pyx_INCREF(__pyx_t_11); __pyx_t_4 = 0; + __pyx_t_11 = __pyx_t_14; __Pyx_INCREF(__pyx_t_11); __pyx_t_4 = 0; #line 418 "root_numpy/src/tree.pyx" __pyx_t_12 = NULL; @@ -29243,7 +29130,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_subselection_branches); if (unlikely(!__pyx } else { __pyx_t_4 = -1; #line 418 "root_numpy/src/tree.pyx" -__pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 418, __pyx_L9_error) +__pyx_t_11 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); @@ -29255,7 +29142,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 418 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 418 "root_numpy/src/tree.pyx" for (;;) { @@ -29273,16 +29160,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 418, __pyx_L9_error) + __pyx_t_14 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" #else #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 418, __pyx_L9_error) + __pyx_t_14 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 418 "root_numpy/src/tree.pyx" #endif @@ -29297,16 +29184,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 418, __pyx_L9_error) + __pyx_t_14 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" #else #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 418, __pyx_L9_error) + __pyx_t_14 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 418, __pyx_L9_error) #line 418 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 418 "root_numpy/src/tree.pyx" #endif @@ -29318,10 +29205,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = __pyx_t_12(__pyx_t_11); + __pyx_t_14 = __pyx_t_12(__pyx_t_11); #line 418 "root_numpy/src/tree.pyx" - if (unlikely(!__pyx_t_8)) { + if (unlikely(!__pyx_t_14)) { #line 418 "root_numpy/src/tree.pyx" PyObject* exc_type = PyErr_Occurred(); @@ -29330,7 +29217,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 if (exc_type) { #line 418 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 418 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 418, __pyx_L9_error) @@ -29345,16 +29232,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 418 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 418 "root_numpy/src/tree.pyx" } #line 418 "root_numpy/src/tree.pyx" - __Pyx_XDECREF_SET(__pyx_v_expression, __pyx_t_8); + __Pyx_XDECREF_SET(__pyx_v_expression, __pyx_t_14); #line 418 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":419 * # Attempt to interpret remaining "branches" as expressions @@ -29365,16 +29252,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 419 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyObject_GetItem(__pyx_v_branch_dict, __pyx_v_expression); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 419, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_v_branch_dict, __pyx_v_expression); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 419, __pyx_L9_error) #line 419 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 419 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_v_branch_spec, __pyx_t_8); + __Pyx_DECREF_SET(__pyx_v_branch_spec, __pyx_t_14); #line 419 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":420 * for expression in branch_dict.keys(): @@ -29385,16 +29272,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 420 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_branch_spec, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 420, __pyx_L9_error) + __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_branch_spec, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 420, __pyx_L9_error) #line 420 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 420 "root_numpy/src/tree.pyx" - __pyx_t_22 = __Pyx_PyInt_As_int(__pyx_t_8); if (unlikely((__pyx_t_22 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 420, __pyx_L9_error) + __pyx_t_22 = __Pyx_PyInt_As_int(__pyx_t_14); if (unlikely((__pyx_t_22 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 420, __pyx_L9_error) #line 420 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 420 "root_numpy/src/tree.pyx" __pyx_v_branch_idx = __pyx_t_22; @@ -29408,10 +29295,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 421 "root_numpy/src/tree.pyx" - __pyx_t_39 = __Pyx_PyObject_AsString(__pyx_v_expression); if (unlikely((!__pyx_t_39) && PyErr_Occurred())) __PYX_ERR(2, 421, __pyx_L9_error) + __pyx_t_41 = __Pyx_PyObject_AsWritableString(__pyx_v_expression); if (unlikely((!__pyx_t_41) && PyErr_Occurred())) __PYX_ERR(2, 421, __pyx_L9_error) #line 421 "root_numpy/src/tree.pyx" - __pyx_v_c_string = __pyx_t_39; + __pyx_v_c_string = __pyx_t_41; /* "root_numpy/src/tree.pyx":422 * branch_idx = branch_spec[0] @@ -29460,7 +29347,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_L70_bool_binop_done:; #line 423 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":424 * formula = new TTreeFormula(c_string, c_string, tree) @@ -29482,34 +29369,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 427 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_the_branch_or_expression_0_is_no, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 427, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_the_branch_or_expression_0_is_no, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 427, __pyx_L9_error) #line 427 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 427 "root_numpy/src/tree.pyx" - __pyx_t_9 = NULL; + __pyx_t_10 = NULL; #line 427 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 427 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9); #line 427 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_9)) { + if (likely(__pyx_t_10)) { #line 427 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 427 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_10); #line 427 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 427 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 427 "root_numpy/src/tree.pyx" } @@ -29518,13 +29405,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 427 "root_numpy/src/tree.pyx" - if (!__pyx_t_9) { + if (!__pyx_t_10) { #line 427 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_expression); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 427, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_expression); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 427, __pyx_L9_error) #line 427 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 427 "root_numpy/src/tree.pyx" } else { @@ -29533,19 +29420,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 427 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_9)) { #line 427 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_v_expression}; #line 427 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 427, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 427, __pyx_L9_error) #line 427 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 427 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 427 "root_numpy/src/tree.pyx" } else @@ -29557,19 +29444,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 427 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 427 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_v_expression}; #line 427 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 427, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 427, __pyx_L9_error) #line 427 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 427 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 427 "root_numpy/src/tree.pyx" } else @@ -29581,13 +29468,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 427 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 427, __pyx_L9_error) + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 427, __pyx_L9_error) #line 427 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 427 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_9); __pyx_t_9 = NULL; + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_10); __pyx_t_10 = NULL; #line 427 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_expression); @@ -29596,16 +29483,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GIVEREF(__pyx_v_expression); #line 427 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_v_expression); + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_expression); #line 427 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 427, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 427, __pyx_L9_error) #line 427 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 427 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 427 "root_numpy/src/tree.pyx" } @@ -29614,7 +29501,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 427 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":425 * if formula == NULL or formula.GetNdim() == 0: @@ -29625,34 +29512,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 425 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 425, __pyx_L9_error) - -#line 425 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 425 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 425 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); - -#line 425 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; - -#line 425 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 425, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_14); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 425, __pyx_L9_error) #line 425 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 425 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 425 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + __Pyx_Raise(__pyx_t_9, 0, 0, 0); #line 425 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 425 "root_numpy/src/tree.pyx" __PYX_ERR(2, 425, __pyx_L9_error) @@ -29702,10 +29574,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 434 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 434, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 434, __pyx_L9_error) #line 434 "root_numpy/src/tree.pyx" - __pyx_v_selector_map_it = __pyx_v_selector_map.find(__pyx_t_36); + __pyx_v_selector_map_it = __pyx_v_selector_map.find(__pyx_t_38); /* "root_numpy/src/tree.pyx":435 * # Find selector for this expression if present @@ -29730,10 +29602,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 436 "root_numpy/src/tree.pyx" - __pyx_t_30 = (*__pyx_v_selector_map_it).second; + __pyx_t_31 = (*__pyx_v_selector_map_it).second; #line 436 "root_numpy/src/tree.pyx" - __pyx_v_selector = __pyx_t_30; + __pyx_v_selector = __pyx_t_31; /* "root_numpy/src/tree.pyx":440 * # present in the object_selection but not in the tree or @@ -29828,13 +29700,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 455 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 455, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 455, __pyx_L9_error) #line 455 "root_numpy/src/tree.pyx" __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Int_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 455, __pyx_L9_error) #line 455 "root_numpy/src/tree.pyx" - __pyx_v_col = new FormulaColumn (__pyx_t_36, __pyx_t_20, __pyx_v_formula); + __pyx_v_col = new FormulaColumn (__pyx_t_38, __pyx_t_20, __pyx_v_formula); /* "root_numpy/src/tree.pyx":456 * if formula.IsInteger(False): @@ -29879,10 +29751,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 458, __pyx_L9_error) #line 458 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Double_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 458, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Double_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 458, __pyx_L9_error) #line 458 "root_numpy/src/tree.pyx" - __pyx_v_col = new FormulaColumn (__pyx_t_20, __pyx_t_36, __pyx_v_formula); + __pyx_v_col = new FormulaColumn (__pyx_t_20, __pyx_t_38, __pyx_v_formula); /* "root_numpy/src/tree.pyx":459 * else: @@ -29893,10 +29765,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 459 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_double); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 459, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_double); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 459, __pyx_L9_error) #line 459 "root_numpy/src/tree.pyx" - __pyx_v_conv = __pyx_f_13_librootnumpy_find_converter_by_typename(__pyx_t_36); + __pyx_v_conv = __pyx_f_13_librootnumpy_find_converter_by_typename(__pyx_t_38); #line 459 "root_numpy/src/tree.pyx" } @@ -29916,7 +29788,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_3 = ((__pyx_v_selector != NULL) != 0); #line 460 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":463 * raise TypeError( @@ -29927,34 +29799,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 463 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_attempting_to_apply_selection_on_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 463, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_attempting_to_apply_selection_on_2, __pyx_n_s_format); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_14); #line 463 "root_numpy/src/tree.pyx" - __pyx_t_14 = NULL; + __pyx_t_2 = NULL; #line 463 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { #line 463 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_14); #line 463 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_14)) { + if (likely(__pyx_t_2)) { #line 463 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14); #line 463 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_14); + __Pyx_INCREF(__pyx_t_2); #line 463 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 463 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_14, function); #line 463 "root_numpy/src/tree.pyx" } @@ -29963,13 +29835,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 463 "root_numpy/src/tree.pyx" - if (!__pyx_t_14) { + if (!__pyx_t_2) { #line 463 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_expression); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_v_expression); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 463 "root_numpy/src/tree.pyx" } else { @@ -29978,19 +29850,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 463 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_14)) { #line 463 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; #line 463 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 463 "root_numpy/src/tree.pyx" } else @@ -30002,19 +29874,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 463 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { #line 463 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; #line 463 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 463 "root_numpy/src/tree.pyx" } else @@ -30026,13 +29898,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 463 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 463, __pyx_L9_error) + __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 463 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_14); __pyx_t_14 = NULL; + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2); __pyx_t_2 = NULL; #line 463 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_expression); @@ -30041,16 +29913,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GIVEREF(__pyx_v_expression); #line 463 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_expression); + PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_expression); #line 463 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 463, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 463, __pyx_L9_error) #line 463 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 463 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 463 "root_numpy/src/tree.pyx" } @@ -30059,7 +29931,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 463 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":461 * conv = find_converter_by_typename('double') @@ -30070,34 +29942,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 461 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 461, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_9); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 461, __pyx_L9_error) #line 461 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 461 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 461 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); - -#line 461 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; - -#line 461 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 461, __pyx_L9_error) - -#line 461 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 461 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 461 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + __Pyx_Raise(__pyx_t_14, 0, 0, 0); #line 461 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 461 "root_numpy/src/tree.pyx" __PYX_ERR(2, 461, __pyx_L9_error) @@ -30188,13 +30045,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 467 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 467, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 467, __pyx_L9_error) #line 467 "root_numpy/src/tree.pyx" __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Int_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 467, __pyx_L9_error) #line 467 "root_numpy/src/tree.pyx" - __pyx_v_col = new FormulaArrayColumn (__pyx_t_36, __pyx_t_20, __pyx_v_formula); + __pyx_v_col = new FormulaArrayColumn (__pyx_t_38, __pyx_t_20, __pyx_v_formula); /* "root_numpy/src/tree.pyx":468 * if formula.IsInteger(False): @@ -30239,10 +30096,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 470, __pyx_L9_error) #line 470 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Double_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 470, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Double_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 470, __pyx_L9_error) #line 470 "root_numpy/src/tree.pyx" - __pyx_v_col = new FormulaArrayColumn (__pyx_t_20, __pyx_t_36, __pyx_v_formula); + __pyx_v_col = new FormulaArrayColumn (__pyx_t_20, __pyx_t_38, __pyx_v_formula); /* "root_numpy/src/tree.pyx":471 * else: @@ -30253,10 +30110,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 471 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_double); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 471, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_double); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 471, __pyx_L9_error) #line 471 "root_numpy/src/tree.pyx" - __pyx_v_conv = __pyx_f_13_librootnumpy_get_array_converter(__pyx_t_36, __pyx_kp_s__5); + __pyx_v_conv = __pyx_f_13_librootnumpy_get_array_converter(__pyx_t_38, __pyx_kp_s__5); #line 471 "root_numpy/src/tree.pyx" } @@ -30315,13 +30172,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 476 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 476, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 476, __pyx_L9_error) #line 476 "root_numpy/src/tree.pyx" __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Int_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 476, __pyx_L9_error) #line 476 "root_numpy/src/tree.pyx" - __pyx_v_col = new FormulaFixedArrayColumn (__pyx_t_36, __pyx_t_20, __pyx_v_formula); + __pyx_v_col = new FormulaFixedArrayColumn (__pyx_t_38, __pyx_t_20, __pyx_v_formula); /* "root_numpy/src/tree.pyx":477 * if formula.IsInteger(False): @@ -30335,40 +30192,40 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_int); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 477 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_formula->GetNdata()); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_formula->GetNdata()); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 477 "root_numpy/src/tree.pyx" - __pyx_t_14 = NULL; + __pyx_t_2 = NULL; #line 477 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 477 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); #line 477 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_14)) { + if (likely(__pyx_t_2)) { #line 477 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 477 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_14); + __Pyx_INCREF(__pyx_t_2); #line 477 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 477 "root_numpy/src/tree.pyx" } @@ -30377,16 +30234,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 477 "root_numpy/src/tree.pyx" - if (!__pyx_t_14) { + if (!__pyx_t_2) { #line 477 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 477 "root_numpy/src/tree.pyx" } else { @@ -30395,22 +30252,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 477 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_9)) { #line 477 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_10}; #line 477 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 477 "root_numpy/src/tree.pyx" } else @@ -30422,22 +30279,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 477 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 477 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_t_10}; #line 477 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 477 "root_numpy/src/tree.pyx" } else @@ -30449,31 +30306,31 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 477 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyTuple_New(1+1); if (unlikely(!__pyx_t_38)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_40 = PyTuple_New(1+1); if (unlikely(!__pyx_t_40)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_38); + __Pyx_GOTREF(__pyx_t_40); #line 477 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_38, 0, __pyx_t_14); __pyx_t_14 = NULL; + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_40, 0, __pyx_t_2); __pyx_t_2 = NULL; #line 477 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_10); #line 477 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_38, 0+1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_40, 0+1, __pyx_t_10); #line 477 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 477 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_38, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 477, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_40, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 477, __pyx_L9_error) #line 477 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 477 "root_numpy/src/tree.pyx" } @@ -30482,13 +30339,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 477 "root_numpy/src/tree.pyx" - __pyx_v_conv = __pyx_f_13_librootnumpy_get_array_converter(__pyx_t_20, __pyx_t_8); + __pyx_v_conv = __pyx_f_13_librootnumpy_get_array_converter(__pyx_t_20, __pyx_t_14); #line 477 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":475 * else: @@ -30519,10 +30376,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_20 = __pyx_convert_string_from_py_std__in_string(__pyx_v_expression); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 479, __pyx_L9_error) #line 479 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Double_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 479, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_Double_t); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 479, __pyx_L9_error) #line 479 "root_numpy/src/tree.pyx" - __pyx_v_col = new FormulaFixedArrayColumn (__pyx_t_20, __pyx_t_36, __pyx_v_formula); + __pyx_v_col = new FormulaFixedArrayColumn (__pyx_t_20, __pyx_t_38, __pyx_v_formula); /* "root_numpy/src/tree.pyx":480 * else: @@ -30533,43 +30390,43 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 480 "root_numpy/src/tree.pyx" - __pyx_t_36 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_double); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_38 = __pyx_convert_string_from_py_std__in_string(__pyx_n_b_double); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_0_d, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 480 "root_numpy/src/tree.pyx" - __pyx_t_38 = __Pyx_PyInt_From_int(__pyx_v_formula->GetNdata()); if (unlikely(!__pyx_t_38)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_40 = __Pyx_PyInt_From_int(__pyx_v_formula->GetNdata()); if (unlikely(!__pyx_t_40)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_38); + __Pyx_GOTREF(__pyx_t_40); #line 480 "root_numpy/src/tree.pyx" - __pyx_t_9 = NULL; + __pyx_t_10 = NULL; #line 480 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 480 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9); #line 480 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_9)) { + if (likely(__pyx_t_10)) { #line 480 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 480 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_10); #line 480 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 480 "root_numpy/src/tree.pyx" } @@ -30578,16 +30435,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 480 "root_numpy/src/tree.pyx" - if (!__pyx_t_9) { + if (!__pyx_t_10) { #line 480 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_38); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_40); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 480 "root_numpy/src/tree.pyx" } else { @@ -30596,22 +30453,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 480 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_9)) { #line 480 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_38}; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_40}; #line 480 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 480 "root_numpy/src/tree.pyx" } else @@ -30623,22 +30480,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 480 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 480 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_38}; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_40}; #line 480 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 480 "root_numpy/src/tree.pyx" } else @@ -30650,31 +30507,31 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 480 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 480 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_9); __pyx_t_9 = NULL; + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_10); __pyx_t_10 = NULL; #line 480 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_38); + __Pyx_GIVEREF(__pyx_t_40); #line 480 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_38); + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_40); #line 480 "root_numpy/src/tree.pyx" - __pyx_t_38 = 0; + __pyx_t_40 = 0; #line 480 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 480, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 480, __pyx_L9_error) #line 480 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 480 "root_numpy/src/tree.pyx" } @@ -30683,13 +30540,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 480 "root_numpy/src/tree.pyx" - __pyx_v_conv = __pyx_f_13_librootnumpy_get_array_converter(__pyx_t_36, __pyx_t_8); + __pyx_v_conv = __pyx_f_13_librootnumpy_get_array_converter(__pyx_t_38, __pyx_t_14); #line 480 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 480 "root_numpy/src/tree.pyx" } @@ -30709,7 +30566,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_3 = ((__pyx_v_selector != NULL) != 0); #line 481 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":484 * raise TypeError( @@ -30720,34 +30577,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 484 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_attempting_to_apply_selection_on_2, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 484, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_attempting_to_apply_selection_on_2, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 484, __pyx_L9_error) #line 484 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 484 "root_numpy/src/tree.pyx" - __pyx_t_14 = NULL; + __pyx_t_2 = NULL; #line 484 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 484 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9); #line 484 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_14)) { + if (likely(__pyx_t_2)) { #line 484 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 484 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_14); + __Pyx_INCREF(__pyx_t_2); #line 484 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 484 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 484 "root_numpy/src/tree.pyx" } @@ -30756,13 +30613,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 484 "root_numpy/src/tree.pyx" - if (!__pyx_t_14) { + if (!__pyx_t_2) { #line 484 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_expression); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 484, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_expression); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 484, __pyx_L9_error) #line 484 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 484 "root_numpy/src/tree.pyx" } else { @@ -30771,19 +30628,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 484 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_9)) { #line 484 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; #line 484 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 484, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 484, __pyx_L9_error) #line 484 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 484 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 484 "root_numpy/src/tree.pyx" } else @@ -30795,19 +30652,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 484 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 484 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_expression}; #line 484 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 484, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 484, __pyx_L9_error) #line 484 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 484 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 484 "root_numpy/src/tree.pyx" } else @@ -30819,13 +30676,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 484 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyTuple_New(1+1); if (unlikely(!__pyx_t_38)) __PYX_ERR(2, 484, __pyx_L9_error) + __pyx_t_40 = PyTuple_New(1+1); if (unlikely(!__pyx_t_40)) __PYX_ERR(2, 484, __pyx_L9_error) #line 484 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_38); + __Pyx_GOTREF(__pyx_t_40); #line 484 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_38, 0, __pyx_t_14); __pyx_t_14 = NULL; + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_40, 0, __pyx_t_2); __pyx_t_2 = NULL; #line 484 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_expression); @@ -30834,16 +30691,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GIVEREF(__pyx_v_expression); #line 484 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_38, 0+1, __pyx_v_expression); + PyTuple_SET_ITEM(__pyx_t_40, 0+1, __pyx_v_expression); #line 484 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_38, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 484, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_40, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 484, __pyx_L9_error) #line 484 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 484 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 484 "root_numpy/src/tree.pyx" } @@ -30852,7 +30709,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 484 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":482 * conv = get_array_converter('double', '[{0:d}]'.format(formula.GetNdata())) @@ -30863,34 +30720,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 482 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 482, __pyx_L9_error) - -#line 482 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 482 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 482 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); - -#line 482 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_14); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 482, __pyx_L9_error) #line 482 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 482, __pyx_L9_error) - -#line 482 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 482 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 482 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + __Pyx_Raise(__pyx_t_9, 0, 0, 0); #line 482 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 482 "root_numpy/src/tree.pyx" __PYX_ERR(2, 482, __pyx_L9_error) @@ -30924,7 +30766,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_3 = ((__pyx_v_conv == NULL) != 0); #line 485 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":489 * raise AssertionError( @@ -30935,34 +30777,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 489 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_could_not_find_a_formula_convert, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 489, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_could_not_find_a_formula_convert, __pyx_n_s_format); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 489, __pyx_L9_error) #line 489 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_14); #line 489 "root_numpy/src/tree.pyx" - __pyx_t_38 = NULL; + __pyx_t_40 = NULL; #line 489 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { #line 489 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_40 = PyMethod_GET_SELF(__pyx_t_14); #line 489 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_38)) { + if (likely(__pyx_t_40)) { #line 489 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14); #line 489 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_38); + __Pyx_INCREF(__pyx_t_40); #line 489 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 489 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_14, function); #line 489 "root_numpy/src/tree.pyx" } @@ -30971,13 +30813,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 489 "root_numpy/src/tree.pyx" - if (!__pyx_t_38) { + if (!__pyx_t_40) { #line 489 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_expression); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 489, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_v_expression); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 489, __pyx_L9_error) #line 489 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 489 "root_numpy/src/tree.pyx" } else { @@ -30986,19 +30828,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 489 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_2)) { + if (PyFunction_Check(__pyx_t_14)) { #line 489 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_38, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_40, __pyx_v_expression}; #line 489 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 489, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 489, __pyx_L9_error) #line 489 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 489 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 489 "root_numpy/src/tree.pyx" } else @@ -31010,19 +30852,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 489 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { #line 489 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_38, __pyx_v_expression}; + PyObject *__pyx_temp[2] = {__pyx_t_40, __pyx_v_expression}; #line 489 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 489, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 489, __pyx_L9_error) #line 489 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 489 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 489 "root_numpy/src/tree.pyx" } else @@ -31034,13 +30876,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 489 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 489, __pyx_L9_error) + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 489, __pyx_L9_error) #line 489 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 489 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_38); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_38); __pyx_t_38 = NULL; + __Pyx_GIVEREF(__pyx_t_40); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_40); __pyx_t_40 = NULL; #line 489 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_expression); @@ -31049,16 +30891,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GIVEREF(__pyx_v_expression); #line 489 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_v_expression); + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_v_expression); #line 489 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_14, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 489, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_2, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 489, __pyx_L9_error) #line 489 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 489 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 489 "root_numpy/src/tree.pyx" } @@ -31067,7 +30909,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 489 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":487 * if conv == NULL: @@ -31078,34 +30920,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 487 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 487, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_builtin_AssertionError, __pyx_t_9); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 487, __pyx_L9_error) #line 487 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 487 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 487 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8); - -#line 487 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; - -#line 487 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 487, __pyx_L9_error) - -#line 487 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 487 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 487 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + __Pyx_Raise(__pyx_t_14, 0, 0, 0); #line 487 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 487 "root_numpy/src/tree.pyx" __PYX_ERR(2, 487, __pyx_L9_error) @@ -31130,22 +30957,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 491 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 491, __pyx_L9_error) + __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 491, __pyx_L9_error) #line 491 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); #line 491 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyObject_RichCompare(__pyx_t_8, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 491, __pyx_L9_error) + __pyx_t_9 = PyObject_RichCompare(__pyx_t_14, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 491, __pyx_L9_error) #line 491 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 491 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 491, __pyx_L9_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 491, __pyx_L9_error) #line 491 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 491 "root_numpy/src/tree.pyx" if (__pyx_t_1) { @@ -31172,7 +30999,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_L84_bool_binop_done:; #line 491 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":494 * raise TypeError( @@ -31183,10 +31010,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 494 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_unable_to_truncate_column_0_with, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 494, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_unable_to_truncate_column_0_with, __pyx_n_s_format); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 494, __pyx_L9_error) #line 494 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_14); /* "root_numpy/src/tree.pyx":495 * "unable to truncate column '{0}' " @@ -31197,37 +31024,37 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 495 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_formula->GetMultiplicity()); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 495, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_formula->GetMultiplicity()); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 495, __pyx_L9_error) #line 495 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 495 "root_numpy/src/tree.pyx" - __pyx_t_38 = NULL; + __pyx_t_40 = NULL; #line 495 "root_numpy/src/tree.pyx" __pyx_t_22 = 0; #line 495 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { #line 495 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_40 = PyMethod_GET_SELF(__pyx_t_14); #line 495 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_38)) { + if (likely(__pyx_t_40)) { #line 495 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14); #line 495 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_38); + __Pyx_INCREF(__pyx_t_40); #line 495 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 495 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); + __Pyx_DECREF_SET(__pyx_t_14, function); #line 495 "root_numpy/src/tree.pyx" __pyx_t_22 = 1; @@ -31242,22 +31069,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 495 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_8)) { + if (PyFunction_Check(__pyx_t_14)) { #line 495 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_38, __pyx_v_expression, __pyx_t_14}; + PyObject *__pyx_temp[3] = {__pyx_t_40, __pyx_v_expression, __pyx_t_2}; #line 495 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_22, 2+__pyx_t_22); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 494, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_22, 2+__pyx_t_22); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 494, __pyx_L9_error) #line 495 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 495 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 495 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 495 "root_numpy/src/tree.pyx" } else @@ -31269,22 +31096,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 495 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { #line 495 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_38, __pyx_v_expression, __pyx_t_14}; + PyObject *__pyx_temp[3] = {__pyx_t_40, __pyx_v_expression, __pyx_t_2}; #line 495 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_22, 2+__pyx_t_22); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 494, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_22, 2+__pyx_t_22); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 494, __pyx_L9_error) #line 495 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 495 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 495 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 495 "root_numpy/src/tree.pyx" } else @@ -31296,16 +31123,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 495 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(2+__pyx_t_22); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 494, __pyx_L9_error) + __pyx_t_10 = PyTuple_New(2+__pyx_t_22); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 494, __pyx_L9_error) #line 495 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 495 "root_numpy/src/tree.pyx" - if (__pyx_t_38) { + if (__pyx_t_40) { #line 495 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_38); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_38); __pyx_t_38 = NULL; + __Pyx_GIVEREF(__pyx_t_40); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_40); __pyx_t_40 = NULL; #line 495 "root_numpy/src/tree.pyx" } @@ -31317,31 +31144,31 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GIVEREF(__pyx_v_expression); #line 495 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_22, __pyx_v_expression); + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_22, __pyx_v_expression); #line 495 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_2); #line 495 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_22, __pyx_t_14); + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_22, __pyx_t_2); #line 495 "root_numpy/src/tree.pyx" - __pyx_t_14 = 0; + __pyx_t_2 = 0; #line 495 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 494, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 494, __pyx_L9_error) #line 495 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_9); #line 495 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 495 "root_numpy/src/tree.pyx" } #line 495 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":492 * @@ -31352,34 +31179,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 492 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 492, __pyx_L9_error) - -#line 492 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 492 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 492 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2); - -#line 492 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_9); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 492, __pyx_L9_error) #line 492 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 492, __pyx_L9_error) - -#line 492 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_14); #line 492 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 492 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_Raise(__pyx_t_14, 0, 0, 0); #line 492 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 492 "root_numpy/src/tree.pyx" __PYX_ERR(2, 492, __pyx_L9_error) @@ -31404,19 +31216,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 496 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 496, __pyx_L9_error) + __pyx_t_14 = __Pyx_GetItemInt(__pyx_v_branch_spec, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 496, __pyx_L9_error) #line 496 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_14); #line 496 "root_numpy/src/tree.pyx" - __pyx_t_35 = __Pyx_PyInt_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_35 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 496, __pyx_L9_error) + __pyx_t_37 = __Pyx_PyInt_As_unsigned_int(__pyx_t_14); if (unlikely((__pyx_t_37 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 496, __pyx_L9_error) #line 496 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 496 "root_numpy/src/tree.pyx" - __pyx_v_col->max_length = __pyx_t_35; + __pyx_v_col->max_length = __pyx_t_37; /* "root_numpy/src/tree.pyx":498 * col.max_length = branch_spec[1] @@ -31496,10 +31308,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_22 = __pyx_v_num_requested_branches; #line 502 "root_numpy/src/tree.pyx" - for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_22; __pyx_t_23+=1) { + __pyx_t_23 = __pyx_t_22; + +#line 502 "root_numpy/src/tree.pyx" + for (__pyx_t_24 = 0; __pyx_t_24 < __pyx_t_23; __pyx_t_24+=1) { #line 502 "root_numpy/src/tree.pyx" - __pyx_v_branch_idx = __pyx_t_23; + __pyx_v_branch_idx = __pyx_t_24; /* "root_numpy/src/tree.pyx":503 * # Flatten buckets into 1D vectors, thus preserving branch order @@ -31582,7 +31397,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_3 = ((__pyx_v_columns.size() == 0) != 0); #line 510 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":511 * @@ -31633,7 +31448,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __pyx_t_3 = ((__pyx_v_selector_map.size() > 0) != 0); #line 513 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":514 * @@ -31709,13 +31524,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 524 "root_numpy/src/tree.pyx" - __pyx_t_40 = __pyx_v_columns.size(); + __pyx_t_42 = __pyx_v_columns.size(); #line 524 "root_numpy/src/tree.pyx" - for (__pyx_t_41 = 0; __pyx_t_41 < __pyx_t_40; __pyx_t_41+=1) { + __pyx_t_43 = __pyx_t_42; #line 524 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_41; + for (__pyx_t_44 = 0; __pyx_t_44 < __pyx_t_43; __pyx_t_44+=1) { + +#line 524 "root_numpy/src/tree.pyx" + __pyx_v_icol = __pyx_t_44; /* "root_numpy/src/tree.pyx":525 * dtype_fields = [] @@ -31732,40 +31550,40 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GOTREF(__pyx_t_11); #line 525 "root_numpy/src/tree.pyx" - __pyx_t_2 = (__pyx_v_converters[__pyx_v_icol])->get_dtype((__pyx_v_columns[__pyx_v_icol])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 525, __pyx_L9_error) + __pyx_t_14 = (__pyx_v_converters[__pyx_v_icol])->get_dtype((__pyx_v_columns[__pyx_v_icol])); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 525, __pyx_L9_error) #line 525 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_14); #line 525 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 525, __pyx_L9_error) + __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 525, __pyx_L9_error) #line 525 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 525 "root_numpy/src/tree.pyx" __Pyx_GIVEREF(__pyx_t_11); #line 525 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_11); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_11); #line 525 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_14); #line 525 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_14); #line 525 "root_numpy/src/tree.pyx" __pyx_t_11 = 0; #line 525 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_14 = 0; #line 525 "root_numpy/src/tree.pyx" - __pyx_t_29 = __Pyx_PyList_Append(__pyx_v_dtype_fields, __pyx_t_8); if (unlikely(__pyx_t_29 == -1)) __PYX_ERR(2, 525, __pyx_L9_error) + __pyx_t_30 = __Pyx_PyList_Append(__pyx_v_dtype_fields, __pyx_t_9); if (unlikely(__pyx_t_30 == ((int)-1))) __PYX_ERR(2, 525, __pyx_L9_error) #line 525 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 525 "root_numpy/src/tree.pyx" } @@ -31793,16 +31611,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 527 "root_numpy/src/tree.pyx" - __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_weight_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 527, __pyx_L9_error) + __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_weight_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 527, __pyx_L9_error) #line 527 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 527 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 527, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 527, __pyx_L9_error) #line 527 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_14); #line 527 "root_numpy/src/tree.pyx" __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 527, __pyx_L9_error) @@ -31811,25 +31629,25 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_GOTREF(__pyx_t_11); #line 527 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_9); #line 527 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); #line 527 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_14); #line 527 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_14); #line 527 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_9 = 0; #line 527 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_14 = 0; #line 527 "root_numpy/src/tree.pyx" - __pyx_t_29 = __Pyx_PyList_Append(__pyx_v_dtype_fields, __pyx_t_11); if (unlikely(__pyx_t_29 == -1)) __PYX_ERR(2, 527, __pyx_L9_error) + __pyx_t_30 = __Pyx_PyList_Append(__pyx_v_dtype_fields, __pyx_t_11); if (unlikely(__pyx_t_30 == ((int)-1))) __PYX_ERR(2, 527, __pyx_L9_error) #line 527 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -31854,34 +31672,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 528 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 528, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_v_dtype_fields); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 528, __pyx_L9_error) #line 528 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_11); #line 528 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_v_dtype_fields); - -#line 528 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_v_dtype_fields); - -#line 528 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_v_dtype_fields); - -#line 528 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 528, __pyx_L9_error) - -#line 528 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); - -#line 528 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - -#line 528 "root_numpy/src/tree.pyx" - __pyx_v_dtype = __pyx_t_2; + __pyx_v_dtype = __pyx_t_11; #line 528 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_11 = 0; /* "root_numpy/src/tree.pyx":531 * @@ -31892,49 +31692,49 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 531 "root_numpy/src/tree.pyx" - __pyx_t_11 = PySlice_New(__pyx_v_start, __pyx_v_stop, __pyx_v_step); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_14 = PySlice_New(__pyx_v_start, __pyx_v_stop, __pyx_v_step); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 531 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_indices); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_indices); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 531 "root_numpy/src/tree.pyx" - __pyx_t_9 = NULL; + __pyx_t_10 = NULL; #line 531 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 531 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9); #line 531 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_9)) { + if (likely(__pyx_t_10)) { #line 531 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 531 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_10); #line 531 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 531 "root_numpy/src/tree.pyx" } @@ -31943,16 +31743,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 531 "root_numpy/src/tree.pyx" - if (!__pyx_t_9) { + if (!__pyx_t_10) { #line 531 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_14); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 531 "root_numpy/src/tree.pyx" } else { @@ -31961,22 +31761,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 531 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_8)) { + if (PyFunction_Check(__pyx_t_9)) { #line 531 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_11}; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_14}; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 531 "root_numpy/src/tree.pyx" } else @@ -31988,22 +31788,22 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 531 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 531 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_11}; + PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_14}; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 531 "root_numpy/src/tree.pyx" } else @@ -32015,31 +31815,31 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 531 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_2 = PyTuple_New(1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 531 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_9); __pyx_t_9 = NULL; + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_10); __pyx_t_10 = NULL; #line 531 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); + __Pyx_GIVEREF(__pyx_t_14); #line 531 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_11); + PyTuple_SET_ITEM(__pyx_t_2, 0+1, __pyx_t_14); #line 531 "root_numpy/src/tree.pyx" - __pyx_t_11 = 0; + __pyx_t_14 = 0; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 531 "root_numpy/src/tree.pyx" } @@ -32048,31 +31848,31 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_8 = PySequence_Tuple(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_9 = __Pyx_PySequence_Tuple(__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_9, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 531, __pyx_L9_error) #line 531 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 531 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 531 "root_numpy/src/tree.pyx" - __pyx_v_indices = __pyx_t_2; + __pyx_v_indices = __pyx_t_11; #line 531 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_11 = 0; /* "root_numpy/src/tree.pyx":532 * # Determine indices in slice @@ -32083,7 +31883,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 532 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyObject_Length(__pyx_v_indices); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 532, __pyx_L9_error) + __pyx_t_4 = PyObject_Length(__pyx_v_indices); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 532, __pyx_L9_error) #line 532 "root_numpy/src/tree.pyx" __pyx_v_num_entries = __pyx_t_4; @@ -32106,16 +31906,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_PyThreadState_assign #line 535 "root_numpy/src/tree.pyx" - __Pyx_ExceptionSave(&__pyx_t_26, &__pyx_t_25, &__pyx_t_24); + __Pyx_ExceptionSave(&__pyx_t_27, &__pyx_t_26, &__pyx_t_25); #line 535 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_26); + __Pyx_XGOTREF(__pyx_t_27); #line 535 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_25); + __Pyx_XGOTREF(__pyx_t_26); #line 535 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_24); + __Pyx_XGOTREF(__pyx_t_25); #line 535 "root_numpy/src/tree.pyx" /*try:*/ { @@ -32129,73 +31929,73 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 536 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 536, __pyx_L92_error) + __pyx_t_11 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 536 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 536, __pyx_L92_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 536 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 536 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 536, __pyx_L92_error) + __pyx_t_11 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 536 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 536, __pyx_L92_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 536 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_11); #line 536 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_11); #line 536 "root_numpy/src/tree.pyx" - __pyx_t_2 = 0; + __pyx_t_11 = 0; #line 536 "root_numpy/src/tree.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 536, __pyx_L92_error) + __pyx_t_11 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 536 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_v_dtype) < 0) __PYX_ERR(2, 536, __pyx_L92_error) + if (PyDict_SetItem(__pyx_t_11, __pyx_n_s_dtype, __pyx_v_dtype) < 0) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_14, __pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 536, __pyx_L92_error) + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 536 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 536 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 536 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 536 "root_numpy/src/tree.pyx" - if (!(likely(((__pyx_t_11) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_11, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 536, __pyx_L92_error) + if (!(likely(((__pyx_t_14) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_14, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 536, __pyx_L92_error) #line 536 "root_numpy/src/tree.pyx" - __pyx_v_arr = ((PyArrayObject *)__pyx_t_11); + __pyx_v_arr = ((PyArrayObject *)__pyx_t_14); #line 536 "root_numpy/src/tree.pyx" - __pyx_t_11 = 0; + __pyx_t_14 = 0; /* "root_numpy/src/tree.pyx":535 * @@ -32209,50 +32009,47 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_26); __pyx_t_26 = 0; + __Pyx_XDECREF(__pyx_t_27); __pyx_t_27 = 0; #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; + __Pyx_XDECREF(__pyx_t_26); __pyx_t_26 = 0; #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_24); __pyx_t_24 = 0; + __Pyx_XDECREF(__pyx_t_25); __pyx_t_25 = 0; #line 535 "root_numpy/src/tree.pyx" - goto __pyx_L99_try_end; + goto __pyx_L97_try_end; #line 535 "root_numpy/src/tree.pyx" __pyx_L92_error:; #line 535 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign + __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; + __Pyx_XDECREF(__pyx_t_29); __pyx_t_29 = 0; #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 535 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; -#line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 535 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - #line 535 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 535 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; +#line 535 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + /* "root_numpy/src/tree.pyx":537 * try: * arr = np.empty(num_entries, dtype=dtype) @@ -32271,16 +32068,16 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_AddTraceback("_librootnumpy.tree2array", __pyx_clineno, __pyx_lineno, __pyx_filename); #line 537 "root_numpy/src/tree.pyx" - if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_2, &__pyx_t_14) < 0) __PYX_ERR(2, 537, __pyx_L94_except_error) + if (__Pyx_GetException(&__pyx_t_14, &__pyx_t_11, &__pyx_t_2) < 0) __PYX_ERR(2, 537, __pyx_L94_except_error) #line 537 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 537 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 537 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); /* "root_numpy/src/tree.pyx":539 * except MemoryError: @@ -32291,10 +32088,10 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 539 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_failed_to_allocate_memory_for_0, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L94_except_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_failed_to_allocate_memory_for_0, __pyx_n_s_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 539, __pyx_L94_except_error) #line 539 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); /* "root_numpy/src/tree.pyx":540 * # Raise a more informative exception @@ -32305,82 +32102,82 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 540 "root_numpy/src/tree.pyx" - __pyx_t_38 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_38)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_40 = __Pyx_PyObject_GetAttrStr(__pyx_v_dtype, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_40)) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_38); + __Pyx_GOTREF(__pyx_t_40); #line 540 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_8 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_8); #line 540 "root_numpy/src/tree.pyx" - __pyx_t_28 = PyNumber_Multiply(__pyx_t_38, __pyx_t_10); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_29 = PyNumber_Multiply(__pyx_t_40, __pyx_t_8); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_42 = __Pyx_PyInt_As_long(__pyx_t_28); if (unlikely((__pyx_t_42 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_45 = __Pyx_PyInt_As_long(__pyx_t_29); if (unlikely((__pyx_t_45 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_28 = __pyx_f_13_librootnumpy_humanize_bytes(__pyx_t_42, NULL); if (unlikely(!__pyx_t_28)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_29 = __pyx_f_13_librootnumpy_humanize_bytes(__pyx_t_45, NULL); if (unlikely(!__pyx_t_29)) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_28); + __Pyx_GOTREF(__pyx_t_29); #line 540 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_8 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_8); #line 540 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyList_GET_SIZE(__pyx_v_dtype_fields); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_4 = PyList_GET_SIZE(__pyx_v_dtype_fields); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __pyx_t_38 = PyInt_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_38)) __PYX_ERR(2, 540, __pyx_L94_except_error) + __pyx_t_40 = PyInt_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_40)) __PYX_ERR(2, 540, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_38); + __Pyx_GOTREF(__pyx_t_40); #line 540 "root_numpy/src/tree.pyx" - __pyx_t_37 = NULL; + __pyx_t_39 = NULL; #line 540 "root_numpy/src/tree.pyx" __pyx_t_22 = 0; #line 540 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 540 "root_numpy/src/tree.pyx" - __pyx_t_37 = PyMethod_GET_SELF(__pyx_t_9); + __pyx_t_39 = PyMethod_GET_SELF(__pyx_t_10); #line 540 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_37)) { + if (likely(__pyx_t_39)) { #line 540 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); #line 540 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_37); + __Pyx_INCREF(__pyx_t_39); #line 540 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_9, function); + __Pyx_DECREF_SET(__pyx_t_10, function); #line 540 "root_numpy/src/tree.pyx" __pyx_t_22 = 1; @@ -32395,28 +32192,28 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCALL #line 540 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_9)) { + if (PyFunction_Check(__pyx_t_10)) { #line 540 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_37, __pyx_t_28, __pyx_t_10, __pyx_t_38}; + PyObject *__pyx_temp[4] = {__pyx_t_39, __pyx_t_29, __pyx_t_8, __pyx_t_40}; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_22, 3+__pyx_t_22); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 539, __pyx_L94_except_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_22, 3+__pyx_t_22); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; + __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 540 "root_numpy/src/tree.pyx" } else @@ -32428,28 +32225,28 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 #if CYTHON_FAST_PYCCALL #line 540 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { #line 540 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[4] = {__pyx_t_37, __pyx_t_28, __pyx_t_10, __pyx_t_38}; + PyObject *__pyx_temp[4] = {__pyx_t_39, __pyx_t_29, __pyx_t_8, __pyx_t_40}; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_22, 3+__pyx_t_22); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 539, __pyx_L94_except_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_22, 3+__pyx_t_22); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; + __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_DECREF(__pyx_t_29); __pyx_t_29 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_DECREF(__pyx_t_40); __pyx_t_40 = 0; #line 540 "root_numpy/src/tree.pyx" } else @@ -32461,61 +32258,61 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 { #line 540 "root_numpy/src/tree.pyx" - __pyx_t_43 = PyTuple_New(3+__pyx_t_22); if (unlikely(!__pyx_t_43)) __PYX_ERR(2, 539, __pyx_L94_except_error) + __pyx_t_46 = PyTuple_New(3+__pyx_t_22); if (unlikely(!__pyx_t_46)) __PYX_ERR(2, 539, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_43); + __Pyx_GOTREF(__pyx_t_46); #line 540 "root_numpy/src/tree.pyx" - if (__pyx_t_37) { + if (__pyx_t_39) { #line 540 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_37); PyTuple_SET_ITEM(__pyx_t_43, 0, __pyx_t_37); __pyx_t_37 = NULL; + __Pyx_GIVEREF(__pyx_t_39); PyTuple_SET_ITEM(__pyx_t_46, 0, __pyx_t_39); __pyx_t_39 = NULL; #line 540 "root_numpy/src/tree.pyx" } #line 540 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_28); + __Pyx_GIVEREF(__pyx_t_29); #line 540 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_43, 0+__pyx_t_22, __pyx_t_28); + PyTuple_SET_ITEM(__pyx_t_46, 0+__pyx_t_22, __pyx_t_29); #line 540 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); #line 540 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_43, 1+__pyx_t_22, __pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_46, 1+__pyx_t_22, __pyx_t_8); #line 540 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_38); + __Pyx_GIVEREF(__pyx_t_40); #line 540 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_43, 2+__pyx_t_22, __pyx_t_38); + PyTuple_SET_ITEM(__pyx_t_46, 2+__pyx_t_22, __pyx_t_40); #line 540 "root_numpy/src/tree.pyx" - __pyx_t_28 = 0; + __pyx_t_29 = 0; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_10 = 0; + __pyx_t_8 = 0; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_38 = 0; + __pyx_t_40 = 0; #line 540 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_43, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 539, __pyx_L94_except_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_46, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L94_except_error) #line 540 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_43); __pyx_t_43 = 0; + __Pyx_DECREF(__pyx_t_46); __pyx_t_46 = 0; #line 540 "root_numpy/src/tree.pyx" } #line 540 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "root_numpy/src/tree.pyx":539 * except MemoryError: @@ -32526,34 +32323,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 539 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 539, __pyx_L94_except_error) - -#line 539 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 539 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 539, __pyx_L94_except_error) #line 539 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); - -#line 539 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; - -#line 539 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 539, __pyx_L94_except_error) - -#line 539 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_10); #line 539 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 539 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + __Pyx_Raise(__pyx_t_10, 0, 0, 0); #line 539 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 539 "root_numpy/src/tree.pyx" __PYX_ERR(2, 539, __pyx_L94_except_error) @@ -32576,7 +32358,7 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 535 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign + __Pyx_XGIVEREF(__pyx_t_27); #line 535 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_26); @@ -32585,16 +32367,13 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 __Pyx_XGIVEREF(__pyx_t_25); #line 535 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_24); - -#line 535 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_26, __pyx_t_25, __pyx_t_24); + __Pyx_ExceptionReset(__pyx_t_27, __pyx_t_26, __pyx_t_25); #line 535 "root_numpy/src/tree.pyx" goto __pyx_L9_error; #line 535 "root_numpy/src/tree.pyx" - __pyx_L99_try_end:; + __pyx_L97_try_end:; #line 535 "root_numpy/src/tree.pyx" } @@ -32608,34 +32387,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 */ #line 543 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_branch_defaults, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_branch_defaults, __pyx_n_s_items); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 543 "root_numpy/src/tree.pyx" - __pyx_t_11 = NULL; + __pyx_t_14 = NULL; #line 543 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2); + __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_11); #line 543 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_11)) { + if (likely(__pyx_t_14)) { #line 543 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); #line 543 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_11); + __Pyx_INCREF(__pyx_t_14); #line 543 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_11, function); #line 543 "root_numpy/src/tree.pyx" } @@ -32644,34 +32423,34 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } #line 543 "root_numpy/src/tree.pyx" - if (__pyx_t_11) { + if (__pyx_t_14) { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 543 "root_numpy/src/tree.pyx" } else { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" } #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 543 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_14)) || PyTuple_CheckExact(__pyx_t_14)) { + if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_t_14; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_11 = __pyx_t_2; __Pyx_INCREF(__pyx_t_11); __pyx_t_4 = 0; #line 543 "root_numpy/src/tree.pyx" __pyx_t_12 = NULL; @@ -32680,19 +32459,19 @@ __pyx_t_11 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2 } else { __pyx_t_4 = -1; #line 543 "root_numpy/src/tree.pyx" -__pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L9_error) +__pyx_t_11 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 543 "root_numpy/src/tree.pyx" - __pyx_t_12 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_12 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" } #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 543 "root_numpy/src/tree.pyx" for (;;) { @@ -32701,25 +32480,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, if (likely(!__pyx_t_12)) { #line 543 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_2))) { + if (likely(PyList_CheckExact(__pyx_t_11))) { #line 543 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_11)) break; #line 543 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" #else #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 543 "root_numpy/src/tree.pyx" #endif @@ -32728,22 +32507,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, } else { #line 543 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #line 543 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" #else #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 543 "root_numpy/src/tree.pyx" #endif @@ -32755,10 +32534,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_14 = __pyx_t_12(__pyx_t_2); + __pyx_t_2 = __pyx_t_12(__pyx_t_11); #line 543 "root_numpy/src/tree.pyx" - if (unlikely(!__pyx_t_14)) { + if (unlikely(!__pyx_t_2)) { #line 543 "root_numpy/src/tree.pyx" PyObject* exc_type = PyErr_Occurred(); @@ -32767,7 +32546,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, if (exc_type) { #line 543 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 543 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 543, __pyx_L9_error) @@ -32782,31 +32561,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, } #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 543 "root_numpy/src/tree.pyx" } #line 543 "root_numpy/src/tree.pyx" - if ((likely(PyTuple_CheckExact(__pyx_t_14))) || (PyList_CheckExact(__pyx_t_14))) { - -#line 543 "root_numpy/src/tree.pyx" - PyObject* sequence = __pyx_t_14; + if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) { #line 543 "root_numpy/src/tree.pyx" - #if !CYTHON_COMPILING_IN_PYPY + PyObject* sequence = __pyx_t_2; #line 543 "root_numpy/src/tree.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 543 "root_numpy/src/tree.pyx" - #else - -#line 543 "root_numpy/src/tree.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 543 "root_numpy/src/tree.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 543 "root_numpy/src/tree.pyx" if (unlikely(size != 2)) { @@ -32830,49 +32597,49 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, if (likely(PyTuple_CheckExact(sequence))) { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_14 = PyTuple_GET_ITEM(sequence, 0); #line 543 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1); #line 543 "root_numpy/src/tree.pyx" } else { #line 543 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyList_GET_ITEM(sequence, 0); + __pyx_t_14 = PyList_GET_ITEM(sequence, 0); #line 543 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyList_GET_ITEM(sequence, 1); + __pyx_t_10 = PyList_GET_ITEM(sequence, 1); #line 543 "root_numpy/src/tree.pyx" } #line 543 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_11); + __Pyx_INCREF(__pyx_t_14); #line 543 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(__pyx_t_10); #line 543 "root_numpy/src/tree.pyx" #else #line 543 "root_numpy/src/tree.pyx" - __pyx_t_11 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_14 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 543 "root_numpy/src/tree.pyx" - __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_10 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_10); #line 543 "root_numpy/src/tree.pyx" #endif #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 543 "root_numpy/src/tree.pyx" } else { @@ -32881,28 +32648,28 @@ __pyx_t_2 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, Py_ssize_t index = -1; #line 543 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyObject_GetIter(__pyx_t_14); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_9); #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 543 "root_numpy/src/tree.pyx" __pyx_t_15 = Py_TYPE(__pyx_t_9)->tp_iternext; - index = 0; __pyx_t_11 = __pyx_t_15(__pyx_t_9); if (unlikely(!__pyx_t_11)) + index = 0; __pyx_t_14 = __pyx_t_15(__pyx_t_9); if (unlikely(!__pyx_t_14)) #line 543 "root_numpy/src/tree.pyx" -goto __pyx_L104_unpacking_failed; +goto __pyx_L102_unpacking_failed; #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); - index = 1; __pyx_t_8 = __pyx_t_15(__pyx_t_9); if (unlikely(!__pyx_t_8)) + __Pyx_GOTREF(__pyx_t_14); + index = 1; __pyx_t_10 = __pyx_t_15(__pyx_t_9); if (unlikely(!__pyx_t_10)) #line 543 "root_numpy/src/tree.pyx" -goto __pyx_L104_unpacking_failed; +goto __pyx_L102_unpacking_failed; #line 543 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_10); #line 543 "root_numpy/src/tree.pyx" if (__Pyx_IternextUnpackEndCheck(__pyx_t_15(__pyx_t_9), 2) < 0) __PYX_ERR(2, 543, __pyx_L9_error) @@ -32914,10 +32681,10 @@ goto __pyx_L104_unpacking_failed; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 543 "root_numpy/src/tree.pyx" - goto __pyx_L105_unpacking_done; + goto __pyx_L103_unpacking_done; #line 543 "root_numpy/src/tree.pyx" - __pyx_L104_unpacking_failed:; + __pyx_L102_unpacking_failed:; #line 543 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -32932,25 +32699,25 @@ goto __pyx_L104_unpacking_failed; __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" - __pyx_L105_unpacking_done:; + __pyx_L103_unpacking_done:; #line 543 "root_numpy/src/tree.pyx" } #line 543 "root_numpy/src/tree.pyx" - __pyx_t_18 = __Pyx_PyObject_AsString(__pyx_t_11); if (unlikely((!__pyx_t_18) && PyErr_Occurred())) __PYX_ERR(2, 543, __pyx_L9_error) + __pyx_t_18 = __Pyx_PyObject_AsString(__pyx_t_14); if (unlikely((!__pyx_t_18) && PyErr_Occurred())) __PYX_ERR(2, 543, __pyx_L9_error) #line 543 "root_numpy/src/tree.pyx" __pyx_v_branch_name = __pyx_t_18; #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 543 "root_numpy/src/tree.pyx" - __Pyx_XDECREF_SET(__pyx_v_branch_default, __pyx_t_8); + __Pyx_XDECREF_SET(__pyx_v_branch_default, __pyx_t_10); #line 543 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_10 = 0; /* "root_numpy/src/tree.pyx":544 * # Fill default values if we will truncate or impute @@ -32961,52 +32728,52 @@ goto __pyx_L104_unpacking_failed; */ #line 544 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_10 = __Pyx_PyStr_FromString(__pyx_v_branch_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_10); #line 544 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyObject_GetItem(((PyObject *)__pyx_v_arr), __pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_14 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_arr), __pyx_t_10); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 544 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 544 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_fill); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_fill); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_10); #line 544 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 544 "root_numpy/src/tree.pyx" - __pyx_t_11 = NULL; + __pyx_t_14 = NULL; #line 544 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { #line 544 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_10); #line 544 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_11)) { + if (likely(__pyx_t_14)) { #line 544 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); #line 544 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_11); + __Pyx_INCREF(__pyx_t_14); #line 544 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 544 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_8, function); + __Pyx_DECREF_SET(__pyx_t_10, function); #line 544 "root_numpy/src/tree.pyx" } @@ -33015,13 +32782,13 @@ goto __pyx_L104_unpacking_failed; } #line 544 "root_numpy/src/tree.pyx" - if (!__pyx_t_11) { + if (!__pyx_t_14) { #line 544 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_branch_default); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_v_branch_default); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 544 "root_numpy/src/tree.pyx" } else { @@ -33030,19 +32797,19 @@ goto __pyx_L104_unpacking_failed; #if CYTHON_FAST_PYCALL #line 544 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_8)) { + if (PyFunction_Check(__pyx_t_10)) { #line 544 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_branch_default}; + PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_branch_default}; #line 544 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 544 "root_numpy/src/tree.pyx" } else @@ -33054,19 +32821,19 @@ goto __pyx_L104_unpacking_failed; #if CYTHON_FAST_PYCCALL #line 544 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { #line 544 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_v_branch_default}; + PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_branch_default}; #line 544 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 544 "root_numpy/src/tree.pyx" } else @@ -33084,7 +32851,7 @@ goto __pyx_L104_unpacking_failed; __Pyx_GOTREF(__pyx_t_9); #line 544 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_11); __pyx_t_11 = NULL; + __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_14); __pyx_t_14 = NULL; #line 544 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_branch_default); @@ -33096,10 +32863,10 @@ goto __pyx_L104_unpacking_failed; PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_branch_default); #line 544 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 544, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 544, __pyx_L9_error) #line 544 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 544 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -33111,10 +32878,10 @@ goto __pyx_L104_unpacking_failed; } #line 544 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 544 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":543 * @@ -33128,7 +32895,7 @@ goto __pyx_L104_unpacking_failed; } #line 543 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; /* "root_numpy/src/tree.pyx":547 * @@ -33153,7 +32920,7 @@ goto __pyx_L104_unpacking_failed; if (likely(PyList_CheckExact(__pyx_v_indices)) || PyTuple_CheckExact(__pyx_v_indices)) { #line 550 "root_numpy/src/tree.pyx" - __pyx_t_2 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_11 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_11); __pyx_t_4 = 0; #line 550 "root_numpy/src/tree.pyx" __pyx_t_12 = NULL; @@ -33162,13 +32929,13 @@ goto __pyx_L104_unpacking_failed; } else { __pyx_t_4 = -1; #line 550 "root_numpy/src/tree.pyx" -__pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L9_error) +__pyx_t_11 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 550 "root_numpy/src/tree.pyx" - __pyx_t_12 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 550, __pyx_L9_error) + __pyx_t_12 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" } @@ -33180,25 +32947,25 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E if (likely(!__pyx_t_12)) { #line 550 "root_numpy/src/tree.pyx" - if (likely(PyList_CheckExact(__pyx_t_2))) { + if (likely(PyList_CheckExact(__pyx_t_11))) { #line 550 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_11)) break; #line 550 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 550 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 550, __pyx_L9_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" #else #line 550 "root_numpy/src/tree.pyx" - __pyx_t_14 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 550, __pyx_L9_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 550 "root_numpy/src/tree.pyx" #endif @@ -33207,22 +32974,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } else { #line 550 "root_numpy/src/tree.pyx" - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #line 550 "root_numpy/src/tree.pyx" #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #line 550 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_14); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 550, __pyx_L9_error) + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" #else #line 550 "root_numpy/src/tree.pyx" - __pyx_t_14 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 550, __pyx_L9_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_11, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 550 "root_numpy/src/tree.pyx" #endif @@ -33234,10 +33001,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E { #line 550 "root_numpy/src/tree.pyx" - __pyx_t_14 = __pyx_t_12(__pyx_t_2); + __pyx_t_2 = __pyx_t_12(__pyx_t_11); #line 550 "root_numpy/src/tree.pyx" - if (unlikely(!__pyx_t_14)) { + if (unlikely(!__pyx_t_2)) { #line 550 "root_numpy/src/tree.pyx" PyObject* exc_type = PyErr_Occurred(); @@ -33246,7 +33013,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E if (exc_type) { #line 550 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 550 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 550, __pyx_L9_error) @@ -33261,19 +33028,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } #line 550 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 550 "root_numpy/src/tree.pyx" } #line 550 "root_numpy/src/tree.pyx" - __pyx_t_44 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_14); if (unlikely((__pyx_t_44 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(2, 550, __pyx_L9_error) + __pyx_t_47 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_47 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(2, 550, __pyx_L9_error) #line 550 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 550 "root_numpy/src/tree.pyx" - __pyx_v_ientry = __pyx_t_44; + __pyx_v_ientry = __pyx_t_47; /* "root_numpy/src/tree.pyx":551 * # Loop on entries in the tree and write the data in the array @@ -33295,13 +33062,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 552 "root_numpy/src/tree.pyx" - __pyx_t_14 = __pyx_f_13_librootnumpy_handle_load(__pyx_v_entry_size, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 552, __pyx_L9_error) + __pyx_t_2 = __pyx_f_13_librootnumpy_handle_load(__pyx_v_entry_size, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 552, __pyx_L9_error) #line 552 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 552 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "root_numpy/src/tree.pyx":553 * entry_size = chain.GetEntry(ientry) @@ -33324,7 +33091,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __pyx_t_3 = __pyx_t_1; #line 553 "root_numpy/src/tree.pyx" - goto __pyx_L109_bool_binop_done; + goto __pyx_L107_bool_binop_done; #line 553 "root_numpy/src/tree.pyx" } @@ -33336,10 +33103,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __pyx_t_3 = __pyx_t_1; #line 553 "root_numpy/src/tree.pyx" - __pyx_L109_bool_binop_done:; + __pyx_L107_bool_binop_done:; #line 553 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":554 * handle_load(entry_size) @@ -33350,16 +33117,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 554 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 554, __pyx_L9_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 554, __pyx_L9_error) #line 554 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 554 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_14, 0, 0, 0); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); #line 554 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 554 "root_numpy/src/tree.pyx" __PYX_ERR(2, 554, __pyx_L9_error) @@ -33412,10 +33179,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __pyx_t_22 = __pyx_v_selection_formula->GetNdata(); #line 561 "root_numpy/src/tree.pyx" - for (__pyx_t_23 = 0; __pyx_t_23 < __pyx_t_22; __pyx_t_23+=1) { + __pyx_t_23 = __pyx_t_22; + +#line 561 "root_numpy/src/tree.pyx" + for (__pyx_t_24 = 0; __pyx_t_24 < __pyx_t_23; __pyx_t_24+=1) { #line 561 "root_numpy/src/tree.pyx" - __pyx_v_instance = __pyx_t_23; + __pyx_v_instance = __pyx_t_24; /* "root_numpy/src/tree.pyx":562 * keep = False @@ -33451,7 +33221,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 564 "root_numpy/src/tree.pyx" - goto __pyx_L113_break; + goto __pyx_L111_break; /* "root_numpy/src/tree.pyx":562 * keep = False @@ -33468,7 +33238,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } #line 562 "root_numpy/src/tree.pyx" - __pyx_L113_break:; + __pyx_L111_break:; /* "root_numpy/src/tree.pyx":565 * keep = True @@ -33493,7 +33263,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 566 "root_numpy/src/tree.pyx" - goto __pyx_L106_continue; + goto __pyx_L104_continue; /* "root_numpy/src/tree.pyx":565 * keep = True @@ -33573,13 +33343,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 574 "root_numpy/src/tree.pyx" - __pyx_t_41 = __pyx_v_num_columns; + __pyx_t_44 = __pyx_v_num_columns; #line 574 "root_numpy/src/tree.pyx" - for (__pyx_t_45 = 0; __pyx_t_45 < __pyx_t_41; __pyx_t_45+=1) { + __pyx_t_48 = __pyx_t_44; #line 574 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_45; + for (__pyx_t_49 = 0; __pyx_t_49 < __pyx_t_48; __pyx_t_49+=1) { + +#line 574 "root_numpy/src/tree.pyx" + __pyx_v_icol = __pyx_t_49; /* "root_numpy/src/tree.pyx":575 * data_ptr = np.PyArray_GETPTR1(arr, num_entries_selected) @@ -33612,7 +33385,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 577 "root_numpy/src/tree.pyx" - __pyx_t_22 = __pyx_v_conv->write(__pyx_v_col, __pyx_v_data_ptr); if (unlikely(__pyx_t_22 == -1)) __PYX_ERR(2, 577, __pyx_L9_error) + __pyx_t_22 = __pyx_v_conv->write(__pyx_v_col, __pyx_v_data_ptr); if (unlikely(__pyx_t_22 == ((int)-1))) __PYX_ERR(2, 577, __pyx_L9_error) #line 577 "root_numpy/src/tree.pyx" __pyx_v_num_bytes = __pyx_t_22; @@ -33687,13 +33460,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 550 "root_numpy/src/tree.pyx" - __pyx_L106_continue:; + __pyx_L104_continue:; #line 550 "root_numpy/src/tree.pyx" } #line 550 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 550 "root_numpy/src/tree.pyx" } @@ -33724,13 +33497,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 589 "root_numpy/src/tree.pyx" - __pyx_t_40 = __pyx_v_columns.size(); + __pyx_t_42 = __pyx_v_columns.size(); #line 589 "root_numpy/src/tree.pyx" - for (__pyx_t_41 = 0; __pyx_t_41 < __pyx_t_40; __pyx_t_41+=1) { + __pyx_t_43 = __pyx_t_42; #line 589 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_41; + for (__pyx_t_44 = 0; __pyx_t_44 < __pyx_t_43; __pyx_t_44+=1) { + +#line 589 "root_numpy/src/tree.pyx" + __pyx_v_icol = __pyx_t_44; /* "root_numpy/src/tree.pyx":590 * # Delete Columns @@ -33753,58 +33529,55 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } #line 590 "root_numpy/src/tree.pyx" - /*exception exit:*/{ + __pyx_L9_error:; #line 590 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_declare - -#line 590 "root_numpy/src/tree.pyx" - __pyx_L9_error:; + /*exception exit:*/{ #line 590 "root_numpy/src/tree.pyx" - __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_47 = 0; __pyx_t_48 = 0; __pyx_t_49 = 0; + __Pyx_PyThreadState_declare #line 590 "root_numpy/src/tree.pyx" __Pyx_PyThreadState_assign #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); __pyx_t_37 = 0; + __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; __pyx_t_51 = 0; __pyx_t_52 = 0; __pyx_t_53 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_28); __pyx_t_28 = 0; + __Pyx_XDECREF(__pyx_t_39); __pyx_t_39 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_29); __pyx_t_29 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); __pyx_t_38 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_43); __pyx_t_43 = 0; + __Pyx_XDECREF(__pyx_t_40); __pyx_t_40 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_XDECREF(__pyx_t_46); __pyx_t_46 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 590 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 590 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 590 "root_numpy/src/tree.pyx" - if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_47, &__pyx_t_48, &__pyx_t_49); + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 590 "root_numpy/src/tree.pyx" - if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26) < 0)) __Pyx_ErrFetch(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26); + if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_51, &__pyx_t_52, &__pyx_t_53); #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_24); + if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_25, &__pyx_t_26, &__pyx_t_27) < 0)) __Pyx_ErrFetch(&__pyx_t_25, &__pyx_t_26, &__pyx_t_27); #line 590 "root_numpy/src/tree.pyx" __Pyx_XGOTREF(__pyx_t_25); @@ -33813,16 +33586,19 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XGOTREF(__pyx_t_26); #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_47); + __Pyx_XGOTREF(__pyx_t_27); #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_48); + __Pyx_XGOTREF(__pyx_t_51); #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_49); + __Pyx_XGOTREF(__pyx_t_52); #line 590 "root_numpy/src/tree.pyx" - __pyx_t_22 = __pyx_lineno; __pyx_t_23 = __pyx_clineno; __pyx_t_46 = __pyx_filename; + __Pyx_XGOTREF(__pyx_t_53); + +#line 590 "root_numpy/src/tree.pyx" + __pyx_t_22 = __pyx_lineno; __pyx_t_23 = __pyx_clineno; __pyx_t_50 = __pyx_filename; #line 590 "root_numpy/src/tree.pyx" { @@ -33847,13 +33623,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 589 "root_numpy/src/tree.pyx" - __pyx_t_40 = __pyx_v_columns.size(); + __pyx_t_42 = __pyx_v_columns.size(); #line 589 "root_numpy/src/tree.pyx" - for (__pyx_t_41 = 0; __pyx_t_41 < __pyx_t_40; __pyx_t_41+=1) { + __pyx_t_43 = __pyx_t_42; #line 589 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_41; + for (__pyx_t_44 = 0; __pyx_t_44 < __pyx_t_43; __pyx_t_44+=1) { + +#line 589 "root_numpy/src/tree.pyx" + __pyx_v_icol = __pyx_t_44; /* "root_numpy/src/tree.pyx":590 * # Delete Columns @@ -33872,30 +33651,24 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E #line 590 "root_numpy/src/tree.pyx" } -#line 590 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign - #line 590 "root_numpy/src/tree.pyx" if (PY_MAJOR_VERSION >= 3) { #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_47); + __Pyx_XGIVEREF(__pyx_t_51); #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_48); + __Pyx_XGIVEREF(__pyx_t_52); #line 590 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_49); + __Pyx_XGIVEREF(__pyx_t_53); #line 590 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_47, __pyx_t_48, __pyx_t_49); + __Pyx_ExceptionReset(__pyx_t_51, __pyx_t_52, __pyx_t_53); #line 590 "root_numpy/src/tree.pyx" } -#line 590 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_24); - #line 590 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_25); @@ -33903,13 +33676,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XGIVEREF(__pyx_t_26); #line 590 "root_numpy/src/tree.pyx" - __Pyx_ErrRestore(__pyx_t_24, __pyx_t_25, __pyx_t_26); + __Pyx_XGIVEREF(__pyx_t_27); #line 590 "root_numpy/src/tree.pyx" - __pyx_t_24 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_47 = 0; __pyx_t_48 = 0; __pyx_t_49 = 0; + __Pyx_ErrRestore(__pyx_t_25, __pyx_t_26, __pyx_t_27); #line 590 "root_numpy/src/tree.pyx" - __pyx_lineno = __pyx_t_22; __pyx_clineno = __pyx_t_23; __pyx_filename = __pyx_t_46; + __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; __pyx_t_51 = 0; __pyx_t_52 = 0; __pyx_t_53 = 0; + +#line 590 "root_numpy/src/tree.pyx" + __pyx_lineno = __pyx_t_22; __pyx_clineno = __pyx_t_23; __pyx_filename = __pyx_t_50; #line 590 "root_numpy/src/tree.pyx" goto __pyx_L1_error; @@ -33946,31 +33722,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E */ #line 594 "root_numpy/src/tree.pyx" - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_arr), __pyx_n_s_resize); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_arr), __pyx_n_s_resize); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_2); #line 594 "root_numpy/src/tree.pyx" - __pyx_t_8 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries_selected); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_From_PY_LONG_LONG(__pyx_v_num_entries_selected); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_10); #line 594 "root_numpy/src/tree.pyx" __pyx_t_9 = NULL; #line 594 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { #line 594 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_14); + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); #line 594 "root_numpy/src/tree.pyx" if (likely(__pyx_t_9)) { #line 594 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); #line 594 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_9); @@ -33979,7 +33755,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_INCREF(function); #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_14, function); + __Pyx_DECREF_SET(__pyx_t_2, function); #line 594 "root_numpy/src/tree.pyx" } @@ -33991,13 +33767,13 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E if (!__pyx_t_9) { #line 594 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 594 "root_numpy/src/tree.pyx" } else { @@ -34006,22 +33782,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E #if CYTHON_FAST_PYCALL #line 594 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_14)) { + if (PyFunction_Check(__pyx_t_2)) { #line 594 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_8}; + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_10}; #line 594 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 594 "root_numpy/src/tree.pyx" } else @@ -34033,22 +33809,22 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E #if CYTHON_FAST_PYCCALL #line 594 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { #line 594 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_8}; + PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_t_10}; #line 594 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 594 "root_numpy/src/tree.pyx" } else @@ -34060,31 +33836,31 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E { #line 594 "root_numpy/src/tree.pyx" - __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_11); + __Pyx_GOTREF(__pyx_t_14); #line 594 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_9); __pyx_t_9 = NULL; #line 594 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_10); #line 594 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_10); #line 594 "root_numpy/src/tree.pyx" - __pyx_t_8 = 0; + __pyx_t_10 = 0; #line 594 "root_numpy/src/tree.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 594, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_14, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 594, __pyx_L1_error) #line 594 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_11); #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; #line 594 "root_numpy/src/tree.pyx" } @@ -34093,10 +33869,10 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E } #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 594 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; /* "root_numpy/src/tree.pyx":593 * @@ -34165,16 +33941,16 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_indices); if (unlikely(!__pyx_t_2)) __PYX_E __Pyx_XDECREF(__pyx_t_14); #line 165 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_28); + __Pyx_XDECREF(__pyx_t_29); #line 165 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_37); + __Pyx_XDECREF(__pyx_t_39); #line 165 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_38); + __Pyx_XDECREF(__pyx_t_40); #line 165 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_43); + __Pyx_XDECREF(__pyx_t_46); #line 165 "root_numpy/src/tree.pyx" __Pyx_AddTraceback("_librootnumpy.tree2array", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -34330,40 +34106,76 @@ static PyObject *__pyx_pw_13_librootnumpy_13root2array_fromfile(PyObject *__pyx_ case 12: #line 599 "root_numpy/src/tree.pyx" values[11] = PyTuple_GET_ITEM(__pyx_args, 11); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 11: #line 599 "root_numpy/src/tree.pyx" values[10] = PyTuple_GET_ITEM(__pyx_args, 10); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 10: #line 599 "root_numpy/src/tree.pyx" values[9] = PyTuple_GET_ITEM(__pyx_args, 9); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 9: #line 599 "root_numpy/src/tree.pyx" values[8] = PyTuple_GET_ITEM(__pyx_args, 8); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 8: #line 599 "root_numpy/src/tree.pyx" values[7] = PyTuple_GET_ITEM(__pyx_args, 7); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 7: #line 599 "root_numpy/src/tree.pyx" values[6] = PyTuple_GET_ITEM(__pyx_args, 6); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 6: #line 599 "root_numpy/src/tree.pyx" values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 5: #line 599 "root_numpy/src/tree.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 4: #line 599 "root_numpy/src/tree.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 3: #line 599 "root_numpy/src/tree.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 2: #line 599 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 599 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 0: break; default: @@ -34383,16 +34195,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fnames)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fnames)) != 0)) kw_args--; else #line 599 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 1: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_treename)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_treename)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34403,11 +34218,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 2: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_branches)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_branches)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34418,11 +34236,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 3: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_selection)) != 0)) kw_args--; + if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_selection)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34433,11 +34254,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 4: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_object_selection)) != 0)) kw_args--; + if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_object_selection)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34448,11 +34272,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 5: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_start)) != 0)) kw_args--; + if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_start)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34463,11 +34290,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 6: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[6] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_stop)) != 0)) kw_args--; + if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stop)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34478,11 +34308,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 7: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[7] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_step)) != 0)) kw_args--; + if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34493,11 +34326,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 8: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[8] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_include_weight)) != 0)) kw_args--; + if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_include_weight)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34508,11 +34344,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 9: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[9] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weight_name)) != 0)) kw_args--; + if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weight_name)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34523,11 +34362,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 10: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[10] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cache_size)) != 0)) kw_args--; + if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cache_size)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34538,11 +34380,14 @@ __PYX_ERR(2, 599, __pyx_L3_error) #line 599 "root_numpy/src/tree.pyx" } +#line 599 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 599 "root_numpy/src/tree.pyx" case 11: #line 599 "root_numpy/src/tree.pyx" - if (likely((values[11] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_warn_missing_tree)) != 0)) kw_args--; + if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_warn_missing_tree)) != 0)) kw_args--; #line 599 "root_numpy/src/tree.pyx" else { @@ -34942,7 +34787,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (exc_type) { #line 607 "root_numpy/src/tree.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 607 "root_numpy/src/tree.pyx" else __PYX_ERR(2, 607, __pyx_L4_error) @@ -35008,7 +34853,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_5 = ((__pyx_v_rfile == NULL) != 0); #line 610 "root_numpy/src/tree.pyx" - if (__pyx_t_5) { + if (unlikely(__pyx_t_5)) { /* "root_numpy/src/tree.pyx":611 * rfile = Open(fn, 'read') @@ -35154,35 +34999,20 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 611 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 611, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 611, __pyx_L4_error) #line 611 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_7); #line 611 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); - -#line 611 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); - -#line 611 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; - -#line 611 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 611, __pyx_L4_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 611 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_Raise(__pyx_t_7, 0, 0, 0); #line 611 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; -#line 611 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - -#line 611 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - #line 611 "root_numpy/src/tree.pyx" __PYX_ERR(2, 611, __pyx_L4_error) @@ -35231,19 +35061,19 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER */ #line 615 "root_numpy/src/tree.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) #line 615 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_4); #line 615 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_warn); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_warn); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 615, __pyx_L4_error) #line 615 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_9); #line 615 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 615 "root_numpy/src/tree.pyx" __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_tree_0_not_found_in_1, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 615, __pyx_L4_error) @@ -35303,13 +35133,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_10, __pyx_v_fn}; #line 615 "root_numpy/src/tree.pyx" - __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) #line 615 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 615 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_4); #line 615 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -35330,13 +35160,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_10, __pyx_v_fn}; #line 615 "root_numpy/src/tree.pyx" - __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) #line 615 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 615 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_4); #line 615 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -35384,10 +35214,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_10 = 0; #line 615 "root_numpy/src/tree.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_13, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_13, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) #line 615 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_4); #line 615 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; @@ -35449,19 +35279,19 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (PyFunction_Check(__pyx_t_9)) { #line 616 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_builtin_RuntimeWarning}; + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_4, __pyx_builtin_RuntimeWarning}; #line 616 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) #line 616 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 616 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_7); #line 616 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 616 "root_numpy/src/tree.pyx" } else @@ -35476,19 +35306,19 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 616 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_builtin_RuntimeWarning}; + PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_4, __pyx_builtin_RuntimeWarning}; #line 616 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) #line 616 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 616 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_7); #line 616 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 616 "root_numpy/src/tree.pyx" } else @@ -35515,10 +35345,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } #line 616 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_4); #line 616 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_4); #line 616 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_builtin_RuntimeWarning); @@ -35530,13 +35360,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_12, __pyx_builtin_RuntimeWarning); #line 616 "root_numpy/src/tree.pyx" - __pyx_t_7 = 0; + __pyx_t_4 = 0; #line 616 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_13, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 615, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_13, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L4_error) #line 616 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_7); #line 616 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; @@ -35548,7 +35378,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 616 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "root_numpy/src/tree.pyx":617 * warnings.warn("tree '{0}' not found in {1}".format(treename, fn), @@ -35653,7 +35483,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_5 = ((__pyx_v_chain->Add(__pyx_t_6, -1LL) == 0) != 0); #line 623 "root_numpy/src/tree.pyx" - if (__pyx_t_5) { + if (unlikely(__pyx_t_5)) { /* "root_numpy/src/tree.pyx":624 * del rfile @@ -35684,7 +35514,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_GOTREF(__pyx_t_13); #line 625 "root_numpy/src/tree.pyx" - __pyx_t_7 = NULL; + __pyx_t_4 = NULL; #line 625 "root_numpy/src/tree.pyx" __pyx_t_12 = 0; @@ -35693,16 +35523,16 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 625 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9); + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_9); #line 625 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_7)) { + if (likely(__pyx_t_4)) { #line 625 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 625 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(__pyx_t_4); #line 625 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -35726,16 +35556,16 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (PyFunction_Check(__pyx_t_9)) { #line 625 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_13, __pyx_v_fn}; + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_13, __pyx_v_fn}; #line 625 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 624, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 624, __pyx_L4_error) #line 625 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 625 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_7); #line 625 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; @@ -35753,16 +35583,16 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 625 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_13, __pyx_v_fn}; + PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_13, __pyx_v_fn}; #line 625 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 624, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 624, __pyx_L4_error) #line 625 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 625 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_7); #line 625 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; @@ -35783,10 +35613,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_GOTREF(__pyx_t_8); #line 625 "root_numpy/src/tree.pyx" - if (__pyx_t_7) { + if (__pyx_t_4) { #line 625 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __pyx_t_4 = NULL; #line 625 "root_numpy/src/tree.pyx" } @@ -35810,10 +35640,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_13 = 0; #line 625 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 624, __pyx_L4_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 624, __pyx_L4_error) #line 625 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_7); #line 625 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -35833,35 +35663,20 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER */ #line 624 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 624, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 624, __pyx_L4_error) #line 624 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_9); #line 624 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); - -#line 624 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); - -#line 624 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; - -#line 624 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 624, __pyx_L4_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 624 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_Raise(__pyx_t_9, 0, 0, 0); #line 624 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; -#line 624 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - -#line 624 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - #line 624 "root_numpy/src/tree.pyx" __PYX_ERR(2, 624, __pyx_L4_error) @@ -35905,7 +35720,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __pyx_t_5 = ((__pyx_v_chain->GetNtrees() == 0) != 0); #line 626 "root_numpy/src/tree.pyx" - if (__pyx_t_5) { + if (unlikely(__pyx_t_5)) { /* "root_numpy/src/tree.pyx":628 * if chain.GetNtrees() == 0: @@ -35916,31 +35731,31 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER */ #line 628 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_none_of_the_input_files_contain, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 628, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_none_of_the_input_files_contain, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 628, __pyx_L4_error) #line 628 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_9); #line 628 "root_numpy/src/tree.pyx" - __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_treename); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 628, __pyx_L4_error) + __pyx_t_7 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_treename); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 628, __pyx_L4_error) #line 628 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_7); #line 628 "root_numpy/src/tree.pyx" __pyx_t_8 = NULL; #line 628 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { #line 628 "root_numpy/src/tree.pyx" - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9); #line 628 "root_numpy/src/tree.pyx" if (likely(__pyx_t_8)) { #line 628 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); #line 628 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_8); @@ -35949,7 +35764,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_INCREF(function); #line 628 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_9, function); #line 628 "root_numpy/src/tree.pyx" } @@ -35961,10 +35776,10 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER if (!__pyx_t_8) { #line 628 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) #line 628 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 628 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -35976,13 +35791,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER #if CYTHON_FAST_PYCALL #line 628 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_4)) { + if (PyFunction_Check(__pyx_t_9)) { #line 628 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_7}; #line 628 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) #line 628 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -35991,7 +35806,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_GOTREF(__pyx_t_1); #line 628 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 628 "root_numpy/src/tree.pyx" } else @@ -36003,13 +35818,13 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER #if CYTHON_FAST_PYCCALL #line 628 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { #line 628 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_7}; #line 628 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) #line 628 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -36018,7 +35833,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_GOTREF(__pyx_t_1); #line 628 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 628 "root_numpy/src/tree.pyx" } else @@ -36039,16 +35854,16 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_8); __pyx_t_8 = NULL; #line 628 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_7); #line 628 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_13, 0+1, __pyx_t_7); #line 628 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_7 = 0; #line 628 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L4_error) #line 628 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -36063,7 +35878,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER } #line 628 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":627 * treename, fn)) @@ -36074,34 +35889,19 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER */ #line 627 "root_numpy/src/tree.pyx" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 627, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 627, __pyx_L4_error) #line 627 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); - -#line 627 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 627 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); - -#line 627 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; - -#line 627 "root_numpy/src/tree.pyx" - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 627, __pyx_L4_error) - -#line 627 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_9); #line 627 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 627 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_1, 0, 0, 0); + __Pyx_Raise(__pyx_t_9, 0, 0, 0); #line 627 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 627 "root_numpy/src/tree.pyx" __PYX_ERR(2, 627, __pyx_L4_error) @@ -36164,16 +35964,16 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER */ #line 629 "root_numpy/src/tree.pyx" - __pyx_t_1 = __pyx_f_13_librootnumpy_tree2array(((TTree *)__pyx_v_chain), __pyx_v_branches, __pyx_t_14, __pyx_v_object_selection, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_include_weight, __pyx_v_weight_name, __pyx_v_cache_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 629, __pyx_L4_error) + __pyx_t_9 = __pyx_f_13_librootnumpy_tree2array(((TTree *)__pyx_v_chain), __pyx_v_branches, __pyx_t_14, __pyx_v_object_selection, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_include_weight, __pyx_v_weight_name, __pyx_v_cache_size); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 629, __pyx_L4_error) #line 629 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_9); #line 629 "root_numpy/src/tree.pyx" - __pyx_v_ret = __pyx_t_1; + __pyx_v_ret = __pyx_t_9; #line 629 "root_numpy/src/tree.pyx" - __pyx_t_1 = 0; + __pyx_t_9 = 0; #line 629 "root_numpy/src/tree.pyx" } @@ -36201,6 +36001,9 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER #line 635 "root_numpy/src/tree.pyx" } +#line 635 "root_numpy/src/tree.pyx" + __pyx_L4_error:; + #line 635 "root_numpy/src/tree.pyx" /*exception exit:*/{ @@ -36208,14 +36011,11 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_PyThreadState_declare #line 635 "root_numpy/src/tree.pyx" - __pyx_L4_error:; + __Pyx_PyThreadState_assign #line 635 "root_numpy/src/tree.pyx" __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; -#line 635 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign - #line 635 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -36223,22 +36023,22 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 635 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 635 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; #line 635 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 635 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; #line 635 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; #line 635 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; #line 635 "root_numpy/src/tree.pyx" if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); @@ -36276,9 +36076,6 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_fnames); if (unlikely(!__pyx_t_1)) __PYX_ER #line 635 "root_numpy/src/tree.pyx" } -#line 635 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign - #line 635 "root_numpy/src/tree.pyx" if (PY_MAJOR_VERSION >= 3) { @@ -36500,34 +36297,64 @@ static PyObject *__pyx_pw_13_librootnumpy_15root2array_fromtree(PyObject *__pyx_ case 10: #line 639 "root_numpy/src/tree.pyx" values[9] = PyTuple_GET_ITEM(__pyx_args, 9); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 9: #line 639 "root_numpy/src/tree.pyx" values[8] = PyTuple_GET_ITEM(__pyx_args, 8); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 8: #line 639 "root_numpy/src/tree.pyx" values[7] = PyTuple_GET_ITEM(__pyx_args, 7); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 7: #line 639 "root_numpy/src/tree.pyx" values[6] = PyTuple_GET_ITEM(__pyx_args, 6); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 6: #line 639 "root_numpy/src/tree.pyx" values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 5: #line 639 "root_numpy/src/tree.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 4: #line 639 "root_numpy/src/tree.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 3: #line 639 "root_numpy/src/tree.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 2: #line 639 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 639 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 0: break; default: @@ -36547,16 +36374,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_tree)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tree)) != 0)) kw_args--; else #line 639 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 1: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_branches)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_branches)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36567,11 +36397,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 2: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_selection)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_selection)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36582,11 +36415,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 3: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_object_selection)) != 0)) kw_args--; + if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_object_selection)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36597,11 +36433,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 4: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_start)) != 0)) kw_args--; + if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_start)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36612,11 +36451,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 5: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_stop)) != 0)) kw_args--; + if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stop)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36627,11 +36469,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 6: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[6] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_step)) != 0)) kw_args--; + if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36642,11 +36487,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 7: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[7] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_include_weight)) != 0)) kw_args--; + if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_include_weight)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36657,11 +36505,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 8: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[8] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weight_name)) != 0)) kw_args--; + if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weight_name)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36672,11 +36523,14 @@ __PYX_ERR(2, 639, __pyx_L3_error) #line 639 "root_numpy/src/tree.pyx" } +#line 639 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 639 "root_numpy/src/tree.pyx" case 9: #line 639 "root_numpy/src/tree.pyx" - if (likely((values[9] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cache_size)) != 0)) kw_args--; + if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cache_size)) != 0)) kw_args--; #line 639 "root_numpy/src/tree.pyx" else { @@ -36858,7 +36712,7 @@ static PyObject *__pyx_pf_13_librootnumpy_14root2array_fromtree(CYTHON_UNUSED Py */ #line 643 "root_numpy/src/tree.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_tree); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(2, 643, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_tree); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(2, 643, __pyx_L1_error) #line 643 "root_numpy/src/tree.pyx" __pyx_v_rtree = ((TTree *)__pyx_t_1); @@ -37069,52 +36923,64 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str Py_ssize_t __pyx_t_7; #line 651 "root_numpy/src/tree.pyx" - unsigned int __pyx_t_8; + Py_ssize_t __pyx_t_8; #line 651 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_9 = NULL; + unsigned int __pyx_t_9; #line 651 "root_numpy/src/tree.pyx" PyObject *__pyx_t_10 = NULL; #line 651 "root_numpy/src/tree.pyx" - PyObject *(*__pyx_t_11)(PyObject *); + PyObject *__pyx_t_11 = NULL; #line 651 "root_numpy/src/tree.pyx" - int __pyx_t_12; + PyObject *(*__pyx_t_12)(PyObject *); #line 651 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_13 = NULL; + int __pyx_t_13; #line 651 "root_numpy/src/tree.pyx" PyObject *__pyx_t_14 = NULL; #line 651 "root_numpy/src/tree.pyx" - __pyx_t_13_librootnumpy_SIZE_t __pyx_t_15; + PyObject *__pyx_t_15 = NULL; #line 651 "root_numpy/src/tree.pyx" __pyx_t_13_librootnumpy_SIZE_t __pyx_t_16; #line 651 "root_numpy/src/tree.pyx" - unsigned int __pyx_t_17; + __pyx_t_13_librootnumpy_SIZE_t __pyx_t_17; #line 651 "root_numpy/src/tree.pyx" - size_t __pyx_t_18; + __pyx_t_13_librootnumpy_SIZE_t __pyx_t_18; #line 651 "root_numpy/src/tree.pyx" - int __pyx_t_19; + unsigned int __pyx_t_19; #line 651 "root_numpy/src/tree.pyx" - char const *__pyx_t_20; + unsigned int __pyx_t_20; #line 651 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_21 = NULL; + std::vector<__pyx_t_13_librootnumpy_NP2ROOTConverter *> ::size_type __pyx_t_21; #line 651 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_22 = NULL; + std::vector<__pyx_t_13_librootnumpy_NP2ROOTConverter *> ::size_type __pyx_t_22; #line 651 "root_numpy/src/tree.pyx" - PyObject *__pyx_t_23 = NULL; + int __pyx_t_23; + +#line 651 "root_numpy/src/tree.pyx" + char const *__pyx_t_24; + +#line 651 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_25 = NULL; + +#line 651 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_26 = NULL; + +#line 651 "root_numpy/src/tree.pyx" + PyObject *__pyx_t_27 = NULL; #line 651 "root_numpy/src/tree.pyx" __Pyx_RefNannySetupContext("array2tree", 0); @@ -37336,13 +37202,16 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str */ #line 673 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyObject_Length(__pyx_v_fieldnames); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(2, 673, __pyx_L7_error) + __pyx_t_7 = PyObject_Length(__pyx_v_fieldnames); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(2, 673, __pyx_L7_error) + +#line 673 "root_numpy/src/tree.pyx" + __pyx_t_8 = __pyx_t_7; #line 673 "root_numpy/src/tree.pyx" - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { + for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { #line 673 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_8; + __pyx_v_icol = __pyx_t_9; /* "root_numpy/src/tree.pyx":674 * # Determine the structure @@ -37373,7 +37242,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str */ #line 676 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyObject_GetItem(__pyx_v_fields, __pyx_v_fieldname); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 676, __pyx_L7_error) + __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_fields, __pyx_v_fieldname); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 676, __pyx_L7_error) #line 676 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -37385,19 +37254,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str PyObject* sequence = __pyx_t_5; #line 676 "root_numpy/src/tree.pyx" - #if !CYTHON_COMPILING_IN_PYPY - -#line 676 "root_numpy/src/tree.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 676 "root_numpy/src/tree.pyx" - #else - -#line 676 "root_numpy/src/tree.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 676 "root_numpy/src/tree.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 676 "root_numpy/src/tree.pyx" if (unlikely(size != 2)) { @@ -37424,7 +37281,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); #line 676 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1); #line 676 "root_numpy/src/tree.pyx" } else { @@ -37433,7 +37290,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str __pyx_t_6 = PyList_GET_ITEM(sequence, 0); #line 676 "root_numpy/src/tree.pyx" - __pyx_t_9 = PyList_GET_ITEM(sequence, 1); + __pyx_t_10 = PyList_GET_ITEM(sequence, 1); #line 676 "root_numpy/src/tree.pyx" } @@ -37442,7 +37299,7 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str __Pyx_INCREF(__pyx_t_6); #line 676 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_10); #line 676 "root_numpy/src/tree.pyx" #else @@ -37454,10 +37311,10 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str __Pyx_GOTREF(__pyx_t_6); #line 676 "root_numpy/src/tree.pyx" - __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 676, __pyx_L7_error) + __pyx_t_10 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 676, __pyx_L7_error) #line 676 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 676 "root_numpy/src/tree.pyx" #endif @@ -37472,49 +37329,49 @@ static TTree *__pyx_f_13_librootnumpy_array2tree(PyArrayObject *__pyx_v_arr, str Py_ssize_t index = -1; #line 676 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 676, __pyx_L7_error) + __pyx_t_11 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 676, __pyx_L7_error) #line 676 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_11); #line 676 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 676 "root_numpy/src/tree.pyx" - __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext; - index = 0; __pyx_t_6 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_6)) + __pyx_t_12 = Py_TYPE(__pyx_t_11)->tp_iternext; + index = 0; __pyx_t_6 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_6)) #line 676 "root_numpy/src/tree.pyx" -goto __pyx_L17_unpacking_failed; +goto __pyx_L15_unpacking_failed; #line 676 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_6); - index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) + index = 1; __pyx_t_10 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_10)) #line 676 "root_numpy/src/tree.pyx" -goto __pyx_L17_unpacking_failed; +goto __pyx_L15_unpacking_failed; #line 676 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 676 "root_numpy/src/tree.pyx" - if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(2, 676, __pyx_L7_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_11), 2) < 0) __PYX_ERR(2, 676, __pyx_L7_error) #line 676 "root_numpy/src/tree.pyx" - __pyx_t_11 = NULL; + __pyx_t_12 = NULL; #line 676 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 676 "root_numpy/src/tree.pyx" - goto __pyx_L18_unpacking_done; + goto __pyx_L16_unpacking_done; #line 676 "root_numpy/src/tree.pyx" - __pyx_L17_unpacking_failed:; + __pyx_L15_unpacking_failed:; #line 676 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 676 "root_numpy/src/tree.pyx" - __pyx_t_11 = NULL; + __pyx_t_12 = NULL; #line 676 "root_numpy/src/tree.pyx" if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); @@ -37523,16 +37380,16 @@ goto __pyx_L17_unpacking_failed; __PYX_ERR(2, 676, __pyx_L7_error) #line 676 "root_numpy/src/tree.pyx" - __pyx_L18_unpacking_done:; + __pyx_L16_unpacking_done:; #line 676 "root_numpy/src/tree.pyx" } #line 676 "root_numpy/src/tree.pyx" - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 676, __pyx_L7_error) + __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 676, __pyx_L7_error) #line 676 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 676 "root_numpy/src/tree.pyx" __Pyx_XDECREF_SET(__pyx_v_dtype, __pyx_t_6); @@ -37541,7 +37398,7 @@ goto __pyx_L17_unpacking_failed; __pyx_t_6 = 0; #line 676 "root_numpy/src/tree.pyx" - __pyx_v_roffset = __pyx_t_12; + __pyx_v_roffset = __pyx_t_13; /* "root_numpy/src/tree.pyx":677 * # roffset is an offset of particular field in each record @@ -37629,7 +37486,7 @@ goto __pyx_L17_unpacking_failed; */ #line 678 "root_numpy/src/tree.pyx" - goto __pyx_L19; + goto __pyx_L17; #line 678 "root_numpy/src/tree.pyx" } @@ -37646,19 +37503,19 @@ goto __pyx_L17_unpacking_failed; /*else*/ { #line 682 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 682, __pyx_L7_error) + __pyx_t_10 = __Pyx_GetModuleGlobalName(__pyx_n_s_warnings); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 682, __pyx_L7_error) #line 682 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 682 "root_numpy/src/tree.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_warn); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 682, __pyx_L7_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_warn); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 682, __pyx_L7_error) #line 682 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_6); #line 682 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; /* "root_numpy/src/tree.pyx":683 * else: @@ -37669,34 +37526,34 @@ goto __pyx_L17_unpacking_failed; */ #line 683 "root_numpy/src/tree.pyx" - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_converter_for_r_is_not_implement, __pyx_n_s_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 683, __pyx_L7_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_converter_for_r_is_not_implement, __pyx_n_s_format); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 683, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_11); #line 683 "root_numpy/src/tree.pyx" - __pyx_t_13 = NULL; + __pyx_t_14 = NULL; #line 683 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { #line 683 "root_numpy/src/tree.pyx" - __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_10); + __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_11); #line 683 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_13)) { + if (likely(__pyx_t_14)) { #line 683 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11); #line 683 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_13); + __Pyx_INCREF(__pyx_t_14); #line 683 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_10, function); + __Pyx_DECREF_SET(__pyx_t_11, function); #line 683 "root_numpy/src/tree.pyx" } @@ -37705,13 +37562,13 @@ goto __pyx_L17_unpacking_failed; } #line 683 "root_numpy/src/tree.pyx" - if (!__pyx_t_13) { + if (!__pyx_t_14) { #line 683 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_v_dtype); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 683, __pyx_L7_error) + __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_v_dtype); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 683, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 683 "root_numpy/src/tree.pyx" } else { @@ -37720,19 +37577,19 @@ goto __pyx_L17_unpacking_failed; #if CYTHON_FAST_PYCALL #line 683 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_10)) { + if (PyFunction_Check(__pyx_t_11)) { #line 683 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_13, __pyx_v_dtype}; + PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_dtype}; #line 683 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 683, __pyx_L7_error) + __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 683, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 683 "root_numpy/src/tree.pyx" } else @@ -37744,19 +37601,19 @@ goto __pyx_L17_unpacking_failed; #if CYTHON_FAST_PYCCALL #line 683 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) { #line 683 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_13, __pyx_v_dtype}; + PyObject *__pyx_temp[2] = {__pyx_t_14, __pyx_v_dtype}; #line 683 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 683, __pyx_L7_error) + __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 683, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 683 "root_numpy/src/tree.pyx" } else @@ -37768,13 +37625,13 @@ goto __pyx_L17_unpacking_failed; { #line 683 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 683, __pyx_L7_error) + __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 683, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_15); #line 683 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; + __Pyx_GIVEREF(__pyx_t_14); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_14); __pyx_t_14 = NULL; #line 683 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_v_dtype); @@ -37783,16 +37640,16 @@ goto __pyx_L17_unpacking_failed; __Pyx_GIVEREF(__pyx_v_dtype); #line 683 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_v_dtype); + PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_v_dtype); #line 683 "root_numpy/src/tree.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 683, __pyx_L7_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_15, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 683, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_10); #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; #line 683 "root_numpy/src/tree.pyx" } @@ -37801,25 +37658,25 @@ goto __pyx_L17_unpacking_failed; } #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 683 "root_numpy/src/tree.pyx" - __pyx_t_10 = NULL; + __pyx_t_11 = NULL; #line 683 "root_numpy/src/tree.pyx" if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { #line 683 "root_numpy/src/tree.pyx" - __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6); + __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_6); #line 683 "root_numpy/src/tree.pyx" - if (likely(__pyx_t_10)) { + if (likely(__pyx_t_11)) { #line 683 "root_numpy/src/tree.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); #line 683 "root_numpy/src/tree.pyx" - __Pyx_INCREF(__pyx_t_10); + __Pyx_INCREF(__pyx_t_11); #line 683 "root_numpy/src/tree.pyx" __Pyx_INCREF(function); @@ -37834,13 +37691,13 @@ goto __pyx_L17_unpacking_failed; } #line 683 "root_numpy/src/tree.pyx" - if (!__pyx_t_10) { + if (!__pyx_t_11) { #line 683 "root_numpy/src/tree.pyx" - __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 682, __pyx_L7_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 682, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 683 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -37855,19 +37712,19 @@ goto __pyx_L17_unpacking_failed; if (PyFunction_Check(__pyx_t_6)) { #line 683 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_10}; #line 683 "root_numpy/src/tree.pyx" __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 682, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 683 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 683 "root_numpy/src/tree.pyx" } else @@ -37882,19 +37739,19 @@ goto __pyx_L17_unpacking_failed; if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { #line 683 "root_numpy/src/tree.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_t_9}; + PyObject *__pyx_temp[2] = {__pyx_t_11, __pyx_t_10}; #line 683 "root_numpy/src/tree.pyx" __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 682, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 683 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; #line 683 "root_numpy/src/tree.pyx" } else @@ -37906,31 +37763,31 @@ goto __pyx_L17_unpacking_failed; { #line 683 "root_numpy/src/tree.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 682, __pyx_L7_error) + __pyx_t_15 = PyTuple_New(1+1); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 682, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_15); #line 683 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_10); __pyx_t_10 = NULL; + __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_11); __pyx_t_11 = NULL; #line 683 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_10); #line 683 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_15, 0+1, __pyx_t_10); #line 683 "root_numpy/src/tree.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 683 "root_numpy/src/tree.pyx" - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 682, __pyx_L7_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_15, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 682, __pyx_L7_error) #line 683 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); #line 683 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; #line 683 "root_numpy/src/tree.pyx" } @@ -37948,7 +37805,7 @@ goto __pyx_L17_unpacking_failed; } #line 683 "root_numpy/src/tree.pyx" - __pyx_L19:; + __pyx_L17:; #line 683 "root_numpy/src/tree.pyx" } @@ -37973,13 +37830,16 @@ goto __pyx_L17_unpacking_failed; */ #line 687 "root_numpy/src/tree.pyx" - __pyx_t_15 = __pyx_v_arr_len; + __pyx_t_16 = __pyx_v_arr_len; #line 687 "root_numpy/src/tree.pyx" - for (__pyx_t_16 = 0; __pyx_t_16 < __pyx_t_15; __pyx_t_16+=1) { + __pyx_t_17 = __pyx_t_16; #line 687 "root_numpy/src/tree.pyx" - __pyx_v_idata = __pyx_t_16; + for (__pyx_t_18 = 0; __pyx_t_18 < __pyx_t_17; __pyx_t_18+=1) { + +#line 687 "root_numpy/src/tree.pyx" + __pyx_v_idata = __pyx_t_18; /* "root_numpy/src/tree.pyx":688 * num_cols = converters.size() @@ -38001,13 +37861,16 @@ goto __pyx_L17_unpacking_failed; */ #line 689 "root_numpy/src/tree.pyx" - __pyx_t_8 = __pyx_v_num_cols; + __pyx_t_9 = __pyx_v_num_cols; #line 689 "root_numpy/src/tree.pyx" - for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_8; __pyx_t_17+=1) { + __pyx_t_19 = __pyx_t_9; #line 689 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_17; + for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { + +#line 689 "root_numpy/src/tree.pyx" + __pyx_v_icol = __pyx_t_20; /* "root_numpy/src/tree.pyx":690 * thisrow = np.PyArray_GETPTR1(arr, idata) @@ -38057,7 +37920,7 @@ goto __pyx_L17_unpacking_failed; */ #line 696 "root_numpy/src/tree.pyx" - __pyx_v_tree->SetEntries(-1LL); + (void)(__pyx_v_tree->SetEntries(-1LL)); /* "root_numpy/src/tree.pyx":668 * tree = new TTree(name.c_str(), name.c_str()) @@ -38080,25 +37943,22 @@ goto __pyx_L17_unpacking_failed; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; #line 668 "root_numpy/src/tree.pyx" - goto __pyx_L14_try_end; + goto __pyx_L12_try_end; #line 668 "root_numpy/src/tree.pyx" __pyx_L7_error:; #line 668 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 668 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 668 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; #line 668 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - -#line 668 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; #line 668 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -38121,7 +37981,7 @@ goto __pyx_L17_unpacking_failed; __Pyx_AddTraceback("_librootnumpy.array2tree", __pyx_clineno, __pyx_lineno, __pyx_filename); #line 698 "root_numpy/src/tree.pyx" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_14) < 0) __PYX_ERR(2, 698, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_15) < 0) __PYX_ERR(2, 698, __pyx_L9_except_error) #line 698 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -38130,7 +37990,7 @@ goto __pyx_L17_unpacking_failed; __Pyx_GOTREF(__pyx_t_6); #line 698 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_14); + __Pyx_GOTREF(__pyx_t_15); /* "root_numpy/src/tree.pyx":699 * @@ -38183,11 +38043,11 @@ goto __pyx_L17_unpacking_failed; __Pyx_GIVEREF(__pyx_t_6); #line 701 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_14); + __Pyx_XGIVEREF(__pyx_t_15); #line 701 "root_numpy/src/tree.pyx" - __Pyx_ErrRestoreWithState(__pyx_t_5, __pyx_t_6, __pyx_t_14); - __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_14 = 0; + __Pyx_ErrRestoreWithState(__pyx_t_5, __pyx_t_6, __pyx_t_15); + __pyx_t_5 = 0; __pyx_t_6 = 0; __pyx_t_15 = 0; #line 701 "root_numpy/src/tree.pyx" @@ -38208,9 +38068,6 @@ goto __pyx_L17_unpacking_failed; * fields = arr.dtype.fields */ -#line 668 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign - #line 668 "root_numpy/src/tree.pyx" __Pyx_XGIVEREF(__pyx_t_2); @@ -38227,7 +38084,7 @@ goto __pyx_L17_unpacking_failed; goto __pyx_L5_error; #line 668 "root_numpy/src/tree.pyx" - __pyx_L14_try_end:; + __pyx_L12_try_end:; #line 668 "root_numpy/src/tree.pyx" } @@ -38250,13 +38107,16 @@ goto __pyx_L17_unpacking_failed; /*normal exit:*/{ #line 704 "root_numpy/src/tree.pyx" - __pyx_t_18 = __pyx_v_converters.size(); + __pyx_t_21 = __pyx_v_converters.size(); #line 704 "root_numpy/src/tree.pyx" - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_18; __pyx_t_8+=1) { + __pyx_t_22 = __pyx_t_21; #line 704 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_8; + for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_22; __pyx_t_9+=1) { + +#line 704 "root_numpy/src/tree.pyx" + __pyx_v_icol = __pyx_t_9; /* "root_numpy/src/tree.pyx":705 * finally: @@ -38278,6 +38138,9 @@ goto __pyx_L17_unpacking_failed; #line 705 "root_numpy/src/tree.pyx" } +#line 705 "root_numpy/src/tree.pyx" + __pyx_L5_error:; + #line 705 "root_numpy/src/tree.pyx" /*exception exit:*/{ @@ -38285,23 +38148,20 @@ goto __pyx_L17_unpacking_failed; __Pyx_PyThreadState_declare #line 705 "root_numpy/src/tree.pyx" - __pyx_L5_error:; + __Pyx_PyThreadState_assign #line 705 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; + __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; #line 705 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; #line 705 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; #line 705 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; -#line 705 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - #line 705 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -38309,10 +38169,10 @@ goto __pyx_L17_unpacking_failed; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; #line 705 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; #line 705 "root_numpy/src/tree.pyx" - if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_21, &__pyx_t_22, &__pyx_t_23); + if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_25, &__pyx_t_26, &__pyx_t_27); #line 705 "root_numpy/src/tree.pyx" if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0)) __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2); @@ -38327,16 +38187,16 @@ goto __pyx_L17_unpacking_failed; __Pyx_XGOTREF(__pyx_t_2); #line 705 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_21); + __Pyx_XGOTREF(__pyx_t_25); #line 705 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_22); + __Pyx_XGOTREF(__pyx_t_26); #line 705 "root_numpy/src/tree.pyx" - __Pyx_XGOTREF(__pyx_t_23); + __Pyx_XGOTREF(__pyx_t_27); #line 705 "root_numpy/src/tree.pyx" - __pyx_t_12 = __pyx_lineno; __pyx_t_19 = __pyx_clineno; __pyx_t_20 = __pyx_filename; + __pyx_t_13 = __pyx_lineno; __pyx_t_23 = __pyx_clineno; __pyx_t_24 = __pyx_filename; #line 705 "root_numpy/src/tree.pyx" { @@ -38350,13 +38210,16 @@ goto __pyx_L17_unpacking_failed; */ #line 704 "root_numpy/src/tree.pyx" - __pyx_t_18 = __pyx_v_converters.size(); + __pyx_t_21 = __pyx_v_converters.size(); + +#line 704 "root_numpy/src/tree.pyx" + __pyx_t_22 = __pyx_t_21; #line 704 "root_numpy/src/tree.pyx" - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_18; __pyx_t_8+=1) { + for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_22; __pyx_t_9+=1) { #line 704 "root_numpy/src/tree.pyx" - __pyx_v_icol = __pyx_t_8; + __pyx_v_icol = __pyx_t_9; /* "root_numpy/src/tree.pyx":705 * finally: @@ -38375,23 +38238,20 @@ goto __pyx_L17_unpacking_failed; #line 705 "root_numpy/src/tree.pyx" } -#line 705 "root_numpy/src/tree.pyx" - __Pyx_PyThreadState_assign - #line 705 "root_numpy/src/tree.pyx" if (PY_MAJOR_VERSION >= 3) { #line 705 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_21); + __Pyx_XGIVEREF(__pyx_t_25); #line 705 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_22); + __Pyx_XGIVEREF(__pyx_t_26); #line 705 "root_numpy/src/tree.pyx" - __Pyx_XGIVEREF(__pyx_t_23); + __Pyx_XGIVEREF(__pyx_t_27); #line 705 "root_numpy/src/tree.pyx" - __Pyx_ExceptionReset(__pyx_t_21, __pyx_t_22, __pyx_t_23); + __Pyx_ExceptionReset(__pyx_t_25, __pyx_t_26, __pyx_t_27); #line 705 "root_numpy/src/tree.pyx" } @@ -38409,10 +38269,10 @@ goto __pyx_L17_unpacking_failed; __Pyx_ErrRestore(__pyx_t_4, __pyx_t_3, __pyx_t_2); #line 705 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; + __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; #line 705 "root_numpy/src/tree.pyx" - __pyx_lineno = __pyx_t_12; __pyx_clineno = __pyx_t_19; __pyx_filename = __pyx_t_20; + __pyx_lineno = __pyx_t_13; __pyx_clineno = __pyx_t_23; __pyx_filename = __pyx_t_24; #line 705 "root_numpy/src/tree.pyx" goto __pyx_L1_error; @@ -38474,18 +38334,18 @@ goto __pyx_L17_unpacking_failed; #line 651 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_6); -#line 651 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_9); - #line 651 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_10); #line 651 "root_numpy/src/tree.pyx" - __Pyx_XDECREF(__pyx_t_13); + __Pyx_XDECREF(__pyx_t_11); #line 651 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_14); +#line 651 "root_numpy/src/tree.pyx" + __Pyx_XDECREF(__pyx_t_15); + #line 651 "root_numpy/src/tree.pyx" __Pyx_AddTraceback("_librootnumpy.array2tree", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -38586,13 +38446,22 @@ static PyObject *__pyx_pw_13_librootnumpy_17array2tree_toCObj(PyObject *__pyx_se case 3: #line 711 "root_numpy/src/tree.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 2: #line 711 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 711 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 711 "root_numpy/src/tree.pyx" case 0: break; default: @@ -38612,11 +38481,14 @@ goto __pyx_L5_argtuple_error; case 0: #line 711 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_arr)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_arr)) != 0)) kw_args--; else #line 711 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 711 "root_numpy/src/tree.pyx" case 1: @@ -38624,7 +38496,7 @@ goto __pyx_L5_argtuple_error; if (kw_args > 0) { #line 711 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name); #line 711 "root_numpy/src/tree.pyx" if (value) { values[1] = value; kw_args--; } @@ -38632,6 +38504,9 @@ goto __pyx_L5_argtuple_error; #line 711 "root_numpy/src/tree.pyx" } +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 711 "root_numpy/src/tree.pyx" case 2: @@ -38639,7 +38514,7 @@ goto __pyx_L5_argtuple_error; if (kw_args > 0) { #line 711 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_tree); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tree); #line 711 "root_numpy/src/tree.pyx" if (value) { values[2] = value; kw_args--; } @@ -38667,9 +38542,15 @@ goto __pyx_L5_argtuple_error; case 3: #line 711 "root_numpy/src/tree.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 2: #line 711 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 711 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 711 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); @@ -38830,7 +38711,7 @@ static PyObject *__pyx_pf_13_librootnumpy_16array2tree_toCObj(CYTHON_UNUSED PyOb */ #line 715 "root_numpy/src/tree.pyx" - __pyx_t_3 = PyCObject_AsVoidPtr(__pyx_v_tree); if (unlikely(__pyx_t_3 == NULL && PyErr_Occurred())) __PYX_ERR(2, 715, __pyx_L1_error) + __pyx_t_3 = PyCObject_AsVoidPtr(__pyx_v_tree); if (unlikely(__pyx_t_3 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(2, 715, __pyx_L1_error) #line 715 "root_numpy/src/tree.pyx" __pyx_v_intree = ((TTree *)__pyx_t_3); @@ -39015,16 +38896,28 @@ static PyObject *__pyx_pw_13_librootnumpy_19array2root(PyObject *__pyx_self, PyO case 4: #line 720 "root_numpy/src/tree.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 3: #line 720 "root_numpy/src/tree.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 2: #line 720 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 1: #line 720 "root_numpy/src/tree.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 720 "root_numpy/src/tree.pyx" case 0: break; default: @@ -39044,16 +38937,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 720 "root_numpy/src/tree.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_arr)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_arr)) != 0)) kw_args--; else #line 720 "root_numpy/src/tree.pyx" goto __pyx_L5_argtuple_error; +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 720 "root_numpy/src/tree.pyx" case 1: #line 720 "root_numpy/src/tree.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--; #line 720 "root_numpy/src/tree.pyx" else { @@ -39064,6 +38960,9 @@ __PYX_ERR(2, 720, __pyx_L3_error) #line 720 "root_numpy/src/tree.pyx" } +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 720 "root_numpy/src/tree.pyx" case 2: @@ -39071,7 +38970,7 @@ __PYX_ERR(2, 720, __pyx_L3_error) if (kw_args > 0) { #line 720 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_treename); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_treename); #line 720 "root_numpy/src/tree.pyx" if (value) { values[2] = value; kw_args--; } @@ -39079,6 +38978,9 @@ __PYX_ERR(2, 720, __pyx_L3_error) #line 720 "root_numpy/src/tree.pyx" } +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; + #line 720 "root_numpy/src/tree.pyx" case 3: @@ -39086,7 +38988,7 @@ __PYX_ERR(2, 720, __pyx_L3_error) if (kw_args > 0) { #line 720 "root_numpy/src/tree.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_mode); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mode); #line 720 "root_numpy/src/tree.pyx" if (value) { values[3] = value; kw_args--; } @@ -39114,9 +39016,15 @@ __PYX_ERR(2, 720, __pyx_L3_error) case 4: #line 720 "root_numpy/src/tree.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 3: #line 720 "root_numpy/src/tree.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 720 "root_numpy/src/tree.pyx" + CYTHON_FALLTHROUGH; case 2: #line 720 "root_numpy/src/tree.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -39273,7 +39181,7 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __pyx_t_3 = ((__pyx_v_rfile == NULL) != 0); #line 722 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":723 * cdef TFile* rfile = Open(filename, mode) @@ -39419,35 +39327,20 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; #line 723 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 723, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 723, __pyx_L1_error) #line 723 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_5); #line 723 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); - -#line 723 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); - -#line 723 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; - -#line 723 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 723, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 723 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_Raise(__pyx_t_5, 0, 0, 0); #line 723 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 723 "root_numpy/src/tree.pyx" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - -#line 723 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - #line 723 "root_numpy/src/tree.pyx" __PYX_ERR(2, 723, __pyx_L1_error) @@ -39474,7 +39367,7 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __pyx_t_3 = ((!(__pyx_v_rfile->IsWritable() != 0)) != 0); #line 724 "root_numpy/src/tree.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/src/tree.pyx":725 * raise IOError("cannot open file {0}".format(filename)) @@ -39485,25 +39378,25 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ */ #line 725 "root_numpy/src/tree.pyx" - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_file_0_is_not_writable, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 725, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_file_0_is_not_writable, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) #line 725 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); + __Pyx_GOTREF(__pyx_t_4); #line 725 "root_numpy/src/tree.pyx" __pyx_t_7 = NULL; #line 725 "root_numpy/src/tree.pyx" - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { #line 725 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); #line 725 "root_numpy/src/tree.pyx" if (likely(__pyx_t_7)) { #line 725 "root_numpy/src/tree.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); #line 725 "root_numpy/src/tree.pyx" __Pyx_INCREF(__pyx_t_7); @@ -39512,7 +39405,7 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(function); #line 725 "root_numpy/src/tree.pyx" - __Pyx_DECREF_SET(__pyx_t_5, function); + __Pyx_DECREF_SET(__pyx_t_4, function); #line 725 "root_numpy/src/tree.pyx" } @@ -39524,10 +39417,10 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ if (!__pyx_t_7) { #line 725 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_filename); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_filename); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 725, __pyx_L1_error) #line 725 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_5); #line 725 "root_numpy/src/tree.pyx" } else { @@ -39536,19 +39429,19 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ #if CYTHON_FAST_PYCALL #line 725 "root_numpy/src/tree.pyx" - if (PyFunction_Check(__pyx_t_5)) { + if (PyFunction_Check(__pyx_t_4)) { #line 725 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_filename}; #line 725 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 725, __pyx_L1_error) #line 725 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 725 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_5); #line 725 "root_numpy/src/tree.pyx" } else @@ -39560,19 +39453,19 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ #if CYTHON_FAST_PYCCALL #line 725 "root_numpy/src/tree.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { + if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { #line 725 "root_numpy/src/tree.pyx" PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_filename}; #line 725 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 725, __pyx_L1_error) #line 725 "root_numpy/src/tree.pyx" __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; #line 725 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_5); #line 725 "root_numpy/src/tree.pyx" } else @@ -39602,10 +39495,10 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_filename); #line 725 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 725, __pyx_L1_error) #line 725 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_5); #line 725 "root_numpy/src/tree.pyx" __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -39617,25 +39510,10 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ } #line 725 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - -#line 725 "root_numpy/src/tree.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 725, __pyx_L1_error) - -#line 725 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_5); - -#line 725 "root_numpy/src/tree.pyx" - __Pyx_GIVEREF(__pyx_t_4); - -#line 725 "root_numpy/src/tree.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); - -#line 725 "root_numpy/src/tree.pyx" - __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 725 "root_numpy/src/tree.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_IOError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IOError, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 725, __pyx_L1_error) #line 725 "root_numpy/src/tree.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -39718,7 +39596,7 @@ static PyObject *__pyx_pf_13_librootnumpy_18array2root(CYTHON_UNUSED PyObject *_ __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_treename); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(2, 729, __pyx_L1_error) #line 729 "root_numpy/src/tree.pyx" - __pyx_v_tree->Write(__pyx_t_2, TObject::kOverwrite); + (void)(__pyx_v_tree->Write(__pyx_t_2, TObject::kOverwrite)); /* "root_numpy/src/tree.pyx":730 * tree = array2tree(arr, name=treename, tree=tree) @@ -39836,7 +39714,7 @@ static CYTHON_INLINE PyArrayObject *__pyx_f_13_librootnumpy_tonumpyarray(void *_ #ifdef WITH_THREAD PyGILState_STATE #line 4 "root_numpy/src/array.pyx" -__pyx_gilstate_save = PyGILState_Ensure(); +__pyx_gilstate_save = __Pyx_PyGILState_Ensure(); #line 4 "root_numpy/src/array.pyx" #endif @@ -39923,7 +39801,7 @@ __pyx_gilstate_save = PyGILState_Ensure(); #ifdef WITH_THREAD #line 4 "root_numpy/src/array.pyx" - PyGILState_Release(__pyx_gilstate_save); + __Pyx_PyGILState_Release(__pyx_gilstate_save); #line 4 "root_numpy/src/array.pyx" #endif @@ -40017,7 +39895,7 @@ static PyObject *__pyx_pf_13_librootnumpy_20array_d(CYTHON_UNUSED PyObject *__py */ #line 11 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 11, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 11, __pyx_L1_error) #line 11 "root_numpy/src/array.pyx" __pyx_v__arr = ((TArrayD *)__pyx_t_1); @@ -40172,7 +40050,7 @@ static PyObject *__pyx_pf_13_librootnumpy_22array_f(CYTHON_UNUSED PyObject *__py */ #line 16 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 16, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 16, __pyx_L1_error) #line 16 "root_numpy/src/array.pyx" __pyx_v__arr = ((TArrayF *)__pyx_t_1); @@ -40327,7 +40205,7 @@ static PyObject *__pyx_pf_13_librootnumpy_24array_l(CYTHON_UNUSED PyObject *__py */ #line 21 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 21, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 21, __pyx_L1_error) #line 21 "root_numpy/src/array.pyx" __pyx_v__arr = ((TArrayL *)__pyx_t_1); @@ -40482,7 +40360,7 @@ static PyObject *__pyx_pf_13_librootnumpy_26array_i(CYTHON_UNUSED PyObject *__py */ #line 26 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 26, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 26, __pyx_L1_error) #line 26 "root_numpy/src/array.pyx" __pyx_v__arr = ((TArrayI *)__pyx_t_1); @@ -40637,7 +40515,7 @@ static PyObject *__pyx_pf_13_librootnumpy_28array_s(CYTHON_UNUSED PyObject *__py */ #line 31 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 31, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 31, __pyx_L1_error) #line 31 "root_numpy/src/array.pyx" __pyx_v__arr = ((TArrayS *)__pyx_t_1); @@ -40792,7 +40670,7 @@ static PyObject *__pyx_pf_13_librootnumpy_30array_c(CYTHON_UNUSED PyObject *__py */ #line 36 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 36, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_arr); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 36, __pyx_L1_error) #line 36 "root_numpy/src/array.pyx" __pyx_v__arr = ((TArrayC *)__pyx_t_1); @@ -40953,7 +40831,7 @@ static PyObject *__pyx_pf_13_librootnumpy_32array_h1c(CYTHON_UNUSED PyObject *__ */ #line 41 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 41, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 41, __pyx_L1_error) #line 41 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH1C *)__pyx_t_1); @@ -41143,7 +41021,7 @@ static PyObject *__pyx_pf_13_librootnumpy_34array_h2c(CYTHON_UNUSED PyObject *__ */ #line 47 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 47, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 47, __pyx_L1_error) #line 47 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH2C *)__pyx_t_1); @@ -41333,7 +41211,7 @@ static PyObject *__pyx_pf_13_librootnumpy_36array_h3c(CYTHON_UNUSED PyObject *__ */ #line 53 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 53, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 53, __pyx_L1_error) #line 53 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH3C *)__pyx_t_1); @@ -41495,10 +41373,16 @@ static PyObject *__pyx_pw_13_librootnumpy_39h1d_array(PyObject *__pyx_self, PyOb case 2: #line 62 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 62 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 62 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 62 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 62 "root_numpy/src/array.pyx" case 0: break; default: @@ -41518,16 +41402,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 62 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 62 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 62 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 62 "root_numpy/src/array.pyx" case 1: #line 62 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 62 "root_numpy/src/array.pyx" else { @@ -41706,7 +41593,7 @@ static PyObject *__pyx_pf_13_librootnumpy_38h1d_array(CYTHON_UNUSED PyObject *__ */ #line 63 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 63, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 63, __pyx_L1_error) #line 63 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH1D *)__pyx_t_1); @@ -41886,10 +41773,16 @@ static PyObject *__pyx_pw_13_librootnumpy_41h2d_array(PyObject *__pyx_self, PyOb case 2: #line 70 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 70 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 70 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 70 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 70 "root_numpy/src/array.pyx" case 0: break; default: @@ -41909,16 +41802,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 70 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 70 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 70 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 70 "root_numpy/src/array.pyx" case 1: #line 70 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 70 "root_numpy/src/array.pyx" else { @@ -42097,7 +41993,7 @@ static PyObject *__pyx_pf_13_librootnumpy_40h2d_array(CYTHON_UNUSED PyObject *__ */ #line 71 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 71, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 71, __pyx_L1_error) #line 71 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH2D *)__pyx_t_1); @@ -42277,10 +42173,16 @@ static PyObject *__pyx_pw_13_librootnumpy_43h3d_array(PyObject *__pyx_self, PyOb case 2: #line 78 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 78 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 78 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 78 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 78 "root_numpy/src/array.pyx" case 0: break; default: @@ -42300,16 +42202,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 78 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 78 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 78 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 78 "root_numpy/src/array.pyx" case 1: #line 78 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 78 "root_numpy/src/array.pyx" else { @@ -42488,7 +42393,7 @@ static PyObject *__pyx_pf_13_librootnumpy_42h3d_array(CYTHON_UNUSED PyObject *__ */ #line 79 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 79, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 79, __pyx_L1_error) #line 79 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH3D *)__pyx_t_1); @@ -42668,10 +42573,16 @@ static PyObject *__pyx_pw_13_librootnumpy_45h1f_array(PyObject *__pyx_self, PyOb case 2: #line 86 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 86 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 86 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 86 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 86 "root_numpy/src/array.pyx" case 0: break; default: @@ -42691,16 +42602,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 86 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 86 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 86 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 86 "root_numpy/src/array.pyx" case 1: #line 86 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 86 "root_numpy/src/array.pyx" else { @@ -42879,7 +42793,7 @@ static PyObject *__pyx_pf_13_librootnumpy_44h1f_array(CYTHON_UNUSED PyObject *__ */ #line 87 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 87, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 87, __pyx_L1_error) #line 87 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH1F *)__pyx_t_1); @@ -43059,10 +42973,16 @@ static PyObject *__pyx_pw_13_librootnumpy_47h2f_array(PyObject *__pyx_self, PyOb case 2: #line 94 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 94 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 94 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 94 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 94 "root_numpy/src/array.pyx" case 0: break; default: @@ -43082,16 +43002,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 94 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 94 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 94 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 94 "root_numpy/src/array.pyx" case 1: #line 94 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 94 "root_numpy/src/array.pyx" else { @@ -43270,7 +43193,7 @@ static PyObject *__pyx_pf_13_librootnumpy_46h2f_array(CYTHON_UNUSED PyObject *__ */ #line 95 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 95, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 95, __pyx_L1_error) #line 95 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH2F *)__pyx_t_1); @@ -43450,10 +43373,16 @@ static PyObject *__pyx_pw_13_librootnumpy_49h3f_array(PyObject *__pyx_self, PyOb case 2: #line 102 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 102 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 102 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 102 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 102 "root_numpy/src/array.pyx" case 0: break; default: @@ -43473,16 +43402,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 102 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 102 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 102 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 102 "root_numpy/src/array.pyx" case 1: #line 102 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 102 "root_numpy/src/array.pyx" else { @@ -43661,7 +43593,7 @@ static PyObject *__pyx_pf_13_librootnumpy_48h3f_array(CYTHON_UNUSED PyObject *__ */ #line 103 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 103, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 103, __pyx_L1_error) #line 103 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH3F *)__pyx_t_1); @@ -43841,10 +43773,16 @@ static PyObject *__pyx_pw_13_librootnumpy_51h1i_array(PyObject *__pyx_self, PyOb case 2: #line 110 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 110 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 110 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 110 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 110 "root_numpy/src/array.pyx" case 0: break; default: @@ -43864,16 +43802,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 110 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 110 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 110 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 110 "root_numpy/src/array.pyx" case 1: #line 110 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 110 "root_numpy/src/array.pyx" else { @@ -44052,7 +43993,7 @@ static PyObject *__pyx_pf_13_librootnumpy_50h1i_array(CYTHON_UNUSED PyObject *__ */ #line 111 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 111, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 111, __pyx_L1_error) #line 111 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH1I *)__pyx_t_1); @@ -44232,10 +44173,16 @@ static PyObject *__pyx_pw_13_librootnumpy_53h2i_array(PyObject *__pyx_self, PyOb case 2: #line 118 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 118 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 118 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 118 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 118 "root_numpy/src/array.pyx" case 0: break; default: @@ -44255,16 +44202,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 118 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 118 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 118 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 118 "root_numpy/src/array.pyx" case 1: #line 118 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 118 "root_numpy/src/array.pyx" else { @@ -44443,7 +44393,7 @@ static PyObject *__pyx_pf_13_librootnumpy_52h2i_array(CYTHON_UNUSED PyObject *__ */ #line 119 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 119, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 119, __pyx_L1_error) #line 119 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH2I *)__pyx_t_1); @@ -44623,10 +44573,16 @@ static PyObject *__pyx_pw_13_librootnumpy_55h3i_array(PyObject *__pyx_self, PyOb case 2: #line 126 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 126 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 126 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 126 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 126 "root_numpy/src/array.pyx" case 0: break; default: @@ -44646,16 +44602,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 126 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 126 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 126 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 126 "root_numpy/src/array.pyx" case 1: #line 126 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 126 "root_numpy/src/array.pyx" else { @@ -44834,7 +44793,7 @@ static PyObject *__pyx_pf_13_librootnumpy_54h3i_array(CYTHON_UNUSED PyObject *__ */ #line 127 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 127, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 127, __pyx_L1_error) #line 127 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH3I *)__pyx_t_1); @@ -45014,10 +44973,16 @@ static PyObject *__pyx_pw_13_librootnumpy_57h1s_array(PyObject *__pyx_self, PyOb case 2: #line 134 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 134 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 134 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 134 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 134 "root_numpy/src/array.pyx" case 0: break; default: @@ -45037,16 +45002,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 134 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 134 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 134 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 134 "root_numpy/src/array.pyx" case 1: #line 134 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 134 "root_numpy/src/array.pyx" else { @@ -45225,7 +45193,7 @@ static PyObject *__pyx_pf_13_librootnumpy_56h1s_array(CYTHON_UNUSED PyObject *__ */ #line 135 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 135, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 135, __pyx_L1_error) #line 135 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH1S *)__pyx_t_1); @@ -45405,10 +45373,16 @@ static PyObject *__pyx_pw_13_librootnumpy_59h2s_array(PyObject *__pyx_self, PyOb case 2: #line 142 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 142 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 142 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 142 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 142 "root_numpy/src/array.pyx" case 0: break; default: @@ -45428,16 +45402,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 142 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 142 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 142 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 142 "root_numpy/src/array.pyx" case 1: #line 142 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 142 "root_numpy/src/array.pyx" else { @@ -45616,7 +45593,7 @@ static PyObject *__pyx_pf_13_librootnumpy_58h2s_array(CYTHON_UNUSED PyObject *__ */ #line 143 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 143, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 143, __pyx_L1_error) #line 143 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH2S *)__pyx_t_1); @@ -45796,10 +45773,16 @@ static PyObject *__pyx_pw_13_librootnumpy_61h3s_array(PyObject *__pyx_self, PyOb case 2: #line 150 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 150 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 150 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 150 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 150 "root_numpy/src/array.pyx" case 0: break; default: @@ -45819,16 +45802,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 150 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 150 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 150 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 150 "root_numpy/src/array.pyx" case 1: #line 150 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 150 "root_numpy/src/array.pyx" else { @@ -46007,7 +45993,7 @@ static PyObject *__pyx_pf_13_librootnumpy_60h3s_array(CYTHON_UNUSED PyObject *__ */ #line 151 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 151, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 151, __pyx_L1_error) #line 151 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH3S *)__pyx_t_1); @@ -46187,10 +46173,16 @@ static PyObject *__pyx_pw_13_librootnumpy_63h1c_array(PyObject *__pyx_self, PyOb case 2: #line 158 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 158 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 158 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 158 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 158 "root_numpy/src/array.pyx" case 0: break; default: @@ -46210,16 +46202,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 158 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 158 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 158 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 158 "root_numpy/src/array.pyx" case 1: #line 158 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 158 "root_numpy/src/array.pyx" else { @@ -46398,7 +46393,7 @@ static PyObject *__pyx_pf_13_librootnumpy_62h1c_array(CYTHON_UNUSED PyObject *__ */ #line 159 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 159, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 159, __pyx_L1_error) #line 159 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH1C *)__pyx_t_1); @@ -46578,10 +46573,16 @@ static PyObject *__pyx_pw_13_librootnumpy_65h2c_array(PyObject *__pyx_self, PyOb case 2: #line 166 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 166 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 166 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 166 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 166 "root_numpy/src/array.pyx" case 0: break; default: @@ -46601,16 +46602,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 166 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 166 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 166 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 166 "root_numpy/src/array.pyx" case 1: #line 166 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 166 "root_numpy/src/array.pyx" else { @@ -46789,7 +46793,7 @@ static PyObject *__pyx_pf_13_librootnumpy_64h2c_array(CYTHON_UNUSED PyObject *__ */ #line 167 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 167, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 167, __pyx_L1_error) #line 167 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH2C *)__pyx_t_1); @@ -46969,10 +46973,16 @@ static PyObject *__pyx_pw_13_librootnumpy_67h3c_array(PyObject *__pyx_self, PyOb case 2: #line 174 "root_numpy/src/array.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 174 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; case 1: #line 174 "root_numpy/src/array.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 174 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 174 "root_numpy/src/array.pyx" case 0: break; default: @@ -46992,16 +47002,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 174 "root_numpy/src/array.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root_hist)) != 0)) kw_args--; else #line 174 "root_numpy/src/array.pyx" goto __pyx_L5_argtuple_error; +#line 174 "root_numpy/src/array.pyx" + CYTHON_FALLTHROUGH; + #line 174 "root_numpy/src/array.pyx" case 1: #line 174 "root_numpy/src/array.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 174 "root_numpy/src/array.pyx" else { @@ -47180,7 +47193,7 @@ static PyObject *__pyx_pf_13_librootnumpy_66h3c_array(CYTHON_UNUSED PyObject *__ */ #line 175 "root_numpy/src/array.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(3, 175, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 175, __pyx_L1_error) #line 175 "root_numpy/src/array.pyx" __pyx_v__hist = ((TH3C *)__pyx_t_1); @@ -47433,7 +47446,7 @@ static PyObject *__pyx_pf_13_librootnumpy_68matrix_d(CYTHON_UNUSED PyObject *__p */ #line 7 "root_numpy/src/matrix.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_mat); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(4, 7, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_mat); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 7, __pyx_L1_error) #line 7 "root_numpy/src/matrix.pyx" __pyx_v__mat = ((TMatrixDBase *)__pyx_t_1); @@ -47513,7 +47526,7 @@ static PyObject *__pyx_pf_13_librootnumpy_68matrix_d(CYTHON_UNUSED PyObject *__p __pyx_t_5 = 0; #line 8 "root_numpy/src/matrix.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 8, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 8, __pyx_L1_error) #line 8 "root_numpy/src/matrix.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -48028,7 +48041,7 @@ static PyObject *__pyx_pf_13_librootnumpy_70matrix_f(CYTHON_UNUSED PyObject *__p */ #line 20 "root_numpy/src/matrix.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_mat); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(4, 20, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_root_mat); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 20, __pyx_L1_error) #line 20 "root_numpy/src/matrix.pyx" __pyx_v__mat = ((TMatrixFBase *)__pyx_t_1); @@ -48108,7 +48121,7 @@ static PyObject *__pyx_pf_13_librootnumpy_70matrix_f(CYTHON_UNUSED PyObject *__p __pyx_t_5 = 0; #line 21 "root_numpy/src/matrix.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 21, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 21, __pyx_L1_error) #line 21 "root_numpy/src/matrix.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -48544,10 +48557,16 @@ static PyObject *__pyx_pw_13_librootnumpy_73sample_f1(PyObject *__pyx_self, PyOb case 2: #line 6 "root_numpy/src/sample.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 6 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; case 1: #line 6 "root_numpy/src/sample.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 6 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 6 "root_numpy/src/sample.pyx" case 0: break; default: @@ -48567,16 +48586,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 6 "root_numpy/src/sample.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_f1)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f1)) != 0)) kw_args--; else #line 6 "root_numpy/src/sample.pyx" goto __pyx_L5_argtuple_error; +#line 6 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 6 "root_numpy/src/sample.pyx" case 1: #line 6 "root_numpy/src/sample.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; #line 6 "root_numpy/src/sample.pyx" else { @@ -48746,7 +48768,7 @@ static PyObject *__pyx_pf_13_librootnumpy_72sample_f1(CYTHON_UNUSED PyObject *__ */ #line 7 "root_numpy/src/sample.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_f1); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(5, 7, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_f1); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(5, 7, __pyx_L1_error) #line 7 "root_numpy/src/sample.pyx" __pyx_v_f1_ = ((TF1 *)__pyx_t_1); @@ -48796,7 +48818,7 @@ static PyObject *__pyx_pf_13_librootnumpy_72sample_f1(CYTHON_UNUSED PyObject *__ __pyx_t_2 = 0; #line 9 "root_numpy/src/sample.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 9, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 9, __pyx_L1_error) #line 9 "root_numpy/src/sample.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -49071,10 +49093,16 @@ static PyObject *__pyx_pw_13_librootnumpy_75sample_h1(PyObject *__pyx_self, PyOb case 2: #line 17 "root_numpy/src/sample.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 17 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; case 1: #line 17 "root_numpy/src/sample.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 17 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 17 "root_numpy/src/sample.pyx" case 0: break; default: @@ -49094,16 +49122,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 17 "root_numpy/src/sample.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_h1)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h1)) != 0)) kw_args--; else #line 17 "root_numpy/src/sample.pyx" goto __pyx_L5_argtuple_error; +#line 17 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 17 "root_numpy/src/sample.pyx" case 1: #line 17 "root_numpy/src/sample.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; #line 17 "root_numpy/src/sample.pyx" else { @@ -49273,7 +49304,7 @@ static PyObject *__pyx_pf_13_librootnumpy_74sample_h1(CYTHON_UNUSED PyObject *__ */ #line 18 "root_numpy/src/sample.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_h1); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(5, 18, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_h1); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(5, 18, __pyx_L1_error) #line 18 "root_numpy/src/sample.pyx" __pyx_v_h1_ = ((TH1 *)__pyx_t_1); @@ -49323,7 +49354,7 @@ static PyObject *__pyx_pf_13_librootnumpy_74sample_h1(CYTHON_UNUSED PyObject *__ __pyx_t_2 = 0; #line 20 "root_numpy/src/sample.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 20, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 20, __pyx_L1_error) #line 20 "root_numpy/src/sample.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -49598,10 +49629,16 @@ static PyObject *__pyx_pw_13_librootnumpy_77sample_f2(PyObject *__pyx_self, PyOb case 2: #line 28 "root_numpy/src/sample.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 28 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; case 1: #line 28 "root_numpy/src/sample.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 28 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 28 "root_numpy/src/sample.pyx" case 0: break; default: @@ -49621,16 +49658,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 28 "root_numpy/src/sample.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_f2)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f2)) != 0)) kw_args--; else #line 28 "root_numpy/src/sample.pyx" goto __pyx_L5_argtuple_error; +#line 28 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 28 "root_numpy/src/sample.pyx" case 1: #line 28 "root_numpy/src/sample.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; #line 28 "root_numpy/src/sample.pyx" else { @@ -49815,7 +49855,7 @@ static PyObject *__pyx_pf_13_librootnumpy_76sample_f2(CYTHON_UNUSED PyObject *__ */ #line 29 "root_numpy/src/sample.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_f2); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(5, 29, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_f2); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(5, 29, __pyx_L1_error) #line 29 "root_numpy/src/sample.pyx" __pyx_v_f2_ = ((TF2 *)__pyx_t_1); @@ -49911,7 +49951,7 @@ static PyObject *__pyx_pf_13_librootnumpy_76sample_f2(CYTHON_UNUSED PyObject *__ __pyx_t_4 = 0; #line 33 "root_numpy/src/sample.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 33, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 33, __pyx_L1_error) #line 33 "root_numpy/src/sample.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -50014,7 +50054,7 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe */ #line 35 "root_numpy/src/sample.pyx" - __pyx_v_f2_->GetRandom2(__pyx_v_x, __pyx_v_y); + (void)(__pyx_v_f2_->GetRandom2(__pyx_v_x, __pyx_v_y)); /* "root_numpy/src/sample.pyx":36 * for i from 0 <= i < n_samples: @@ -50217,10 +50257,16 @@ static PyObject *__pyx_pw_13_librootnumpy_79sample_h2(PyObject *__pyx_self, PyOb case 2: #line 43 "root_numpy/src/sample.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 43 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; case 1: #line 43 "root_numpy/src/sample.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 43 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 43 "root_numpy/src/sample.pyx" case 0: break; default: @@ -50240,16 +50286,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 43 "root_numpy/src/sample.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_h2)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h2)) != 0)) kw_args--; else #line 43 "root_numpy/src/sample.pyx" goto __pyx_L5_argtuple_error; +#line 43 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 43 "root_numpy/src/sample.pyx" case 1: #line 43 "root_numpy/src/sample.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; #line 43 "root_numpy/src/sample.pyx" else { @@ -50434,7 +50483,7 @@ static PyObject *__pyx_pf_13_librootnumpy_78sample_h2(CYTHON_UNUSED PyObject *__ */ #line 44 "root_numpy/src/sample.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_h2); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(5, 44, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_h2); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(5, 44, __pyx_L1_error) #line 44 "root_numpy/src/sample.pyx" __pyx_v_h2_ = ((TH2 *)__pyx_t_1); @@ -50530,7 +50579,7 @@ static PyObject *__pyx_pf_13_librootnumpy_78sample_h2(CYTHON_UNUSED PyObject *__ __pyx_t_4 = 0; #line 48 "root_numpy/src/sample.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 48, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 48, __pyx_L1_error) #line 48 "root_numpy/src/sample.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -50633,7 +50682,7 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe */ #line 50 "root_numpy/src/sample.pyx" - __pyx_v_h2_->GetRandom2(__pyx_v_x, __pyx_v_y); + (void)(__pyx_v_h2_->GetRandom2(__pyx_v_x, __pyx_v_y)); /* "root_numpy/src/sample.pyx":51 * for i from 0 <= i < n_samples: @@ -50836,10 +50885,16 @@ static PyObject *__pyx_pw_13_librootnumpy_81sample_f3(PyObject *__pyx_self, PyOb case 2: #line 58 "root_numpy/src/sample.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 58 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; case 1: #line 58 "root_numpy/src/sample.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 58 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 58 "root_numpy/src/sample.pyx" case 0: break; default: @@ -50859,16 +50914,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 58 "root_numpy/src/sample.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_f3)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f3)) != 0)) kw_args--; else #line 58 "root_numpy/src/sample.pyx" goto __pyx_L5_argtuple_error; +#line 58 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 58 "root_numpy/src/sample.pyx" case 1: #line 58 "root_numpy/src/sample.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; #line 58 "root_numpy/src/sample.pyx" else { @@ -51062,7 +51120,7 @@ static PyObject *__pyx_pf_13_librootnumpy_80sample_f3(CYTHON_UNUSED PyObject *__ */ #line 59 "root_numpy/src/sample.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_f3); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(5, 59, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_f3); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(5, 59, __pyx_L1_error) #line 59 "root_numpy/src/sample.pyx" __pyx_v_f3_ = ((TF3 *)__pyx_t_1); @@ -51169,7 +51227,7 @@ static PyObject *__pyx_pf_13_librootnumpy_80sample_f3(CYTHON_UNUSED PyObject *__ __pyx_t_4 = 0; #line 64 "root_numpy/src/sample.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 64, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 64, __pyx_L1_error) #line 64 "root_numpy/src/sample.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -51272,7 +51330,7 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe */ #line 66 "root_numpy/src/sample.pyx" - __pyx_v_f3_->GetRandom3(__pyx_v_x, __pyx_v_y, __pyx_v_z); + (void)(__pyx_v_f3_->GetRandom3(__pyx_v_x, __pyx_v_y, __pyx_v_z)); /* "root_numpy/src/sample.pyx":67 * for i from 0 <= i < n_samples: @@ -51492,10 +51550,16 @@ static PyObject *__pyx_pw_13_librootnumpy_83sample_h3(PyObject *__pyx_self, PyOb case 2: #line 75 "root_numpy/src/sample.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 75 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; case 1: #line 75 "root_numpy/src/sample.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 75 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 75 "root_numpy/src/sample.pyx" case 0: break; default: @@ -51515,16 +51579,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 75 "root_numpy/src/sample.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_h3)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h3)) != 0)) kw_args--; else #line 75 "root_numpy/src/sample.pyx" goto __pyx_L5_argtuple_error; +#line 75 "root_numpy/src/sample.pyx" + CYTHON_FALLTHROUGH; + #line 75 "root_numpy/src/sample.pyx" case 1: #line 75 "root_numpy/src/sample.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n_samples)) != 0)) kw_args--; #line 75 "root_numpy/src/sample.pyx" else { @@ -51718,7 +51785,7 @@ static PyObject *__pyx_pf_13_librootnumpy_82sample_h3(CYTHON_UNUSED PyObject *__ */ #line 76 "root_numpy/src/sample.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_h3); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(5, 76, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_h3); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(5, 76, __pyx_L1_error) #line 76 "root_numpy/src/sample.pyx" __pyx_v_h3_ = ((TH3 *)__pyx_t_1); @@ -51825,7 +51892,7 @@ static PyObject *__pyx_pf_13_librootnumpy_82sample_h3(CYTHON_UNUSED PyObject *__ __pyx_t_4 = 0; #line 81 "root_numpy/src/sample.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 81, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 81, __pyx_L1_error) #line 81 "root_numpy/src/sample.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -51928,7 +51995,7 @@ __pyx_pybuffernd_arr.diminfo[0].strides = __pyx_pybuffernd_arr.rcbuffer->pybuffe */ #line 83 "root_numpy/src/sample.pyx" - __pyx_v_h3_->GetRandom3(__pyx_v_x, __pyx_v_y, __pyx_v_z); + (void)(__pyx_v_h3_->GetRandom3(__pyx_v_x, __pyx_v_y, __pyx_v_z)); /* "root_numpy/src/sample.pyx":84 * for i from 0 <= i < n_samples: @@ -52162,16 +52229,28 @@ static PyObject *__pyx_pw_13_librootnumpy_85fill_h1(PyObject *__pyx_self, PyObje case 4: #line 5 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 5 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 5 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 5 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 5 "root_numpy/src/hist.pyx" case 0: break; default: @@ -52191,16 +52270,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 5 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 5 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 5 "root_numpy/src/hist.pyx" case 1: #line 5 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 5 "root_numpy/src/hist.pyx" else { @@ -52211,6 +52293,9 @@ __PYX_ERR(6, 3, __pyx_L3_error) #line 5 "root_numpy/src/hist.pyx" } +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 5 "root_numpy/src/hist.pyx" case 2: @@ -52218,7 +52303,7 @@ __PYX_ERR(6, 3, __pyx_L3_error) if (kw_args > 0) { #line 5 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 5 "root_numpy/src/hist.pyx" if (value) { values[2] = value; kw_args--; } @@ -52226,6 +52311,9 @@ __PYX_ERR(6, 3, __pyx_L3_error) #line 5 "root_numpy/src/hist.pyx" } +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 5 "root_numpy/src/hist.pyx" case 3: @@ -52233,7 +52321,7 @@ __PYX_ERR(6, 3, __pyx_L3_error) if (kw_args > 0) { #line 5 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_return_indices); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_return_indices); #line 5 "root_numpy/src/hist.pyx" if (value) { values[3] = value; kw_args--; } @@ -52261,9 +52349,15 @@ __PYX_ERR(6, 3, __pyx_L3_error) case 4: #line 5 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 5 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 5 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 5 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -52566,7 +52660,7 @@ static PyObject *__pyx_pf_13_librootnumpy_84fill_h1(CYTHON_UNUSED PyObject *__py */ #line 8 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 8, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 8, __pyx_L1_error) #line 8 "root_numpy/src/hist.pyx" __pyx_v__hist = ((TH1 *)__pyx_t_1); @@ -52606,7 +52700,7 @@ static PyObject *__pyx_pf_13_librootnumpy_84fill_h1(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 10 "root_numpy/src/hist.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 10, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 10, __pyx_L1_error) #line 10 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -52742,7 +52836,7 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe __pyx_t_5 = 0; #line 14 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 14, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 14, __pyx_L1_error) #line 14 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -52825,6 +52919,9 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe #line 14 "root_numpy/src/hist.pyx" } +#line 14 "root_numpy/src/hist.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 14 "root_numpy/src/hist.pyx" } @@ -53264,16 +53361,28 @@ static PyObject *__pyx_pw_13_librootnumpy_87fill_h2(PyObject *__pyx_self, PyObje case 4: #line 33 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 33 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 33 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 33 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 33 "root_numpy/src/hist.pyx" case 0: break; default: @@ -53293,16 +53402,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 33 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 33 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 33 "root_numpy/src/hist.pyx" case 1: #line 33 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 33 "root_numpy/src/hist.pyx" else { @@ -53313,6 +53425,9 @@ __PYX_ERR(6, 31, __pyx_L3_error) #line 33 "root_numpy/src/hist.pyx" } +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 33 "root_numpy/src/hist.pyx" case 2: @@ -53320,7 +53435,7 @@ __PYX_ERR(6, 31, __pyx_L3_error) if (kw_args > 0) { #line 33 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 33 "root_numpy/src/hist.pyx" if (value) { values[2] = value; kw_args--; } @@ -53328,6 +53443,9 @@ __PYX_ERR(6, 31, __pyx_L3_error) #line 33 "root_numpy/src/hist.pyx" } +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 33 "root_numpy/src/hist.pyx" case 3: @@ -53335,7 +53453,7 @@ __PYX_ERR(6, 31, __pyx_L3_error) if (kw_args > 0) { #line 33 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_return_indices); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_return_indices); #line 33 "root_numpy/src/hist.pyx" if (value) { values[3] = value; kw_args--; } @@ -53363,9 +53481,15 @@ __PYX_ERR(6, 31, __pyx_L3_error) case 4: #line 33 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 33 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 33 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 33 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -53686,7 +53810,7 @@ static PyObject *__pyx_pf_13_librootnumpy_86fill_h2(CYTHON_UNUSED PyObject *__py */ #line 36 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 36, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 36, __pyx_L1_error) #line 36 "root_numpy/src/hist.pyx" __pyx_v__hist = ((TH2 *)__pyx_t_1); @@ -53726,7 +53850,7 @@ static PyObject *__pyx_pf_13_librootnumpy_86fill_h2(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 38 "root_numpy/src/hist.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 38, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 38, __pyx_L1_error) #line 38 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -53862,7 +53986,7 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe __pyx_t_5 = 0; #line 42 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 42, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 42, __pyx_L1_error) #line 42 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -53945,6 +54069,9 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe #line 42 "root_numpy/src/hist.pyx" } +#line 42 "root_numpy/src/hist.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 42 "root_numpy/src/hist.pyx" } @@ -54402,16 +54529,28 @@ static PyObject *__pyx_pw_13_librootnumpy_89fill_h3(PyObject *__pyx_self, PyObje case 4: #line 61 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 61 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 61 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 61 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 61 "root_numpy/src/hist.pyx" case 0: break; default: @@ -54431,16 +54570,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 61 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 61 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 61 "root_numpy/src/hist.pyx" case 1: #line 61 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 61 "root_numpy/src/hist.pyx" else { @@ -54451,6 +54593,9 @@ __PYX_ERR(6, 59, __pyx_L3_error) #line 61 "root_numpy/src/hist.pyx" } +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 61 "root_numpy/src/hist.pyx" case 2: @@ -54458,7 +54603,7 @@ __PYX_ERR(6, 59, __pyx_L3_error) if (kw_args > 0) { #line 61 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 61 "root_numpy/src/hist.pyx" if (value) { values[2] = value; kw_args--; } @@ -54466,6 +54611,9 @@ __PYX_ERR(6, 59, __pyx_L3_error) #line 61 "root_numpy/src/hist.pyx" } +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 61 "root_numpy/src/hist.pyx" case 3: @@ -54473,7 +54621,7 @@ __PYX_ERR(6, 59, __pyx_L3_error) if (kw_args > 0) { #line 61 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_return_indices); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_return_indices); #line 61 "root_numpy/src/hist.pyx" if (value) { values[3] = value; kw_args--; } @@ -54501,9 +54649,15 @@ __PYX_ERR(6, 59, __pyx_L3_error) case 4: #line 61 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 61 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 61 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 61 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -54836,7 +54990,7 @@ static PyObject *__pyx_pf_13_librootnumpy_88fill_h3(CYTHON_UNUSED PyObject *__py */ #line 64 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 64, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 64, __pyx_L1_error) #line 64 "root_numpy/src/hist.pyx" __pyx_v__hist = ((TH3 *)__pyx_t_1); @@ -54876,7 +55030,7 @@ static PyObject *__pyx_pf_13_librootnumpy_88fill_h3(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 66 "root_numpy/src/hist.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 66, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 66, __pyx_L1_error) #line 66 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -55012,7 +55166,7 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe __pyx_t_5 = 0; #line 70 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 70, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 70, __pyx_L1_error) #line 70 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -55095,6 +55249,9 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe #line 70 "root_numpy/src/hist.pyx" } +#line 70 "root_numpy/src/hist.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 70 "root_numpy/src/hist.pyx" } @@ -55564,16 +55721,28 @@ static PyObject *__pyx_pw_13_librootnumpy_91fill_p1(PyObject *__pyx_self, PyObje case 4: #line 89 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 89 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 89 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 89 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 89 "root_numpy/src/hist.pyx" case 0: break; default: @@ -55593,16 +55762,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 89 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_profile)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_profile)) != 0)) kw_args--; else #line 89 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 89 "root_numpy/src/hist.pyx" case 1: #line 89 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 89 "root_numpy/src/hist.pyx" else { @@ -55613,6 +55785,9 @@ __PYX_ERR(6, 87, __pyx_L3_error) #line 89 "root_numpy/src/hist.pyx" } +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 89 "root_numpy/src/hist.pyx" case 2: @@ -55620,7 +55795,7 @@ __PYX_ERR(6, 87, __pyx_L3_error) if (kw_args > 0) { #line 89 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 89 "root_numpy/src/hist.pyx" if (value) { values[2] = value; kw_args--; } @@ -55628,6 +55803,9 @@ __PYX_ERR(6, 87, __pyx_L3_error) #line 89 "root_numpy/src/hist.pyx" } +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 89 "root_numpy/src/hist.pyx" case 3: @@ -55635,7 +55813,7 @@ __PYX_ERR(6, 87, __pyx_L3_error) if (kw_args > 0) { #line 89 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_return_indices); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_return_indices); #line 89 "root_numpy/src/hist.pyx" if (value) { values[3] = value; kw_args--; } @@ -55663,9 +55841,15 @@ __PYX_ERR(6, 87, __pyx_L3_error) case 4: #line 89 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 89 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 89 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 89 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -55986,7 +56170,7 @@ static PyObject *__pyx_pf_13_librootnumpy_90fill_p1(CYTHON_UNUSED PyObject *__py */ #line 92 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_profile); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 92, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_profile); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 92, __pyx_L1_error) #line 92 "root_numpy/src/hist.pyx" __pyx_v__profile = ((TProfile *)__pyx_t_1); @@ -56026,7 +56210,7 @@ static PyObject *__pyx_pf_13_librootnumpy_90fill_p1(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 94 "root_numpy/src/hist.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 94, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 94, __pyx_L1_error) #line 94 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -56162,7 +56346,7 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe __pyx_t_5 = 0; #line 98 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 98, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 98, __pyx_L1_error) #line 98 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -56245,6 +56429,9 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe #line 98 "root_numpy/src/hist.pyx" } +#line 98 "root_numpy/src/hist.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 98 "root_numpy/src/hist.pyx" } @@ -56702,16 +56889,28 @@ static PyObject *__pyx_pw_13_librootnumpy_93fill_p2(PyObject *__pyx_self, PyObje case 4: #line 117 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 117 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 117 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 117 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 117 "root_numpy/src/hist.pyx" case 0: break; default: @@ -56731,16 +56930,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 117 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_profile)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_profile)) != 0)) kw_args--; else #line 117 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 117 "root_numpy/src/hist.pyx" case 1: #line 117 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 117 "root_numpy/src/hist.pyx" else { @@ -56751,6 +56953,9 @@ __PYX_ERR(6, 115, __pyx_L3_error) #line 117 "root_numpy/src/hist.pyx" } +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 117 "root_numpy/src/hist.pyx" case 2: @@ -56758,7 +56963,7 @@ __PYX_ERR(6, 115, __pyx_L3_error) if (kw_args > 0) { #line 117 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 117 "root_numpy/src/hist.pyx" if (value) { values[2] = value; kw_args--; } @@ -56766,6 +56971,9 @@ __PYX_ERR(6, 115, __pyx_L3_error) #line 117 "root_numpy/src/hist.pyx" } +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 117 "root_numpy/src/hist.pyx" case 3: @@ -56773,7 +56981,7 @@ __PYX_ERR(6, 115, __pyx_L3_error) if (kw_args > 0) { #line 117 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_return_indices); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_return_indices); #line 117 "root_numpy/src/hist.pyx" if (value) { values[3] = value; kw_args--; } @@ -56801,9 +57009,15 @@ __PYX_ERR(6, 115, __pyx_L3_error) case 4: #line 117 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 117 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 117 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 117 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -57136,7 +57350,7 @@ static PyObject *__pyx_pf_13_librootnumpy_92fill_p2(CYTHON_UNUSED PyObject *__py */ #line 120 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_profile); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 120, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_profile); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 120, __pyx_L1_error) #line 120 "root_numpy/src/hist.pyx" __pyx_v__profile = ((TProfile2D *)__pyx_t_1); @@ -57176,7 +57390,7 @@ static PyObject *__pyx_pf_13_librootnumpy_92fill_p2(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 122 "root_numpy/src/hist.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 122, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 122, __pyx_L1_error) #line 122 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -57312,7 +57526,7 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe __pyx_t_5 = 0; #line 126 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 126, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 126, __pyx_L1_error) #line 126 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -57395,6 +57609,9 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe #line 126 "root_numpy/src/hist.pyx" } +#line 126 "root_numpy/src/hist.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 126 "root_numpy/src/hist.pyx" } @@ -57864,16 +58081,28 @@ static PyObject *__pyx_pw_13_librootnumpy_95fill_p3(PyObject *__pyx_self, PyObje case 4: #line 145 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 145 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 145 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 145 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 145 "root_numpy/src/hist.pyx" case 0: break; default: @@ -57893,16 +58122,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 145 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_profile)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_profile)) != 0)) kw_args--; else #line 145 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 145 "root_numpy/src/hist.pyx" case 1: #line 145 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 145 "root_numpy/src/hist.pyx" else { @@ -57913,6 +58145,9 @@ __PYX_ERR(6, 143, __pyx_L3_error) #line 145 "root_numpy/src/hist.pyx" } +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 145 "root_numpy/src/hist.pyx" case 2: @@ -57920,7 +58155,7 @@ __PYX_ERR(6, 143, __pyx_L3_error) if (kw_args > 0) { #line 145 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 145 "root_numpy/src/hist.pyx" if (value) { values[2] = value; kw_args--; } @@ -57928,6 +58163,9 @@ __PYX_ERR(6, 143, __pyx_L3_error) #line 145 "root_numpy/src/hist.pyx" } +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 145 "root_numpy/src/hist.pyx" case 3: @@ -57935,7 +58173,7 @@ __PYX_ERR(6, 143, __pyx_L3_error) if (kw_args > 0) { #line 145 "root_numpy/src/hist.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_return_indices); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_return_indices); #line 145 "root_numpy/src/hist.pyx" if (value) { values[3] = value; kw_args--; } @@ -57963,9 +58201,15 @@ __PYX_ERR(6, 143, __pyx_L3_error) case 4: #line 145 "root_numpy/src/hist.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 3: #line 145 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 145 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 145 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); @@ -58310,7 +58554,7 @@ static PyObject *__pyx_pf_13_librootnumpy_94fill_p3(CYTHON_UNUSED PyObject *__py */ #line 148 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_profile); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 148, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_profile); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 148, __pyx_L1_error) #line 148 "root_numpy/src/hist.pyx" __pyx_v__profile = ((TProfile3D *)__pyx_t_1); @@ -58350,7 +58594,7 @@ static PyObject *__pyx_pf_13_librootnumpy_94fill_p3(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 150 "root_numpy/src/hist.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 150, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 150, __pyx_L1_error) #line 150 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -58486,7 +58730,7 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe __pyx_t_5 = 0; #line 154 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 154, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 154, __pyx_L1_error) #line 154 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -58569,6 +58813,9 @@ __pyx_pybuffernd_idx.diminfo[0].strides = __pyx_pybuffernd_idx.rcbuffer->pybuffe #line 154 "root_numpy/src/hist.pyx" } +#line 154 "root_numpy/src/hist.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 154 "root_numpy/src/hist.pyx" } @@ -59036,13 +59283,22 @@ static PyObject *__pyx_pw_13_librootnumpy_97thn2array(PyObject *__pyx_self, PyOb case 3: #line 171 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 171 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 171 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 171 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 171 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 171 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 171 "root_numpy/src/hist.pyx" case 0: break; default: @@ -59062,16 +59318,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 171 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 171 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 171 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 171 "root_numpy/src/hist.pyx" case 1: #line 171 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--; #line 171 "root_numpy/src/hist.pyx" else { @@ -59082,11 +59341,14 @@ __PYX_ERR(6, 171, __pyx_L3_error) #line 171 "root_numpy/src/hist.pyx" } +#line 171 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 171 "root_numpy/src/hist.pyx" case 2: #line 171 "root_numpy/src/hist.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--; #line 171 "root_numpy/src/hist.pyx" else { @@ -59232,6 +59494,9 @@ static PyObject *__pyx_pf_13_librootnumpy_96thn2array(CYTHON_UNUSED PyObject *__ #line 171 "root_numpy/src/hist.pyx" PY_LONG_LONG __pyx_t_7; +#line 171 "root_numpy/src/hist.pyx" + PY_LONG_LONG __pyx_t_8; + #line 171 "root_numpy/src/hist.pyx" __Pyx_RefNannySetupContext("thn2array", 0); @@ -59244,7 +59509,7 @@ static PyObject *__pyx_pf_13_librootnumpy_96thn2array(CYTHON_UNUSED PyObject *__ */ #line 172 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 172, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 172, __pyx_L1_error) #line 172 "root_numpy/src/hist.pyx" __pyx_v__hist = ((THnBase *)__pyx_t_1); @@ -59299,7 +59564,7 @@ static PyObject *__pyx_pf_13_librootnumpy_96thn2array(CYTHON_UNUSED PyObject *__ PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape); #line 176 "root_numpy/src/hist.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 176, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 176, __pyx_L1_error) #line 176 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -59504,10 +59769,13 @@ static PyObject *__pyx_pf_13_librootnumpy_96thn2array(CYTHON_UNUSED PyObject *__ __pyx_t_6 = __pyx_v_nbins; #line 178 "root_numpy/src/hist.pyx" - for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) { + __pyx_t_7 = __pyx_t_6; #line 178 "root_numpy/src/hist.pyx" - __pyx_v_ibin = __pyx_t_7; + for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { + +#line 178 "root_numpy/src/hist.pyx" + __pyx_v_ibin = __pyx_t_8; /* "root_numpy/src/hist.pyx":179 * cdef np.ndarray array_ravel_view = np.ravel(array) @@ -59672,13 +59940,22 @@ static PyObject *__pyx_pw_13_librootnumpy_99thnsparse2array(PyObject *__pyx_self case 3: #line 185 "root_numpy/src/hist.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 185 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 2: #line 185 "root_numpy/src/hist.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 185 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; case 1: #line 185 "root_numpy/src/hist.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 185 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 185 "root_numpy/src/hist.pyx" case 0: break; default: @@ -59698,16 +59975,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 185 "root_numpy/src/hist.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 185 "root_numpy/src/hist.pyx" goto __pyx_L5_argtuple_error; +#line 185 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 185 "root_numpy/src/hist.pyx" case 1: #line 185 "root_numpy/src/hist.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--; #line 185 "root_numpy/src/hist.pyx" else { @@ -59718,11 +59998,14 @@ __PYX_ERR(6, 185, __pyx_L3_error) #line 185 "root_numpy/src/hist.pyx" } +#line 185 "root_numpy/src/hist.pyx" + CYTHON_FALLTHROUGH; + #line 185 "root_numpy/src/hist.pyx" case 2: #line 185 "root_numpy/src/hist.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype)) != 0)) kw_args--; #line 185 "root_numpy/src/hist.pyx" else { @@ -59878,10 +60161,13 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje PY_LONG_LONG __pyx_t_8; #line 185 "root_numpy/src/hist.pyx" - int __pyx_t_9; + PY_LONG_LONG __pyx_t_9; #line 185 "root_numpy/src/hist.pyx" - PyObject *__pyx_t_10 = NULL; + int __pyx_t_10; + +#line 185 "root_numpy/src/hist.pyx" + PyObject *__pyx_t_11 = NULL; #line 185 "root_numpy/src/hist.pyx" __Pyx_RefNannySetupContext("thnsparse2array", 0); @@ -59895,7 +60181,7 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje */ #line 186 "root_numpy/src/hist.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(6, 186, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(6, 186, __pyx_L1_error) #line 186 "root_numpy/src/hist.pyx" __pyx_v__hist = ((THnBase *)__pyx_t_1); @@ -59950,7 +60236,7 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape); #line 190 "root_numpy/src/hist.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 190, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 190, __pyx_L1_error) #line 190 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -60027,7 +60313,7 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje __pyx_t_5 = 0; #line 191 "root_numpy/src/hist.pyx" - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 191, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 191, __pyx_L1_error) #line 191 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_5); @@ -60109,10 +60395,13 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje __pyx_t_7 = __pyx_v_nbins; #line 193 "root_numpy/src/hist.pyx" - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { + __pyx_t_8 = __pyx_t_7; #line 193 "root_numpy/src/hist.pyx" - __pyx_v_ibin = __pyx_t_8; + for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { + +#line 193 "root_numpy/src/hist.pyx" + __pyx_v_ibin = __pyx_t_9; /* "root_numpy/src/hist.pyx":194 * itemset = array.itemset @@ -60151,7 +60440,7 @@ static PyObject *__pyx_pf_13_librootnumpy_98thnsparse2array(CYTHON_UNUSED PyObje __pyx_t_3 = NULL; #line 195 "root_numpy/src/hist.pyx" - __pyx_t_9 = 0; + __pyx_t_10 = 0; #line 195 "root_numpy/src/hist.pyx" if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -60175,7 +60464,7 @@ __pyx_t_3 = NULL; __Pyx_DECREF_SET(__pyx_t_4, function); #line 195 "root_numpy/src/hist.pyx" - __pyx_t_9 = 1; + __pyx_t_10 = 1; #line 195 "root_numpy/src/hist.pyx" } @@ -60193,7 +60482,7 @@ __pyx_t_3 = NULL; PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_2}; #line 195 "root_numpy/src/hist.pyx" - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) #line 195 "root_numpy/src/hist.pyx" __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -60223,7 +60512,7 @@ __pyx_t_3 = NULL; PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_2}; #line 195 "root_numpy/src/hist.pyx" - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) #line 195 "root_numpy/src/hist.pyx" __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -60247,16 +60536,16 @@ __pyx_t_3 = NULL; { #line 195 "root_numpy/src/hist.pyx" - __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 195, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(6, 195, __pyx_L1_error) #line 195 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_10); + __Pyx_GOTREF(__pyx_t_11); #line 195 "root_numpy/src/hist.pyx" if (__pyx_t_3) { #line 195 "root_numpy/src/hist.pyx" - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL; + __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_3); __pyx_t_3 = NULL; #line 195 "root_numpy/src/hist.pyx" } @@ -60265,13 +60554,13 @@ __pyx_t_3 = NULL; __Pyx_GIVEREF(__pyx_t_5); #line 195 "root_numpy/src/hist.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_10, __pyx_t_5); #line 195 "root_numpy/src/hist.pyx" __Pyx_GIVEREF(__pyx_t_2); #line 195 "root_numpy/src/hist.pyx" - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_10, __pyx_t_2); #line 195 "root_numpy/src/hist.pyx" __pyx_t_5 = 0; @@ -60280,13 +60569,13 @@ __pyx_t_3 = NULL; __pyx_t_2 = 0; #line 195 "root_numpy/src/hist.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 195, __pyx_L1_error) #line 195 "root_numpy/src/hist.pyx" __Pyx_GOTREF(__pyx_t_6); #line 195 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; #line 195 "root_numpy/src/hist.pyx" } @@ -60351,7 +60640,7 @@ __pyx_t_3 = NULL; __Pyx_XDECREF(__pyx_t_6); #line 185 "root_numpy/src/hist.pyx" - __Pyx_XDECREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_11); #line 185 "root_numpy/src/hist.pyx" __Pyx_AddTraceback("_librootnumpy.thnsparse2array", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -60444,10 +60733,16 @@ static PyObject *__pyx_pw_13_librootnumpy_101fill_g1(PyObject *__pyx_self, PyObj case 2: #line 3 "root_numpy/src/graph.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 3 "root_numpy/src/graph.pyx" + CYTHON_FALLTHROUGH; case 1: #line 3 "root_numpy/src/graph.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 3 "root_numpy/src/graph.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/src/graph.pyx" case 0: break; default: @@ -60467,16 +60762,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 3 "root_numpy/src/graph.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_graph)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_graph)) != 0)) kw_args--; else #line 3 "root_numpy/src/graph.pyx" goto __pyx_L5_argtuple_error; +#line 3 "root_numpy/src/graph.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/src/graph.pyx" case 1: #line 3 "root_numpy/src/graph.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 3 "root_numpy/src/graph.pyx" else { @@ -60667,7 +60965,7 @@ static PyObject *__pyx_pf_13_librootnumpy_100fill_g1(CYTHON_UNUSED PyObject *__p */ #line 6 "root_numpy/src/graph.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_graph); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(7, 6, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_graph); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(7, 6, __pyx_L1_error) #line 6 "root_numpy/src/graph.pyx" __pyx_v__graph = ((TGraph *)__pyx_t_1); @@ -60866,10 +61164,16 @@ static PyObject *__pyx_pw_13_librootnumpy_103fill_g2(PyObject *__pyx_self, PyObj case 2: #line 16 "root_numpy/src/graph.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 16 "root_numpy/src/graph.pyx" + CYTHON_FALLTHROUGH; case 1: #line 16 "root_numpy/src/graph.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 16 "root_numpy/src/graph.pyx" + CYTHON_FALLTHROUGH; + #line 16 "root_numpy/src/graph.pyx" case 0: break; default: @@ -60889,16 +61193,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 16 "root_numpy/src/graph.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_graph)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_graph)) != 0)) kw_args--; else #line 16 "root_numpy/src/graph.pyx" goto __pyx_L5_argtuple_error; +#line 16 "root_numpy/src/graph.pyx" + CYTHON_FALLTHROUGH; + #line 16 "root_numpy/src/graph.pyx" case 1: #line 16 "root_numpy/src/graph.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 16 "root_numpy/src/graph.pyx" else { @@ -61095,7 +61402,7 @@ static PyObject *__pyx_pf_13_librootnumpy_102fill_g2(CYTHON_UNUSED PyObject *__p */ #line 19 "root_numpy/src/graph.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_graph); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(7, 19, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_graph); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(7, 19, __pyx_L1_error) #line 19 "root_numpy/src/graph.pyx" __pyx_v__graph = ((TGraph2D *)__pyx_t_1); @@ -61297,10 +61604,16 @@ static PyObject *__pyx_pw_13_librootnumpy_105evaluate_h1(PyObject *__pyx_self, P case 2: #line 3 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 3 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 3 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 3 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -61320,16 +61633,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 3 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 3 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 3 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/src/evaluate.pyx" case 1: #line 3 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 3 "root_numpy/src/evaluate.pyx" else { @@ -61553,7 +61869,7 @@ static PyObject *__pyx_pf_13_librootnumpy_104evaluate_h1(CYTHON_UNUSED PyObject */ #line 5 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 5, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 5, __pyx_L1_error) #line 5 "root_numpy/src/evaluate.pyx" __pyx_v__hist = ((TH1 *)__pyx_t_1); @@ -61614,7 +61930,7 @@ static PyObject *__pyx_pf_13_librootnumpy_104evaluate_h1(CYTHON_UNUSED PyObject __pyx_t_2 = 0; #line 8 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 8, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 8, __pyx_L1_error) #line 8 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -61898,10 +62214,16 @@ static PyObject *__pyx_pw_13_librootnumpy_107evaluate_h2(PyObject *__pyx_self, P case 2: #line 16 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 16 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 16 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 16 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 16 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -61921,16 +62243,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 16 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 16 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 16 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 16 "root_numpy/src/evaluate.pyx" case 1: #line 16 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 16 "root_numpy/src/evaluate.pyx" else { @@ -62163,7 +62488,7 @@ static PyObject *__pyx_pf_13_librootnumpy_106evaluate_h2(CYTHON_UNUSED PyObject */ #line 18 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 18, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 18, __pyx_L1_error) #line 18 "root_numpy/src/evaluate.pyx" __pyx_v__hist = ((TH2 *)__pyx_t_1); @@ -62224,7 +62549,7 @@ static PyObject *__pyx_pf_13_librootnumpy_106evaluate_h2(CYTHON_UNUSED PyObject __pyx_t_2 = 0; #line 21 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 21, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 21, __pyx_L1_error) #line 21 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -62517,10 +62842,16 @@ static PyObject *__pyx_pw_13_librootnumpy_109evaluate_h3(PyObject *__pyx_self, P case 2: #line 29 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 29 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 29 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 29 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 29 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -62540,16 +62871,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 29 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hist)) != 0)) kw_args--; else #line 29 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 29 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 29 "root_numpy/src/evaluate.pyx" case 1: #line 29 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 29 "root_numpy/src/evaluate.pyx" else { @@ -62788,7 +63122,7 @@ static PyObject *__pyx_pf_13_librootnumpy_108evaluate_h3(CYTHON_UNUSED PyObject */ #line 31 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 31, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_hist); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 31, __pyx_L1_error) #line 31 "root_numpy/src/evaluate.pyx" __pyx_v__hist = ((TH3 *)__pyx_t_1); @@ -62849,7 +63183,7 @@ static PyObject *__pyx_pf_13_librootnumpy_108evaluate_h3(CYTHON_UNUSED PyObject __pyx_t_2 = 0; #line 34 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 34, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 34, __pyx_L1_error) #line 34 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -63148,10 +63482,16 @@ static PyObject *__pyx_pw_13_librootnumpy_111evaluate_f1(PyObject *__pyx_self, P case 2: #line 42 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 42 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 42 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 42 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 42 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -63171,16 +63511,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 42 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 42 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 42 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 42 "root_numpy/src/evaluate.pyx" case 1: #line 42 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 42 "root_numpy/src/evaluate.pyx" else { @@ -63404,7 +63747,7 @@ static PyObject *__pyx_pf_13_librootnumpy_110evaluate_f1(CYTHON_UNUSED PyObject */ #line 44 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 44, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 44, __pyx_L1_error) #line 44 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TF1 *)__pyx_t_1); @@ -63465,7 +63808,7 @@ static PyObject *__pyx_pf_13_librootnumpy_110evaluate_f1(CYTHON_UNUSED PyObject __pyx_t_2 = 0; #line 47 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 47, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 47, __pyx_L1_error) #line 47 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -63749,10 +64092,16 @@ static PyObject *__pyx_pw_13_librootnumpy_113evaluate_f2(PyObject *__pyx_self, P case 2: #line 55 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 55 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 55 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 55 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 55 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -63772,16 +64121,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 55 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 55 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 55 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 55 "root_numpy/src/evaluate.pyx" case 1: #line 55 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 55 "root_numpy/src/evaluate.pyx" else { @@ -64014,7 +64366,7 @@ static PyObject *__pyx_pf_13_librootnumpy_112evaluate_f2(CYTHON_UNUSED PyObject */ #line 57 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 57, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 57, __pyx_L1_error) #line 57 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TF2 *)__pyx_t_1); @@ -64075,7 +64427,7 @@ static PyObject *__pyx_pf_13_librootnumpy_112evaluate_f2(CYTHON_UNUSED PyObject __pyx_t_2 = 0; #line 60 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 60, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 60, __pyx_L1_error) #line 60 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -64368,10 +64720,16 @@ static PyObject *__pyx_pw_13_librootnumpy_115evaluate_f3(PyObject *__pyx_self, P case 2: #line 68 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 68 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 68 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 68 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -64391,16 +64749,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 68 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 68 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 68 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/src/evaluate.pyx" case 1: #line 68 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 68 "root_numpy/src/evaluate.pyx" else { @@ -64639,7 +65000,7 @@ static PyObject *__pyx_pf_13_librootnumpy_114evaluate_f3(CYTHON_UNUSED PyObject */ #line 70 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 70, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 70, __pyx_L1_error) #line 70 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TF3 *)__pyx_t_1); @@ -64700,7 +65061,7 @@ static PyObject *__pyx_pf_13_librootnumpy_114evaluate_f3(CYTHON_UNUSED PyObject __pyx_t_2 = 0; #line 73 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 73, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 73, __pyx_L1_error) #line 73 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -64999,10 +65360,16 @@ static PyObject *__pyx_pw_13_librootnumpy_117evaluate_formula_1d(PyObject *__pyx case 2: #line 81 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 81 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 81 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 81 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 81 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -65022,16 +65389,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 81 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 81 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 81 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 81 "root_numpy/src/evaluate.pyx" case 1: #line 81 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 81 "root_numpy/src/evaluate.pyx" else { @@ -65255,7 +65625,7 @@ static PyObject *__pyx_pf_13_librootnumpy_116evaluate_formula_1d(CYTHON_UNUSED P */ #line 83 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 83, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 83, __pyx_L1_error) #line 83 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TFormula *)__pyx_t_1); @@ -65316,7 +65686,7 @@ static PyObject *__pyx_pf_13_librootnumpy_116evaluate_formula_1d(CYTHON_UNUSED P __pyx_t_2 = 0; #line 86 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 86, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 86, __pyx_L1_error) #line 86 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -65600,10 +65970,16 @@ static PyObject *__pyx_pw_13_librootnumpy_119evaluate_formula_2d(PyObject *__pyx case 2: #line 94 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 94 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 94 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 94 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 94 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -65623,16 +65999,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 94 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 94 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 94 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 94 "root_numpy/src/evaluate.pyx" case 1: #line 94 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 94 "root_numpy/src/evaluate.pyx" else { @@ -65865,7 +66244,7 @@ static PyObject *__pyx_pf_13_librootnumpy_118evaluate_formula_2d(CYTHON_UNUSED P */ #line 96 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 96, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 96, __pyx_L1_error) #line 96 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TFormula *)__pyx_t_1); @@ -65926,7 +66305,7 @@ static PyObject *__pyx_pf_13_librootnumpy_118evaluate_formula_2d(CYTHON_UNUSED P __pyx_t_2 = 0; #line 99 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 99, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 99, __pyx_L1_error) #line 99 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -66219,10 +66598,16 @@ static PyObject *__pyx_pw_13_librootnumpy_121evaluate_formula_3d(PyObject *__pyx case 2: #line 107 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 107 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 107 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 107 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 107 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -66242,16 +66627,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 107 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 107 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 107 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 107 "root_numpy/src/evaluate.pyx" case 1: #line 107 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 107 "root_numpy/src/evaluate.pyx" else { @@ -66490,7 +66878,7 @@ static PyObject *__pyx_pf_13_librootnumpy_120evaluate_formula_3d(CYTHON_UNUSED P */ #line 109 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 109, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 109, __pyx_L1_error) #line 109 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TFormula *)__pyx_t_1); @@ -66551,7 +66939,7 @@ static PyObject *__pyx_pf_13_librootnumpy_120evaluate_formula_3d(CYTHON_UNUSED P __pyx_t_2 = 0; #line 112 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 112, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 112, __pyx_L1_error) #line 112 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -66850,10 +67238,16 @@ static PyObject *__pyx_pw_13_librootnumpy_123evaluate_formula_4d(PyObject *__pyx case 2: #line 120 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 120 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 120 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 120 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 120 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -66873,16 +67267,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 120 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else #line 120 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 120 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 120 "root_numpy/src/evaluate.pyx" case 1: #line 120 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 120 "root_numpy/src/evaluate.pyx" else { @@ -67127,7 +67524,7 @@ static PyObject *__pyx_pf_13_librootnumpy_122evaluate_formula_4d(CYTHON_UNUSED P */ #line 122 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 122, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_func); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 122, __pyx_L1_error) #line 122 "root_numpy/src/evaluate.pyx" __pyx_v__func = ((TFormula *)__pyx_t_1); @@ -67188,7 +67585,7 @@ static PyObject *__pyx_pf_13_librootnumpy_122evaluate_formula_4d(CYTHON_UNUSED P __pyx_t_2 = 0; #line 125 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 125, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 125, __pyx_L1_error) #line 125 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -67493,10 +67890,16 @@ static PyObject *__pyx_pw_13_librootnumpy_125evaluate_graph(PyObject *__pyx_self case 2: #line 133 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 133 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 133 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 133 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 133 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -67516,16 +67919,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 133 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_graph)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_graph)) != 0)) kw_args--; else #line 133 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 133 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 133 "root_numpy/src/evaluate.pyx" case 1: #line 133 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 133 "root_numpy/src/evaluate.pyx" else { @@ -67749,7 +68155,7 @@ static PyObject *__pyx_pf_13_librootnumpy_124evaluate_graph(CYTHON_UNUSED PyObje */ #line 135 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_graph); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 135, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_graph); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 135, __pyx_L1_error) #line 135 "root_numpy/src/evaluate.pyx" __pyx_v__graph = ((TGraph *)__pyx_t_1); @@ -67810,7 +68216,7 @@ static PyObject *__pyx_pf_13_librootnumpy_124evaluate_graph(CYTHON_UNUSED PyObje __pyx_t_2 = 0; #line 138 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 138, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 138, __pyx_L1_error) #line 138 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -68094,10 +68500,16 @@ static PyObject *__pyx_pw_13_librootnumpy_127evaluate_spline(PyObject *__pyx_sel case 2: #line 146 "root_numpy/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 146 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 146 "root_numpy/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 146 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 146 "root_numpy/src/evaluate.pyx" case 0: break; default: @@ -68117,16 +68529,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 146 "root_numpy/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_spline)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_spline)) != 0)) kw_args--; else #line 146 "root_numpy/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 146 "root_numpy/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 146 "root_numpy/src/evaluate.pyx" case 1: #line 146 "root_numpy/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_array)) != 0)) kw_args--; #line 146 "root_numpy/src/evaluate.pyx" else { @@ -68350,7 +68765,7 @@ static PyObject *__pyx_pf_13_librootnumpy_126evaluate_spline(CYTHON_UNUSED PyObj */ #line 148 "root_numpy/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_spline); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(8, 148, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_spline); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 148, __pyx_L1_error) #line 148 "root_numpy/src/evaluate.pyx" __pyx_v__spline = ((TSpline *)__pyx_t_1); @@ -68411,7 +68826,7 @@ static PyObject *__pyx_pf_13_librootnumpy_126evaluate_spline(CYTHON_UNUSED PyObj __pyx_t_2 = 0; #line 151 "root_numpy/src/evaluate.pyx" - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 151, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 151, __pyx_L1_error) #line 151 "root_numpy/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_2); @@ -69176,7 +69591,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( if (exc_type) { #line 32 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 32 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 32, __pyx_L1_error) @@ -69209,7 +69624,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR( __Pyx_GOTREF(__pyx_t_8); #line 32 "root_numpy/src/innerjoin.pyx" - __pyx_t_9 = PyObject_GetItem(__pyx_t_8, __pyx_v_c); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 32, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_v_c); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 32, __pyx_L1_error) #line 32 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_9); @@ -69810,7 +70225,7 @@ __pyx_t_9 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_9)) __PYX_ERR( if (exc_type) { #line 36 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 36 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 36, __pyx_L1_error) @@ -70417,7 +70832,7 @@ __pyx_t_1 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR if (exc_type) { #line 41 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 41 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 41, __pyx_L1_error) @@ -70934,7 +71349,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( if (exc_type) { #line 45 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 45 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 45, __pyx_L1_error) @@ -70992,7 +71407,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( __Pyx_GOTREF(__pyx_t_8); #line 47 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = PyObject_GetItem(__pyx_t_8, __pyx_v_c); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 47, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_v_c); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 47, __pyx_L1_error) #line 47 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_10); @@ -71025,7 +71440,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( __pyx_t_10 = 0; #line 47 "root_numpy/src/innerjoin.pyx" - __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 47, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(9, 47, __pyx_L1_error) #line 47 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -71070,7 +71485,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( */ #line 49 "root_numpy/src/innerjoin.pyx" - __pyx_t_8 = PyObject_GetItem(__pyx_v_data, __pyx_v_c); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 49, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_c); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 49, __pyx_L1_error) #line 49 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -71118,7 +71533,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_left); if (unlikely(!__pyx_t_2)) __PYX_ERR( __pyx_t_8 = 0; #line 49 "root_numpy/src/innerjoin.pyx" - __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_10); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 49, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_10); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(9, 49, __pyx_L1_error) #line 49 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -71256,7 +71671,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR if (exc_type) { #line 50 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 50 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 50, __pyx_L1_error) @@ -71291,7 +71706,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR */ #line 51 "root_numpy/src/innerjoin.pyx" - __pyx_t_10 = PyObject_GetItem(__pyx_v_data, __pyx_v_c); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 51, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_data, __pyx_v_c); if (unlikely(!__pyx_t_10)) __PYX_ERR(9, 51, __pyx_L1_error) #line 51 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_10); @@ -71339,7 +71754,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR __pyx_t_10 = 0; #line 51 "root_numpy/src/innerjoin.pyx" - __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 51, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_8); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(9, 51, __pyx_L1_error) #line 51 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -71406,7 +71821,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_2)) __PYX_ERR __pyx_t_8 = 0; #line 53 "root_numpy/src/innerjoin.pyx" - __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_2); if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(9, 53, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_new_dtype, __pyx_t_2); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(9, 53, __pyx_L1_error) #line 53 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -71760,22 +72175,40 @@ static PyObject *__pyx_pw_13_librootnumpy_129_blockwise_inner_join(PyObject *__p case 6: #line 11 "root_numpy/src/innerjoin.pyx" values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; case 5: #line 11 "root_numpy/src/innerjoin.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; case 4: #line 11 "root_numpy/src/innerjoin.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; case 3: #line 11 "root_numpy/src/innerjoin.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; case 2: #line 11 "root_numpy/src/innerjoin.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; case 1: #line 11 "root_numpy/src/innerjoin.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; + #line 11 "root_numpy/src/innerjoin.pyx" case 0: break; default: @@ -71795,16 +72228,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 11 "root_numpy/src/innerjoin.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else #line 11 "root_numpy/src/innerjoin.pyx" goto __pyx_L5_argtuple_error; +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; + #line 11 "root_numpy/src/innerjoin.pyx" case 1: #line 11 "root_numpy/src/innerjoin.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_left)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_left)) != 0)) kw_args--; #line 11 "root_numpy/src/innerjoin.pyx" else { @@ -71815,11 +72251,14 @@ __PYX_ERR(9, 11, __pyx_L3_error) #line 11 "root_numpy/src/innerjoin.pyx" } +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; + #line 11 "root_numpy/src/innerjoin.pyx" case 2: #line 11 "root_numpy/src/innerjoin.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fk)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fk)) != 0)) kw_args--; #line 11 "root_numpy/src/innerjoin.pyx" else { @@ -71830,11 +72269,14 @@ __PYX_ERR(9, 11, __pyx_L3_error) #line 11 "root_numpy/src/innerjoin.pyx" } +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; + #line 11 "root_numpy/src/innerjoin.pyx" case 3: #line 11 "root_numpy/src/innerjoin.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_right)) != 0)) kw_args--; + if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_right)) != 0)) kw_args--; #line 11 "root_numpy/src/innerjoin.pyx" else { @@ -71845,11 +72287,14 @@ __PYX_ERR(9, 11, __pyx_L3_error) #line 11 "root_numpy/src/innerjoin.pyx" } +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; + #line 11 "root_numpy/src/innerjoin.pyx" case 4: #line 11 "root_numpy/src/innerjoin.pyx" - if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_force_repeat)) != 0)) kw_args--; + if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_force_repeat)) != 0)) kw_args--; #line 11 "root_numpy/src/innerjoin.pyx" else { @@ -71860,11 +72305,14 @@ __PYX_ERR(9, 11, __pyx_L3_error) #line 11 "root_numpy/src/innerjoin.pyx" } +#line 11 "root_numpy/src/innerjoin.pyx" + CYTHON_FALLTHROUGH; + #line 11 "root_numpy/src/innerjoin.pyx" case 5: #line 11 "root_numpy/src/innerjoin.pyx" - if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fk_name)) != 0)) kw_args--; + if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fk_name)) != 0)) kw_args--; #line 11 "root_numpy/src/innerjoin.pyx" else { @@ -72444,7 +72892,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ */ #line 76 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_data)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 76, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_data)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 76, __pyx_L1_error) #line 76 "root_numpy/src/innerjoin.pyx" __pyx_v_ndata = __pyx_t_1; @@ -72464,7 +72912,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_GOTREF(__pyx_t_2); #line 77 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 77, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 77, __pyx_L1_error) #line 77 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -72711,7 +73159,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ __Pyx_GOTREF(__pyx_t_3); #line 85 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 85, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 85, __pyx_L1_error) #line 85 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -72969,6 +73417,9 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ #line 87 "root_numpy/src/innerjoin.pyx" } +#line 87 "root_numpy/src/innerjoin.pyx" + __pyx_t_10 = __pyx_t_11 = __pyx_t_12 = 0; + #line 87 "root_numpy/src/innerjoin.pyx" } @@ -72999,7 +73450,7 @@ static PyObject *__pyx_f_13_librootnumpy__vector_fk_inner_join(PyArrayObject *__ */ #line 88 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_good_index)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 88, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_good_index)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 88, __pyx_L1_error) #line 88 "root_numpy/src/innerjoin.pyx" __pyx_v_nresult = (__pyx_v_nresult + __pyx_t_1); @@ -73323,7 +73774,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_7)) if (exc_type) { #line 95 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 95 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 95, __pyx_L1_error) @@ -73841,7 +74292,7 @@ __pyx_t_2 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_2)) if (exc_type) { #line 97 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 97 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 97, __pyx_L1_error) @@ -74359,7 +74810,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_4)) __PYX_ERR if (exc_type) { #line 99 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 99 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 99, __pyx_L1_error) @@ -74930,7 +75381,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 102 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_repeat_indices)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 102, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_repeat_indices)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 102, __pyx_L1_error) #line 102 "root_numpy/src/innerjoin.pyx" __pyx_v_nrepeat = __pyx_t_1; @@ -74944,7 +75395,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 103 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_stretch_indices)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 103, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_stretch_indices)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 103, __pyx_L1_error) #line 103 "root_numpy/src/innerjoin.pyx" __pyx_v_nstretch = __pyx_t_1; @@ -74958,7 +75409,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 104 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_right_indices)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 104, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_right_indices)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 104, __pyx_L1_error) #line 104 "root_numpy/src/innerjoin.pyx" __pyx_v_nright = __pyx_t_1; @@ -75143,6 +75594,9 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ #line 119 "root_numpy/src/innerjoin.pyx" } +#line 119 "root_numpy/src/innerjoin.pyx" + __pyx_t_12 = __pyx_t_11 = __pyx_t_10 = 0; + #line 119 "root_numpy/src/innerjoin.pyx" } @@ -75196,7 +75650,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 121 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_tmp_good_fk_index)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 121, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_tmp_good_fk_index)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 121, __pyx_L1_error) #line 121 "root_numpy/src/innerjoin.pyx" __pyx_v_this_n_good_fk = __pyx_t_1; @@ -76279,7 +76733,7 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ */ #line 148 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_data)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 148, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_data)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 148, __pyx_L1_error) #line 148 "root_numpy/src/innerjoin.pyx" __pyx_v_ndata = __pyx_t_1; @@ -76299,7 +76753,7 @@ static PyObject *__pyx_f_13_librootnumpy__scalar_fk_inner_join(PyArrayObject *__ __Pyx_GOTREF(__pyx_t_2); #line 149 "root_numpy/src/innerjoin.pyx" - __pyx_t_3 = PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 149, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 149, __pyx_L1_error) #line 149 "root_numpy/src/innerjoin.pyx" __Pyx_GOTREF(__pyx_t_3); @@ -76597,7 +77051,7 @@ __pyx_pybuffernd_fk_index_good.diminfo[0].strides = __pyx_pybuffernd_fk_index_go __Pyx_GOTREF(__pyx_t_3); #line 156 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 156, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 156, __pyx_L1_error) #line 156 "root_numpy/src/innerjoin.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -77162,7 +77616,7 @@ __pyx_t_8 = PyObject_GetIter(__pyx_v_repeat_columns); if (unlikely(!__pyx_t_8)) if (exc_type) { #line 165 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 165 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 165, __pyx_L1_error) @@ -77680,7 +78134,7 @@ __pyx_t_4 = PyObject_GetIter(__pyx_v_stretch_columns); if (unlikely(!__pyx_t_4)) if (exc_type) { #line 167 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 167 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 167, __pyx_L1_error) @@ -78198,7 +78652,7 @@ __pyx_t_6 = PyObject_GetIter(__pyx_v_right); if (unlikely(!__pyx_t_6)) __PYX_ERR if (exc_type) { #line 169 "root_numpy/src/innerjoin.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 169 "root_numpy/src/innerjoin.pyx" else __PYX_ERR(9, 169, __pyx_L1_error) @@ -78769,7 +79223,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 172 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_repeat_indices)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 172, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_repeat_indices)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 172, __pyx_L1_error) #line 172 "root_numpy/src/innerjoin.pyx" __pyx_v_nrepeat = __pyx_t_1; @@ -78783,7 +79237,7 @@ __pyx_pybuffernd_right_result_indices.diminfo[0].strides = __pyx_pybuffernd_righ */ #line 173 "root_numpy/src/innerjoin.pyx" - __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_right_indices)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(9, 173, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(((PyObject *)__pyx_v_right_indices)); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(9, 173, __pyx_L1_error) #line 173 "root_numpy/src/innerjoin.pyx" __pyx_v_nright = __pyx_t_1; @@ -79429,5714 +79883,5612 @@ if (unlikely(__pyx_t_25 >= __pyx_pybuffernd_right_indices.diminfo[0].shape)) __p #line 142 "root_numpy/src/innerjoin.pyx" } -/* "array.pxd":91 - * __data_union data - * - * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":215 + * # experimental exception made for __getbuffer__ and __releasebuffer__ + * # -- the details of this may change. + * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. + * # requirements, and does not yet fulfill the PEP. */ -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* Python wrapper */ -#line 91 "array.pxd" -static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ -#line 91 "array.pxd" -static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_r; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyDeclarations -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); __pyx_r = -#line 91 "array.pxd" -__pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +__pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" return __pyx_r; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 91 "array.pxd" -static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { - PyObject *__pyx_v_item_count = NULL -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { + int __pyx_v_i +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_ndim +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_endian_detector +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_little_endian +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_t +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + char *__pyx_v_f +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyArray_Descr *__pyx_v_descr = 0 +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_offset +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" ; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_r; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyDeclarations -#line 91 "array.pxd" - PyObject *__pyx_t_1 = NULL; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 91 "array.pxd" - char *__pyx_t_2; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_2; -#line 91 "array.pxd" - int __pyx_t_3; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 91 "array.pxd" - PyObject *__pyx_t_4 = NULL; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 91 "array.pxd" - Py_ssize_t __pyx_t_5; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_5; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_t_6; -#line 91 "array.pxd" - __Pyx_RefNannySetupContext("__getbuffer__", 0); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 91 "array.pxd" - if (__pyx_v_info != NULL) { +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_t_8; -#line 91 "array.pxd" - __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info == NULL) { -#line 91 "array.pxd" - __Pyx_GIVEREF(__pyx_v_info->obj); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return -1; + +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "array.pxd":96 - * # In particular strided access is always provided regardless - * # of flags - * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__getbuffer__", 0); + +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); + +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_v_info->obj); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":222 + * + * cdef int i, ndim + * cdef int endian_detector = 1 # <<<<<<<<<<<<<< + * cdef bint little_endian = ((&endian_detector)[0] != 0) * - * info.suboffsets = NULL */ -#line 96 "array.pxd" - __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 96, __pyx_L1_error) - -#line 96 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 222 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_endian_detector = 1; -#line 96 "array.pxd" - __pyx_v_item_count = __pyx_t_1; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":223 + * cdef int i, ndim + * cdef int endian_detector = 1 + * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< + * + * ndim = PyArray_NDIM(self) + */ -#line 96 "array.pxd" - __pyx_t_1 = 0; +#line 223 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "array.pxd":98 - * item_count = Py_SIZE(self) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":225 + * cdef bint little_endian = ((&endian_detector)[0] != 0) * - * info.suboffsets = NULL # <<<<<<<<<<<<<< - * info.buf = self.data.as_chars - * info.readonly = 0 + * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) */ -#line 98 "array.pxd" - __pyx_v_info->suboffsets = NULL; +#line 225 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); - /* "array.pxd":99 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":227 + * ndim = PyArray_NDIM(self) * - * info.suboffsets = NULL - * info.buf = self.data.as_chars # <<<<<<<<<<<<<< - * info.readonly = 0 - * info.ndim = 1 + * 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") */ -#line 99 "array.pxd" - __pyx_t_2 = __pyx_v_self->data.as_chars; +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0); -#line 99 "array.pxd" - __pyx_v_info->buf = __pyx_t_2; +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { - /* "array.pxd":100 - * info.suboffsets = NULL - * info.buf = self.data.as_chars - * info.readonly = 0 # <<<<<<<<<<<<<< - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - */ +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 100 "array.pxd" - __pyx_v_info->readonly = 0; +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":101 - * info.buf = self.data.as_chars - * info.readonly = 0 - * info.ndim = 1 # <<<<<<<<<<<<<< - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - * info.len = info.itemsize * item_count - */ +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L4_bool_binop_done; -#line 101 "array.pxd" - __pyx_v_info->ndim = 1; +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "array.pxd":102 - * info.readonly = 0 - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< - * info.len = info.itemsize * item_count + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":228 + * + * 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") * */ -#line 102 "array.pxd" - __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; +#line 228 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0); -#line 102 "array.pxd" - __pyx_v_info->itemsize = __pyx_t_3; +#line 228 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":103 - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< +#line 228 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L4_bool_binop_done:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":227 + * ndim = PyArray_NDIM(self) * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * 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") */ -#line 103 "array.pxd" - __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 103, __pyx_L1_error) - -#line 103 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_1)) { -#line 103 "array.pxd" - __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 103, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":229 + * 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) + */ -#line 103 "array.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 229, __pyx_L1_error) -#line 103 "array.pxd" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 103 "array.pxd" - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(10, 103, __pyx_L1_error) +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 103 "array.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 103 "array.pxd" - __pyx_v_info->len = __pyx_t_5; +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 229, __pyx_L1_error) - /* "array.pxd":105 - * info.len = info.itemsize * item_count + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":227 + * ndim = PyArray_NDIM(self) * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< - * if not info.shape: - * raise MemoryError() + * 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") */ -#line 105 "array.pxd" - __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "array.pxd":106 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * raise ValueError(u"ndarray is not C contiguous") * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: # <<<<<<<<<<<<<< - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing + * 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") */ -#line 106 "array.pxd" - __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0); -#line 106 "array.pxd" - if (__pyx_t_6) { +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { - /* "array.pxd":107 - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: - * raise MemoryError() # <<<<<<<<<<<<<< - * info.shape[0] = item_count # constant regardless of resizing - * info.strides = &info.itemsize - */ +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 107 "array.pxd" - PyErr_NoMemory(); __PYX_ERR(10, 107, __pyx_L1_error) +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":106 - * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: # <<<<<<<<<<<<<< - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing - */ +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 106 "array.pxd" +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "array.pxd":108 - * if not info.shape: - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< - * info.strides = &info.itemsize + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":232 + * + * 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") * */ -#line 108 "array.pxd" - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(10, 108, __pyx_L1_error) +#line 232 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0); -#line 108 "array.pxd" - (__pyx_v_info->shape[0]) = __pyx_t_5; +#line 232 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":109 - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing - * info.strides = &info.itemsize # <<<<<<<<<<<<<< +#line 232 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L7_bool_binop_done:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * raise ValueError(u"ndarray is not C contiguous") * - * info.format = (info.shape + 1) + * 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") */ -#line 109 "array.pxd" - __pyx_v_info->strides = (&__pyx_v_info->itemsize); +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_1)) { - /* "array.pxd":111 - * info.strides = &info.itemsize + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":233 + * 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.format = (info.shape + 1) # <<<<<<<<<<<<<< - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 + * info.buf = PyArray_DATA(self) */ -#line 111 "array.pxd" - __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 233, __pyx_L1_error) + +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); + +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); + +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 233, __pyx_L1_error) - /* "array.pxd":112 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * raise ValueError(u"ndarray is not C contiguous") * - * info.format = (info.shape + 1) - * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< - * info.format[1] = 0 - * info.obj = self + * 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") */ -#line 112 "array.pxd" - __pyx_t_3 = __pyx_v_self->ob_descr->typecode; - -#line 112 "array.pxd" - (__pyx_v_info->format[0]) = __pyx_t_3; +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "array.pxd":113 - * info.format = (info.shape + 1) - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 # <<<<<<<<<<<<<< - * info.obj = self + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":235 + * raise ValueError(u"ndarray is not Fortran contiguous") * + * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< + * info.ndim = ndim + * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 113 "array.pxd" - (__pyx_v_info->format[1]) = 0; +#line 235 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); - /* "array.pxd":114 - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 - * info.obj = self # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":236 * - * def __releasebuffer__(self, Py_buffer* info): + * info.buf = PyArray_DATA(self) + * info.ndim = ndim # <<<<<<<<<<<<<< + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * # Allocate new buffer for strides and shape info. */ -#line 114 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_self)); +#line 236 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->ndim = __pyx_v_ndim; -#line 114 "array.pxd" - __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 + * info.buf = PyArray_DATA(self) + * info.ndim = ndim + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + */ -#line 114 "array.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); -#line 114 "array.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { -#line 114 "array.pxd" - __pyx_v_info->obj = ((PyObject *)__pyx_v_self); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":240 + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) # <<<<<<<<<<<<<< + * info.shape = info.strides + ndim + * for i in range(ndim): + */ - /* "array.pxd":91 - * __data_union data - * - * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. +#line 240 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->strides = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * 2) * ((size_t)__pyx_v_ndim)))); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":241 + * # This is allocated as one block, strides first. + * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) + * info.shape = info.strides + ndim # <<<<<<<<<<<<<< + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] */ -#line 91 "array.pxd" +#line 241 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":242 + * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) + * info.shape = info.strides + ndim + * for i in range(ndim): # <<<<<<<<<<<<<< + * info.strides[i] = PyArray_STRIDES(self)[i] + * info.shape[i] = PyArray_DIMS(self)[i] + */ -#line 91 "array.pxd" - /* function exit code */ +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __pyx_v_ndim; -#line 91 "array.pxd" - __pyx_r = 0; +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_5 = __pyx_t_4; -#line 91 "array.pxd" - goto __pyx_L0; +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { -#line 91 "array.pxd" - __pyx_L1_error:; +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_i = __pyx_t_6; -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":243 + * info.shape = info.strides + ndim + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< + * info.shape[i] = PyArray_DIMS(self)[i] + * else: + */ -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_t_4); +#line 243 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); -#line 91 "array.pxd" - __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":244 + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] + * info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<< + * else: + * info.strides = PyArray_STRIDES(self) + */ -#line 91 "array.pxd" - __pyx_r = -1; +#line 244 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); -#line 91 "array.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { +#line 244 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 91 "array.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 + * info.buf = PyArray_DATA(self) + * info.ndim = ndim + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + */ -#line 91 "array.pxd" - __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L9; -#line 91 "array.pxd" +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 91 "array.pxd" - goto __pyx_L2; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":246 + * info.shape[i] = PyArray_DIMS(self)[i] + * else: + * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL + */ -#line 91 "array.pxd" - __pyx_L0:; +#line 246 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 91 "array.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { +#line 246 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); -#line 91 "array.pxd" - __Pyx_GOTREF(Py_None); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":247 + * else: + * info.strides = PyArray_STRIDES(self) + * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) + */ -#line 91 "array.pxd" - __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; +#line 247 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); -#line 91 "array.pxd" +#line 247 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 91 "array.pxd" - __pyx_L2:; +#line 247 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L9:; -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_v_item_count); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 + * info.strides = PyArray_STRIDES(self) + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL # <<<<<<<<<<<<<< + * info.itemsize = PyArray_ITEMSIZE(self) + * info.readonly = not PyArray_ISWRITEABLE(self) + */ -#line 91 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 248 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->suboffsets = NULL; -#line 91 "array.pxd" - return __pyx_r; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":249 + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< + * info.readonly = not PyArray_ISWRITEABLE(self) + * + */ -#line 91 "array.pxd" -} +#line 249 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); -/* "array.pxd":116 - * info.obj = self - * - * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< - * PyObject_Free(info.shape) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":250 + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) + * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< * + * cdef int t */ -#line 116 "array.pxd" - +#line 250 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); -#line 116 "array.pxd" -/* Python wrapper */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":253 + * + * cdef int t + * cdef char* f = NULL # <<<<<<<<<<<<<< + * cdef dtype descr = self.descr + * cdef int offset + */ -#line 116 "array.pxd" -static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ +#line 253 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = NULL; -#line 116 "array.pxd" -static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":254 + * cdef int t + * cdef char* f = NULL + * cdef dtype descr = self.descr # <<<<<<<<<<<<<< + * cdef int offset + * + */ -#line 116 "array.pxd" - __Pyx_RefNannyDeclarations +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = ((PyObject *)__pyx_v_self->descr); -#line 116 "array.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_3); -#line 116 "array.pxd" - __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); -#line 116 "array.pxd" +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 + * cdef int offset + * + * info.obj = self # <<<<<<<<<<<<<< + * + * if not PyDataType_HASFIELDS(descr): + */ -#line 116 "array.pxd" - /* function exit code */ +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_self)); -#line 116 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); -#line 116 "array.pxd" -} +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 116 "array.pxd" +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = ((PyObject *)__pyx_v_self); -#line 116 "array.pxd" -static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + * info.obj = self + * + * if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<< + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or + */ -#line 116 "array.pxd" - __Pyx_RefNannyDeclarations +#line 259 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((!(PyDataType_HASFIELDS(__pyx_v_descr) != 0)) != 0); -#line 116 "array.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__", 0); +#line 259 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { - /* "array.pxd":117 - * - * def __releasebuffer__(self, Py_buffer* info): - * PyObject_Free(info.shape) # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":260 * - * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) + * if not PyDataType_HASFIELDS(descr): + * t = descr.type_num # <<<<<<<<<<<<<< + * if ((descr.byteorder == c'>' and little_endian) or + * (descr.byteorder == c'<' and not little_endian)): */ -#line 117 "array.pxd" - PyObject_Free(__pyx_v_info->shape); +#line 260 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __pyx_v_descr->type_num; - /* "array.pxd":116 - * info.obj = self - * - * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< - * PyObject_Free(info.shape) - * +#line 260 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_t = __pyx_t_4; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * if not PyDataType_HASFIELDS(descr): + * 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") */ -#line 116 "array.pxd" +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_2) { -#line 116 "array.pxd" - /* function exit code */ +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15_next_or; -#line 116 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 116 "array.pxd" -} +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "array.pxd":128 - * - * - * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< - * """ fast creation of a new array, given a template array. - * type will be same as template. - */ +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (__pyx_v_little_endian != 0); -#line 128 "array.pxd" +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_2) { +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 128 "array.pxd" -static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { - arrayobject *__pyx_v_op = NULL -#line 128 "array.pxd" -; - -#line 128 "array.pxd" - arrayobject *__pyx_r = NULL; - -#line 128 "array.pxd" - __Pyx_RefNannyDeclarations - -#line 128 "array.pxd" - PyObject *__pyx_t_1 = NULL; - -#line 128 "array.pxd" - int __pyx_t_2; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; -#line 128 "array.pxd" - int __pyx_t_3; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L14_bool_binop_done; -#line 128 "array.pxd" - int __pyx_t_4; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 128 "array.pxd" - __Pyx_RefNannySetupContext("clone", 0); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L15_next_or:; - /* "array.pxd":132 - * type will be same as template. - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":262 + * 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" */ -#line 132 "array.pxd" - __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 132, __pyx_L1_error) - -#line 132 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0); -#line 132 "array.pxd" - __pyx_v_op = ((arrayobject *)__pyx_t_1); +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { -#line 132 "array.pxd" - __pyx_t_1 = 0; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { - /* "array.pxd":133 - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: # <<<<<<<<<<<<<< - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op - */ +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; -#line 133 "array.pxd" - __pyx_t_3 = (__pyx_v_zero != 0); +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L14_bool_binop_done; -#line 133 "array.pxd" - if (__pyx_t_3) { +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 133 "array.pxd" - } else { +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0); -#line 133 "array.pxd" - __pyx_t_2 = __pyx_t_3; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; -#line 133 "array.pxd" - goto __pyx_L4_bool_binop_done; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L14_bool_binop_done:; -#line 133 "array.pxd" - } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * if not PyDataType_HASFIELDS(descr): + * 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") + */ -#line 133 "array.pxd" - __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_1)) { -#line 133 "array.pxd" - __pyx_t_4 = (__pyx_t_3 != 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 + * 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" + */ -#line 133 "array.pxd" - __pyx_t_2 = __pyx_t_4; +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 263, __pyx_L1_error) -#line 133 "array.pxd" - __pyx_L4_bool_binop_done:; +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 133 "array.pxd" - if (__pyx_t_2) { +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); - /* "array.pxd":134 - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< - * return op - * - */ +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 134 "array.pxd" - memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize)); +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 263, __pyx_L1_error) - /* "array.pxd":133 - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: # <<<<<<<<<<<<<< - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * if not PyDataType_HASFIELDS(descr): + * 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") */ -#line 133 "array.pxd" - } +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "array.pxd":135 - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op # <<<<<<<<<<<<<< - * - * cdef inline array copy(array self): + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":264 + * (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" + * elif t == NPY_SHORT: f = "h" */ -#line 135 "array.pxd" - __Pyx_XDECREF(((PyObject *)__pyx_r)); +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + switch (__pyx_v_t) { -#line 135 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_op)); +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_BYTE: -#line 135 "array.pxd" - __pyx_r = __pyx_v_op; +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"b"); -#line 135 "array.pxd" - goto __pyx_L0; +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":128 - * - * - * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< - * """ fast creation of a new array, given a template array. - * type will be same as template. + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 + * raise ValueError(u"Non-native byte order not supported") + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" */ -#line 128 "array.pxd" - - -#line 128 "array.pxd" - /* function exit code */ +#line 265 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_UBYTE: -#line 128 "array.pxd" - __pyx_L1_error:; +#line 265 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"B"); -#line 128 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 265 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 128 "array.pxd" - __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" + */ -#line 128 "array.pxd" - __pyx_r = 0; +#line 266 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_SHORT: -#line 128 "array.pxd" - __pyx_L0:; +#line 266 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"h"); -#line 128 "array.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_op); +#line 266 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 128 "array.pxd" - __Pyx_XGIVEREF((PyObject *)__pyx_r); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":267 + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" + */ -#line 128 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 267 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_USHORT: -#line 128 "array.pxd" - return __pyx_r; +#line 267 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"H"); -#line 128 "array.pxd" -} +#line 267 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -/* "array.pxd":137 - * return op - * - * cdef inline array copy(array self): # <<<<<<<<<<<<<< - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" */ -#line 137 "array.pxd" +#line 268 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_INT: +#line 268 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"i"); -#line 137 "array.pxd" -static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { - arrayobject *__pyx_v_op = NULL -#line 137 "array.pxd" -; +#line 268 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 137 "array.pxd" - arrayobject *__pyx_r = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":269 + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" + */ -#line 137 "array.pxd" - __Pyx_RefNannyDeclarations +#line 269 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_UINT: -#line 137 "array.pxd" - PyObject *__pyx_t_1 = NULL; +#line 269 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"I"); -#line 137 "array.pxd" - __Pyx_RefNannySetupContext("copy", 0); +#line 269 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":139 - * cdef inline array copy(array self): - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) - * return op + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" */ -#line 139 "array.pxd" - __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 139, __pyx_L1_error) - -#line 139 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 270 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONG: -#line 139 "array.pxd" - __pyx_v_op = ((arrayobject *)__pyx_t_1); +#line 270 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"l"); -#line 139 "array.pxd" - __pyx_t_1 = 0; +#line 270 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":140 - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< - * return op - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" */ -#line 140 "array.pxd" - memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize)); - - /* "array.pxd":141 - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) - * return op # <<<<<<<<<<<<<< - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: - */ +#line 271 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_ULONG: -#line 141 "array.pxd" - __Pyx_XDECREF(((PyObject *)__pyx_r)); +#line 271 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"L"); -#line 141 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_op)); +#line 271 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 141 "array.pxd" - __pyx_r = __pyx_v_op; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" + */ -#line 141 "array.pxd" - goto __pyx_L0; +#line 272 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONGLONG: - /* "array.pxd":137 - * return op - * - * cdef inline array copy(array self): # <<<<<<<<<<<<<< - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - */ +#line 272 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"q"); -#line 137 "array.pxd" +#line 272 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":273 + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" + */ -#line 137 "array.pxd" - /* function exit code */ +#line 273 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_ULONGLONG: -#line 137 "array.pxd" - __pyx_L1_error:; +#line 273 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Q"); -#line 137 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 273 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 137 "array.pxd" - __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" + */ -#line 137 "array.pxd" - __pyx_r = 0; +#line 274 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_FLOAT: -#line 137 "array.pxd" - __pyx_L0:; +#line 274 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"f"); -#line 137 "array.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_op); +#line 274 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 137 "array.pxd" - __Pyx_XGIVEREF((PyObject *)__pyx_r); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" + */ -#line 137 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 275 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_DOUBLE: -#line 137 "array.pxd" - return __pyx_r; +#line 275 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"d"); -#line 137 "array.pxd" -} +#line 275 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -/* "array.pxd":143 - * return op - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< - * """ efficent appending of new stuff of same type - * (e.g. of same array type) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" */ -#line 143 "array.pxd" +#line 276 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONGDOUBLE: +#line 276 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"g"); -#line 143 "array.pxd" -static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { - Py_ssize_t __pyx_v_itemsize -#line 143 "array.pxd" -; - Py_ssize_t __pyx_v_origsize -#line 143 "array.pxd" -; +#line 276 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 143 "array.pxd" - int __pyx_r; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":277 + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" + */ -#line 143 "array.pxd" - __Pyx_RefNannyDeclarations +#line 277 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CFLOAT: -#line 143 "array.pxd" - int __pyx_t_1; +#line 277 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zf"); -#line 143 "array.pxd" - __Pyx_RefNannySetupContext("extend_buffer", 0); +#line 277 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":147 - * (e.g. of same array type) - * n: number of elements (not number of bytes!) """ - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< + * elif t == NPY_CLONGDOUBLE: f = "Zg" + * elif t == NPY_OBJECT: f = "O" */ -#line 147 "array.pxd" - __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; +#line 278 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CDOUBLE: -#line 147 "array.pxd" - __pyx_v_itemsize = __pyx_t_1; +#line 278 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zd"); - /* "array.pxd":148 - * n: number of elements (not number of bytes!) """ - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize - * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) +#line 278 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< + * elif t == NPY_OBJECT: f = "O" + * else: */ -#line 148 "array.pxd" - __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); +#line 279 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CLONGDOUBLE: - /* "array.pxd":149 - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - * return 0 - */ +#line 279 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zg"); -#line 149 "array.pxd" - __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(10, 149, __pyx_L1_error) +#line 279 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":150 - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< - * return 0 - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" + * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) */ -#line 150 "array.pxd" - memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize)); +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_OBJECT: - /* "array.pxd":151 - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - * return 0 # <<<<<<<<<<<<<< - * - * cdef inline int extend(array self, array other) except -1: - */ +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"O"); -#line 151 "array.pxd" - __pyx_r = 0; +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 151 "array.pxd" - goto __pyx_L0; +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + default: - /* "array.pxd":143 - * return op - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< - * """ efficent appending of new stuff of same type - * (e.g. of same array type) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":282 + * elif t == NPY_OBJECT: f = "O" + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< + * info.format = f + * return */ -#line 143 "array.pxd" +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 282, __pyx_L1_error) +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 143 "array.pxd" - /* function exit code */ +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 282, __pyx_L1_error) -#line 143 "array.pxd" - __pyx_L1_error:; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 143 "array.pxd" - __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 143 "array.pxd" - __pyx_r = -1; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 282, __pyx_L1_error) -#line 143 "array.pxd" - __pyx_L0:; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 143 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; -#line 143 "array.pxd" - return __pyx_r; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 143 "array.pxd" -} +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -/* "array.pxd":153 - * return 0 - * - * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: - */ +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 282, __pyx_L1_error) -#line 153 "array.pxd" +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 153 "array.pxd" -static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * info.format = f # <<<<<<<<<<<<<< + * return + * else: + */ -#line 153 "array.pxd" - int __pyx_r; +#line 283 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->format = __pyx_v_f; -#line 153 "array.pxd" - __Pyx_RefNannyDeclarations + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * info.format = f + * return # <<<<<<<<<<<<<< + * else: + * info.format = PyObject_Malloc(_buffer_format_string_len) + */ -#line 153 "array.pxd" - int __pyx_t_1; +#line 284 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 153 "array.pxd" - int __pyx_t_2; +#line 284 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 153 "array.pxd" - __Pyx_RefNannySetupContext("extend", 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + * info.obj = self + * + * if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<< + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or + */ - /* "array.pxd":155 - * cdef inline int extend(array self, array other) except -1: - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) +#line 259 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":286 + * return + * else: + * info.format = PyObject_Malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 */ -#line 155 "array.pxd" - __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); +#line 286 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 155 "array.pxd" - if (__pyx_t_1) { +#line 286 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->format = ((char *)PyObject_Malloc(0xFF)); - /* "array.pxd":156 - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: - * PyErr_BadArgument() # <<<<<<<<<<<<<< - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":287 + * else: + * info.format = PyObject_Malloc(_buffer_format_string_len) + * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< + * offset = 0 + * f = _util_dtypestring(descr, info.format + 1, */ -#line 156 "array.pxd" - __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == 0)) __PYX_ERR(10, 156, __pyx_L1_error) +#line 287 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->format[0]) = '^'; - /* "array.pxd":155 - * cdef inline int extend(array self, array other) except -1: - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":288 + * info.format = PyObject_Malloc(_buffer_format_string_len) + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 # <<<<<<<<<<<<<< + * f = _util_dtypestring(descr, info.format + 1, + * info.format + _buffer_format_string_len, */ -#line 155 "array.pxd" - } +#line 288 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_offset = 0; - /* "array.pxd":157 - * if self.ob_descr.typecode != other.ob_descr.typecode: - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< - * - * cdef inline void zero(array self): + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":289 + * 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) */ -#line 157 "array.pxd" - __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(10, 157, __pyx_L1_error) +#line 289 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_8 == ((char *)NULL))) __PYX_ERR(10, 289, __pyx_L1_error) -#line 157 "array.pxd" - __pyx_r = __pyx_t_2; - -#line 157 "array.pxd" - goto __pyx_L0; +#line 289 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = __pyx_t_8; - /* "array.pxd":153 - * return 0 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 + * info.format + _buffer_format_string_len, + * &offset) + * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< * - * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: + * def __releasebuffer__(ndarray self, Py_buffer* info): */ -#line 153 "array.pxd" +#line 292 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = '\x00'; +#line 292 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 153 "array.pxd" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":215 + * # experimental exception made for __getbuffer__ and __releasebuffer__ + * # -- the details of this may change. + * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fulfill the PEP. + */ + +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + + +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 153 "array.pxd" - __pyx_L1_error:; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 153 "array.pxd" - __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 153 "array.pxd" - __pyx_r = -1; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 153 "array.pxd" - __pyx_L0:; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); -#line 153 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 153 "array.pxd" - return __pyx_r; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 153 "array.pxd" -} +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -/* "array.pxd":159 - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - * - * cdef inline void zero(array self): # <<<<<<<<<<<<<< - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) - */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info->obj != NULL) { -#line 159 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 159 "array.pxd" -static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 159 "array.pxd" - __Pyx_RefNannyDeclarations +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L2; -#line 159 "array.pxd" - __Pyx_RefNannySetupContext("zero", 0); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; - /* "array.pxd":161 - * cdef inline void zero(array self): - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< - */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info->obj == Py_None) { -#line 161 "array.pxd" - memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize)); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); - /* "array.pxd":159 - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - * - * cdef inline void zero(array self): # <<<<<<<<<<<<<< - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) - */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 159 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L2:; -#line 159 "array.pxd" - /* function exit code */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_descr); -#line 159 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 159 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; + +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -/* "../../.local/lib/python2.7/site-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): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 + * f[0] = c'\0' # Terminate format string + * + * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* Python wrapper */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyDeclarations -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); - __pyx_r = -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -__pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); + +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { - int __pyx_v_copy_shape -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_i -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_ndim -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_endian_detector -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_little_endian -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_t -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - char *__pyx_v_f -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyArray_Descr *__pyx_v_descr = 0 -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_offset -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_hasfields -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyDeclarations -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_t_1; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_2; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_5; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_t_7; - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__getbuffer__", 0); - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL) { - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_v_info->obj); - -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":203 - * # of flags + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":295 * - * if info == NULL: return # <<<<<<<<<<<<<< - * - * cdef int copy_shape, i, ndim + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((__pyx_v_info == NULL) != 0); +#line 295 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 295 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" if (__pyx_t_1) { -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; - -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; - -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":206 - * - * cdef int copy_shape, i, ndim - * cdef int endian_detector = 1 # <<<<<<<<<<<<<< - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * - */ - -#line 206 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_endian_detector = 1; - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":207 - * cdef int copy_shape, i, ndim - * cdef int endian_detector = 1 - * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< - * - * ndim = PyArray_NDIM(self) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":296 + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) # <<<<<<<<<<<<<< + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * PyObject_Free(info.strides) */ -#line 207 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); +#line 296 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject_Free(__pyx_v_info->format); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":209 - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * - * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":295 * + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< + * PyObject_Free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 209 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); +#line 295 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 - * ndim = PyArray_NDIM(self) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297 + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * copy_shape = 1 - * else: + * PyObject_Free(info.strides) + * # info.shape was stored after info.strides in the same block */ -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 297 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 297 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":212 - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":298 + * PyObject_Free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * copy_shape = 1 # <<<<<<<<<<<<<< - * else: - * copy_shape = 0 - */ - -#line 212 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_copy_shape = 1; - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 - * ndim = PyArray_NDIM(self) + * PyObject_Free(info.strides) # <<<<<<<<<<<<<< + * # info.shape was stored after info.strides in the same block * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * copy_shape = 1 - * else: */ -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L4; +#line 298 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject_Free(__pyx_v_info->strides); -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":214 - * copy_shape = 1 - * else: - * copy_shape = 0 # <<<<<<<<<<<<<< - * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297 + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * PyObject_Free(info.strides) + * # info.shape was stored after info.strides in the same block */ -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { - -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_copy_shape = 0; - -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 297 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L4:; - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 + * f[0] = c'\0' # Terminate format string * - * 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") + * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) */ -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { - -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L6_bool_binop_done; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-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") +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":775 + * ctypedef npy_cdouble complex_t * - */ - -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0); - -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; - -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L6_bool_binop_done:; - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 + * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(1, a) * - * 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") */ -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-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) - */ -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 218, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 218, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 * - * 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") - */ - -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 - * raise ValueError(u"ndarray is not C contiguous") + * cdef inline object PyArray_MultiIterNew1(a): + * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< * - * 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") + * cdef inline object PyArray_MultiIterNew2(a, b): */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0); - -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { - -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { - -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; - -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L9_bool_binop_done; +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 776, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-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") - * - */ +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0); +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L9_bool_binop_done:; +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 - * raise ValueError(u"ndarray is not C contiguous") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":775 + * ctypedef npy_cdouble complex_t * - * 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") - */ - -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { - - /* "../../.local/lib/python2.7/site-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") # <<<<<<<<<<<<<< + * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(1, a) * - * info.buf = PyArray_DATA(self) */ -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 222, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); - -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 222, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-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") - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":224 - * raise ValueError(u"ndarray is not Fortran contiguous") - * - * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< - * info.ndim = ndim - * if copy_shape: - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 224 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":225 - * - * info.buf = PyArray_DATA(self) - * info.ndim = ndim # <<<<<<<<<<<<<< - * if copy_shape: - * # Allocate new buffer for strides and shape info. - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 225 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->ndim = __pyx_v_ndim; +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); - /* "../../.local/lib/python2.7/site-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. - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (__pyx_v_copy_shape != 0); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-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 = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) # <<<<<<<<<<<<<< - * info.shape = info.strides + ndim - * for i in range(ndim): +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778 + * return PyArray_MultiIterNew(1, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, b) + * */ -#line 229 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2))); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":230 - * # This is allocated as one block, strides first. - * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) - * info.shape = info.strides + ndim # <<<<<<<<<<<<<< - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] - */ -#line 230 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 - * info.strides = stdlib.malloc(sizeof(Py_ssize_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] - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __pyx_v_ndim; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_i = __pyx_t_5; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":232 - * info.shape = info.strides + ndim - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< - * info.shape[i] = PyArray_DIMS(self)[i] - * else: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 + * + * cdef inline object PyArray_MultiIterNew2(a, b): + * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): */ -#line 232 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); - /* "../../.local/lib/python2.7/site-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] # <<<<<<<<<<<<<< - * else: - * info.strides = PyArray_STRIDES(self) - */ +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 779, __pyx_L1_error) -#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; - /* "../../.local/lib/python2.7/site-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. +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; + +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778 + * return PyArray_MultiIterNew(1, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, b) + * */ -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L11; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":235 - * info.shape[i] = PyArray_DIMS(self)[i] - * else: - * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":236 - * else: - * info.strides = PyArray_STRIDES(self) - * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L11:; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 - * info.strides = PyArray_STRIDES(self) - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL # <<<<<<<<<<<<<< - * info.itemsize = PyArray_ITEMSIZE(self) - * info.readonly = not PyArray_ISWRITEABLE(self) - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 237 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->suboffsets = NULL; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":238 - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< - * info.readonly = not PyArray_ISWRITEABLE(self) +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":781 + * return PyArray_MultiIterNew(2, a, b) + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, c) * */ -#line 238 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":239 - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) - * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< - * - * cdef int t - */ -#line 239 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":242 - * - * cdef int t - * cdef char* f = NULL # <<<<<<<<<<<<<< - * cdef dtype descr = self.descr - * cdef int offset - */ +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 242 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = NULL; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":243 - * cdef int t - * cdef char* f = NULL - * cdef dtype descr = self.descr # <<<<<<<<<<<<<< - * cdef int offset +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; + +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 * + * cdef inline object PyArray_MultiIterNew3(a, b, c): + * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): */ -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = ((PyObject *)__pyx_v_self->descr); +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_3); +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 782, __pyx_L1_error) -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":246 - * cdef int offset +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; + +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":781 + * return PyArray_MultiIterNew(2, a, b) * - * cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<< + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, c) * - * if not hasfields and not copy_shape: */ -#line 246 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 - * cdef bint hasfields = PyDataType_HASFIELDS(descr) - * - * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< - * # do not call releasebuffer - * info.obj = None - */ -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15_bool_binop_done; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L15_bool_binop_done:; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":250 - * if not hasfields and not copy_shape: - * # do not call releasebuffer - * info.obj = None # <<<<<<<<<<<<<< - * else: - * # need to call releasebuffer +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784 + * return PyArray_MultiIterNew(3, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, d) + * */ -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(Py_None); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(Py_None); -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { + +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = Py_None; +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 - * cdef bint hasfields = PyDataType_HASFIELDS(descr) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 * - * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< - * # do not call releasebuffer - * info.obj = None + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): + * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): */ -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L14; +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(10, 785, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":253 - * else: - * # need to call releasebuffer - * info.obj = self # <<<<<<<<<<<<<< +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); + +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; + +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; + +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784 + * return PyArray_MultiIterNew(3, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, d) * - * if not hasfields: */ -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_self)); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = ((PyObject *)__pyx_v_self); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L14:; +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 - * info.obj = self - * - * if not hasfields: # <<<<<<<<<<<<<< - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or - */ +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":256 +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":787 + * return PyArray_MultiIterNew(4, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, e) * - * if not hasfields: - * t = descr.type_num # <<<<<<<<<<<<<< - * if ((descr.byteorder == c'>' and little_endian) or - * (descr.byteorder == c'<' and not little_endian)): */ -#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __pyx_v_descr->type_num; - -#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_t = __pyx_t_4; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-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)): - * raise ValueError(u"Non-native byte order not supported") - */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0); +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_2) { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L20_next_or; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (__pyx_v_little_endian != 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":788 + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): + * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< + * + * cdef inline tuple PyDataType_SHAPE(dtype d): + */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_2) { +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(10, 788, __pyx_L1_error) -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L19_bool_binop_done; +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L20_next_or:; +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":787 + * return PyArray_MultiIterNew(4, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * */ -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0); +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L19_bool_binop_done; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L19_bool_binop_done:; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); - /* "../../.local/lib/python2.7/site-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)): - * raise ValueError(u"Non-native byte order not supported") - */ +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 - * 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" +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * + * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< + * if PyDataType_HASSUBARRAY(d): + * return d.subarray.shape */ -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 259, __pyx_L1_error) +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) { -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 259, __pyx_L1_error) +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-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)): - * raise ValueError(u"Non-native byte order not supported") +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; + +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 + * + * cdef inline tuple PyDataType_SHAPE(dtype d): + * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< + * return d.subarray.shape + * else: */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 791 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":260 - * (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" - * elif t == NPY_SHORT: f = "h" +#line 791 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":792 + * cdef inline tuple PyDataType_SHAPE(dtype d): + * if PyDataType_HASSUBARRAY(d): + * return d.subarray.shape # <<<<<<<<<<<<<< + * else: + * return () */ -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - switch (__pyx_v_t) { +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_BYTE: +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape)); -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"b"); +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 - * raise ValueError(u"Non-native byte order not supported") - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 + * + * cdef inline tuple PyDataType_SHAPE(dtype d): + * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< + * return d.subarray.shape + * else: */ -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_UBYTE: +#line 791 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"B"); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 + * return d.subarray.shape + * else: + * return () # <<<<<<<<<<<<<< + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: + */ -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":262 - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" - */ +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_SHORT: +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_empty_tuple); -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"h"); +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_empty_tuple; -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * + * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< + * if PyDataType_HASSUBARRAY(d): + * return d.subarray.shape */ -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_USHORT: +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"H"); -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":264 - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" - */ +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_INT: +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"i"); +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 + * return () + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< + * # Recursive utility function used in __getbuffer__ to get format + * # string. The new location in the format string is returned. */ -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_UINT: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"I"); -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) { + PyArray_Descr *__pyx_v_child = 0 +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_endian_detector +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_little_endian +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_fields = 0 +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_childname = NULL +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_new_offset = NULL +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_t = NULL +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_r; -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONG: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"l"); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t __pyx_t_2; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":267 - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_ULONG: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_4 = NULL; -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"L"); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_5; -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_6; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_7; -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONGLONG: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + long __pyx_t_8; -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"q"); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_t_9; -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("_util_dtypestring", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":269 - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 + * + * cdef dtype child + * cdef int endian_detector = 1 # <<<<<<<<<<<<<< + * cdef bint little_endian = ((&endian_detector)[0] != 0) + * cdef tuple fields */ -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_ULONGLONG: +#line 801 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_endian_detector = 1; -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Q"); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 + * cdef dtype child + * cdef int endian_detector = 1 + * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< + * cdef tuple fields + * + */ -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 802 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805 + * cdef tuple fields + * + * for childname in descr.names: # <<<<<<<<<<<<<< + * fields = descr.fields[childname] + * child, new_offset = fields */ -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_FLOAT: - -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"f"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_v_descr->names == Py_None)) { -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" - */ +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 805, __pyx_L1_error) -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_DOUBLE: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"d"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + for (;;) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" - */ +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONGDOUBLE: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"g"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(10, 805, __pyx_L1_error) -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":273 - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" - */ +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 805, __pyx_L1_error) -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CFLOAT: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zf"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< - * elif t == NPY_CLONGDOUBLE: f = "Zg" - * elif t == NPY_OBJECT: f = "O" +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":806 + * + * for childname in descr.names: + * fields = descr.fields[childname] # <<<<<<<<<<<<<< + * child, new_offset = fields + * */ -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CDOUBLE: +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_v_descr->fields == Py_None)) { -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zd"); +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 806, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< - * elif t == NPY_OBJECT: f = "O" - * else: - */ +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CLONGDOUBLE: +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 806, __pyx_L1_error) -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zg"); +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + 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_ERR(10, 806, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" - * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - */ +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_OBJECT: +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"O"); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":807 + * for childname in descr.names: + * fields = descr.fields[childname] + * child, new_offset = fields # <<<<<<<<<<<<<< + * + * if (end - f) - (new_offset - offset[0]) < 15: + */ -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (likely(__pyx_v_fields != Py_None)) { -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - default: +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject* sequence = __pyx_v_fields; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 - * elif t == NPY_OBJECT: f = "O" - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< - * info.format = f - * return - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(size != 2)) { -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (size > 2) __Pyx_RaiseTooManyValuesError(2); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 807, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_3); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_4); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 807, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_6, 0, 0, 0); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 807, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); + +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(10, 807, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * info.format = f # <<<<<<<<<<<<<< - * return - * else: - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(10, 807, __pyx_L1_error) -#line 279 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->format = __pyx_v_f; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3)); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * info.format = f - * return # <<<<<<<<<<<<<< - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; -#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); -#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 - * info.obj = self + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809 + * child, new_offset = fields + * + * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * - * if not hasfields: # <<<<<<<<<<<<<< - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or */ -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 809, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":282 - * return - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 - */ +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 809, __pyx_L1_error) + +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->format = ((char *)malloc(0xFF)); +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) - * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< - * offset = 0 - * f = _util_dtypestring(descr, info.format + 1, - */ +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 809, __pyx_L1_error) -#line 283 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->format[0]) = '^'; +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 - * info.format = stdlib.malloc(_buffer_format_string_len) - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 # <<<<<<<<<<<<<< - * f = _util_dtypestring(descr, info.format + 1, - * info.format + _buffer_format_string_len, - */ +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); -#line 284 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_offset = 0; +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_6)) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":285 - * 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) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":810 + * + * if (end - f) - (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 */ -#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) __PYX_ERR(11, 285, __pyx_L1_error) +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 810, __pyx_L1_error) -#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = __pyx_t_7; +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288 - * info.format + _buffer_format_string_len, - * &offset) - * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< - * - * def __releasebuffer__(ndarray self, Py_buffer* info): - */ +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = '\x00'; +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 810, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-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): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809 + * child, new_offset = fields + * + * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + * */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 + * 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") + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_7) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_next_or; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = (__pyx_v_little_endian != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_7) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L2; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_next_or:; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 + * + * 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 + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(Py_None); +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_7) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L2:; +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_descr); +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L7_bool_binop_done:; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 - * f[0] = c'\0' # Terminate format string + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * - * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) + * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (child.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_6)) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 + * 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 + */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -/* Python wrapper */ - -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 814, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 814, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 + * 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") + */ +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824 + * + * # Output padding bytes + * while offset[0] < new_offset: # <<<<<<<<<<<<<< + * f[0] = 120 # "x"; pad byte + * f += 1 + */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + while (1) { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 824, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(10, 824, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 824, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__", 0); +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_6) break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 - * - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":825 + * # Output padding bytes + * while offset[0] < new_offset: + * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< + * f += 1 + * offset[0] += 1 */ -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); - -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 825 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x78; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) # <<<<<<<<<<<<<< - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * stdlib.free(info.strides) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":826 + * while offset[0] < new_offset: + * f[0] = 120 # "x"; pad byte + * f += 1 # <<<<<<<<<<<<<< + * offset[0] += 1 + * */ -#line 292 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - free(__pyx_v_info->format); +#line 826 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 + * f[0] = 120 # "x"; pad byte + * f += 1 + * offset[0] += 1 # <<<<<<<<<<<<<< * - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * offset[0] += child.itemsize */ -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * stdlib.free(info.strides) - * # info.shape was stored after info.strides in the same block - */ +#line 827 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = 0; -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); +#line 827 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 827 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * stdlib.free(info.strides) # <<<<<<<<<<<<<< - * # info.shape was stored after info.strides in the same block + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":829 + * offset[0] += 1 + * + * offset[0] += child.itemsize # <<<<<<<<<<<<<< * + * if not PyDataType_HASFIELDS(child): */ -#line 294 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - free(__pyx_v_info->strides); - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * stdlib.free(info.strides) - * # info.shape was stored after info.strides in the same block - */ +#line 829 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = 0; -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 829 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 - * f[0] = c'\0' # Terminate format string + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 + * offset[0] += child.itemsize * - * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) + * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< + * t = child.type_num + * if end - f < 5: */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ - -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 - * ctypedef npy_cdouble complex_t - * - * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(1, a) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":832 * + * if not PyDataType_HASFIELDS(child): + * t = child.type_num # <<<<<<<<<<<<<< + * if end - f < 5: + * raise RuntimeError(u"Format string allocated too short.") */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 832, __pyx_L1_error) +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = 0; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 + * if not PyDataType_HASFIELDS(child): + * t = child.type_num + * if end - f < 5: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short.") + * + */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 833 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); +#line 833 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_6)) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771 - * - * cdef inline object PyArray_MultiIterNew1(a): - * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 + * t = child.type_num + * if end - f < 5: + * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< * - * cdef inline object PyArray_MultiIterNew2(a, b): + * # Until ticket #99 is fixed, use integers to avoid warnings */ -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); - -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 771, __pyx_L1_error) +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 834, __pyx_L1_error) -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_4, 0, 0, 0); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 834, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 - * ctypedef npy_cdouble complex_t - * - * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(1, a) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 + * if not PyDataType_HASFIELDS(child): + * t = child.type_num + * if end - f < 5: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short.") * */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 833 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 + * + * # 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" + */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 837, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 837, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 837, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 98; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 - * return PyArray_MultiIterNew(1, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, b) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 + * # 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" */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { - -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; - -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 838, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 838, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774 - * - * cdef inline object PyArray_MultiIterNew2(a, b): - * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): - */ +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 838, __pyx_L1_error) -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 774, __pyx_L1_error) +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 66; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 - * return PyArray_MultiIterNew(1, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, b) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":839 + * 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" */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 839, __pyx_L1_error) +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 839, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 839, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x68; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 + * 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" + */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 840, __pyx_L1_error) -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 - * return PyArray_MultiIterNew(2, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, c) - * - */ +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 840, __pyx_L1_error) +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 840, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 72; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777 - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): - * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":841 + * 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" */ -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 841, __pyx_L1_error) -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 777, __pyx_L1_error) +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 841, __pyx_L1_error) -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 841, __pyx_L1_error) -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 - * return PyArray_MultiIterNew(2, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, c) - * - */ +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x69; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 + * 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" + */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 842, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 842, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 842, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 73; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 - * return PyArray_MultiIterNew(3, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, d) - * +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; + +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":843 + * 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" */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 843, __pyx_L1_error) +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 843, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 843, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780 - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): - * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): - */ +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x6C; -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(11, 780, __pyx_L1_error) +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":844 + * 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" + */ -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 844, __pyx_L1_error) -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 844, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 - * return PyArray_MultiIterNew(3, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, d) - * - */ +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 844, __pyx_L1_error) +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 76; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":845 + * 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" + */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 845, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 845, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 845, __pyx_L1_error) -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 - * return PyArray_MultiIterNew(4, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - */ +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x71; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":846 + * 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" + */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 846, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783 - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): - * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< - * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: - */ +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 846, __pyx_L1_error) -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(11, 783, __pyx_L1_error) +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 846, __pyx_L1_error) -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 81; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 - * return PyArray_MultiIterNew(4, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":847 + * 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" */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 847, __pyx_L1_error) +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 847, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 847, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x66; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":848 + * 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 + */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 848, __pyx_L1_error) -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< - * # Recursive utility function used in __getbuffer__ to get format - * # string. The new location in the format string is returned. - */ +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 848, __pyx_L1_error) +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) { - PyArray_Descr *__pyx_v_child = 0 -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_endian_detector -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_little_endian -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_fields = 0 -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_childname = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_new_offset = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_t = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 848, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_r; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x64; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t __pyx_t_2; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_4 = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":849 + * 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 + */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_5; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 849, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_6; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_7; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 849, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - long __pyx_t_8; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_t_9; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 849, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("_util_dtypestring", 0); +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 - * - * cdef dtype child - * cdef int endian_detector = 1 # <<<<<<<<<<<<<< - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * cdef tuple fields - */ +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 790 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_endian_detector = 1; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x67; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 - * cdef dtype child - * cdef int endian_detector = 1 - * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< - * cdef tuple fields - * - */ +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 791 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 - * cdef tuple fields - * - * for childname in descr.names: # <<<<<<<<<<<<<< - * fields = descr.fields[childname] - * child, new_offset = fields + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":850 + * 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 */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(__pyx_v_descr->names == Py_None)) { +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 850, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 794, __pyx_L1_error) +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 850, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 850, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - for (;;) { +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(11, 794, __pyx_L1_error) +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x66; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 794, __pyx_L1_error) +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851 + * 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" + */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 851, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":795 - * - * for childname in descr.names: - * fields = descr.fields[childname] # <<<<<<<<<<<<<< - * child, new_offset = fields - * - */ +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 851, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(__pyx_v_descr->fields == Py_None)) { +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 851, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 795, __pyx_L1_error) +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 795, __pyx_L1_error) +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x64; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - 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_ERR(11, 795, __pyx_L1_error) +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 - * for childname in descr.names: - * fields = descr.fields[childname] - * child, new_offset = fields # <<<<<<<<<<<<<< - * - * if (end - f) - (new_offset - offset[0]) < 15: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":852 + * 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: */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (likely(__pyx_v_fields != Py_None)) { +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 852, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject* sequence = __pyx_v_fields; +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if !CYTHON_COMPILING_IN_PYPY +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 852, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t size = Py_SIZE(sequence); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 852, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t size = PySequence_Size(sequence); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(size != 2)) { +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (size > 2) __Pyx_RaiseTooManyValuesError(2); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x67; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 796, __pyx_L1_error) +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":853 + * 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) + */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 853, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_3); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_4); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 853, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 796, __pyx_L1_error) +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(10, 853, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 796, __pyx_L1_error) +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (likely(__pyx_t_6)) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 79; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(11, 796, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855 + * elif t == NPY_OBJECT: f[0] = 79 #"O" + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< + * f += 1 + * else: + */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(11, 796, __pyx_L1_error) +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 855, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3)); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 855, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = 0; +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * - */ +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_4, 0, 0, 0); -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 798, __pyx_L1_error) +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 855, __pyx_L1_error) -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 798, __pyx_L1_error) +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L15:; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856 + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * f += 1 # <<<<<<<<<<<<<< + * else: + * # Cython ignores struct boundary information ("T{...}"), + */ -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 798, __pyx_L1_error) +#line 856 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 + * offset[0] += child.itemsize + * + * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< + * t = child.type_num + * if end - f < 5: + */ -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L13; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 - * - * if (end - f) - (new_offset - offset[0]) < 15: - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":860 + * # Cython ignores struct boundary information ("T{...}"), + * # so don't output it + * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< + * return f * - * if ((child.byteorder == c'>' and little_endian) or */ -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 799, __pyx_L1_error) +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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 == ((char *)NULL))) __PYX_ERR(10, 860, __pyx_L1_error) -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = __pyx_t_9; -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 799, __pyx_L1_error) +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L13:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805 + * cdef tuple fields * + * for childname in descr.names: # <<<<<<<<<<<<<< + * fields = descr.fields[childname] + * child, new_offset = fields */ -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":861 + * # so don't output it + * f = _util_dtypestring(child, f, end, offset) + * return f # <<<<<<<<<<<<<< + * * - * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (child.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0); - -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_7) { - -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L8_next_or; - -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { - -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 861 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_v_f; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = (__pyx_v_little_endian != 0); +#line 861 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_7) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 + * return () + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< + * # Recursive utility function used in __getbuffer__ to get format + * # string. The new location in the format string is returned. + */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L7_bool_binop_done; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L8_next_or:; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 - * - * 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 - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_4); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_7) { +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = NULL; -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L7_bool_binop_done; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_child); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_fields); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_childname); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_new_offset); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L7_bool_binop_done:; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_t); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * 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") - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803 - * 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 +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + * + * + * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< + * cdef PyObject* baseptr + * if base is None: */ -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 803, __pyx_L1_error) +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { + PyObject *__pyx_v_baseptr +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 803, __pyx_L1_error) +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * 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") - */ +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_2; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("set_array_base", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 - * - * # Output padding bytes - * while offset[0] < new_offset: # <<<<<<<<<<<<<< - * f[0] = 120 # "x"; pad byte - * f += 1 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":979 + * cdef inline void set_array_base(ndarray arr, object base): + * cdef PyObject* baseptr + * if base is None: # <<<<<<<<<<<<<< + * baseptr = NULL + * else: */ -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - while (1) { +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (__pyx_v_base == Py_None); -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 813, __pyx_L1_error) +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (__pyx_t_1 != 0); -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(11, 813, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":980 + * cdef PyObject* baseptr + * if base is None: + * baseptr = NULL # <<<<<<<<<<<<<< + * else: + * Py_INCREF(base) # important to do this before decref below! + */ -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 980 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_baseptr = NULL; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 813, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":979 + * cdef inline void set_array_base(ndarray arr, object base): + * cdef PyObject* baseptr + * if base is None: # <<<<<<<<<<<<<< + * baseptr = NULL + * else: + */ -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L3; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_6) break; +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 - * # Output padding bytes - * while offset[0] < new_offset: - * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< - * f += 1 - * offset[0] += 1 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":982 + * baseptr = NULL + * else: + * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< + * baseptr = base + * Py_XDECREF(arr.base) */ -#line 814 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x78; +#line 982 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":815 - * while offset[0] < new_offset: - * f[0] = 120 # "x"; pad byte - * f += 1 # <<<<<<<<<<<<<< - * offset[0] += 1 - * +#line 982 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_INCREF(__pyx_v_base); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":983 + * else: + * Py_INCREF(base) # important to do this before decref below! + * baseptr = base # <<<<<<<<<<<<<< + * Py_XDECREF(arr.base) + * arr.base = baseptr */ -#line 815 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 983 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_baseptr = ((PyObject *)__pyx_v_base); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":816 - * f[0] = 120 # "x"; pad byte - * f += 1 - * offset[0] += 1 # <<<<<<<<<<<<<< +#line 983 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + +#line 983 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":984 + * Py_INCREF(base) # important to do this before decref below! + * baseptr = base + * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< + * arr.base = baseptr * - * offset[0] += child.itemsize */ -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = 0; +#line 984 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_XDECREF(__pyx_v_arr->base); -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 + * baseptr = base + * Py_XDECREF(arr.base) + * arr.base = baseptr # <<<<<<<<<<<<<< + * + * cdef inline object get_array_base(ndarray arr): + */ -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 985 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_arr->base = __pyx_v_baseptr; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":818 - * offset[0] += 1 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 * - * offset[0] += child.itemsize # <<<<<<<<<<<<<< * - * if not PyDataType_HASFIELDS(child): + * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< + * cdef PyObject* baseptr + * if base is None: */ -#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = 0; +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 - * offset[0] += child.itemsize - * - * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< - * t = child.type_num - * if end - f < 5: - */ +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 + * arr.base = baseptr * - * if not PyDataType_HASFIELDS(child): - * t = child.type_num # <<<<<<<<<<<<<< - * if end - f < 5: - * raise RuntimeError(u"Format string allocated too short.") + * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< + * if arr.base is NULL: + * return None */ -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 821, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = 0; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 - * if not PyDataType_HASFIELDS(child): - * t = child.type_num - * if end - f < 5: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short.") - * - */ +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("get_array_base", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823 - * t = child.type_num - * if end - f < 5: - * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 * - * # Until ticket #99 is fixed, use integers to avoid warnings + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: # <<<<<<<<<<<<<< + * return None + * else: */ -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 823, __pyx_L1_error) +#line 988 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0); -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 988 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: + * return None # <<<<<<<<<<<<<< + * else: + * return arr.base + */ -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 989 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 823, __pyx_L1_error) +#line 989 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = Py_None; __Pyx_INCREF(Py_None); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 - * if not PyDataType_HASFIELDS(child): - * t = child.type_num - * if end - f < 5: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short.") +#line 989 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 * + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: # <<<<<<<<<<<<<< + * return None + * else: */ -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 988 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":826 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 + * return None + * else: + * return arr.base # <<<<<<<<<<<<<< + * * - * # 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" */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 826, __pyx_L1_error) - -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); - -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 826, __pyx_L1_error) +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 826, __pyx_L1_error) +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = ((PyObject *)__pyx_v_arr->base); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 98; +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 + * arr.base = baseptr + * + * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< + * if arr.base is NULL: + * return None + */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 - * # 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" - */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 827, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 827, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 827, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":996 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() + */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 66; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":828 - * 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" - */ +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 828, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 828, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 828, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x68; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_array", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":829 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: */ -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 829, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 829, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 829, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 72; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + * cdef inline int import_array() except -1: + * try: + * _import_array() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") + */ -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 998 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(10, 998, __pyx_L3_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: */ -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 830, __pyx_L1_error) - -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 830, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 830, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_try_end; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x69; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":999 + * try: + * _import_array() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.multiarray failed to import") + * + */ -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 - * 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" - */ +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 831, __pyx_L1_error) +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(10, 999, __pyx_L5_except_error) -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 831, __pyx_L1_error) +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 831, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 + * _import_array() + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_umath() except -1: + */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 1000, __pyx_L5_except_error) -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 73; +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 1000, __pyx_L5_except_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":832 - * 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" - */ +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 832, __pyx_L1_error) +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 832, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 832, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x6C; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_try_end:; -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":996 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() */ -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 833, __pyx_L1_error) - -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 833, __pyx_L1_error) -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 833, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 76; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 - * 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" - */ +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 834, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 834, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 834, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1002 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x71; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":835 - * 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" - */ +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 835, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 835, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 835, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 81; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_umath", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1003 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 836, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 836, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 836, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x66; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1004 + * cdef inline int import_umath() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") + */ -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1004 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(10, 1004, __pyx_L3_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 - * 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 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1003 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 837, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 837, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 837, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_try_end; -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1005 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") + * + */ + +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); + +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x64; +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(10, 1005, __pyx_L5_except_error) -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 - * 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 - */ +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 838, __pyx_L1_error) +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1006 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_ufunc() except -1: + */ -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 838, __pyx_L1_error) +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 1006, __pyx_L5_except_error) -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 838, __pyx_L1_error) +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 1006, __pyx_L5_except_error) -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x67; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":839 - * 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 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1003 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 839, __pyx_L1_error) - -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 839, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 839, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_try_end:; -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x66; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1002 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 - * 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" - */ +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 840, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 840, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 840, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x64; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":841 - * 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: +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1008 + * raise ImportError("numpy.core.umath failed to import") + * + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 841, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 841, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 841, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x67; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 - * 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) - */ +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 842, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_ufunc", 0); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1009 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 842, __pyx_L1_error) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(11, 842, __pyx_L1_error) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 79; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":844 - * elif t == NPY_OBJECT: f[0] = 79 #"O" - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< - * f += 1 - * else: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1010 + * cdef inline int import_ufunc() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { - -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 844, __pyx_L1_error) - -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1010 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(10, 1010, __pyx_L3_error) -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 844, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1009 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_t_3); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 844, __pyx_L1_error) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_try_end; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1011 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") + */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 844, __pyx_L1_error) +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(10, 1011, __pyx_L5_except_error) -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L15:; +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":845 - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * f += 1 # <<<<<<<<<<<<<< - * else: - * # Cython ignores struct boundary information ("T{...}"), - */ +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 845 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 - * offset[0] += child.itemsize - * - * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< - * t = child.type_num - * if end - f < 5: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1012 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L13; - -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 1012, __pyx_L5_except_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":849 - * # Cython ignores struct boundary information ("T{...}"), - * # so don't output it - * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< - * return f - * - */ +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(11, 849, __pyx_L1_error) +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = __pyx_t_9; +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(10, 1012, __pyx_L5_except_error) -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L13:; +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 - * cdef tuple fields +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1009 * - * for childname in descr.names: # <<<<<<<<<<<<<< - * fields = descr.fields[childname] - * child, new_offset = fields + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":850 - * # so don't output it - * f = _util_dtypestring(child, f, end, offset) - * return f # <<<<<<<<<<<<<< - * - * - */ +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_v_f; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 - * return PyArray_MultiIterNew(5, a, b, c, d, e) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_try_end:; + +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1008 + * raise ImportError("numpy.core.umath failed to import") * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< - * # Recursive utility function used in __getbuffer__ to get format - * # string. The new location in the format string is returned. + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; - -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); - -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_4); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = NULL; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_child); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_fields); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_childname); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_new_offset); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_t); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" return __pyx_r; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 - * +/* "array.pxd":93 + * __data_union data * - * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< - * cdef PyObject* baseptr - * if base is None: + * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fulfill the PEP. */ -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 93 "array.pxd" -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { - PyObject *__pyx_v_baseptr -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 93 "array.pxd" +/* Python wrapper */ + +#line 93 "array.pxd" +static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ + +#line 93 "array.pxd" +static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { + +#line 93 "array.pxd" + int __pyx_r; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 93 "array.pxd" __Pyx_RefNannyDeclarations -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 93 "array.pxd" + __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); + __pyx_r = +#line 93 "array.pxd" +__pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_2; +#line 93 "array.pxd" -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("set_array_base", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 - * cdef inline void set_array_base(ndarray arr, object base): - * cdef PyObject* baseptr - * if base is None: # <<<<<<<<<<<<<< - * baseptr = NULL - * else: - */ +#line 93 "array.pxd" + /* function exit code */ -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (__pyx_v_base == Py_None); +#line 93 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (__pyx_t_1 != 0); +#line 93 "array.pxd" + return __pyx_r; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 93 "array.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":969 - * cdef PyObject* baseptr - * if base is None: - * baseptr = NULL # <<<<<<<<<<<<<< - * else: - * Py_INCREF(base) # important to do this before decref below! - */ +#line 93 "array.pxd" -#line 969 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_baseptr = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 - * cdef inline void set_array_base(ndarray arr, object base): - * cdef PyObject* baseptr - * if base is None: # <<<<<<<<<<<<<< - * baseptr = NULL - * else: - */ +#line 93 "array.pxd" +static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { + PyObject *__pyx_v_item_count = NULL +#line 93 "array.pxd" +; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L3; +#line 93 "array.pxd" + int __pyx_r; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":971 - * baseptr = NULL - * else: - * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< - * baseptr = base - * Py_XDECREF(arr.base) - */ +#line 93 "array.pxd" + PyObject *__pyx_t_1 = NULL; -#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 93 "array.pxd" + char *__pyx_t_2; -#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_INCREF(__pyx_v_base); +#line 93 "array.pxd" + int __pyx_t_3; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":972 - * else: - * Py_INCREF(base) # important to do this before decref below! - * baseptr = base # <<<<<<<<<<<<<< - * Py_XDECREF(arr.base) - * arr.base = baseptr - */ +#line 93 "array.pxd" + PyObject *__pyx_t_4 = NULL; -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_baseptr = ((PyObject *)__pyx_v_base); +#line 93 "array.pxd" + Py_ssize_t __pyx_t_5; -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" + int __pyx_t_6; -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3:; +#line 93 "array.pxd" + if (__pyx_v_info == NULL) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":973 - * Py_INCREF(base) # important to do this before decref below! - * baseptr = base - * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< - * arr.base = baseptr - * - */ +#line 93 "array.pxd" + PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); -#line 973 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_XDECREF(__pyx_v_arr->base); +#line 93 "array.pxd" + return -1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":974 - * baseptr = base - * Py_XDECREF(arr.base) - * arr.base = baseptr # <<<<<<<<<<<<<< - * - * cdef inline object get_array_base(ndarray arr): - */ +#line 93 "array.pxd" + } -#line 974 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_arr->base = __pyx_v_baseptr; +#line 93 "array.pxd" + __Pyx_RefNannySetupContext("__getbuffer__", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 - * +#line 93 "array.pxd" + __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); + +#line 93 "array.pxd" + __Pyx_GIVEREF(__pyx_v_info->obj); + + /* "array.pxd":98 + * # In particular strided access is always provided regardless + * # of flags + * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< * - * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< - * cdef PyObject* baseptr - * if base is None: + * info.suboffsets = NULL */ -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - +#line 98 "array.pxd" + __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 98, __pyx_L1_error) -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 98 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 98 "array.pxd" + __pyx_v_item_count = __pyx_t_1; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 98 "array.pxd" + __pyx_t_1 = 0; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 - * arr.base = baseptr + /* "array.pxd":100 + * item_count = Py_SIZE(self) * - * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< - * if arr.base is NULL: - * return None + * info.suboffsets = NULL # <<<<<<<<<<<<<< + * info.buf = self.data.as_chars + * info.readonly = 0 */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 100 "array.pxd" + __pyx_v_info->suboffsets = NULL; + + /* "array.pxd":101 + * + * info.suboffsets = NULL + * info.buf = self.data.as_chars # <<<<<<<<<<<<<< + * info.readonly = 0 + * info.ndim = 1 + */ +#line 101 "array.pxd" + __pyx_t_2 = __pyx_v_self->data.as_chars; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { +#line 101 "array.pxd" + __pyx_v_info->buf = __pyx_t_2; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; + /* "array.pxd":102 + * info.suboffsets = NULL + * info.buf = self.data.as_chars + * info.readonly = 0 # <<<<<<<<<<<<<< + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 102 "array.pxd" + __pyx_v_info->readonly = 0; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; + /* "array.pxd":103 + * info.buf = self.data.as_chars + * info.readonly = 0 + * info.ndim = 1 # <<<<<<<<<<<<<< + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * info.len = info.itemsize * item_count + */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("get_array_base", 0); +#line 103 "array.pxd" + __pyx_v_info->ndim = 1; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + /* "array.pxd":104 + * info.readonly = 0 + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< + * info.len = info.itemsize * item_count * - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: # <<<<<<<<<<<<<< - * return None - * else: */ -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0); +#line 104 "array.pxd" + __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 104 "array.pxd" + __pyx_v_info->itemsize = __pyx_t_3; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":978 - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: - * return None # <<<<<<<<<<<<<< - * else: - * return arr.base + /* "array.pxd":105 + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) */ -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 105 "array.pxd" + __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 105, __pyx_L1_error) -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(Py_None); +#line 105 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = Py_None; +#line 105 "array.pxd" + __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 105, __pyx_L1_error) -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 105 "array.pxd" + __Pyx_GOTREF(__pyx_t_4); + +#line 105 "array.pxd" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + +#line 105 "array.pxd" + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(11, 105, __pyx_L1_error) + +#line 105 "array.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 105 "array.pxd" + __pyx_v_info->len = __pyx_t_5; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + /* "array.pxd":107 + * info.len = info.itemsize * item_count * - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: # <<<<<<<<<<<<<< - * return None - * else: + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< + * if not info.shape: + * raise MemoryError() */ -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 107 "array.pxd" + __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":980 - * return None - * else: - * return arr.base # <<<<<<<<<<<<<< - * + /* "array.pxd":108 * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: # <<<<<<<<<<<<<< + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing */ -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 108 "array.pxd" + __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 108 "array.pxd" + if (unlikely(__pyx_t_6)) { -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); + /* "array.pxd":109 + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: + * raise MemoryError() # <<<<<<<<<<<<<< + * info.shape[0] = item_count # constant regardless of resizing + * info.strides = &info.itemsize + */ -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = ((PyObject *)__pyx_v_arr->base); +#line 109 "array.pxd" + PyErr_NoMemory(); __PYX_ERR(11, 109, __pyx_L1_error) -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; + /* "array.pxd":108 + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: # <<<<<<<<<<<<<< + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + */ -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 108 "array.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 - * arr.base = baseptr + /* "array.pxd":110 + * if not info.shape: + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< + * info.strides = &info.itemsize * - * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< - * if arr.base is NULL: - * return None */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - +#line 110 "array.pxd" + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(11, 110, __pyx_L1_error) -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ - -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; - -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); - -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); - -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; - -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 110 "array.pxd" + (__pyx_v_info->shape[0]) = __pyx_t_5; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 - * # Versions of the import_* functions which are more suitable for - * # Cython code. - * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< - * try: - * _import_array() + /* "array.pxd":111 + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + * info.strides = &info.itemsize # <<<<<<<<<<<<<< + * + * info.format = (info.shape + 1) */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 111 "array.pxd" + __pyx_v_info->strides = (&__pyx_v_info->itemsize); + /* "array.pxd":113 + * info.strides = &info.itemsize + * + * info.format = (info.shape + 1) # <<<<<<<<<<<<<< + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { +#line 113 "array.pxd" + __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; + /* "array.pxd":114 + * + * info.format = (info.shape + 1) + * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< + * info.format[1] = 0 + * info.obj = self + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 114 "array.pxd" + __pyx_t_3 = __pyx_v_self->ob_descr->typecode; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 114 "array.pxd" + (__pyx_v_info->format[0]) = __pyx_t_3; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_2 = NULL; + /* "array.pxd":115 + * info.format = (info.shape + 1) + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 # <<<<<<<<<<<<<< + * info.obj = self + * + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 115 "array.pxd" + (__pyx_v_info->format[1]) = 0; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; + /* "array.pxd":116 + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 + * info.obj = self # <<<<<<<<<<<<<< + * + * def __releasebuffer__(self, Py_buffer* info): + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_5 = NULL; +#line 116 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_self)); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; +#line 116 "array.pxd" + __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_7 = NULL; +#line 116 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_8 = NULL; +#line 116 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("import_array", 0); +#line 116 "array.pxd" + __pyx_v_info->obj = ((PyObject *)__pyx_v_self); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 - * # Cython code. - * cdef inline int import_array() except -1: - * try: # <<<<<<<<<<<<<< - * _import_array() - * except Exception: + /* "array.pxd":93 + * __data_union data + * + * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fulfill the PEP. */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - { - -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_declare +#line 93 "array.pxd" -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); +#line 93 "array.pxd" + /* function exit code */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_1); +#line 93 "array.pxd" + __pyx_r = 0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_2); +#line 93 "array.pxd" + goto __pyx_L0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_3); +#line 93 "array.pxd" + __pyx_L1_error:; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*try:*/ { +#line 93 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 - * cdef inline int import_array() except -1: - * try: - * _import_array() # <<<<<<<<<<<<<< - * except Exception: - * raise ImportError("numpy.core.multiarray failed to import") - */ +#line 93 "array.pxd" + __Pyx_XDECREF(__pyx_t_4); -#line 987 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(11, 987, __pyx_L3_error) +#line 93 "array.pxd" + __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 - * # Cython code. - * cdef inline int import_array() except -1: - * try: # <<<<<<<<<<<<<< - * _import_array() - * except Exception: - */ +#line 93 "array.pxd" + __pyx_r = -1; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" + if (__pyx_v_info->obj != NULL) { -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 93 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 93 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 93 "array.pxd" + } -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L10_try_end; +#line 93 "array.pxd" + goto __pyx_L2; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3_error:; +#line 93 "array.pxd" + __pyx_L0:; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 93 "array.pxd" + if (__pyx_v_info->obj == Py_None) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 - * try: - * _import_array() - * except Exception: # <<<<<<<<<<<<<< - * raise ImportError("numpy.core.multiarray failed to import") - * - */ +#line 93 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 93 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_4) { +#line 93 "array.pxd" + } -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 93 "array.pxd" + __pyx_L2:; -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(11, 988, __pyx_L5_except_error) +#line 93 "array.pxd" + __Pyx_XDECREF(__pyx_v_item_count); -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_5); +#line 93 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 93 "array.pxd" + return __pyx_r; -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_7); +#line 93 "array.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 - * _import_array() - * except Exception: - * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< +/* "array.pxd":118 + * info.obj = self + * + * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< + * PyObject_Free(info.shape) * - * cdef inline int import_umath() except -1: */ -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 989, __pyx_L5_except_error) - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_8); - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 989, __pyx_L5_except_error) - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L5_except_error; - -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L5_except_error:; +#line 118 "array.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 - * # Cython code. - * cdef inline int import_array() except -1: - * try: # <<<<<<<<<<<<<< - * _import_array() - * except Exception: - */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 118 "array.pxd" +/* Python wrapper */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_1); +#line 118 "array.pxd" +static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_2); +#line 118 "array.pxd" +static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_3); +#line 118 "array.pxd" + __Pyx_RefNannyDeclarations -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); +#line 118 "array.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L1_error; +#line 118 "array.pxd" + __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L10_try_end:; +#line 118 "array.pxd" -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 - * # Versions of the import_* functions which are more suitable for - * # Cython code. - * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< - * try: - * _import_array() - */ +#line 118 "array.pxd" + /* function exit code */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 118 "array.pxd" + __Pyx_RefNannyFinishContext(); +#line 118 "array.pxd" +} -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 118 "array.pxd" -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 118 "array.pxd" +static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 118 "array.pxd" + __Pyx_RefNannyDeclarations -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_5); +#line 118 "array.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__", 0); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); + /* "array.pxd":119 + * + * def __releasebuffer__(self, Py_buffer* info): + * PyObject_Free(info.shape) # <<<<<<<<<<<<<< + * + * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_7); +#line 119 "array.pxd" + PyObject_Free(__pyx_v_info->shape); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_8); + /* "array.pxd":118 + * info.obj = self + * + * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< + * PyObject_Free(info.shape) + * + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 118 "array.pxd" -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 118 "array.pxd" + /* function exit code */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 118 "array.pxd" __Pyx_RefNannyFinishContext(); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; - -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 118 "array.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 - * raise ImportError("numpy.core.multiarray failed to import") +/* "array.pxd":130 * - * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() + * + * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< + * """ fast creation of a new array, given a template array. + * type will be same as template. */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { +#line 130 "array.pxd" +static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { + arrayobject *__pyx_v_op = NULL +#line 130 "array.pxd" +; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 130 "array.pxd" + arrayobject *__pyx_r = NULL; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" __Pyx_RefNannyDeclarations -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" PyObject *__pyx_t_1 = NULL; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_2 = NULL; +#line 130 "array.pxd" + int __pyx_t_2; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 130 "array.pxd" + int __pyx_t_3; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" int __pyx_t_4; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_5 = NULL; +#line 130 "array.pxd" + __Pyx_RefNannySetupContext("clone", 0); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; + /* "array.pxd":134 + * type will be same as template. + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_7 = NULL; +#line 134 "array.pxd" + __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 134, __pyx_L1_error) -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_8 = NULL; +#line 134 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("import_umath", 0); +#line 134 "array.pxd" + __pyx_v_op = ((arrayobject *)__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 - * - * cdef inline int import_umath() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: +#line 134 "array.pxd" + __pyx_t_1 = 0; + + /* "array.pxd":135 + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: # <<<<<<<<<<<<<< + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - { +#line 135 "array.pxd" + __pyx_t_3 = (__pyx_v_zero != 0); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_declare +#line 135 "array.pxd" + if (__pyx_t_3) { -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 135 "array.pxd" + } else { -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); +#line 135 "array.pxd" + __pyx_t_2 = __pyx_t_3; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_1); +#line 135 "array.pxd" + goto __pyx_L4_bool_binop_done; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_2); +#line 135 "array.pxd" + } -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_3); +#line 135 "array.pxd" + __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*try:*/ { +#line 135 "array.pxd" + __pyx_t_4 = (__pyx_t_3 != 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":993 - * cdef inline int import_umath() except -1: - * try: - * _import_umath() # <<<<<<<<<<<<<< - * except Exception: - * raise ImportError("numpy.core.umath failed to import") - */ +#line 135 "array.pxd" + __pyx_t_2 = __pyx_t_4; -#line 993 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(11, 993, __pyx_L3_error) +#line 135 "array.pxd" + __pyx_L4_bool_binop_done:; + +#line 135 "array.pxd" + if (__pyx_t_2) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + /* "array.pxd":136 + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< + * return op * - * cdef inline int import_umath() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 136 "array.pxd" + (void)(memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize))); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + /* "array.pxd":135 + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: # <<<<<<<<<<<<<< + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op + */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 135 "array.pxd" + } -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "array.pxd":137 + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op # <<<<<<<<<<<<<< + * + * cdef inline array copy(array self): + */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L10_try_end; +#line 137 "array.pxd" + __Pyx_XDECREF(((PyObject *)__pyx_r)); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3_error:; +#line 137 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_op)); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 137 "array.pxd" + __pyx_r = __pyx_v_op; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":994 - * try: - * _import_umath() - * except Exception: # <<<<<<<<<<<<<< - * raise ImportError("numpy.core.umath failed to import") +#line 137 "array.pxd" + goto __pyx_L0; + + /* "array.pxd":130 + * * + * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< + * """ fast creation of a new array, given a template array. + * type will be same as template. */ -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 130 "array.pxd" -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_4) { -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 130 "array.pxd" + /* function exit code */ -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(11, 994, __pyx_L5_except_error) +#line 130 "array.pxd" + __pyx_L1_error:; -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_5); +#line 130 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 130 "array.pxd" + __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_7); +#line 130 "array.pxd" + __pyx_r = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 - * _import_umath() - * except Exception: - * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< - * - * cdef inline int import_ufunc() except -1: - */ +#line 130 "array.pxd" + __pyx_L0:; -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 995, __pyx_L5_except_error) +#line 130 "array.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_op); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_8); +#line 130 "array.pxd" + __Pyx_XGIVEREF((PyObject *)__pyx_r); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); +#line 130 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; +#line 130 "array.pxd" + return __pyx_r; -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 995, __pyx_L5_except_error) +#line 130 "array.pxd" +} -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +/* "array.pxd":139 + * return op + * + * cdef inline array copy(array self): # <<<<<<<<<<<<<< + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + */ -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L5_except_error; +#line 139 "array.pxd" -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L5_except_error:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 - * - * cdef inline int import_umath() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: - */ +#line 139 "array.pxd" +static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { + arrayobject *__pyx_v_op = NULL +#line 139 "array.pxd" +; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 139 "array.pxd" + arrayobject *__pyx_r = NULL; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_1); +#line 139 "array.pxd" + __Pyx_RefNannyDeclarations -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_2); +#line 139 "array.pxd" + PyObject *__pyx_t_1 = NULL; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_3); +#line 139 "array.pxd" + __Pyx_RefNannySetupContext("copy", 0); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); + /* "array.pxd":141 + * cdef inline array copy(array self): + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) + * return op + */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L1_error; +#line 141 "array.pxd" + __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 141, __pyx_L1_error) -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L10_try_end:; +#line 141 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 141 "array.pxd" + __pyx_v_op = ((arrayobject *)__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 - * raise ImportError("numpy.core.multiarray failed to import") +#line 141 "array.pxd" + __pyx_t_1 = 0; + + /* "array.pxd":142 + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< + * return op * - * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 142 "array.pxd" + (void)(memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize))); + + /* "array.pxd":143 + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) + * return op # <<<<<<<<<<<<<< + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: + */ +#line 143 "array.pxd" + __Pyx_XDECREF(((PyObject *)__pyx_r)); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 143 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_op)); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 143 "array.pxd" + __pyx_r = __pyx_v_op; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 143 "array.pxd" goto __pyx_L0; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; + /* "array.pxd":139 + * return op + * + * cdef inline array copy(array self): # <<<<<<<<<<<<<< + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_5); +#line 139 "array.pxd" -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_7); +#line 139 "array.pxd" + /* function exit code */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_8); +#line 139 "array.pxd" + __pyx_L1_error:; + +#line 139 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 139 "array.pxd" + __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; +#line 139 "array.pxd" + __pyx_r = 0; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" __pyx_L0:; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_op); + +#line 139 "array.pxd" + __Pyx_XGIVEREF((PyObject *)__pyx_r); + +#line 139 "array.pxd" __Pyx_RefNannyFinishContext(); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" return __pyx_r; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 - * raise ImportError("numpy.core.umath failed to import") +/* "array.pxd":145 + * return op * - * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< + * """ efficient appending of new stuff of same type + * (e.g. of same array type) */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 145 "array.pxd" -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { +#line 145 "array.pxd" +static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { + Py_ssize_t __pyx_v_itemsize +#line 145 "array.pxd" +; + Py_ssize_t __pyx_v_origsize +#line 145 "array.pxd" +; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 145 "array.pxd" int __pyx_r; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 145 "array.pxd" __Pyx_RefNannyDeclarations -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 145 "array.pxd" + int __pyx_t_1; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_2 = NULL; +#line 145 "array.pxd" + __Pyx_RefNannySetupContext("extend_buffer", 0); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; + /* "array.pxd":149 + * (e.g. of same array type) + * n: number of elements (not number of bytes!) """ + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; +#line 149 "array.pxd" + __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_5 = NULL; +#line 149 "array.pxd" + __pyx_v_itemsize = __pyx_t_1; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; + /* "array.pxd":150 + * n: number of elements (not number of bytes!) """ + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize + * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_7 = NULL; +#line 150 "array.pxd" + __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_8 = NULL; + /* "array.pxd":151 + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + * return 0 + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("import_ufunc", 0); +#line 151 "array.pxd" + __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(11, 151, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + /* "array.pxd":152 + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< + * return 0 * - * cdef inline int import_ufunc() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - { +#line 152 "array.pxd" + (void)(memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize))); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_declare + /* "array.pxd":153 + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + * return 0 # <<<<<<<<<<<<<< + * + * cdef inline int extend(array self, array other) except -1: + */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 153 "array.pxd" + __pyx_r = 0; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); +#line 153 "array.pxd" + goto __pyx_L0; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_1); + /* "array.pxd":145 + * return op + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< + * """ efficient appending of new stuff of same type + * (e.g. of same array type) + */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_2); +#line 145 "array.pxd" -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_3); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*try:*/ { +#line 145 "array.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":999 - * cdef inline int import_ufunc() except -1: - * try: - * _import_umath() # <<<<<<<<<<<<<< - * except Exception: - * raise ImportError("numpy.core.umath failed to import") - */ +#line 145 "array.pxd" + __pyx_L1_error:; -#line 999 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(11, 999, __pyx_L3_error) +#line 145 "array.pxd" + __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 - * - * cdef inline int import_ufunc() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: - */ +#line 145 "array.pxd" + __pyx_r = -1; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 145 "array.pxd" + __pyx_L0:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 145 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 145 "array.pxd" + return __pyx_r; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 145 "array.pxd" +} + +/* "array.pxd":155 + * return 0 + * + * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L10_try_end; +#line 155 "array.pxd" -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3_error:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 155 "array.pxd" +static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 - * try: - * _import_umath() - * except Exception: # <<<<<<<<<<<<<< - * raise ImportError("numpy.core.umath failed to import") - */ +#line 155 "array.pxd" + int __pyx_r; -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 155 "array.pxd" + __Pyx_RefNannyDeclarations -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_4) { +#line 155 "array.pxd" + int __pyx_t_1; -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 155 "array.pxd" + int __pyx_t_2; -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(11, 1000, __pyx_L5_except_error) +#line 155 "array.pxd" + __Pyx_RefNannySetupContext("extend", 0); -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_5); + /* "array.pxd":157 + * cdef inline int extend(array self, array other) except -1: + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + */ -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 157 "array.pxd" + __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_7); +#line 157 "array.pxd" + if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 - * _import_umath() - * except Exception: - * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + /* "array.pxd":158 + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + * PyErr_BadArgument() # <<<<<<<<<<<<<< + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 1001, __pyx_L5_except_error) - -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_8); +#line 158 "array.pxd" + __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(11, 158, __pyx_L1_error) -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + /* "array.pxd":157 + * cdef inline int extend(array self, array other) except -1: + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; +#line 157 "array.pxd" + } -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(11, 1001, __pyx_L5_except_error) + /* "array.pxd":159 + * if self.ob_descr.typecode != other.ob_descr.typecode: + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< + * + * cdef inline void zero(array self): + */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 159 "array.pxd" + __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(11, 159, __pyx_L1_error) -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L5_except_error; +#line 159 "array.pxd" + __pyx_r = __pyx_t_2; -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L5_except_error:; +#line 159 "array.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + /* "array.pxd":155 + * return 0 * - * cdef inline int import_ufunc() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: + * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 155 "array.pxd" -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_1); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_2); +#line 155 "array.pxd" + /* function exit code */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_3); +#line 155 "array.pxd" + __pyx_L1_error:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); +#line 155 "array.pxd" + __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L1_error; +#line 155 "array.pxd" + __pyx_r = -1; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L10_try_end:; +#line 155 "array.pxd" + __pyx_L0:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 155 "array.pxd" + __Pyx_RefNannyFinishContext(); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 - * raise ImportError("numpy.core.umath failed to import") - * - * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() - */ +#line 155 "array.pxd" + return __pyx_r; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 155 "array.pxd" +} +/* "array.pxd":161 + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + * cdef inline void zero(array self): # <<<<<<<<<<<<<< + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 161 "array.pxd" -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 161 "array.pxd" +static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 161 "array.pxd" + __Pyx_RefNannyDeclarations -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_5); +#line 161 "array.pxd" + __Pyx_RefNannySetupContext("zero", 0); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); + /* "array.pxd":163 + * cdef inline void zero(array self): + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_7); +#line 163 "array.pxd" + (void)(memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize))); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_8); + /* "array.pxd":161 + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + * cdef inline void zero(array self): # <<<<<<<<<<<<<< + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 161 "array.pxd" -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 161 "array.pxd" + /* function exit code */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 161 "array.pxd" __Pyx_RefNannyFinishContext(); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; - -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 161 "array.pxd" } /* "string.from_py":13 @@ -85144,7 +85496,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ #line 13 "string.from_py" @@ -85155,7 +85507,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v Py_ssize_t __pyx_v_length #line 13 "string.from_py" ; - char *__pyx_v_data + char const *__pyx_v_data #line 13 "string.from_py" ; @@ -85166,7 +85518,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v __Pyx_RefNannyDeclarations #line 13 "string.from_py" - char *__pyx_t_1; + char const *__pyx_t_1; #line 13 "string.from_py" __Pyx_RefNannySetupContext("__pyx_convert_string_from_py_std__in_string", 0); @@ -85174,20 +85526,20 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v /* "string.from_py":15 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< * return string(data, length) * */ #line 15 "string.from_py" - __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == NULL)) __PYX_ERR(12, 15, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == ((char const *)NULL))) __PYX_ERR(12, 15, __pyx_L1_error) #line 15 "string.from_py" __pyx_v_data = __pyx_t_1; /* "string.from_py":16 * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) # <<<<<<<<<<<<<< * * @@ -85204,7 +85556,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ #line 13 "string.from_py" @@ -85219,6 +85571,9 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v #line 13 "string.from_py" __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 13 "string.from_py" + __Pyx_pretend_to_initialize(&__pyx_r); + #line 13 "string.from_py" __pyx_L0:; @@ -85262,7 +85617,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: - * cdef object __Pyx_PyUnicode_FromStringAndSize(char*, size_t) + * cdef object __Pyx_PyUnicode_FromStringAndSize(const char*, size_t) */ #line 32 "string.to_py" @@ -85355,7 +85710,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: - * cdef object __Pyx_PyStr_FromStringAndSize(char*, size_t) + * cdef object __Pyx_PyStr_FromStringAndSize(const char*, size_t) */ #line 38 "string.to_py" @@ -85448,7 +85803,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: - * cdef object __Pyx_PyBytes_FromStringAndSize(char*, size_t) + * cdef object __Pyx_PyBytes_FromStringAndSize(const char*, size_t) */ #line 44 "string.to_py" @@ -85541,7 +85896,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: - * cdef object __Pyx_PyByteArray_FromStringAndSize(char*, size_t) + * cdef object __Pyx_PyByteArray_FromStringAndSize(const char*, size_t) */ #line 50 "string.to_py" @@ -85717,22 +86072,40 @@ static PyMethodDef __pyx_methods[] = { #if PY_MAJOR_VERSION >= 3 #line 55 "string.to_py" -static struct PyModuleDef __pyx_moduledef = { +#if CYTHON_PEP489_MULTI_PHASE_INIT #line 55 "string.to_py" - #if PY_VERSION_HEX < 0x03020000 +static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ #line 55 "string.to_py" - { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, +static int __pyx_pymod_exec__librootnumpy(PyObject* module); /*proto*/ #line 55 "string.to_py" - #else +static PyModuleDef_Slot __pyx_moduledef_slots[] = { #line 55 "string.to_py" - PyModuleDef_HEAD_INIT, + {Py_mod_create, (void*)__pyx_pymod_create}, #line 55 "string.to_py" - #endif + {Py_mod_exec, (void*)__pyx_pymod_exec__librootnumpy}, + +#line 55 "string.to_py" + {0, NULL} + +#line 55 "string.to_py" +}; + +#line 55 "string.to_py" +#endif + +#line 55 "string.to_py" + + +#line 55 "string.to_py" +static struct PyModuleDef __pyx_moduledef = { + +#line 55 "string.to_py" + PyModuleDef_HEAD_INIT, #line 55 "string.to_py" "_librootnumpy", @@ -85740,15 +86113,39 @@ static struct PyModuleDef __pyx_moduledef = { #line 55 "string.to_py" 0, /* m_doc */ +#line 55 "string.to_py" + #if CYTHON_PEP489_MULTI_PHASE_INIT + +#line 55 "string.to_py" + 0, /* m_size */ + +#line 55 "string.to_py" + #else + #line 55 "string.to_py" -1, /* m_size */ +#line 55 "string.to_py" + #endif + #line 55 "string.to_py" __pyx_methods /* m_methods */, +#line 55 "string.to_py" + #if CYTHON_PEP489_MULTI_PHASE_INIT + +#line 55 "string.to_py" + __pyx_moduledef_slots, /* m_slots */ + +#line 55 "string.to_py" + #else + #line 55 "string.to_py" NULL, /* m_reload */ +#line 55 "string.to_py" + #endif + #line 55 "string.to_py" NULL, /* m_traverse */ @@ -85854,6 +86251,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_char, __pyx_k_char, sizeof(__pyx_k_char), 0, 0, 1, 1}, {&__pyx_n_s_classes, __pyx_k_classes, sizeof(__pyx_k_classes), 0, 0, 1, 1}, {&__pyx_n_s_cleanup, __pyx_k_cleanup, sizeof(__pyx_k_cleanup), 0, 0, 1, 1}, + {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_clsname, __pyx_k_clsname, sizeof(__pyx_k_clsname), 0, 0, 1, 1}, {&__pyx_n_s_collections, __pyx_k_collections, sizeof(__pyx_k_collections), 0, 0, 1, 1}, {&__pyx_n_s_compile, __pyx_k_compile, sizeof(__pyx_k_compile), 0, 0, 1, 1}, @@ -85953,14 +86351,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_h3s_array, __pyx_k_h3s_array, sizeof(__pyx_k_h3s_array), 0, 0, 1, 1}, {&__pyx_n_s_hist, __pyx_k_hist, sizeof(__pyx_k_hist), 0, 0, 1, 1}, {&__pyx_n_s_hist_2, __pyx_k_hist_2, sizeof(__pyx_k_hist_2), 0, 0, 1, 1}, - {&__pyx_kp_s_home_endw_workspace_root_numpy, __pyx_k_home_endw_workspace_root_numpy, sizeof(__pyx_k_home_endw_workspace_root_numpy), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_k_home_endw_workspace_root_numpy_2, sizeof(__pyx_k_home_endw_workspace_root_numpy_2), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_k_home_endw_workspace_root_numpy_3, sizeof(__pyx_k_home_endw_workspace_root_numpy_3), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_k_home_endw_workspace_root_numpy_4, sizeof(__pyx_k_home_endw_workspace_root_numpy_4), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_k_home_endw_workspace_root_numpy_5, sizeof(__pyx_k_home_endw_workspace_root_numpy_5), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_k_home_endw_workspace_root_numpy_6, sizeof(__pyx_k_home_endw_workspace_root_numpy_6), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_k_home_endw_workspace_root_numpy_7, sizeof(__pyx_k_home_endw_workspace_root_numpy_7), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_k_home_endw_workspace_root_numpy_8, sizeof(__pyx_k_home_endw_workspace_root_numpy_8), 0, 0, 1, 0}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_ibin, __pyx_k_ibin, sizeof(__pyx_k_ibin), 0, 0, 1, 1}, {&__pyx_n_s_idx, __pyx_k_idx, sizeof(__pyx_k_idx), 0, 0, 1, 1}, @@ -86041,6 +86431,14 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_root_arr, __pyx_k_root_arr, sizeof(__pyx_k_root_arr), 0, 0, 1, 1}, {&__pyx_n_s_root_hist, __pyx_k_root_hist, sizeof(__pyx_k_root_hist), 0, 0, 1, 1}, {&__pyx_n_s_root_mat, __pyx_k_root_mat, sizeof(__pyx_k_root_mat), 0, 0, 1, 1}, + {&__pyx_kp_s_root_numpy_src_array_pyx, __pyx_k_root_numpy_src_array_pyx, sizeof(__pyx_k_root_numpy_src_array_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_converters_pyx, __pyx_k_root_numpy_src_converters_pyx, sizeof(__pyx_k_root_numpy_src_converters_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_k_root_numpy_src_evaluate_pyx, sizeof(__pyx_k_root_numpy_src_evaluate_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_graph_pyx, __pyx_k_root_numpy_src_graph_pyx, sizeof(__pyx_k_root_numpy_src_graph_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_hist_pyx, __pyx_k_root_numpy_src_hist_pyx, sizeof(__pyx_k_root_numpy_src_hist_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_matrix_pyx, __pyx_k_root_numpy_src_matrix_pyx, sizeof(__pyx_k_root_numpy_src_matrix_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_sample_pyx, __pyx_k_root_numpy_src_sample_pyx, sizeof(__pyx_k_root_numpy_src_sample_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_src_tree_pyx, __pyx_k_root_numpy_src_tree_pyx, sizeof(__pyx_k_root_numpy_src_tree_pyx), 0, 0, 1, 0}, {&__pyx_n_s_rtree, __pyx_k_rtree, sizeof(__pyx_k_rtree), 0, 0, 1, 1}, {&__pyx_n_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 1}, {&__pyx_kp_s_s_0_9, __pyx_k_s_0_9, sizeof(__pyx_k_s_0_9), 0, 0, 1, 0}, @@ -86762,7 +87160,7 @@ static int __Pyx_InitCachedConstants(void) { #line 150 "root_numpy/src/hist.pyx" __Pyx_GIVEREF(__pyx_tuple__44); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":229 * 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") # <<<<<<<<<<<<<< @@ -86770,16 +87168,16 @@ static int __Pyx_InitCachedConstants(void) { * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(11, 218, __pyx_L1_error) +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(10, 229, __pyx_L1_error) -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__45); -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__45); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":233 * 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") # <<<<<<<<<<<<<< @@ -86787,16 +87185,16 @@ static int __Pyx_InitCachedConstants(void) { * info.buf = PyArray_DATA(self) */ -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(11, 222, __pyx_L1_error) +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(10, 233, __pyx_L1_error) -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__46); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__46); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< @@ -86804,16 +87202,16 @@ static int __Pyx_InitCachedConstants(void) { * elif t == NPY_UBYTE: f = "B" */ -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(11, 259, __pyx_L1_error) +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(10, 263, __pyx_L1_error) -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__47); -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__47); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":810 * * if (end - f) - (new_offset - offset[0]) < 15: * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< @@ -86821,16 +87219,16 @@ static int __Pyx_InitCachedConstants(void) { * if ((child.byteorder == c'>' and little_endian) or */ -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(11, 799, __pyx_L1_error) +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(10, 810, __pyx_L1_error) -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__48); -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__48); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 * if ((child.byteorder == c'>' and little_endian) or * (child.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< @@ -86838,16 +87236,16 @@ static int __Pyx_InitCachedConstants(void) { * # complain instead, BUT: < and > in format strings also imply */ -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(11, 803, __pyx_L1_error) +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(10, 814, __pyx_L1_error) -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__49); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__49); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 * t = child.type_num * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< @@ -86855,16 +87253,16 @@ static int __Pyx_InitCachedConstants(void) { * # Until ticket #99 is fixed, use integers to avoid warnings */ -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(11, 823, __pyx_L1_error) +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(10, 834, __pyx_L1_error) -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__50); -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__50); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 * _import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< @@ -86872,16 +87270,16 @@ static int __Pyx_InitCachedConstants(void) { * cdef inline int import_umath() except -1: */ -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(11, 989, __pyx_L1_error) +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(10, 1000, __pyx_L1_error) -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__51); -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__51); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1006 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< @@ -86889,28 +87287,28 @@ static int __Pyx_InitCachedConstants(void) { * cdef inline int import_ufunc() except -1: */ -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(11, 995, __pyx_L1_error) +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(10, 1006, __pyx_L1_error) -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__52); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__52); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1012 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(11, 1001, __pyx_L1_error) +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(10, 1012, __pyx_L1_error) -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__53); -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__53); /* "root_numpy/src/converters.pyx":4 @@ -87152,7 +87550,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__67); #line 671 "root_numpy/src/converters.pyx" - __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_cleanup, 671, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(1, 671, __pyx_L1_error) + __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_converters_pyx, __pyx_n_s_cleanup, 671, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(1, 671, __pyx_L1_error) /* "root_numpy/src/tree.pyx":39 * @@ -87172,7 +87570,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__69); #line 39 "root_numpy/src/tree.pyx" - __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_objects, 39, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(2, 39, __pyx_L1_error) + __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_list_objects, 39, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(2, 39, __pyx_L1_error) /* "root_numpy/src/tree.pyx":59 * @@ -87192,7 +87590,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__71); #line 59 "root_numpy/src/tree.pyx" - __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_trees, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(2, 59, __pyx_L1_error) + __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_list_trees, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(2, 59, __pyx_L1_error) /* "root_numpy/src/tree.pyx":63 * @@ -87212,7 +87610,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__73); #line 63 "root_numpy/src/tree.pyx" - __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_directories, 63, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(2, 63, __pyx_L1_error) + __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_list_directories, 63, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(2, 63, __pyx_L1_error) /* "root_numpy/src/tree.pyx":67 * @@ -87232,7 +87630,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__75); #line 67 "root_numpy/src/tree.pyx" - __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_structures, 67, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(2, 67, __pyx_L1_error) + __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_list_structures, 67, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(2, 67, __pyx_L1_error) /* "root_numpy/src/tree.pyx":86 * @@ -87252,7 +87650,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__77); #line 86 "root_numpy/src/tree.pyx" - __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_list_branches, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(2, 86, __pyx_L1_error) + __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_list_branches, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(2, 86, __pyx_L1_error) /* "root_numpy/src/tree.pyx":599 * @@ -87272,7 +87670,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__79); #line 599 "root_numpy/src/tree.pyx" - __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(12, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_root2array_fromfile, 599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(2, 599, __pyx_L1_error) + __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(12, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_root2array_fromfile, 599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(2, 599, __pyx_L1_error) /* "root_numpy/src/tree.pyx":639 * @@ -87292,7 +87690,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__81); #line 639 "root_numpy/src/tree.pyx" - __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_root2array_fromtree, 639, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_root2array_fromtree, 639, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(2, 639, __pyx_L1_error) /* "root_numpy/src/tree.pyx":711 * @@ -87312,7 +87710,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__83); #line 711 "root_numpy/src/tree.pyx" - __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_array2tree_toCObj, 711, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(2, 711, __pyx_L1_error) + __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_array2tree_toCObj, 711, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(2, 711, __pyx_L1_error) /* "root_numpy/src/tree.pyx":720 * @@ -87332,7 +87730,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__85); #line 720 "root_numpy/src/tree.pyx" - __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_array2root, 720, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(2, 720, __pyx_L1_error) + __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_tree_pyx, __pyx_n_s_array2root, 720, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(2, 720, __pyx_L1_error) /* "root_numpy/src/array.pyx":10 * @@ -87352,7 +87750,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__87); #line 10 "root_numpy/src/array.pyx" - __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_d, 10, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(3, 10, __pyx_L1_error) + __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_d, 10, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(3, 10, __pyx_L1_error) /* "root_numpy/src/array.pyx":15 * @@ -87372,7 +87770,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__89); #line 15 "root_numpy/src/array.pyx" - __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_f, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(3, 15, __pyx_L1_error) + __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_f, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(3, 15, __pyx_L1_error) /* "root_numpy/src/array.pyx":20 * @@ -87392,7 +87790,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__91); #line 20 "root_numpy/src/array.pyx" - __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_l, 20, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(3, 20, __pyx_L1_error) + __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_l, 20, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(3, 20, __pyx_L1_error) /* "root_numpy/src/array.pyx":25 * @@ -87412,7 +87810,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__93); #line 25 "root_numpy/src/array.pyx" - __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_i, 25, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(3, 25, __pyx_L1_error) + __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_i, 25, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(3, 25, __pyx_L1_error) /* "root_numpy/src/array.pyx":30 * @@ -87432,7 +87830,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__95); #line 30 "root_numpy/src/array.pyx" - __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_s, 30, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(3, 30, __pyx_L1_error) + __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_s, 30, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(3, 30, __pyx_L1_error) /* "root_numpy/src/array.pyx":35 * @@ -87452,7 +87850,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__97); #line 35 "root_numpy/src/array.pyx" - __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_c, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(3, 35, __pyx_L1_error) + __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_c, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(3, 35, __pyx_L1_error) /* "root_numpy/src/array.pyx":40 * @@ -87472,7 +87870,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__99); #line 40 "root_numpy/src/array.pyx" - __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h1c, 40, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(3, 40, __pyx_L1_error) + __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_h1c, 40, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(3, 40, __pyx_L1_error) /* "root_numpy/src/array.pyx":46 * @@ -87492,7 +87890,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__101); #line 46 "root_numpy/src/array.pyx" - __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h2c, 46, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(3, 46, __pyx_L1_error) + __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_h2c, 46, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(3, 46, __pyx_L1_error) /* "root_numpy/src/array.pyx":52 * @@ -87512,7 +87910,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__103); #line 52 "root_numpy/src/array.pyx" - __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_array_h3c, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(3, 52, __pyx_L1_error) + __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_array_h3c, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(3, 52, __pyx_L1_error) /* "root_numpy/src/array.pyx":62 * @cython.boundscheck(False) @@ -87532,7 +87930,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__105); #line 62 "root_numpy/src/array.pyx" - __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1d_array, 62, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(3, 62, __pyx_L1_error) + __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h1d_array, 62, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(3, 62, __pyx_L1_error) /* "root_numpy/src/array.pyx":70 * @cython.boundscheck(False) @@ -87552,7 +87950,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__107); #line 70 "root_numpy/src/array.pyx" - __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2d_array, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(3, 70, __pyx_L1_error) + __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h2d_array, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(3, 70, __pyx_L1_error) /* "root_numpy/src/array.pyx":78 * @cython.boundscheck(False) @@ -87572,7 +87970,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__109); #line 78 "root_numpy/src/array.pyx" - __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3d_array, 78, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(3, 78, __pyx_L1_error) + __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h3d_array, 78, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(3, 78, __pyx_L1_error) /* "root_numpy/src/array.pyx":86 * @cython.boundscheck(False) @@ -87592,7 +87990,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__111); #line 86 "root_numpy/src/array.pyx" - __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1f_array, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(3, 86, __pyx_L1_error) + __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h1f_array, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(3, 86, __pyx_L1_error) /* "root_numpy/src/array.pyx":94 * @cython.boundscheck(False) @@ -87612,7 +88010,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__113); #line 94 "root_numpy/src/array.pyx" - __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2f_array, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(3, 94, __pyx_L1_error) + __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h2f_array, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(3, 94, __pyx_L1_error) /* "root_numpy/src/array.pyx":102 * @cython.boundscheck(False) @@ -87632,7 +88030,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__115); #line 102 "root_numpy/src/array.pyx" - __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3f_array, 102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(3, 102, __pyx_L1_error) + __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h3f_array, 102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(3, 102, __pyx_L1_error) /* "root_numpy/src/array.pyx":110 * @cython.boundscheck(False) @@ -87652,7 +88050,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__117); #line 110 "root_numpy/src/array.pyx" - __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1i_array, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(3, 110, __pyx_L1_error) + __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h1i_array, 110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(3, 110, __pyx_L1_error) /* "root_numpy/src/array.pyx":118 * @cython.boundscheck(False) @@ -87672,7 +88070,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__119); #line 118 "root_numpy/src/array.pyx" - __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2i_array, 118, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(3, 118, __pyx_L1_error) + __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h2i_array, 118, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(3, 118, __pyx_L1_error) /* "root_numpy/src/array.pyx":126 * @cython.boundscheck(False) @@ -87692,7 +88090,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__121); #line 126 "root_numpy/src/array.pyx" - __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3i_array, 126, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(3, 126, __pyx_L1_error) + __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h3i_array, 126, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(3, 126, __pyx_L1_error) /* "root_numpy/src/array.pyx":134 * @cython.boundscheck(False) @@ -87712,7 +88110,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__123); #line 134 "root_numpy/src/array.pyx" - __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1s_array, 134, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(3, 134, __pyx_L1_error) + __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h1s_array, 134, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(3, 134, __pyx_L1_error) /* "root_numpy/src/array.pyx":142 * @cython.boundscheck(False) @@ -87732,7 +88130,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__125); #line 142 "root_numpy/src/array.pyx" - __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2s_array, 142, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(3, 142, __pyx_L1_error) + __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h2s_array, 142, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(3, 142, __pyx_L1_error) /* "root_numpy/src/array.pyx":150 * @cython.boundscheck(False) @@ -87752,7 +88150,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__127); #line 150 "root_numpy/src/array.pyx" - __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3s_array, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(3, 150, __pyx_L1_error) + __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h3s_array, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(3, 150, __pyx_L1_error) /* "root_numpy/src/array.pyx":158 * @cython.boundscheck(False) @@ -87772,7 +88170,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__129); #line 158 "root_numpy/src/array.pyx" - __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h1c_array, 158, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(3, 158, __pyx_L1_error) + __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h1c_array, 158, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(3, 158, __pyx_L1_error) /* "root_numpy/src/array.pyx":166 * @cython.boundscheck(False) @@ -87792,7 +88190,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__131); #line 166 "root_numpy/src/array.pyx" - __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h2c_array, 166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(3, 166, __pyx_L1_error) + __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h2c_array, 166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(3, 166, __pyx_L1_error) /* "root_numpy/src/array.pyx":174 * @cython.boundscheck(False) @@ -87812,7 +88210,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__133); #line 174 "root_numpy/src/array.pyx" - __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_3, __pyx_n_s_h3c_array, 174, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(3, 174, __pyx_L1_error) + __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_array_pyx, __pyx_n_s_h3c_array, 174, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(3, 174, __pyx_L1_error) /* "root_numpy/src/matrix.pyx":6 * @cython.boundscheck(False) @@ -87832,7 +88230,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__135); #line 6 "root_numpy/src/matrix.pyx" - __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_n_s_matrix_d, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(4, 6, __pyx_L1_error) + __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_matrix_pyx, __pyx_n_s_matrix_d, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(4, 6, __pyx_L1_error) /* "root_numpy/src/matrix.pyx":19 * @cython.boundscheck(False) @@ -87852,7 +88250,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__137); #line 19 "root_numpy/src/matrix.pyx" - __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_4, __pyx_n_s_matrix_f, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(4, 19, __pyx_L1_error) + __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_matrix_pyx, __pyx_n_s_matrix_f, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(4, 19, __pyx_L1_error) /* "root_numpy/src/sample.pyx":6 * @cython.boundscheck(False) @@ -87872,7 +88270,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__139); #line 6 "root_numpy/src/sample.pyx" - __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f1, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(5, 6, __pyx_L1_error) + __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_sample_pyx, __pyx_n_s_sample_f1, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(5, 6, __pyx_L1_error) /* "root_numpy/src/sample.pyx":17 * @cython.boundscheck(False) @@ -87892,7 +88290,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__141); #line 17 "root_numpy/src/sample.pyx" - __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h1, 17, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(5, 17, __pyx_L1_error) + __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_sample_pyx, __pyx_n_s_sample_h1, 17, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(5, 17, __pyx_L1_error) /* "root_numpy/src/sample.pyx":28 * @cython.boundscheck(False) @@ -87912,7 +88310,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__143); #line 28 "root_numpy/src/sample.pyx" - __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f2, 28, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(5, 28, __pyx_L1_error) + __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_sample_pyx, __pyx_n_s_sample_f2, 28, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(5, 28, __pyx_L1_error) /* "root_numpy/src/sample.pyx":43 * @cython.boundscheck(False) @@ -87932,7 +88330,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__145); #line 43 "root_numpy/src/sample.pyx" - __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h2, 43, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(5, 43, __pyx_L1_error) + __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_sample_pyx, __pyx_n_s_sample_h2, 43, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(5, 43, __pyx_L1_error) /* "root_numpy/src/sample.pyx":58 * @cython.boundscheck(False) @@ -87952,7 +88350,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__147); #line 58 "root_numpy/src/sample.pyx" - __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_f3, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(5, 58, __pyx_L1_error) + __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_sample_pyx, __pyx_n_s_sample_f3, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(5, 58, __pyx_L1_error) /* "root_numpy/src/sample.pyx":75 * @cython.boundscheck(False) @@ -87972,7 +88370,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__149); #line 75 "root_numpy/src/sample.pyx" - __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_5, __pyx_n_s_sample_h3, 75, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(5, 75, __pyx_L1_error) + __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_sample_pyx, __pyx_n_s_sample_h3, 75, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(5, 75, __pyx_L1_error) /* "root_numpy/src/hist.pyx":3 * @cython.boundscheck(False) @@ -87992,7 +88390,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__151); #line 3 "root_numpy/src/hist.pyx" - __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(6, 3, __pyx_L1_error) + __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_fill_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(6, 3, __pyx_L1_error) /* "root_numpy/src/hist.pyx":31 * @cython.boundscheck(False) @@ -88012,7 +88410,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__153); #line 31 "root_numpy/src/hist.pyx" - __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h2, 31, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(6, 31, __pyx_L1_error) + __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_fill_h2, 31, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(6, 31, __pyx_L1_error) /* "root_numpy/src/hist.pyx":59 * @cython.boundscheck(False) @@ -88032,7 +88430,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__155); #line 59 "root_numpy/src/hist.pyx" - __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_h3, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(6, 59, __pyx_L1_error) + __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_fill_h3, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(6, 59, __pyx_L1_error) /* "root_numpy/src/hist.pyx":87 * @cython.boundscheck(False) @@ -88052,7 +88450,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__157); #line 87 "root_numpy/src/hist.pyx" - __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p1, 87, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(6, 87, __pyx_L1_error) + __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_fill_p1, 87, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(6, 87, __pyx_L1_error) /* "root_numpy/src/hist.pyx":115 * @cython.boundscheck(False) @@ -88072,7 +88470,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__159); #line 115 "root_numpy/src/hist.pyx" - __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p2, 115, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(6, 115, __pyx_L1_error) + __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_fill_p2, 115, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(6, 115, __pyx_L1_error) /* "root_numpy/src/hist.pyx":143 * @cython.boundscheck(False) @@ -88092,7 +88490,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__161); #line 143 "root_numpy/src/hist.pyx" - __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_fill_p3, 143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(6, 143, __pyx_L1_error) + __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_fill_p3, 143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(6, 143, __pyx_L1_error) /* "root_numpy/src/hist.pyx":171 * @cython.boundscheck(False) @@ -88112,7 +88510,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__163); #line 171 "root_numpy/src/hist.pyx" - __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_thn2array, 171, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(6, 171, __pyx_L1_error) + __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_thn2array, 171, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(6, 171, __pyx_L1_error) /* "root_numpy/src/hist.pyx":185 * @cython.boundscheck(False) @@ -88132,7 +88530,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__165); #line 185 "root_numpy/src/hist.pyx" - __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(3, 0, 10, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_6, __pyx_n_s_thnsparse2array, 185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(6, 185, __pyx_L1_error) + __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(3, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_hist_pyx, __pyx_n_s_thnsparse2array, 185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(6, 185, __pyx_L1_error) /* "root_numpy/src/graph.pyx":3 * @cython.boundscheck(False) @@ -88152,7 +88550,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__167); #line 3 "root_numpy/src/graph.pyx" - __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_n_s_fill_g1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(7, 3, __pyx_L1_error) + __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_graph_pyx, __pyx_n_s_fill_g1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(7, 3, __pyx_L1_error) /* "root_numpy/src/graph.pyx":16 * @cython.boundscheck(False) @@ -88172,7 +88570,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__169); #line 16 "root_numpy/src/graph.pyx" - __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_7, __pyx_n_s_fill_g2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(7, 16, __pyx_L1_error) + __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_graph_pyx, __pyx_n_s_fill_g2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(7, 16, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":3 * @cython.boundscheck(False) @@ -88192,7 +88590,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__171); #line 3 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(8, 3, __pyx_L1_error) + __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_h1, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(8, 3, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":16 * @cython.boundscheck(False) @@ -88212,7 +88610,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__173); #line 16 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(8, 16, __pyx_L1_error) + __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_h2, 16, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(8, 16, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":29 * @cython.boundscheck(False) @@ -88232,7 +88630,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__175); #line 29 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_h3, 29, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(8, 29, __pyx_L1_error) + __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_h3, 29, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(8, 29, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":42 * @cython.boundscheck(False) @@ -88252,7 +88650,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__177); #line 42 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f1, 42, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(8, 42, __pyx_L1_error) + __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_f1, 42, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(8, 42, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":55 * @cython.boundscheck(False) @@ -88272,7 +88670,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__179); #line 55 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f2, 55, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(8, 55, __pyx_L1_error) + __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_f2, 55, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(8, 55, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":68 * @cython.boundscheck(False) @@ -88292,7 +88690,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__181); #line 68 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_f3, 68, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(8, 68, __pyx_L1_error) + __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_f3, 68, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(8, 68, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":81 * @cython.boundscheck(False) @@ -88312,7 +88710,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__183); #line 81 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_1d, 81, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(8, 81, __pyx_L1_error) + __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_formula_1d, 81, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(8, 81, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":94 * @cython.boundscheck(False) @@ -88332,7 +88730,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__185); #line 94 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_2d, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(8, 94, __pyx_L1_error) + __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_formula_2d, 94, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(8, 94, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":107 * @cython.boundscheck(False) @@ -88352,7 +88750,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__187); #line 107 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_3d, 107, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(8, 107, __pyx_L1_error) + __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_formula_3d, 107, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(8, 107, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":120 * @cython.boundscheck(False) @@ -88372,7 +88770,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__189); #line 120 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_formula_4d, 120, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(8, 120, __pyx_L1_error) + __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_formula_4d, 120, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(8, 120, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":133 * @cython.boundscheck(False) @@ -88392,7 +88790,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__191); #line 133 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_graph, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(8, 133, __pyx_L1_error) + __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_graph, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(8, 133, __pyx_L1_error) /* "root_numpy/src/evaluate.pyx":146 * @cython.boundscheck(False) @@ -88412,7 +88810,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__193); #line 146 "root_numpy/src/evaluate.pyx" - __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_8, __pyx_n_s_evaluate_spline, 146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(8, 146, __pyx_L1_error) + __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_src_evaluate_pyx, __pyx_n_s_evaluate_spline, 146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(8, 146, __pyx_L1_error) #line 146 "root_numpy/src/evaluate.pyx" __Pyx_RefNannyFinishContext(); @@ -88450,12 +88848,160 @@ static int __Pyx_InitGlobals(void) { return -1; } +static int __Pyx_modinit_global_init_code(void); /*proto*/ +static int __Pyx_modinit_variable_export_code(void); /*proto*/ +static int __Pyx_modinit_function_export_code(void); /*proto*/ +static int __Pyx_modinit_type_init_code(void); /*proto*/ +static int __Pyx_modinit_type_import_code(void); /*proto*/ +static int __Pyx_modinit_variable_import_code(void); /*proto*/ +static int __Pyx_modinit_function_import_code(void); /*proto*/ + +static int __Pyx_modinit_global_init_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); + /*--- Global init code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_variable_export_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); + /*--- Variable export code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_function_export_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); + /*--- Function export code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_type_init_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); + /*--- Type init code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_type_import_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); + /*--- Type import code ---*/ + __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type", + #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 + sizeof(PyTypeObject), + #else + sizeof(PyHeapTypeObject), + #endif + 0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) __PYX_ERR(14, 9, __pyx_L1_error) + __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), 0); if (unlikely(!__pyx_ptype_7cpython_4bool_bool)) __PYX_ERR(15, 8, __pyx_L1_error) + __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), 0); if (unlikely(!__pyx_ptype_7cpython_7complex_complex)) __PYX_ERR(16, 15, __pyx_L1_error) + __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) __PYX_ERR(10, 164, __pyx_L1_error) + __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) __PYX_ERR(10, 186, __pyx_L1_error) + __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) __PYX_ERR(10, 190, __pyx_L1_error) + __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) __PYX_ERR(10, 199, __pyx_L1_error) + __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) __PYX_ERR(10, 872, __pyx_L1_error) + __pyx_ptype_7cpython_5array_array = __Pyx_ImportType("array", "array", sizeof(arrayobject), 0); if (unlikely(!__pyx_ptype_7cpython_5array_array)) __PYX_ERR(11, 58, __pyx_L1_error) + __Pyx_RefNannyFinishContext(); + return 0; + __pyx_L1_error:; + __Pyx_RefNannyFinishContext(); + return -1; +} + +static int __Pyx_modinit_variable_import_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); + /*--- Variable import code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_function_import_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); + /*--- Function import code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + + +#if PY_MAJOR_VERSION < 3 +#ifdef CYTHON_NO_PYINIT_EXPORT +#define __Pyx_PyMODINIT_FUNC void +#else +#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC +#endif +#else +#ifdef CYTHON_NO_PYINIT_EXPORT +#define __Pyx_PyMODINIT_FUNC PyObject * +#else +#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC +#endif +#endif +#ifndef CYTHON_SMALL_CODE +#if defined(__clang__) + #define CYTHON_SMALL_CODE +#elif defined(__GNUC__) && (!(defined(__cplusplus)) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))) + #define CYTHON_SMALL_CODE __attribute__((optimize("Os"))) +#else + #define CYTHON_SMALL_CODE +#endif +#endif + + #if PY_MAJOR_VERSION < 3 -PyMODINIT_FUNC init_librootnumpy(void); /*proto*/ -PyMODINIT_FUNC init_librootnumpy(void) +__Pyx_PyMODINIT_FUNC init_librootnumpy(void) CYTHON_SMALL_CODE; /*proto*/ +__Pyx_PyMODINIT_FUNC init_librootnumpy(void) #else -PyMODINIT_FUNC PyInit__librootnumpy(void); /*proto*/ -PyMODINIT_FUNC PyInit__librootnumpy(void) +__Pyx_PyMODINIT_FUNC PyInit__librootnumpy(void) CYTHON_SMALL_CODE; /*proto*/ +__Pyx_PyMODINIT_FUNC PyInit__librootnumpy(void) +#if CYTHON_PEP489_MULTI_PHASE_INIT +{ + return PyModuleDef_Init(&__pyx_moduledef); +} +static int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name) { + PyObject *value = PyObject_GetAttrString(spec, from_name); + int result = 0; + if (likely(value)) { + result = PyDict_SetItemString(moddict, to_name, value); + Py_DECREF(value); + } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { + PyErr_Clear(); + } else { + result = -1; + } + return result; +} +static PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) { + PyObject *module = NULL, *moddict, *modname; + if (__pyx_m) + return __Pyx_NewRef(__pyx_m); + modname = PyObject_GetAttrString(spec, "name"); + if (unlikely(!modname)) goto bad; + module = PyModule_NewObject(modname); + Py_DECREF(modname); + if (unlikely(!module)) goto bad; + moddict = PyModule_GetDict(module); + if (unlikely(!moddict)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__") < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__") < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__") < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__") < 0)) goto bad; + return module; +bad: + Py_XDECREF(module); + return NULL; +} + + +static int __pyx_pymod_exec__librootnumpy(PyObject *__pyx_pyinit_module) +#endif #endif { PyObject *__pyx_t_1 = NULL; @@ -88483,16 +89029,21 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __pyx_t_13_librootnumpy_VectorStringConverter *__pyx_t_23; __pyx_t_13_librootnumpy_VectorVectorStringConverter *__pyx_t_24; __Pyx_RefNannyDeclarations - #if CYTHON_REFNANNY - __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); - if (!__Pyx_RefNanny) { - PyErr_Clear(); - __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); - if (!__Pyx_RefNanny) - Py_FatalError("failed to import 'refnanny' module"); - } + #if CYTHON_PEP489_MULTI_PHASE_INIT + if (__pyx_m && __pyx_m == __pyx_pyinit_module) return 0; + #elif PY_MAJOR_VERSION >= 3 + if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif - __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit__librootnumpy(void)", 0); + #if CYTHON_REFNANNY +__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); +if (!__Pyx_RefNanny) { + PyErr_Clear(); + __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); + if (!__Pyx_RefNanny) + Py_FatalError("failed to import 'refnanny' module"); +} +#endif + __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit__librootnumpy(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(13, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(13, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(13, 1, __pyx_L1_error) @@ -88509,6 +89060,9 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(13, 1, __pyx_L1_error) #endif + #ifdef __Pyx_AsyncGen_USED + if (__pyx_AsyncGen_init() < 0) __PYX_ERR(13, 1, __pyx_L1_error) + #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(13, 1, __pyx_L1_error) #endif @@ -88520,15 +89074,21 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #endif #endif /*--- Module creation code ---*/ + #if CYTHON_PEP489_MULTI_PHASE_INIT + __pyx_m = __pyx_pyinit_module; + Py_INCREF(__pyx_m); + #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("_librootnumpy", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(13, 1, __pyx_L1_error) + #endif __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(13, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(13, 1, __pyx_L1_error) + __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(13, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif @@ -88553,28 +89113,14 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(13, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(13, 1, __pyx_L1_error) - /*--- Global init code ---*/ - /*--- Variable export code ---*/ - /*--- Function export code ---*/ - /*--- Type init code ---*/ - /*--- Type import code ---*/ - __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type", - #if CYTHON_COMPILING_IN_PYPY - sizeof(PyTypeObject), - #else - sizeof(PyHeapTypeObject), - #endif - 0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) __PYX_ERR(14, 9, __pyx_L1_error) - __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), 0); if (unlikely(!__pyx_ptype_7cpython_4bool_bool)) __PYX_ERR(15, 8, __pyx_L1_error) - __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), 0); if (unlikely(!__pyx_ptype_7cpython_7complex_complex)) __PYX_ERR(16, 15, __pyx_L1_error) - __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) __PYX_ERR(11, 155, __pyx_L1_error) - __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) __PYX_ERR(11, 168, __pyx_L1_error) - __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) __PYX_ERR(11, 172, __pyx_L1_error) - __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) __PYX_ERR(11, 181, __pyx_L1_error) - __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) __PYX_ERR(11, 861, __pyx_L1_error) - __pyx_ptype_7cpython_5array_array = __Pyx_ImportType("array", "array", sizeof(arrayobject), 0); if (unlikely(!__pyx_ptype_7cpython_5array_array)) __PYX_ERR(10, 58, __pyx_L1_error) - /*--- Variable import code ---*/ - /*--- Function import code ---*/ + /*--- Global type/function init code ---*/ + (void)__Pyx_modinit_global_init_code(); + (void)__Pyx_modinit_variable_export_code(); + (void)__Pyx_modinit_function_export_code(); + (void)__Pyx_modinit_type_init_code(); + if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error; + (void)__Pyx_modinit_variable_import_code(); + (void)__Pyx_modinit_function_import_code(); /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(13, 1, __pyx_L1_error) @@ -88609,7 +89155,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 5 "root_numpy/src/setup.pxi" - __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(0, 5, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 5, __pyx_L1_error) /* "root_numpy/src/setup.pxi":27 * from libc.stdlib cimport malloc, free, realloc @@ -88711,14 +89257,11 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; #line 27 "root_numpy/src/setup.pxi" - goto __pyx_L9_try_end; + goto __pyx_L7_try_end; #line 27 "root_numpy/src/setup.pxi" __pyx_L2_error:; -#line 27 "root_numpy/src/setup.pxi" - __Pyx_PyThreadState_assign - #line 27 "root_numpy/src/setup.pxi" __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -88830,9 +89373,6 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) * except ImportError: */ -#line 27 "root_numpy/src/setup.pxi" - __Pyx_PyThreadState_assign - #line 27 "root_numpy/src/setup.pxi" __Pyx_XGIVEREF(__pyx_t_3); @@ -88851,9 +89391,6 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) #line 27 "root_numpy/src/setup.pxi" __pyx_L3_exception_handled:; -#line 27 "root_numpy/src/setup.pxi" - __Pyx_PyThreadState_assign - #line 27 "root_numpy/src/setup.pxi" __Pyx_XGIVEREF(__pyx_t_3); @@ -88867,7 +89404,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); #line 27 "root_numpy/src/setup.pxi" - __pyx_L9_try_end:; + __pyx_L7_try_end:; #line 27 "root_numpy/src/setup.pxi" } @@ -89024,7 +89561,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 7 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(13); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -89051,35 +89588,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); #line 7 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); - -#line 7 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); - -#line 7 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BOOL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 7, __pyx_L1_error) #line 7 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); -#line 7 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - -#line 7 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BOOL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 7, __pyx_L1_error) - -#line 7 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); - #line 7 "root_numpy/src/converters.pyx" __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 7, __pyx_L1_error) @@ -89096,22 +89618,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_s_bool); #line 7 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_6); #line 7 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); #line 7 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_9); #line 7 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_9); #line 7 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __pyx_t_6 = 0; #line 7 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_9 = 0; #line 7 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) @@ -89143,50 +89665,35 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int8); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 8, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 8 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 8 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 8, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 8, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 8 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 8, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __Pyx_GOTREF(__pyx_t_9); #line 8 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 8, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); -#line 8 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 8 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT8); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 8, __pyx_L1_error) - -#line 8 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 8 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 8, __pyx_L1_error) - -#line 8 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); - #line 8 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_n_s_char); @@ -89194,99 +89701,84 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_n_s_char); #line 8 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_n_s_char); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_n_s_char); #line 8 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 8 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_9); #line 8 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_9); #line 8 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_7 = 0; #line 8 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __pyx_t_9 = 0; #line 8 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_9) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 8 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 8 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/converters.pyx":9 * TypeName[bool]().name: ('bool', np.dtype(np.bool), np.NPY_BOOL), * TypeName[char]().name: ('char', np.dtype(np.int8), np.NPY_INT8), - * TypeName[unsigned_char]().name: ('unsigned char', np.dtype(np.uint8), np.NPY_UINT8), # <<<<<<<<<<<<<< - * TypeName[short]().name: ('short', np.dtype(np.int16), np.NPY_INT16), - * TypeName[unsigned_short]().name: ('unsigned short', np.dtype(np.uint16), np.NPY_UINT16), - */ - -#line 9 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_char> ().name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 9, __pyx_L1_error) - -#line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 9 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 9, __pyx_L1_error) - -#line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 9 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint8); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 9, __pyx_L1_error) + * TypeName[unsigned_char]().name: ('unsigned char', np.dtype(np.uint8), np.NPY_UINT8), # <<<<<<<<<<<<<< + * TypeName[short]().name: ('short', np.dtype(np.int16), np.NPY_INT16), + * TypeName[unsigned_short]().name: ('unsigned short', np.dtype(np.uint16), np.NPY_UINT16), + */ #line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __pyx_t_6 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_char> ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_GOTREF(__pyx_t_6); #line 9 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 9, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 9 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 9 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 9 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 9, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 9 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 9 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT8); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 9, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 9 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 9, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 9, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 9 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_unsigned_char); @@ -89295,35 +89787,35 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_unsigned_char); #line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_s_unsigned_char); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_s_unsigned_char); #line 9 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); + __Pyx_GIVEREF(__pyx_t_8); #line 9 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); #line 9 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8); + __Pyx_GIVEREF(__pyx_t_9); #line 9 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_9); #line 9 "root_numpy/src/converters.pyx" __pyx_t_8 = 0; #line 9 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_t_9 = 0; #line 9 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 9 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; +#line 9 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + /* "root_numpy/src/converters.pyx":10 * TypeName[char]().name: ('char', np.dtype(np.int8), np.NPY_INT8), * TypeName[unsigned_char]().name: ('unsigned char', np.dtype(np.uint8), np.NPY_UINT8), @@ -89333,46 +89825,31 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 10 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 10, __pyx_L1_error) - -#line 10 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); - -#line 10 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 10, __pyx_L1_error) - -#line 10 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_7 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 10, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int16); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 10, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); #line 10 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 10, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_GOTREF(__pyx_t_6); #line 10 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 10, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 10, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 10 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 10 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); - -#line 10 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 10 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 10, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 10, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_6); #line 10 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -89384,10 +89861,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_9); #line 10 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 10, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 10, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 10 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_n_s_short); @@ -89396,34 +89873,34 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_n_s_short); #line 10 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_short); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_s_short); #line 10 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_6); #line 10 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); #line 10 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 10 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_9); #line 10 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __pyx_t_6 = 0; #line 10 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 10 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 10 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 10 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "root_numpy/src/converters.pyx":11 * TypeName[unsigned_char]().name: ('unsigned char', np.dtype(np.uint8), np.NPY_UINT8), @@ -89434,62 +89911,47 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 11 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_short> ().name); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_short> ().name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 11 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 11 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint16); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_uint16); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - -#line 11 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) - -#line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 11 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); + __Pyx_GOTREF(__pyx_t_7); #line 11 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 11 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT16); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - -#line 11 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT16); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); -#line 11 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 11, __pyx_L1_error) - -#line 11 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); - #line 11 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_unsigned_short); @@ -89497,34 +89959,34 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_unsigned_short); #line 11 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_s_unsigned_short); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_s_unsigned_short); #line 11 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_7); #line 11 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 11 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_9); #line 11 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __pyx_t_7 = 0; #line 11 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_9 = 0; #line 11 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 11 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 11 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/converters.pyx":12 * TypeName[short]().name: ('short', np.dtype(np.int16), np.NPY_INT16), @@ -89535,61 +89997,46 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 12 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 12, __pyx_L1_error) - -#line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 12 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 12, __pyx_L1_error) - -#line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 12 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); #line 12 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 12 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_8); #line 12 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int32); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 12 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 12 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_8); #line 12 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 12 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT32); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT32); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 12 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 12, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_7); #line 12 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_n_s_int); @@ -89598,34 +90045,34 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_n_s_int); #line 12 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_n_s_int); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_int); #line 12 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_8); #line 12 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); #line 12 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_9); #line 12 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_9); #line 12 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_8 = 0; #line 12 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __pyx_t_9 = 0; #line 12 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_9) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 12 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 12 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "root_numpy/src/converters.pyx":13 * TypeName[unsigned_short]().name: ('unsigned short', np.dtype(np.uint16), np.NPY_UINT16), @@ -89636,61 +90083,46 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 13 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_int> ().name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error) - -#line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 13 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 13, __pyx_L1_error) - -#line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 13 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint32); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 13, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_int> ().name); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 13 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 13 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 13, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_6); #line 13 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint32); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 13 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 13 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 13, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_6); #line 13 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 13 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT32); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 13, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT32); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 13 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 13, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_8); #line 13 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_unsigned_int); @@ -89699,34 +90131,34 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_unsigned_int); #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_s_unsigned_int); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_s_unsigned_int); #line 13 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_6); #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); #line 13 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_9); #line 13 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_9); #line 13 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __pyx_t_6 = 0; #line 13 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __pyx_t_9 = 0; #line 13 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 13 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 13 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "root_numpy/src/converters.pyx":14 * TypeName[int]().name: ('int', np.dtype(np.int32), np.NPY_INT32), @@ -89737,46 +90169,31 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 14 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error) - -#line 14 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); - -#line 14 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error) - -#line 14 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 14 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int64); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyStr_FromString(TypeName ().name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 14 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - -#line 14 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_7); #line 14 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 14 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 14 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_7); #line 14 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -89788,10 +90205,10 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_9); #line 14 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_6); #line 14 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_n_s_long); @@ -89800,34 +90217,34 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_n_s_long); #line 14 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_long); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_n_s_long); #line 14 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_7); #line 14 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 14 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 14 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_9); #line 14 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __pyx_t_7 = 0; #line 14 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 14 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 14 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 14 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "root_numpy/src/converters.pyx":15 * TypeName[unsigned_int]().name: ('unsigned int', np.dtype(np.uint32), np.NPY_UINT32), @@ -89838,98 +90255,83 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 15 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_long> ().name); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 15, __pyx_L1_error) - -#line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 15 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_long> ().name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); #line 15 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 15 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 15 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 15 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 15 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - -#line 15 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT64); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 15, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_7); #line 15 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 15, __pyx_L1_error) + __Pyx_INCREF(__pyx_kp_s_unsigned_long); #line 15 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_kp_s_unsigned_long); #line 15 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_kp_s_unsigned_long); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_s_unsigned_long); #line 15 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_kp_s_unsigned_long); + __Pyx_GIVEREF(__pyx_t_8); #line 15 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_s_unsigned_long); + PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); #line 15 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); - -#line 15 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_9); #line 15 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); + __pyx_t_8 = 0; #line 15 "root_numpy/src/converters.pyx" __pyx_t_9 = 0; #line 15 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_7) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 15 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 15 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; -#line 15 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "root_numpy/src/converters.pyx":16 * TypeName[long]().name: ('long', np.dtype(np.int64), np.NPY_INT64), * TypeName[unsigned_long]().name: ('unsigned long', np.dtype(np.uint64), np.NPY_UINT64), @@ -89939,61 +90341,46 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 16 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_long_long> ().name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 16, __pyx_L1_error) - -#line 16 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 16 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_long_long> ().name); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 16 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_longlong); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 16 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 16, __pyx_L1_error) - -#line 16 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 16 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_longlong); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 16 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 16 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 16 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 16 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 16, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 16, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_8); #line 16 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_kp_s_long_long); @@ -90002,34 +90389,34 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GIVEREF(__pyx_kp_s_long_long); #line 16 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_kp_s_long_long); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_s_long_long); #line 16 "root_numpy/src/converters.pyx" __Pyx_GIVEREF(__pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); #line 16 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_9); #line 16 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_9); #line 16 "root_numpy/src/converters.pyx" __pyx_t_6 = 0; #line 16 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __pyx_t_9 = 0; #line 16 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_9) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 16 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 16 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; /* "root_numpy/src/converters.pyx":17 * TypeName[unsigned_long]().name: ('unsigned long', np.dtype(np.uint64), np.NPY_UINT64), @@ -90040,55 +90427,40 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 17 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_long_long> ().name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 17, __pyx_L1_error) - -#line 17 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 17 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 17, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyStr_FromString(TypeName<__pyx_t_13_librootnumpy_unsigned_long_long> ().name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 17, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 17 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_ulonglong); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 17, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 17, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 17 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 17 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 17, __pyx_L1_error) - -#line 17 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); - -#line 17 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_ulonglong); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 17, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 17 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 17 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 17, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 17, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 17 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 17 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 17, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 17, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_8); + __Pyx_GOTREF(__pyx_t_9); #line 17 "root_numpy/src/converters.pyx" __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 17, __pyx_L1_error) @@ -90112,22 +90484,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); #line 17 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_9); #line 17 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_9); #line 17 "root_numpy/src/converters.pyx" __pyx_t_7 = 0; #line 17 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __pyx_t_9 = 0; #line 17 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_9, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_t_6) < 0) __PYX_ERR(1, 7, __pyx_L1_error) #line 17 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 17 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -90147,37 +90519,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_GOTREF(__pyx_t_6); #line 18 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 18, __pyx_L1_error) - -#line 18 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); - -#line 18 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_float32); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 18, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 18, __pyx_L1_error) #line 18 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 18 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - -#line 18 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 18, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_float32); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 18, __pyx_L1_error) #line 18 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); #line 18 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 18 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); - -#line 18 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 18 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 18, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 18, __pyx_L1_error) #line 18 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90263,35 +90620,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_6); #line 19 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); - -#line 19 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); - -#line 19 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_6, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT64); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L1_error) #line 19 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_9); -#line 19 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - -#line 19 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT64); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 19, __pyx_L1_error) - -#line 19 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); - #line 19 "root_numpy/src/converters.pyx" __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 19, __pyx_L1_error) @@ -90308,22 +90650,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_s_double); #line 19 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_6); #line 19 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6); #line 19 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_9); #line 19 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_9); #line 19 "root_numpy/src/converters.pyx" - __pyx_t_9 = 0; + __pyx_t_6 = 0; #line 19 "root_numpy/src/converters.pyx" - __pyx_t_6 = 0; + __pyx_t_9 = 0; #line 19 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_t_8) < 0) __PYX_ERR(1, 7, __pyx_L1_error) @@ -90349,7 +90691,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 23 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 23, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(12); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 23, __pyx_L1_error) #line 23 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -90370,35 +90712,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 23 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 23, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 23, __pyx_L1_error) #line 23 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 23 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 23 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); - -#line 23 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; - -#line 23 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 23, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 23 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__55) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 23 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 23 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__55) < 0) __PYX_ERR(1, 23, __pyx_L1_error) - -#line 23 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "root_numpy/src/converters.pyx":24 * TYPES_NUMPY2ROOT = { * np.dtype(np.bool): (1, 'O'), @@ -90408,37 +90735,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 24 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 24, __pyx_L1_error) - -#line 24 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 24 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int8); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 24, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 24, __pyx_L1_error) #line 24 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 24 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 24 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 24, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int8); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 24, __pyx_L1_error) #line 24 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 24 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 24 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); - -#line 24 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 24 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 24, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 24, __pyx_L1_error) #line 24 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90476,35 +90788,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 25 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 25, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 25, __pyx_L1_error) #line 25 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 25 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 25 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); - -#line 25 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; - -#line 25 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 25, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 25 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__57) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 25 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 25 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__57) < 0) __PYX_ERR(1, 23, __pyx_L1_error) - -#line 25 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "root_numpy/src/converters.pyx":26 * np.dtype(np.int8): (1, 'B'), * np.dtype(np.int16): (2, 'S'), @@ -90514,37 +90811,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 26 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 26, __pyx_L1_error) - -#line 26 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 26 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 26, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 26, __pyx_L1_error) #line 26 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 26 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 26 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 26, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int32); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 26, __pyx_L1_error) #line 26 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 26 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 26 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); - -#line 26 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 26 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 26, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 26, __pyx_L1_error) #line 26 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90582,35 +90864,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 27 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 27, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 27, __pyx_L1_error) #line 27 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 27 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 27 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); - -#line 27 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; - -#line 27 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 27, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 27 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__59) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 27 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 27 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__59) < 0) __PYX_ERR(1, 23, __pyx_L1_error) - -#line 27 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "root_numpy/src/converters.pyx":28 * np.dtype(np.int32): (4, 'I'), * np.dtype(np.int64): (8, 'L'), @@ -90620,37 +90887,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 28 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 28, __pyx_L1_error) - -#line 28 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 28 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_uint8); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 28, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 28, __pyx_L1_error) #line 28 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 28 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 28 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 28, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint8); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 28, __pyx_L1_error) #line 28 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 28 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 28 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); - -#line 28 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 28 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 28, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 28, __pyx_L1_error) #line 28 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90688,35 +90940,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 29 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 29, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 29, __pyx_L1_error) #line 29 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 29 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 29 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); - -#line 29 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; - -#line 29 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 29, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 29 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__61) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 29 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 29 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__61) < 0) __PYX_ERR(1, 23, __pyx_L1_error) - -#line 29 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "root_numpy/src/converters.pyx":30 * np.dtype(np.uint8): (1, 'b'), * np.dtype(np.uint16): (2, 's'), @@ -90726,37 +90963,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 30 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 30, __pyx_L1_error) - -#line 30 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 30 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_uint32); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 30, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 30, __pyx_L1_error) #line 30 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 30 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 30 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 30, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint32); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 30, __pyx_L1_error) #line 30 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 30 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 30 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); - -#line 30 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 30 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 30, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 30, __pyx_L1_error) #line 30 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90794,35 +91016,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 31 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 31, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 31, __pyx_L1_error) #line 31 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 31 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 31 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); - -#line 31 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; - -#line 31 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 31, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 31 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__63) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 31 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 31 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__63) < 0) __PYX_ERR(1, 23, __pyx_L1_error) - -#line 31 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "root_numpy/src/converters.pyx":32 * np.dtype(np.uint32): (4, 'i'), * np.dtype(np.uint64): (8, 'l'), @@ -90832,37 +91039,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 32 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 32, __pyx_L1_error) - -#line 32 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 32 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L1_error) #line 32 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 32 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 32 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 32, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_float); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 32, __pyx_L1_error) #line 32 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 32 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 32 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); - -#line 32 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 32 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L1_error) #line 32 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90900,35 +91092,20 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 33 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 33, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 33, __pyx_L1_error) #line 33 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 33 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_7); - -#line 33 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); - -#line 33 "root_numpy/src/converters.pyx" - __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; #line 33 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 33, __pyx_L1_error) - -#line 33 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + if (PyDict_SetItem(__pyx_t_1, __pyx_t_8, __pyx_tuple__65) < 0) __PYX_ERR(1, 23, __pyx_L1_error) #line 33 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 33 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_t_1, __pyx_t_7, __pyx_tuple__65) < 0) __PYX_ERR(1, 23, __pyx_L1_error) - -#line 33 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "root_numpy/src/converters.pyx":34 * np.dtype(np.float): (8, 'D'), * np.dtype(np.float32): (4, 'F'), @@ -90938,37 +91115,22 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 34 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 34, __pyx_L1_error) - -#line 34 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 34 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float64); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 34, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 34, __pyx_L1_error) #line 34 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); #line 34 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - -#line 34 "root_numpy/src/converters.pyx" - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 34, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_float64); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 34, __pyx_L1_error) #line 34 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_7); #line 34 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); - -#line 34 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); - -#line 34 "root_numpy/src/converters.pyx" - __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 34 "root_numpy/src/converters.pyx" - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 34, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5numpy_dtype), __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 34, __pyx_L1_error) #line 34 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); @@ -90997,7 +91159,7 @@ PyMODINIT_FUNC PyInit__librootnumpy(void) */ #line 38 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 38, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 38, __pyx_L1_error) #line 38 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -91191,7 +91353,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, if (exc_type) { #line 518 "root_numpy/src/converters.pyx" - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); #line 518 "root_numpy/src/converters.pyx" else __PYX_ERR(1, 518, __pyx_L1_error) @@ -91218,19 +91380,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, PyObject* sequence = __pyx_t_1; #line 518 "root_numpy/src/converters.pyx" - #if !CYTHON_COMPILING_IN_PYPY - -#line 518 "root_numpy/src/converters.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 518 "root_numpy/src/converters.pyx" - #else - -#line 518 "root_numpy/src/converters.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 518 "root_numpy/src/converters.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 518 "root_numpy/src/converters.pyx" if (unlikely(size != 2)) { @@ -91257,7 +91407,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0); #line 518 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1); #line 518 "root_numpy/src/converters.pyx" } else { @@ -91266,7 +91416,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __pyx_t_8 = PyList_GET_ITEM(sequence, 0); #line 518 "root_numpy/src/converters.pyx" - __pyx_t_6 = PyList_GET_ITEM(sequence, 1); + __pyx_t_9 = PyList_GET_ITEM(sequence, 1); #line 518 "root_numpy/src/converters.pyx" } @@ -91275,7 +91425,7 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __Pyx_INCREF(__pyx_t_8); #line 518 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(__pyx_t_9); #line 518 "root_numpy/src/converters.pyx" #else @@ -91287,10 +91437,10 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, __Pyx_GOTREF(__pyx_t_8); #line 518 "root_numpy/src/converters.pyx" - __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 518, __pyx_L1_error) + __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 518 "root_numpy/src/converters.pyx" #endif @@ -91305,46 +91455,46 @@ __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, Py_ssize_t index = -1; #line 518 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 518, __pyx_L1_error) + __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_6); #line 518 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 518 "root_numpy/src/converters.pyx" - __pyx_t_12 = Py_TYPE(__pyx_t_9)->tp_iternext; - index = 0; __pyx_t_8 = __pyx_t_12(__pyx_t_9); if (unlikely(!__pyx_t_8)) + __pyx_t_12 = Py_TYPE(__pyx_t_6)->tp_iternext; + index = 0; __pyx_t_8 = __pyx_t_12(__pyx_t_6); if (unlikely(!__pyx_t_8)) #line 518 "root_numpy/src/converters.pyx" -goto __pyx_L14_unpacking_failed; +goto __pyx_L12_unpacking_failed; #line 518 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_8); - index = 1; __pyx_t_6 = __pyx_t_12(__pyx_t_9); if (unlikely(!__pyx_t_6)) + index = 1; __pyx_t_9 = __pyx_t_12(__pyx_t_6); if (unlikely(!__pyx_t_9)) #line 518 "root_numpy/src/converters.pyx" -goto __pyx_L14_unpacking_failed; +goto __pyx_L12_unpacking_failed; #line 518 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 518 "root_numpy/src/converters.pyx" - if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_9), 2) < 0) __PYX_ERR(1, 518, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_6), 2) < 0) __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" __pyx_t_12 = NULL; #line 518 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 518 "root_numpy/src/converters.pyx" - goto __pyx_L15_unpacking_done; + goto __pyx_L13_unpacking_done; #line 518 "root_numpy/src/converters.pyx" - __pyx_L14_unpacking_failed:; + __pyx_L12_unpacking_failed:; #line 518 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 518 "root_numpy/src/converters.pyx" __pyx_t_12 = NULL; @@ -91356,7 +91506,7 @@ goto __pyx_L14_unpacking_failed; __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" - __pyx_L15_unpacking_done:; + __pyx_L13_unpacking_done:; #line 518 "root_numpy/src/converters.pyx" } @@ -91368,25 +91518,13 @@ goto __pyx_L14_unpacking_failed; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 518 "root_numpy/src/converters.pyx" - if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) { + if ((likely(PyTuple_CheckExact(__pyx_t_9))) || (PyList_CheckExact(__pyx_t_9))) { #line 518 "root_numpy/src/converters.pyx" - PyObject* sequence = __pyx_t_6; + PyObject* sequence = __pyx_t_9; #line 518 "root_numpy/src/converters.pyx" - #if !CYTHON_COMPILING_IN_PYPY - -#line 518 "root_numpy/src/converters.pyx" - Py_ssize_t size = Py_SIZE(sequence); - -#line 518 "root_numpy/src/converters.pyx" - #else - -#line 518 "root_numpy/src/converters.pyx" - Py_ssize_t size = PySequence_Size(sequence); - -#line 518 "root_numpy/src/converters.pyx" - #endif + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); #line 518 "root_numpy/src/converters.pyx" if (unlikely(size != 3)) { @@ -91410,7 +91548,7 @@ goto __pyx_L14_unpacking_failed; if (likely(PyTuple_CheckExact(sequence))) { #line 518 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); #line 518 "root_numpy/src/converters.pyx" __pyx_t_13 = PyTuple_GET_ITEM(sequence, 1); @@ -91422,7 +91560,7 @@ goto __pyx_L14_unpacking_failed; } else { #line 518 "root_numpy/src/converters.pyx" - __pyx_t_9 = PyList_GET_ITEM(sequence, 0); + __pyx_t_6 = PyList_GET_ITEM(sequence, 0); #line 518 "root_numpy/src/converters.pyx" __pyx_t_13 = PyList_GET_ITEM(sequence, 1); @@ -91434,7 +91572,7 @@ goto __pyx_L14_unpacking_failed; } #line 518 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_6); #line 518 "root_numpy/src/converters.pyx" __Pyx_INCREF(__pyx_t_13); @@ -91446,10 +91584,10 @@ goto __pyx_L14_unpacking_failed; #else #line 518 "root_numpy/src/converters.pyx" - __pyx_t_9 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 518, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_6); #line 518 "root_numpy/src/converters.pyx" __pyx_t_13 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 518, __pyx_L1_error) @@ -91467,7 +91605,7 @@ goto __pyx_L14_unpacking_failed; #endif #line 518 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 518 "root_numpy/src/converters.pyx" } else { @@ -91476,31 +91614,31 @@ goto __pyx_L14_unpacking_failed; Py_ssize_t index = -1; #line 518 "root_numpy/src/converters.pyx" - __pyx_t_15 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 518, __pyx_L1_error) + __pyx_t_15 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_15); #line 518 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 518 "root_numpy/src/converters.pyx" __pyx_t_12 = Py_TYPE(__pyx_t_15)->tp_iternext; - index = 0; __pyx_t_9 = __pyx_t_12(__pyx_t_15); if (unlikely(!__pyx_t_9)) + index = 0; __pyx_t_6 = __pyx_t_12(__pyx_t_15); if (unlikely(!__pyx_t_6)) #line 518 "root_numpy/src/converters.pyx" -goto __pyx_L16_unpacking_failed; +goto __pyx_L14_unpacking_failed; #line 518 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_9); + __Pyx_GOTREF(__pyx_t_6); index = 1; __pyx_t_13 = __pyx_t_12(__pyx_t_15); if (unlikely(!__pyx_t_13)) #line 518 "root_numpy/src/converters.pyx" -goto __pyx_L16_unpacking_failed; +goto __pyx_L14_unpacking_failed; #line 518 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_13); index = 2; __pyx_t_14 = __pyx_t_12(__pyx_t_15); if (unlikely(!__pyx_t_14)) #line 518 "root_numpy/src/converters.pyx" -goto __pyx_L16_unpacking_failed; +goto __pyx_L14_unpacking_failed; #line 518 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_14); @@ -91515,10 +91653,10 @@ goto __pyx_L16_unpacking_failed; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; #line 518 "root_numpy/src/converters.pyx" - goto __pyx_L17_unpacking_done; + goto __pyx_L15_unpacking_done; #line 518 "root_numpy/src/converters.pyx" - __pyx_L16_unpacking_failed:; + __pyx_L14_unpacking_failed:; #line 518 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; @@ -91533,16 +91671,16 @@ goto __pyx_L16_unpacking_failed; __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" - __pyx_L17_unpacking_done:; + __pyx_L15_unpacking_done:; #line 518 "root_numpy/src/converters.pyx" } #line 518 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ctype, __pyx_t_9) < 0) __PYX_ERR(1, 518, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ctype, __pyx_t_6) < 0) __PYX_ERR(1, 518, __pyx_L1_error) #line 518 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; #line 518 "root_numpy/src/converters.pyx" if (PyDict_SetItem(__pyx_d, __pyx_n_s_dtype, __pyx_t_13) < 0) __PYX_ERR(1, 518, __pyx_L1_error) @@ -91591,34 +91729,34 @@ goto __pyx_L16_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); #line 521 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 521, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_itemsize); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 521, __pyx_L1_error) #line 521 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 521 "root_numpy/src/converters.pyx" __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #line 521 "root_numpy/src/converters.pyx" - __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 521, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_9); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 521, __pyx_L1_error) #line 521 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 521 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_dtype); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 521, __pyx_L1_error) + __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_dtype); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 521, __pyx_L1_error) #line 521 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_9); #line 521 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 521, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 521, __pyx_L1_error) #line 521 "root_numpy/src/converters.pyx" __Pyx_GOTREF(__pyx_t_1); #line 521 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; #line 521 "root_numpy/src/converters.pyx" __pyx_t_17 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 521, __pyx_L1_error) @@ -93390,19 +93528,19 @@ goto __pyx_L16_unpacking_failed; */ #line 670 "root_numpy/src/converters.pyx" - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_atexit); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 670, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_atexit); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 670, __pyx_L1_error) #line 670 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_7); #line 670 "root_numpy/src/converters.pyx" - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_register); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 670, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_register); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 670, __pyx_L1_error) #line 670 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_6); + __Pyx_GOTREF(__pyx_t_1); #line 670 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "root_numpy/src/converters.pyx":671 * @@ -93413,154 +93551,36 @@ goto __pyx_L16_unpacking_failed; */ #line 671 "root_numpy/src/converters.pyx" - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_1cleanup, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 671, __pyx_L1_error) - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_1); - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_8 = NULL; - -#line 671 "root_numpy/src/converters.pyx" - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); - -#line 671 "root_numpy/src/converters.pyx" - if (likely(__pyx_t_8)) { - -#line 671 "root_numpy/src/converters.pyx" - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_INCREF(__pyx_t_8); - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_INCREF(function); - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF_SET(__pyx_t_6, function); - -#line 671 "root_numpy/src/converters.pyx" - } - -#line 671 "root_numpy/src/converters.pyx" - } - -#line 671 "root_numpy/src/converters.pyx" - if (!__pyx_t_8) { + __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_1cleanup, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 671, __pyx_L1_error) #line 671 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 670, __pyx_L1_error) - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 671 "root_numpy/src/converters.pyx" - } else { - -#line 671 "root_numpy/src/converters.pyx" - #if CYTHON_FAST_PYCALL - -#line 671 "root_numpy/src/converters.pyx" - if (PyFunction_Check(__pyx_t_6)) { - -#line 671 "root_numpy/src/converters.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_1}; - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 670, __pyx_L1_error) - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - -#line 671 "root_numpy/src/converters.pyx" - } else - -#line 671 "root_numpy/src/converters.pyx" - #endif - -#line 671 "root_numpy/src/converters.pyx" - #if CYTHON_FAST_PYCCALL - -#line 671 "root_numpy/src/converters.pyx" - if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { - -#line 671 "root_numpy/src/converters.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_t_1}; - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 670, __pyx_L1_error) - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - -#line 671 "root_numpy/src/converters.pyx" - } else - -#line 671 "root_numpy/src/converters.pyx" - #endif - -#line 671 "root_numpy/src/converters.pyx" - { - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_14 = PyTuple_New(1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 670, __pyx_L1_error) - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_14); - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8); __pyx_t_8 = NULL; - -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GIVEREF(__pyx_t_1); - -#line 671 "root_numpy/src/converters.pyx" - PyTuple_SET_ITEM(__pyx_t_14, 0+1, __pyx_t_1); - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_1 = 0; - -#line 671 "root_numpy/src/converters.pyx" - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); -#line 671 "root_numpy/src/converters.pyx" - __Pyx_GOTREF(__pyx_t_7); + /* "root_numpy/src/converters.pyx":670 + * + * + * @atexit.register # <<<<<<<<<<<<<< + * def cleanup(): + * # Delete all converters when module is town down + */ -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; +#line 670 "root_numpy/src/converters.pyx" + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 670, __pyx_L1_error) -#line 671 "root_numpy/src/converters.pyx" - } +#line 670 "root_numpy/src/converters.pyx" + __Pyx_GOTREF(__pyx_t_9); -#line 671 "root_numpy/src/converters.pyx" - } +#line 670 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; +#line 670 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; -#line 671 "root_numpy/src/converters.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_cleanup, __pyx_t_7) < 0) __PYX_ERR(1, 671, __pyx_L1_error) +#line 670 "root_numpy/src/converters.pyx" + if (PyDict_SetItem(__pyx_d, __pyx_n_s_cleanup, __pyx_t_9) < 0) __PYX_ERR(1, 671, __pyx_L1_error) -#line 671 "root_numpy/src/converters.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; +#line 670 "root_numpy/src/converters.pyx" + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":39 * @@ -93571,16 +93591,16 @@ goto __pyx_L16_unpacking_failed; */ #line 39 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_3list_objects, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 39, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_3list_objects, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 39, __pyx_L1_error) #line 39 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 39 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_objects, __pyx_t_7) < 0) __PYX_ERR(2, 39, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_objects, __pyx_t_9) < 0) __PYX_ERR(2, 39, __pyx_L1_error) #line 39 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":59 * @@ -93591,16 +93611,16 @@ goto __pyx_L16_unpacking_failed; */ #line 59 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_5list_trees, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 59, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_5list_trees, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 59, __pyx_L1_error) #line 59 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 59 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_trees, __pyx_t_7) < 0) __PYX_ERR(2, 59, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_trees, __pyx_t_9) < 0) __PYX_ERR(2, 59, __pyx_L1_error) #line 59 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":63 * @@ -93611,16 +93631,16 @@ goto __pyx_L16_unpacking_failed; */ #line 63 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_7list_directories, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 63, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_7list_directories, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 63, __pyx_L1_error) #line 63 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 63 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_directories, __pyx_t_7) < 0) __PYX_ERR(2, 63, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_directories, __pyx_t_9) < 0) __PYX_ERR(2, 63, __pyx_L1_error) #line 63 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":67 * @@ -93631,16 +93651,16 @@ goto __pyx_L16_unpacking_failed; */ #line 67 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_9list_structures, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 67, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_9list_structures, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 67, __pyx_L1_error) #line 67 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 67 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_structures, __pyx_t_7) < 0) __PYX_ERR(2, 67, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_structures, __pyx_t_9) < 0) __PYX_ERR(2, 67, __pyx_L1_error) #line 67 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":86 * @@ -93651,16 +93671,16 @@ goto __pyx_L16_unpacking_failed; */ #line 86 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_11list_branches, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_11list_branches, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error) #line 86 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 86 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_branches, __pyx_t_7) < 0) __PYX_ERR(2, 86, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_branches, __pyx_t_9) < 0) __PYX_ERR(2, 86, __pyx_L1_error) #line 86 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":599 * @@ -93671,16 +93691,16 @@ goto __pyx_L16_unpacking_failed; */ #line 599 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_13root2array_fromfile, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 599, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_13root2array_fromfile, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 599, __pyx_L1_error) #line 599 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 599 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_root2array_fromfile, __pyx_t_7) < 0) __PYX_ERR(2, 599, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_root2array_fromfile, __pyx_t_9) < 0) __PYX_ERR(2, 599, __pyx_L1_error) #line 599 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":639 * @@ -93691,16 +93711,16 @@ goto __pyx_L16_unpacking_failed; */ #line 639 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_15root2array_fromtree, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_15root2array_fromtree, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 639, __pyx_L1_error) #line 639 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 639 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_root2array_fromtree, __pyx_t_7) < 0) __PYX_ERR(2, 639, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_root2array_fromtree, __pyx_t_9) < 0) __PYX_ERR(2, 639, __pyx_L1_error) #line 639 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":651 * @@ -93725,16 +93745,16 @@ goto __pyx_L16_unpacking_failed; */ #line 711 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_17array2tree_toCObj, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 711, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_17array2tree_toCObj, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 711, __pyx_L1_error) #line 711 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 711 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array2tree_toCObj, __pyx_t_7) < 0) __PYX_ERR(2, 711, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array2tree_toCObj, __pyx_t_9) < 0) __PYX_ERR(2, 711, __pyx_L1_error) #line 711 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/tree.pyx":720 * @@ -93745,16 +93765,16 @@ goto __pyx_L16_unpacking_failed; */ #line 720 "root_numpy/src/tree.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_19array2root, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 720, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_19array2root, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 720, __pyx_L1_error) #line 720 "root_numpy/src/tree.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 720 "root_numpy/src/tree.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array2root, __pyx_t_7) < 0) __PYX_ERR(2, 720, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array2root, __pyx_t_9) < 0) __PYX_ERR(2, 720, __pyx_L1_error) #line 720 "root_numpy/src/tree.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":10 * @@ -93765,16 +93785,16 @@ goto __pyx_L16_unpacking_failed; */ #line 10 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_21array_d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 10, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_21array_d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 10, __pyx_L1_error) #line 10 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 10 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_d, __pyx_t_7) < 0) __PYX_ERR(3, 10, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_d, __pyx_t_9) < 0) __PYX_ERR(3, 10, __pyx_L1_error) #line 10 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":15 * @@ -93785,16 +93805,16 @@ goto __pyx_L16_unpacking_failed; */ #line 15 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_23array_f, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 15, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_23array_f, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 15, __pyx_L1_error) #line 15 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 15 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_f, __pyx_t_7) < 0) __PYX_ERR(3, 15, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_f, __pyx_t_9) < 0) __PYX_ERR(3, 15, __pyx_L1_error) #line 15 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":20 * @@ -93805,16 +93825,16 @@ goto __pyx_L16_unpacking_failed; */ #line 20 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_25array_l, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 20, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_25array_l, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 20, __pyx_L1_error) #line 20 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 20 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_l, __pyx_t_7) < 0) __PYX_ERR(3, 20, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_l, __pyx_t_9) < 0) __PYX_ERR(3, 20, __pyx_L1_error) #line 20 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":25 * @@ -93825,16 +93845,16 @@ goto __pyx_L16_unpacking_failed; */ #line 25 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_27array_i, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 25, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_27array_i, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 25, __pyx_L1_error) #line 25 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 25 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_i, __pyx_t_7) < 0) __PYX_ERR(3, 25, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_i, __pyx_t_9) < 0) __PYX_ERR(3, 25, __pyx_L1_error) #line 25 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":30 * @@ -93845,16 +93865,16 @@ goto __pyx_L16_unpacking_failed; */ #line 30 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_29array_s, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 30, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_29array_s, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 30, __pyx_L1_error) #line 30 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 30 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_s, __pyx_t_7) < 0) __PYX_ERR(3, 30, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_s, __pyx_t_9) < 0) __PYX_ERR(3, 30, __pyx_L1_error) #line 30 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":35 * @@ -93865,16 +93885,16 @@ goto __pyx_L16_unpacking_failed; */ #line 35 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_31array_c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 35, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_31array_c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 35, __pyx_L1_error) #line 35 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 35 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_c, __pyx_t_7) < 0) __PYX_ERR(3, 35, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_c, __pyx_t_9) < 0) __PYX_ERR(3, 35, __pyx_L1_error) #line 35 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":40 * @@ -93885,16 +93905,16 @@ goto __pyx_L16_unpacking_failed; */ #line 40 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_33array_h1c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 40, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_33array_h1c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 40, __pyx_L1_error) #line 40 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 40 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_h1c, __pyx_t_7) < 0) __PYX_ERR(3, 40, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_h1c, __pyx_t_9) < 0) __PYX_ERR(3, 40, __pyx_L1_error) #line 40 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":46 * @@ -93905,16 +93925,16 @@ goto __pyx_L16_unpacking_failed; */ #line 46 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_35array_h2c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 46, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_35array_h2c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 46, __pyx_L1_error) #line 46 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 46 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_h2c, __pyx_t_7) < 0) __PYX_ERR(3, 46, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_h2c, __pyx_t_9) < 0) __PYX_ERR(3, 46, __pyx_L1_error) #line 46 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":52 * @@ -93925,16 +93945,16 @@ goto __pyx_L16_unpacking_failed; */ #line 52 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_37array_h3c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 52, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_37array_h3c, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 52, __pyx_L1_error) #line 52 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 52 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_h3c, __pyx_t_7) < 0) __PYX_ERR(3, 52, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_array_h3c, __pyx_t_9) < 0) __PYX_ERR(3, 52, __pyx_L1_error) #line 52 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":62 * @cython.boundscheck(False) @@ -93945,16 +93965,16 @@ goto __pyx_L16_unpacking_failed; */ #line 62 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_39h1d_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 62, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_39h1d_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 62, __pyx_L1_error) #line 62 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 62 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1d_array, __pyx_t_7) < 0) __PYX_ERR(3, 62, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1d_array, __pyx_t_9) < 0) __PYX_ERR(3, 62, __pyx_L1_error) #line 62 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":70 * @cython.boundscheck(False) @@ -93965,16 +93985,16 @@ goto __pyx_L16_unpacking_failed; */ #line 70 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_41h2d_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 70, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_41h2d_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 70, __pyx_L1_error) #line 70 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 70 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2d_array, __pyx_t_7) < 0) __PYX_ERR(3, 70, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2d_array, __pyx_t_9) < 0) __PYX_ERR(3, 70, __pyx_L1_error) #line 70 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":78 * @cython.boundscheck(False) @@ -93985,16 +94005,16 @@ goto __pyx_L16_unpacking_failed; */ #line 78 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_43h3d_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 78, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_43h3d_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 78, __pyx_L1_error) #line 78 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 78 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3d_array, __pyx_t_7) < 0) __PYX_ERR(3, 78, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3d_array, __pyx_t_9) < 0) __PYX_ERR(3, 78, __pyx_L1_error) #line 78 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":86 * @cython.boundscheck(False) @@ -94005,16 +94025,16 @@ goto __pyx_L16_unpacking_failed; */ #line 86 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_45h1f_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 86, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_45h1f_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 86, __pyx_L1_error) #line 86 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 86 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1f_array, __pyx_t_7) < 0) __PYX_ERR(3, 86, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1f_array, __pyx_t_9) < 0) __PYX_ERR(3, 86, __pyx_L1_error) #line 86 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":94 * @cython.boundscheck(False) @@ -94025,16 +94045,16 @@ goto __pyx_L16_unpacking_failed; */ #line 94 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_47h2f_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 94, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_47h2f_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 94, __pyx_L1_error) #line 94 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 94 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2f_array, __pyx_t_7) < 0) __PYX_ERR(3, 94, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2f_array, __pyx_t_9) < 0) __PYX_ERR(3, 94, __pyx_L1_error) #line 94 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":102 * @cython.boundscheck(False) @@ -94045,16 +94065,16 @@ goto __pyx_L16_unpacking_failed; */ #line 102 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_49h3f_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 102, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_49h3f_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 102, __pyx_L1_error) #line 102 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 102 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3f_array, __pyx_t_7) < 0) __PYX_ERR(3, 102, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3f_array, __pyx_t_9) < 0) __PYX_ERR(3, 102, __pyx_L1_error) #line 102 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":110 * @cython.boundscheck(False) @@ -94065,16 +94085,16 @@ goto __pyx_L16_unpacking_failed; */ #line 110 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_51h1i_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 110, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_51h1i_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 110, __pyx_L1_error) #line 110 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 110 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1i_array, __pyx_t_7) < 0) __PYX_ERR(3, 110, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1i_array, __pyx_t_9) < 0) __PYX_ERR(3, 110, __pyx_L1_error) #line 110 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":118 * @cython.boundscheck(False) @@ -94085,16 +94105,16 @@ goto __pyx_L16_unpacking_failed; */ #line 118 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_53h2i_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 118, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_53h2i_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 118, __pyx_L1_error) #line 118 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 118 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2i_array, __pyx_t_7) < 0) __PYX_ERR(3, 118, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2i_array, __pyx_t_9) < 0) __PYX_ERR(3, 118, __pyx_L1_error) #line 118 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":126 * @cython.boundscheck(False) @@ -94105,16 +94125,16 @@ goto __pyx_L16_unpacking_failed; */ #line 126 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_55h3i_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 126, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_55h3i_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 126, __pyx_L1_error) #line 126 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 126 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3i_array, __pyx_t_7) < 0) __PYX_ERR(3, 126, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3i_array, __pyx_t_9) < 0) __PYX_ERR(3, 126, __pyx_L1_error) #line 126 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":134 * @cython.boundscheck(False) @@ -94125,16 +94145,16 @@ goto __pyx_L16_unpacking_failed; */ #line 134 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_57h1s_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 134, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_57h1s_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 134, __pyx_L1_error) #line 134 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 134 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1s_array, __pyx_t_7) < 0) __PYX_ERR(3, 134, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1s_array, __pyx_t_9) < 0) __PYX_ERR(3, 134, __pyx_L1_error) #line 134 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":142 * @cython.boundscheck(False) @@ -94145,16 +94165,16 @@ goto __pyx_L16_unpacking_failed; */ #line 142 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_59h2s_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 142, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_59h2s_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 142, __pyx_L1_error) #line 142 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 142 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2s_array, __pyx_t_7) < 0) __PYX_ERR(3, 142, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2s_array, __pyx_t_9) < 0) __PYX_ERR(3, 142, __pyx_L1_error) #line 142 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":150 * @cython.boundscheck(False) @@ -94165,16 +94185,16 @@ goto __pyx_L16_unpacking_failed; */ #line 150 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_61h3s_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 150, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_61h3s_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 150, __pyx_L1_error) #line 150 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 150 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3s_array, __pyx_t_7) < 0) __PYX_ERR(3, 150, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3s_array, __pyx_t_9) < 0) __PYX_ERR(3, 150, __pyx_L1_error) #line 150 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":158 * @cython.boundscheck(False) @@ -94185,16 +94205,16 @@ goto __pyx_L16_unpacking_failed; */ #line 158 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_63h1c_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 158, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_63h1c_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 158, __pyx_L1_error) #line 158 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 158 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1c_array, __pyx_t_7) < 0) __PYX_ERR(3, 158, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h1c_array, __pyx_t_9) < 0) __PYX_ERR(3, 158, __pyx_L1_error) #line 158 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":166 * @cython.boundscheck(False) @@ -94205,16 +94225,16 @@ goto __pyx_L16_unpacking_failed; */ #line 166 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_65h2c_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 166, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_65h2c_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 166, __pyx_L1_error) #line 166 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 166 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2c_array, __pyx_t_7) < 0) __PYX_ERR(3, 166, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h2c_array, __pyx_t_9) < 0) __PYX_ERR(3, 166, __pyx_L1_error) #line 166 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/array.pyx":174 * @cython.boundscheck(False) @@ -94225,16 +94245,16 @@ goto __pyx_L16_unpacking_failed; */ #line 174 "root_numpy/src/array.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_67h3c_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 174, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_67h3c_array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 174, __pyx_L1_error) #line 174 "root_numpy/src/array.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 174 "root_numpy/src/array.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3c_array, __pyx_t_7) < 0) __PYX_ERR(3, 174, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_h3c_array, __pyx_t_9) < 0) __PYX_ERR(3, 174, __pyx_L1_error) #line 174 "root_numpy/src/array.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/matrix.pyx":6 * @cython.boundscheck(False) @@ -94245,16 +94265,16 @@ goto __pyx_L16_unpacking_failed; */ #line 6 "root_numpy/src/matrix.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_69matrix_d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 6, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_69matrix_d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 6, __pyx_L1_error) #line 6 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 6 "root_numpy/src/matrix.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_matrix_d, __pyx_t_7) < 0) __PYX_ERR(4, 6, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_matrix_d, __pyx_t_9) < 0) __PYX_ERR(4, 6, __pyx_L1_error) #line 6 "root_numpy/src/matrix.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/matrix.pyx":19 * @cython.boundscheck(False) @@ -94265,16 +94285,16 @@ goto __pyx_L16_unpacking_failed; */ #line 19 "root_numpy/src/matrix.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_71matrix_f, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 19, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_71matrix_f, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 19, __pyx_L1_error) #line 19 "root_numpy/src/matrix.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 19 "root_numpy/src/matrix.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_matrix_f, __pyx_t_7) < 0) __PYX_ERR(4, 19, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_matrix_f, __pyx_t_9) < 0) __PYX_ERR(4, 19, __pyx_L1_error) #line 19 "root_numpy/src/matrix.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/sample.pyx":6 * @cython.boundscheck(False) @@ -94285,16 +94305,16 @@ goto __pyx_L16_unpacking_failed; */ #line 6 "root_numpy/src/sample.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_73sample_f1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 6, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_73sample_f1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 6, __pyx_L1_error) #line 6 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 6 "root_numpy/src/sample.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_f1, __pyx_t_7) < 0) __PYX_ERR(5, 6, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_f1, __pyx_t_9) < 0) __PYX_ERR(5, 6, __pyx_L1_error) #line 6 "root_numpy/src/sample.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/sample.pyx":17 * @cython.boundscheck(False) @@ -94305,16 +94325,16 @@ goto __pyx_L16_unpacking_failed; */ #line 17 "root_numpy/src/sample.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_75sample_h1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 17, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_75sample_h1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 17, __pyx_L1_error) #line 17 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 17 "root_numpy/src/sample.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_h1, __pyx_t_7) < 0) __PYX_ERR(5, 17, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_h1, __pyx_t_9) < 0) __PYX_ERR(5, 17, __pyx_L1_error) #line 17 "root_numpy/src/sample.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/sample.pyx":28 * @cython.boundscheck(False) @@ -94325,16 +94345,16 @@ goto __pyx_L16_unpacking_failed; */ #line 28 "root_numpy/src/sample.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_77sample_f2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 28, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_77sample_f2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 28, __pyx_L1_error) #line 28 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 28 "root_numpy/src/sample.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_f2, __pyx_t_7) < 0) __PYX_ERR(5, 28, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_f2, __pyx_t_9) < 0) __PYX_ERR(5, 28, __pyx_L1_error) #line 28 "root_numpy/src/sample.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/sample.pyx":43 * @cython.boundscheck(False) @@ -94345,16 +94365,16 @@ goto __pyx_L16_unpacking_failed; */ #line 43 "root_numpy/src/sample.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_79sample_h2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 43, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_79sample_h2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 43, __pyx_L1_error) #line 43 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 43 "root_numpy/src/sample.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_h2, __pyx_t_7) < 0) __PYX_ERR(5, 43, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_h2, __pyx_t_9) < 0) __PYX_ERR(5, 43, __pyx_L1_error) #line 43 "root_numpy/src/sample.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/sample.pyx":58 * @cython.boundscheck(False) @@ -94365,16 +94385,16 @@ goto __pyx_L16_unpacking_failed; */ #line 58 "root_numpy/src/sample.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_81sample_f3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 58, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_81sample_f3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 58, __pyx_L1_error) #line 58 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 58 "root_numpy/src/sample.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_f3, __pyx_t_7) < 0) __PYX_ERR(5, 58, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_f3, __pyx_t_9) < 0) __PYX_ERR(5, 58, __pyx_L1_error) #line 58 "root_numpy/src/sample.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/sample.pyx":75 * @cython.boundscheck(False) @@ -94385,16 +94405,16 @@ goto __pyx_L16_unpacking_failed; */ #line 75 "root_numpy/src/sample.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_83sample_h3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 75, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_83sample_h3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 75, __pyx_L1_error) #line 75 "root_numpy/src/sample.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 75 "root_numpy/src/sample.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_h3, __pyx_t_7) < 0) __PYX_ERR(5, 75, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sample_h3, __pyx_t_9) < 0) __PYX_ERR(5, 75, __pyx_L1_error) #line 75 "root_numpy/src/sample.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":3 * @cython.boundscheck(False) @@ -94405,16 +94425,16 @@ goto __pyx_L16_unpacking_failed; */ #line 3 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_85fill_h1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 3, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_85fill_h1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 3, __pyx_L1_error) #line 3 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 3 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_h1, __pyx_t_7) < 0) __PYX_ERR(6, 3, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_h1, __pyx_t_9) < 0) __PYX_ERR(6, 3, __pyx_L1_error) #line 3 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":31 * @cython.boundscheck(False) @@ -94425,16 +94445,16 @@ goto __pyx_L16_unpacking_failed; */ #line 31 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_87fill_h2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 31, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_87fill_h2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 31, __pyx_L1_error) #line 31 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 31 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_h2, __pyx_t_7) < 0) __PYX_ERR(6, 31, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_h2, __pyx_t_9) < 0) __PYX_ERR(6, 31, __pyx_L1_error) #line 31 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":59 * @cython.boundscheck(False) @@ -94445,16 +94465,16 @@ goto __pyx_L16_unpacking_failed; */ #line 59 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_89fill_h3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 59, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_89fill_h3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 59, __pyx_L1_error) #line 59 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 59 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_h3, __pyx_t_7) < 0) __PYX_ERR(6, 59, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_h3, __pyx_t_9) < 0) __PYX_ERR(6, 59, __pyx_L1_error) #line 59 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":87 * @cython.boundscheck(False) @@ -94465,16 +94485,16 @@ goto __pyx_L16_unpacking_failed; */ #line 87 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_91fill_p1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 87, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_91fill_p1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 87, __pyx_L1_error) #line 87 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 87 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_p1, __pyx_t_7) < 0) __PYX_ERR(6, 87, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_p1, __pyx_t_9) < 0) __PYX_ERR(6, 87, __pyx_L1_error) #line 87 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":115 * @cython.boundscheck(False) @@ -94485,16 +94505,16 @@ goto __pyx_L16_unpacking_failed; */ #line 115 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_93fill_p2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 115, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_93fill_p2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 115, __pyx_L1_error) #line 115 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 115 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_p2, __pyx_t_7) < 0) __PYX_ERR(6, 115, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_p2, __pyx_t_9) < 0) __PYX_ERR(6, 115, __pyx_L1_error) #line 115 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":143 * @cython.boundscheck(False) @@ -94505,16 +94525,16 @@ goto __pyx_L16_unpacking_failed; */ #line 143 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_95fill_p3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 143, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_95fill_p3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 143, __pyx_L1_error) #line 143 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 143 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_p3, __pyx_t_7) < 0) __PYX_ERR(6, 143, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_p3, __pyx_t_9) < 0) __PYX_ERR(6, 143, __pyx_L1_error) #line 143 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":171 * @cython.boundscheck(False) @@ -94525,16 +94545,16 @@ goto __pyx_L16_unpacking_failed; */ #line 171 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_97thn2array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 171, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_97thn2array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 171, __pyx_L1_error) #line 171 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 171 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_thn2array, __pyx_t_7) < 0) __PYX_ERR(6, 171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_thn2array, __pyx_t_9) < 0) __PYX_ERR(6, 171, __pyx_L1_error) #line 171 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/hist.pyx":185 * @cython.boundscheck(False) @@ -94545,16 +94565,16 @@ goto __pyx_L16_unpacking_failed; */ #line 185 "root_numpy/src/hist.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_99thnsparse2array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 185, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_99thnsparse2array, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 185, __pyx_L1_error) #line 185 "root_numpy/src/hist.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 185 "root_numpy/src/hist.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_thnsparse2array, __pyx_t_7) < 0) __PYX_ERR(6, 185, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_thnsparse2array, __pyx_t_9) < 0) __PYX_ERR(6, 185, __pyx_L1_error) #line 185 "root_numpy/src/hist.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/graph.pyx":3 * @cython.boundscheck(False) @@ -94565,16 +94585,16 @@ goto __pyx_L16_unpacking_failed; */ #line 3 "root_numpy/src/graph.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_101fill_g1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 3, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_101fill_g1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(7, 3, __pyx_L1_error) #line 3 "root_numpy/src/graph.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 3 "root_numpy/src/graph.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_g1, __pyx_t_7) < 0) __PYX_ERR(7, 3, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_g1, __pyx_t_9) < 0) __PYX_ERR(7, 3, __pyx_L1_error) #line 3 "root_numpy/src/graph.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/graph.pyx":16 * @cython.boundscheck(False) @@ -94585,16 +94605,16 @@ goto __pyx_L16_unpacking_failed; */ #line 16 "root_numpy/src/graph.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_103fill_g2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 16, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_103fill_g2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(7, 16, __pyx_L1_error) #line 16 "root_numpy/src/graph.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 16 "root_numpy/src/graph.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_g2, __pyx_t_7) < 0) __PYX_ERR(7, 16, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_fill_g2, __pyx_t_9) < 0) __PYX_ERR(7, 16, __pyx_L1_error) #line 16 "root_numpy/src/graph.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":3 * @cython.boundscheck(False) @@ -94605,16 +94625,16 @@ goto __pyx_L16_unpacking_failed; */ #line 3 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_105evaluate_h1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 3, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_105evaluate_h1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 3, __pyx_L1_error) #line 3 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 3 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_h1, __pyx_t_7) < 0) __PYX_ERR(8, 3, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_h1, __pyx_t_9) < 0) __PYX_ERR(8, 3, __pyx_L1_error) #line 3 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":16 * @cython.boundscheck(False) @@ -94625,16 +94645,16 @@ goto __pyx_L16_unpacking_failed; */ #line 16 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_107evaluate_h2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 16, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_107evaluate_h2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 16, __pyx_L1_error) #line 16 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 16 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_h2, __pyx_t_7) < 0) __PYX_ERR(8, 16, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_h2, __pyx_t_9) < 0) __PYX_ERR(8, 16, __pyx_L1_error) #line 16 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":29 * @cython.boundscheck(False) @@ -94645,16 +94665,16 @@ goto __pyx_L16_unpacking_failed; */ #line 29 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_109evaluate_h3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 29, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_109evaluate_h3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 29, __pyx_L1_error) #line 29 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 29 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_h3, __pyx_t_7) < 0) __PYX_ERR(8, 29, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_h3, __pyx_t_9) < 0) __PYX_ERR(8, 29, __pyx_L1_error) #line 29 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":42 * @cython.boundscheck(False) @@ -94665,16 +94685,16 @@ goto __pyx_L16_unpacking_failed; */ #line 42 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_111evaluate_f1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 42, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_111evaluate_f1, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 42, __pyx_L1_error) #line 42 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 42 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_f1, __pyx_t_7) < 0) __PYX_ERR(8, 42, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_f1, __pyx_t_9) < 0) __PYX_ERR(8, 42, __pyx_L1_error) #line 42 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":55 * @cython.boundscheck(False) @@ -94685,16 +94705,16 @@ goto __pyx_L16_unpacking_failed; */ #line 55 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_113evaluate_f2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 55, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_113evaluate_f2, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 55, __pyx_L1_error) #line 55 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 55 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_f2, __pyx_t_7) < 0) __PYX_ERR(8, 55, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_f2, __pyx_t_9) < 0) __PYX_ERR(8, 55, __pyx_L1_error) #line 55 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":68 * @cython.boundscheck(False) @@ -94705,16 +94725,16 @@ goto __pyx_L16_unpacking_failed; */ #line 68 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_115evaluate_f3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 68, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_115evaluate_f3, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 68, __pyx_L1_error) #line 68 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 68 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_f3, __pyx_t_7) < 0) __PYX_ERR(8, 68, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_f3, __pyx_t_9) < 0) __PYX_ERR(8, 68, __pyx_L1_error) #line 68 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":81 * @cython.boundscheck(False) @@ -94725,16 +94745,16 @@ goto __pyx_L16_unpacking_failed; */ #line 81 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_117evaluate_formula_1d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 81, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_117evaluate_formula_1d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 81, __pyx_L1_error) #line 81 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 81 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_1d, __pyx_t_7) < 0) __PYX_ERR(8, 81, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_1d, __pyx_t_9) < 0) __PYX_ERR(8, 81, __pyx_L1_error) #line 81 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":94 * @cython.boundscheck(False) @@ -94745,16 +94765,16 @@ goto __pyx_L16_unpacking_failed; */ #line 94 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_119evaluate_formula_2d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 94, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_119evaluate_formula_2d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 94, __pyx_L1_error) #line 94 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 94 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_2d, __pyx_t_7) < 0) __PYX_ERR(8, 94, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_2d, __pyx_t_9) < 0) __PYX_ERR(8, 94, __pyx_L1_error) #line 94 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":107 * @cython.boundscheck(False) @@ -94765,16 +94785,16 @@ goto __pyx_L16_unpacking_failed; */ #line 107 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_121evaluate_formula_3d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 107, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_121evaluate_formula_3d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 107, __pyx_L1_error) #line 107 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 107 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_3d, __pyx_t_7) < 0) __PYX_ERR(8, 107, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_3d, __pyx_t_9) < 0) __PYX_ERR(8, 107, __pyx_L1_error) #line 107 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":120 * @cython.boundscheck(False) @@ -94785,16 +94805,16 @@ goto __pyx_L16_unpacking_failed; */ #line 120 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_123evaluate_formula_4d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 120, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_123evaluate_formula_4d, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 120, __pyx_L1_error) #line 120 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 120 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_4d, __pyx_t_7) < 0) __PYX_ERR(8, 120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_formula_4d, __pyx_t_9) < 0) __PYX_ERR(8, 120, __pyx_L1_error) #line 120 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":133 * @cython.boundscheck(False) @@ -94805,16 +94825,16 @@ goto __pyx_L16_unpacking_failed; */ #line 133 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_125evaluate_graph, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 133, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_125evaluate_graph, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 133, __pyx_L1_error) #line 133 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 133 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_graph, __pyx_t_7) < 0) __PYX_ERR(8, 133, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_graph, __pyx_t_9) < 0) __PYX_ERR(8, 133, __pyx_L1_error) #line 133 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/evaluate.pyx":146 * @cython.boundscheck(False) @@ -94825,16 +94845,16 @@ goto __pyx_L16_unpacking_failed; */ #line 146 "root_numpy/src/evaluate.pyx" - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_127evaluate_spline, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 146, __pyx_L1_error) + __pyx_t_9 = PyCFunction_NewEx(&__pyx_mdef_13_librootnumpy_127evaluate_spline, NULL, __pyx_n_s_librootnumpy); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 146, __pyx_L1_error) #line 146 "root_numpy/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 146 "root_numpy/src/evaluate.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_spline, __pyx_t_7) < 0) __PYX_ERR(8, 146, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_evaluate_spline, __pyx_t_9) < 0) __PYX_ERR(8, 146, __pyx_L1_error) #line 146 "root_numpy/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "root_numpy/src/innerjoin.pyx":1 * import numpy as np # <<<<<<<<<<<<<< @@ -94843,16 +94863,16 @@ goto __pyx_L16_unpacking_failed; */ #line 1 "root_numpy/src/innerjoin.pyx" - __pyx_t_7 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 1, __pyx_L1_error) + __pyx_t_9 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_9)) __PYX_ERR(9, 1, __pyx_L1_error) #line 1 "root_numpy/src/innerjoin.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 1 "root_numpy/src/innerjoin.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_7) < 0) __PYX_ERR(9, 1, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_9) < 0) __PYX_ERR(9, 1, __pyx_L1_error) #line 1 "root_numpy/src/innerjoin.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "_librootnumpy.pyx":1 * # cython: experimental_cpp_class_def=True, c_string_type=str, c_string_encoding=ascii # <<<<<<<<<<<<<< @@ -94861,16 +94881,16 @@ goto __pyx_L16_unpacking_failed; */ #line 1 "_librootnumpy.pyx" - __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) __PYX_ERR(13, 1, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(13, 1, __pyx_L1_error) #line 1 "_librootnumpy.pyx" - __Pyx_GOTREF(__pyx_t_7); + __Pyx_GOTREF(__pyx_t_9); #line 1 "_librootnumpy.pyx" - if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_7) < 0) __PYX_ERR(13, 1, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_9) < 0) __PYX_ERR(13, 1, __pyx_L1_error) #line 1 "_librootnumpy.pyx" - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; /* "string.to_py":55 * @@ -94926,7 +94946,7 @@ goto __pyx_L16_unpacking_failed; if (__pyx_d) { #line 55 "string.to_py" - __Pyx_AddTraceback("init _librootnumpy", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("init _librootnumpy", 0, __pyx_lineno, __pyx_filename); #line 55 "string.to_py" } @@ -94950,17 +94970,23 @@ goto __pyx_L16_unpacking_failed; __Pyx_RefNannyFinishContext(); #line 55 "string.to_py" - #if PY_MAJOR_VERSION < 3 + #if CYTHON_PEP489_MULTI_PHASE_INIT #line 55 "string.to_py" - return; + return (__pyx_m != NULL) ? 0 : -1; #line 55 "string.to_py" - #else + #elif PY_MAJOR_VERSION >= 3 #line 55 "string.to_py" return __pyx_m; +#line 55 "string.to_py" + #else + +#line 55 "string.to_py" + return; + #line 55 "string.to_py" #endif @@ -94987,6 +95013,20 @@ static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { } #endif +/* PyObjectGetAttrStr */ +#if CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { + PyTypeObject* tp = Py_TYPE(obj); + if (likely(tp->tp_getattro)) + return tp->tp_getattro(obj, attr_name); +#if PY_MAJOR_VERSION < 3 + if (likely(tp->tp_getattr)) + return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); +#endif + return PyObject_GetAttr(obj, attr_name); +} +#endif + /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); @@ -95005,10 +95045,19 @@ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 + result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); + if (likely(result)) { + Py_INCREF(result); + } else if (unlikely(PyErr_Occurred())) { + result = NULL; + } else { +#else result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { +#endif #else result = PyObject_GetItem(__pyx_d, name); if (!result) { @@ -95020,12 +95069,12 @@ static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { } /* PyFunctionFastCall */ - #if CYTHON_FAST_PYCALL + #if CYTHON_FAST_PYCALL #include "frameobject.h" static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; @@ -95136,29 +95185,34 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_LeaveRecursiveCall(); return result; } -#endif // CPython < 3.6 -#endif // CYTHON_FAST_PYCALL +#endif +#endif /* PyCFunctionFastCall */ - #if CYTHON_FAST_PYCCALL + #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); + int flags = PyCFunction_GET_FLAGS(func); assert(PyCFunction_Check(func)); - assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); + assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); - return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); + if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) { + return (*((__Pyx_PyCFunctionFastWithKeywords)meth)) (self, args, nargs, NULL); + } else { + return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs); + } } -#endif // CYTHON_FAST_PYCCALL +#endif /* PyObjectCall */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; @@ -95177,8 +95231,68 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg } #endif +/* PyObjectCallMethO */ + #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 + +/* PyObjectCallOneArg */ + #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) { +#if CYTHON_FAST_PYCALL + if (PyFunction_Check(func)) { + return __Pyx_PyFunction_FastCall(func, &arg, 1); + } +#endif + if (likely(PyCFunction_Check(func))) { + if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { + return __Pyx_PyObject_CallMethO(func, arg); +#if CYTHON_FAST_PYCCALL + } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { + return __Pyx_PyCFunction_FastCall(func, &arg, 1); +#endif + } + } + return __Pyx__PyObject_CallOneArg(func, arg); +} +#else +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { + PyObject *result; + PyObject *args = PyTuple_Pack(1, arg); + if (unlikely(!args)) return NULL; + result = __Pyx_PyObject_Call(func, args, NULL); + Py_DECREF(args); + return result; +} +#endif + /* PyErrFetchRestore */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; @@ -95202,7 +95316,7 @@ static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject #endif /* RaiseException */ - #if PY_MAJOR_VERSION < 3 + #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, CYTHON_UNUSED PyObject *cause) { __Pyx_PyThreadState_declare @@ -95317,11 +95431,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject "raise: exception class must be a subclass of BaseException"); goto bad; } -#if PY_VERSION_HEX >= 0x03030000 if (cause) { -#else - if (cause && cause != Py_None) { -#endif PyObject *fixed_cause; if (cause == Py_None) { fixed_cause = NULL; @@ -95349,7 +95459,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject PyErr_Restore(tmp_type, tmp_value, tb); Py_XDECREF(tmp_tb); #else - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); @@ -95370,7 +95480,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } - if (likely(PyObject_TypeCheck(obj, type))) + if (likely(__Pyx_TypeCheck(obj, type))) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", Py_TYPE(obj)->tp_name, type->tp_name); @@ -95419,72 +95529,27 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject #endif } -/* PyObjectCallMethO */ - #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 - -/* PyObjectCallOneArg */ - #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) { -#if CYTHON_FAST_PYCALL - if (PyFunction_Check(func)) { - return __Pyx_PyFunction_FastCall(func, &arg, 1); - } -#endif -#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); -#if CYTHON_FAST_PYCCALL - } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { - return __Pyx_PyCFunction_FastCall(func, &arg, 1); -#endif +/* DictGetItem */ + #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY +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; } - return __Pyx__PyObject_CallOneArg(func, arg); -} -#else -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { - PyObject *result; - PyObject *args = PyTuple_Pack(1, arg); - if (unlikely(!args)) return NULL; - result = __Pyx_PyObject_Call(func, args, NULL); - Py_DECREF(args); - return result; + Py_INCREF(value); + return value; } #endif /* GetItemInt */ - static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { + static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); @@ -95495,9 +95560,12 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_ CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); - if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { - PyObject *r = PyList_GET_ITEM(o, i); + Py_ssize_t wrapped_i = i; + if (wraparound & unlikely(i < 0)) { + wrapped_i += PyList_GET_SIZE(o); + } + if ((!boundscheck) || likely((0 <= wrapped_i) & (wrapped_i < PyList_GET_SIZE(o)))) { + PyObject *r = PyList_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } @@ -95510,9 +95578,12 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); - if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { - PyObject *r = PyTuple_GET_ITEM(o, i); + Py_ssize_t wrapped_i = i; + if (wraparound & unlikely(i < 0)) { + wrapped_i += PyTuple_GET_SIZE(o); + } + if ((!boundscheck) || likely((0 <= wrapped_i) & (wrapped_i < PyTuple_GET_SIZE(o)))) { + PyObject *r = PyTuple_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } @@ -95565,7 +95636,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, } /* PyIntBinop */ - #if !CYTHON_COMPILING_IN_PYPY + #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { @@ -95603,6 +95674,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U goto long_long; #endif } + CYTHON_FALLTHROUGH; case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -95613,6 +95685,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U goto long_long; #endif } + CYTHON_FALLTHROUGH; case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -95623,6 +95696,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U goto long_long; #endif } + CYTHON_FALLTHROUGH; case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -95633,6 +95707,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U goto long_long; #endif } + CYTHON_FALLTHROUGH; case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -95643,6 +95718,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U goto long_long; #endif } + CYTHON_FALLTHROUGH; case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -95653,6 +95729,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U goto long_long; #endif } + CYTHON_FALLTHROUGH; default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } } @@ -95680,8 +95757,37 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } #endif +/* ObjectGetItem */ + #if CYTHON_USE_TYPE_SLOTS +static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) { + PyObject *runerr; + Py_ssize_t key_value; + PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence; + if (unlikely(!(m && m->sq_item))) { + PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name); + return NULL; + } + key_value = __Pyx_PyIndex_AsSsize_t(index); + if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) { + return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1); + } + if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) { + PyErr_Clear(); + PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name); + } + return NULL; +} +static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) { + PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping; + if (likely(m && m->mp_subscript)) { + return m->mp_subscript(obj, key); + } + return __Pyx_PyObject_GetIndex(obj, key); +} +#endif + /* SliceObject */ - static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj, + static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) { @@ -95778,25 +95884,25 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* RaiseTooManyValuesToUnpack */ - static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { + static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { PyErr_Format(PyExc_ValueError, "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected); } /* RaiseNeedMoreValuesToUnpack */ - static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { + static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { PyErr_Format(PyExc_ValueError, "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack", index, (index == 1) ? "" : "s"); } /* IterFinish */ - static CYTHON_INLINE int __Pyx_IterFinish(void) { + static CYTHON_INLINE int __Pyx_IterFinish(void) { #if CYTHON_FAST_THREAD_STATE - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* exc_type = tstate->curexc_type; if (unlikely(exc_type)) { - if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) { + if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) { PyObject *exc_value, *exc_tb; exc_value = tstate->curexc_value; exc_tb = tstate->curexc_traceback; @@ -95826,7 +95932,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* UnpackItemEndCheck */ - static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { + static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { if (unlikely(retval)) { Py_DECREF(retval); __Pyx_RaiseTooManyValuesError(expected); @@ -95838,7 +95944,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* BytesEquals */ - static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { + static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else @@ -95856,7 +95962,16 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } else if (length == 1) { return (equals == Py_EQ); } else { - int result = memcmp(ps1, ps2, (size_t)length); + int result; +#if CYTHON_USE_UNICODE_INTERNALS + Py_hash_t hash1, hash2; + hash1 = ((PyBytesObject*)s1)->ob_shash; + hash2 = ((PyBytesObject*)s2)->ob_shash; + if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { + return (equals == Py_NE); + } +#endif + result = memcmp(ps1, ps2, (size_t)length); return (equals == Py_EQ) ? (result == 0) : (result != 0); } } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { @@ -95876,7 +95991,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* UnicodeEquals */ - static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { + static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY return PyObject_RichCompareBool(s1, s2, equals); #else @@ -95916,6 +96031,21 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } +#if CYTHON_USE_UNICODE_INTERNALS + { + Py_hash_t hash1, hash2; + #if CYTHON_PEP393_ENABLED + hash1 = ((PyASCIIObject*)s1)->hash; + hash2 = ((PyASCIIObject*)s2)->hash; + #else + hash1 = ((PyUnicodeObject*)s1)->hash; + hash2 = ((PyUnicodeObject*)s2)->hash; + #endif + if (hash1 != hash2 && hash1 != -1 && hash2 != -1) { + goto return_ne; + } + } +#endif kind = __Pyx_PyUnicode_KIND(s1); if (kind != __Pyx_PyUnicode_KIND(s2)) { goto return_ne; @@ -95960,7 +96090,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* RaiseDoubleKeywords */ - static void __Pyx_RaiseDoubleKeywordsError( + static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { @@ -95974,7 +96104,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* ParseKeywords */ - static int __Pyx_ParseOptionalKeywords( + static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, @@ -96076,7 +96206,7 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* RaiseArgTupleInvalid */ - static void __Pyx_RaiseArgtupleInvalid( + static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, @@ -96102,14 +96232,14 @@ static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_U } /* StringJoin */ - #if !CYTHON_COMPILING_IN_CPYTHON + #if !CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) { return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL); } #endif /* PyObjectCallNoArg */ - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { @@ -96117,7 +96247,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { } #endif #ifdef __Pyx_CyFunction_USED - if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { + if (likely(PyCFunction_Check(func) || __Pyx_TypeCheck(func, __pyx_CyFunctionType))) { #else if (likely(PyCFunction_Check(func))) { #endif @@ -96130,12 +96260,12 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #endif /* RaiseNoneIterError */ - static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { + static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); } /* pyobject_as_double */ - static double __Pyx__PyObject_AsDouble(PyObject* obj) { + static double __Pyx__PyObject_AsDouble(PyObject* obj) { PyObject* float_value; #if !CYTHON_USE_TYPE_SLOTS float_value = PyNumber_Float(obj); if (0) goto bad; @@ -96175,12 +96305,12 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { } /* None */ - static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { + static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname); } /* PyIntBinop */ - #if !CYTHON_COMPILING_IN_PYPY + #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { @@ -96218,6 +96348,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED goto long_long; #endif } + CYTHON_FALLTHROUGH; case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -96228,6 +96359,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED goto long_long; #endif } + CYTHON_FALLTHROUGH; case -3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -96238,6 +96370,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED goto long_long; #endif } + CYTHON_FALLTHROUGH; case 3: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -96248,6 +96381,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED goto long_long; #endif } + CYTHON_FALLTHROUGH; case -4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -96258,6 +96392,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED goto long_long; #endif } + CYTHON_FALLTHROUGH; case 4: if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); @@ -96268,6 +96403,7 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED goto long_long; #endif } + CYTHON_FALLTHROUGH; default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } @@ -96296,23 +96432,38 @@ static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED #endif /* SaveResetException */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { + #if PY_VERSION_HEX >= 0x030700A3 + *type = tstate->exc_state.exc_type; + *value = tstate->exc_state.exc_value; + *tb = tstate->exc_state.exc_traceback; + #else *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; + #endif Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; + #if PY_VERSION_HEX >= 0x030700A3 + tmp_type = tstate->exc_state.exc_type; + tmp_value = tstate->exc_state.exc_value; + tmp_tb = tstate->exc_state.exc_traceback; + tstate->exc_state.exc_type = type; + tstate->exc_state.exc_value = value; + tstate->exc_state.exc_traceback = tb; + #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; + #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); @@ -96320,17 +96471,32 @@ static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject #endif /* PyErrExceptionMatches */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE +static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(tuple); +#if PY_MAJOR_VERSION >= 3 + for (i=0; icurexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; - return PyErr_GivenExceptionMatches(exc_type, err); + if (unlikely(PyTuple_Check(err))) + return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); + return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { @@ -96367,12 +96533,21 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE + #if PY_VERSION_HEX >= 0x030700A3 + tmp_type = tstate->exc_state.exc_type; + tmp_value = tstate->exc_state.exc_value; + tmp_tb = tstate->exc_state.exc_traceback; + tstate->exc_state.exc_type = local_type; + tstate->exc_state.exc_value = local_value; + tstate->exc_state.exc_traceback = local_tb; + #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; + #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); @@ -96390,16 +96565,79 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) return -1; } +/* pyfrozenset_new */ + static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it) { + if (it) { + PyObject* result; +#if CYTHON_COMPILING_IN_PYPY + PyObject* args; + args = PyTuple_Pack(1, it); + if (unlikely(!args)) + return NULL; + result = PyObject_Call((PyObject*)&PyFrozenSet_Type, args, NULL); + Py_DECREF(args); + return result; +#else + if (PyFrozenSet_CheckExact(it)) { + Py_INCREF(it); + return it; + } + result = PyFrozenSet_New(it); + if (unlikely(!result)) + return NULL; + if (likely(PySet_GET_SIZE(result))) + return result; + Py_DECREF(result); +#endif + } +#if CYTHON_USE_TYPE_SLOTS + return PyFrozenSet_Type.tp_new(&PyFrozenSet_Type, __pyx_empty_tuple, NULL); +#else + return PyObject_Call((PyObject*)&PyFrozenSet_Type, __pyx_empty_tuple, NULL); +#endif +} + +/* PySetContains */ + static int __Pyx_PySet_ContainsUnhashable(PyObject *set, PyObject *key) { + int result = -1; + if (PySet_Check(key) && PyErr_ExceptionMatches(PyExc_TypeError)) { + PyObject *tmpkey; + PyErr_Clear(); + tmpkey = __Pyx_PyFrozenSet_New(key); + if (tmpkey != NULL) { + result = PySet_Contains(set, tmpkey); + Py_DECREF(tmpkey); + } + } + return result; +} +static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq) { + int result = PySet_Contains(set, key); + if (unlikely(result < 0)) { + result = __Pyx_PySet_ContainsUnhashable(set, key); + } + return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); +} + /* SwapException */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; + #if PY_VERSION_HEX >= 0x030700A3 + tmp_type = tstate->exc_state.exc_type; + tmp_value = tstate->exc_state.exc_value; + tmp_tb = tstate->exc_state.exc_traceback; + tstate->exc_state.exc_type = *type; + tstate->exc_state.exc_value = *value; + tstate->exc_state.exc_traceback = *tb; + #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; + #endif *type = tmp_type; *value = tmp_value; *tb = tmp_tb; @@ -96416,38 +96654,39 @@ static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, #endif /* ArgTypeTest */ - static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) { - PyErr_Format(PyExc_TypeError, - "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", - name, type->tp_name, Py_TYPE(obj)->tp_name); -} -static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, - const char *name, int exact) + static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } - if (none_allowed && obj == Py_None) return 1; else if (exact) { - if (likely(Py_TYPE(obj) == type)) return 1; #if PY_MAJOR_VERSION == 2 - else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; + if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; #endif } else { - if (likely(PyObject_TypeCheck(obj, type))) return 1; + if (likely(__Pyx_TypeCheck(obj, type))) return 1; } - __Pyx_RaiseArgumentTypeInvalid(name, obj, type); + PyErr_Format(PyExc_TypeError, + "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", + name, type->tp_name, Py_TYPE(obj)->tp_name); return 0; } -/* BufferFormatCheck */ - static CYTHON_INLINE int __Pyx_IsLittleEndian(void) { - unsigned int n = 1; - return *(unsigned char*)(&n) != 0; +/* IsLittleEndian */ + static CYTHON_INLINE int __Pyx_Is_Little_Endian(void) +{ + union { + uint32_t u32; + uint8_t u8[4]; + } S; + S.u32 = 0x01020304; + return S.u8[0] == 4; } -static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, + +/* BufferFormatCheck */ + static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, __Pyx_TypeInfo* type) { stack[0].field = &ctx->root; @@ -96768,7 +97007,7 @@ static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) { ctx->is_complex = 0; return 0; } -static CYTHON_INLINE PyObject * +static PyObject * __pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx, const char** tsp) { const char *ts = *tsp; @@ -96833,7 +97072,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha ++ts; break; case '<': - if (!__Pyx_IsLittleEndian()) { + if (!__Pyx_Is_Little_Endian()) { PyErr_SetString(PyExc_ValueError, "Little-endian buffer not supported on big-endian compiler"); return NULL; } @@ -96842,7 +97081,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha break; case '>': case '!': - if (__Pyx_IsLittleEndian()) { + if (__Pyx_Is_Little_Endian()) { PyErr_SetString(PyExc_ValueError, "Big-endian buffer not supported on little-endian compiler"); return NULL; } @@ -96906,6 +97145,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha __Pyx_BufFmt_RaiseUnexpectedChar('Z'); return NULL; } + CYTHON_FALLTHROUGH; case 'c': case 'b': case 'B': case 'h': case 'H': case 'i': case 'I': case 'l': case 'L': case 'q': case 'Q': case 'f': case 'd': case 'g': @@ -96918,6 +97158,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha ++ts; break; } + CYTHON_FALLTHROUGH; case 's': if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ctx->enc_count = ctx->new_count; @@ -96945,24 +97186,30 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha } } } -static CYTHON_INLINE void __Pyx_ZeroBuffer(Py_buffer* buf) { + +/* BufferGetAndValidate */ + static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) { + if (unlikely(info->buf == NULL)) return; + if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL; + __Pyx_ReleaseBuffer(info); +} +static void __Pyx_ZeroBuffer(Py_buffer* buf) { buf->buf = NULL; buf->obj = NULL; buf->strides = __Pyx_zeros; buf->shape = __Pyx_zeros; buf->suboffsets = __Pyx_minusones; } -static CYTHON_INLINE int __Pyx_GetBufferAndValidate( +static int __Pyx__GetBufferAndValidate( Py_buffer* buf, PyObject* obj, __Pyx_TypeInfo* dtype, int flags, int nd, int cast, __Pyx_BufFmt_StackElem* stack) { - if (obj == Py_None || obj == NULL) { + buf->buf = NULL; + if (unlikely(__Pyx_GetBuffer(obj, buf, flags) == -1)) { __Pyx_ZeroBuffer(buf); - return 0; + return -1; } - buf->buf = NULL; - if (__Pyx_GetBuffer(obj, buf, flags) == -1) goto fail; - if (buf->ndim != nd) { + if (unlikely(buf->ndim != nd)) { PyErr_Format(PyExc_ValueError, "Buffer has wrong number of dimensions (expected %d, got %d)", nd, buf->ndim); @@ -96973,7 +97220,7 @@ static CYTHON_INLINE int __Pyx_GetBufferAndValidate( __Pyx_BufFmt_Init(&ctx, stack, dtype); if (!__Pyx_BufFmt_CheckString(&ctx, buf->format)) goto fail; } - if ((unsigned)buf->itemsize != dtype->size) { + if (unlikely((unsigned)buf->itemsize != dtype->size)) { PyErr_Format(PyExc_ValueError, "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T "d byte%s) does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T "d byte%s)", buf->itemsize, (buf->itemsize > 1) ? "s" : "", @@ -96983,23 +97230,18 @@ static CYTHON_INLINE int __Pyx_GetBufferAndValidate( if (buf->suboffsets == NULL) buf->suboffsets = __Pyx_minusones; return 0; fail:; - __Pyx_ZeroBuffer(buf); + __Pyx_SafeReleaseBuffer(buf); return -1; } -static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) { - if (info->buf == NULL) return; - if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL; - __Pyx_ReleaseBuffer(info); -} /* BufferFallbackError */ - static void __Pyx_RaiseBufferFallbackError(void) { + static void __Pyx_RaiseBufferFallbackError(void) { PyErr_SetString(PyExc_ValueError, "Buffer acquisition failed on assignment; and then reacquiring the old buffer failed too!"); } /* SetItemInt */ - static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { + static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { int r; if (!j) return -1; r = PyObject_SetItem(o, j, v); @@ -97047,19 +97289,19 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje } /* BufferIndexError */ - static void __Pyx_RaiseBufferIndexError(int axis) { + static void __Pyx_RaiseBufferIndexError(int axis) { PyErr_Format(PyExc_IndexError, "Out of bounds on buffer access (axis %d)", axis); } /* Import */ - 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; PyObject *empty_dict = 0; PyObject *list; - #if PY_VERSION_HEX < 0x03030000 + #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) @@ -97083,17 +97325,8 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { - #if PY_VERSION_HEX < 0x03030000 - PyObject *py_level = PyInt_FromLong(1); - if (!py_level) - goto bad; - module = PyObject_CallFunctionObjArgs(py_import, - name, global_dict, empty_dict, list, py_level, NULL); - Py_DECREF(py_level); - #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); - #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; @@ -97104,7 +97337,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje } #endif if (!module) { - #if PY_VERSION_HEX < 0x03030000 + #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; @@ -97118,7 +97351,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje } } bad: - #if PY_VERSION_HEX < 0x03030000 + #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); @@ -97127,7 +97360,7 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje } /* ImportFrom */ - static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { + static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, @@ -97140,8 +97373,48 @@ static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObje return value; } +/* CLineInTraceback */ + #ifndef CYTHON_CLINE_IN_TRACEBACK +static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) { + PyObject *use_cline; + PyObject *ptype, *pvalue, *ptraceback; +#if CYTHON_COMPILING_IN_CPYTHON + PyObject **cython_runtime_dict; +#endif + if (unlikely(!__pyx_cython_runtime)) { + return c_line; + } + __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); +#if CYTHON_COMPILING_IN_CPYTHON + cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); + if (likely(cython_runtime_dict)) { + use_cline = __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback); + } else +#endif + { + PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); + if (use_cline_obj) { + use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; + Py_DECREF(use_cline_obj); + } else { + PyErr_Clear(); + use_cline = NULL; + } + } + if (!use_cline) { + c_line = 0; + PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); + } + else if (PyObject_Not(use_cline) != 0) { + c_line = 0; + } + __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); + return c_line; +} +#endif + /* CodeObjectCache */ - static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { + 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; @@ -97221,7 +97494,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { } /* AddTraceback */ - #include "compile.h" + #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( @@ -97280,18 +97553,22 @@ 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); + PyThreadState *tstate = __Pyx_PyThreadState_Current; + if (c_line) { + c_line = __Pyx_CLineForTraceback(tstate, c_line); + } + 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); + __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*/ + tstate, /*PyThreadState *tstate,*/ + py_code, /*PyCodeObject *code,*/ + __pyx_d, /*PyObject *globals,*/ + 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); @@ -97304,8 +97581,8 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, #if PY_MAJOR_VERSION < 3 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) { if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags); - if (PyObject_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags); - if (PyObject_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) return __pyx_pw_7cpython_5array_5array_1__getbuffer__(obj, view, flags); + if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags); + if (__Pyx_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) return __pyx_pw_7cpython_5array_5array_1__getbuffer__(obj, view, flags); PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name); return -1; } @@ -97316,16 +97593,17 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { PyBuffer_Release(view); return; } - if (PyObject_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) { __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view); return; } - if (PyObject_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) { __pyx_pw_7cpython_5array_5array_3__releasebuffer__(obj, view); return; } - Py_DECREF(obj); + if ((0)) {} + else if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view); + else if (__Pyx_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) __pyx_pw_7cpython_5array_5array_3__releasebuffer__(obj, view); view->obj = NULL; + Py_DECREF(obj); } #endif - /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) { + /* CIntToPy */ + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) { const enum NPY_TYPES neg_one = (enum NPY_TYPES) -1, const_zero = (enum NPY_TYPES) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97356,7 +97634,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPyVerify */ - #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ + #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) @@ -97378,7 +97656,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value) { const Py_intptr_t neg_one = (Py_intptr_t) -1, const_zero = (Py_intptr_t) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97409,7 +97687,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_long(unsigned long value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_long(unsigned long value) { const unsigned long neg_one = (unsigned long) -1, const_zero = (unsigned long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97440,7 +97718,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97471,7 +97749,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97502,7 +97780,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97533,7 +97811,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PY_LONG_LONG(PY_LONG_LONG value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PY_LONG_LONG(PY_LONG_LONG value) { const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_LONG) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -97564,7 +97842,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* Declarations */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { return ::std::complex< float >(x, y); @@ -97584,7 +97862,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* Arithmetic */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #else static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { return (a.real == b.real) && (a.imag == b.imag); @@ -97719,7 +97997,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* Declarations */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { return ::std::complex< double >(x, y); @@ -97739,7 +98017,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* Arithmetic */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #else static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { return (a.real == b.real) && (a.imag == b.imag); @@ -97874,7 +98152,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* CIntFromPy */ - static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { + static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -98063,7 +98341,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { + static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -98252,7 +98530,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE Py_intptr_t __Pyx_PyInt_As_Py_intptr_t(PyObject *x) { + static CYTHON_INLINE Py_intptr_t __Pyx_PyInt_As_Py_intptr_t(PyObject *x) { const Py_intptr_t neg_one = (Py_intptr_t) -1, const_zero = (Py_intptr_t) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -98441,7 +98719,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE unsigned long __Pyx_PyInt_As_unsigned_long(PyObject *x) { + static CYTHON_INLINE unsigned long __Pyx_PyInt_As_unsigned_long(PyObject *x) { const unsigned long neg_one = (unsigned long) -1, const_zero = (unsigned long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -98630,7 +98908,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) { + static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) { const size_t neg_one = (size_t) -1, const_zero = (size_t) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -98819,7 +99097,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) { + static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) { const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -99008,7 +99286,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_As_PY_LONG_LONG(PyObject *x) { + static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_As_PY_LONG_LONG(PyObject *x) { const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_LONG) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -99196,8 +99474,108 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return (PY_LONG_LONG) -1; } +/* FastTypeChecks */ + #if CYTHON_COMPILING_IN_CPYTHON +static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { + while (a) { + a = a->tp_base; + if (a == b) + return 1; + } + return b == &PyBaseObject_Type; +} +static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { + PyObject *mro; + if (a == b) return 1; + mro = a->tp_mro; + if (likely(mro)) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(mro); + for (i = 0; i < n; i++) { + if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) + return 1; + } + return 0; + } + return __Pyx_InBases(a, b); +} +#if PY_MAJOR_VERSION == 2 +static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { + PyObject *exception, *value, *tb; + int res; + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ErrFetch(&exception, &value, &tb); + res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; + if (unlikely(res == -1)) { + PyErr_WriteUnraisable(err); + res = 0; + } + if (!res) { + res = PyObject_IsSubclass(err, exc_type2); + if (unlikely(res == -1)) { + PyErr_WriteUnraisable(err); + res = 0; + } + } + __Pyx_ErrRestore(exception, value, tb); + return res; +} +#else +static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { + int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; + if (!res) { + res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); + } + return res; +} +#endif +static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { + Py_ssize_t i, n; + assert(PyExceptionClass_Check(exc_type)); + n = PyTuple_GET_SIZE(tuple); +#if PY_MAJOR_VERSION >= 3 + for (i=0; ip) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { @@ -99321,6 +99699,8 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class #endif if (!*t->p) return -1; + if (PyObject_Hash(*t->p) == -1) + return -1; ++t; } return 0; @@ -99329,50 +99709,57 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } -static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { +static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } -static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { -#if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) - if ( -#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII - __Pyx_sys_getdefaultencoding_not_ascii && -#endif - PyUnicode_Check(o)) { -#if PY_VERSION_HEX < 0x03030000 - char* defenc_c; - PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); - if (!defenc) return NULL; - defenc_c = PyBytes_AS_STRING(defenc); +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT +#if !CYTHON_PEP393_ENABLED +static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { + char* defenc_c; + PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); + if (!defenc) return NULL; + defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII - { - char* end = defenc_c + PyBytes_GET_SIZE(defenc); - char* c; - for (c = defenc_c; c < end; c++) { - if ((unsigned char) (*c) >= 128) { - PyUnicode_AsASCIIString(o); - return NULL; - } + { + char* end = defenc_c + PyBytes_GET_SIZE(defenc); + char* c; + for (c = defenc_c; c < end; c++) { + if ((unsigned char) (*c) >= 128) { + PyUnicode_AsASCIIString(o); + return NULL; } } + } #endif - *length = PyBytes_GET_SIZE(defenc); - return defenc_c; + *length = PyBytes_GET_SIZE(defenc); + return defenc_c; +} #else - if (__Pyx_PyUnicode_READY(o) == -1) return NULL; +static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { + if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII - if (PyUnicode_IS_ASCII(o)) { - *length = PyUnicode_GET_LENGTH(o); - return PyUnicode_AsUTF8(o); - } else { - PyUnicode_AsASCIIString(o); - return NULL; - } + if (likely(PyUnicode_IS_ASCII(o))) { + *length = PyUnicode_GET_LENGTH(o); + return PyUnicode_AsUTF8(o); + } else { + PyUnicode_AsASCIIString(o); + return NULL; + } #else - return PyUnicode_AsUTF8AndSize(o, length); + return PyUnicode_AsUTF8AndSize(o, length); +#endif +} +#endif #endif +static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT + if ( +#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII + __Pyx_sys_getdefaultencoding_not_ascii && #endif + PyUnicode_Check(o)) { + return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) @@ -99396,6 +99783,26 @@ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } +static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { +#if PY_MAJOR_VERSION >= 3 + if (PyLong_Check(result)) { + if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, + "__int__ returned non-int (type %.200s). " + "The ability to return an instance of a strict subclass of int " + "is deprecated, and may be removed in a future version of Python.", + Py_TYPE(result)->tp_name)) { + Py_DECREF(result); + return NULL; + } + return result; + } +#endif + PyErr_Format(PyExc_TypeError, + "__%.4s__ returned non-%.4s (type %.200s)", + type_name, type_name, Py_TYPE(result)->tp_name); + Py_DECREF(result); + return NULL; +} static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; @@ -99403,9 +99810,9 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 - if (PyInt_Check(x) || PyLong_Check(x)) + if (likely(PyInt_Check(x) || PyLong_Check(x))) #else - if (PyLong_Check(x)) + if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS @@ -99413,32 +99820,30 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; - res = PyNumber_Int(x); + res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; - res = PyNumber_Long(x); + res = m->nb_long(x); } #else - if (m && m->nb_int) { + if (likely(m && m->nb_int)) { name = "int"; - res = PyNumber_Long(x); + res = m->nb_int(x); } #endif #else - res = PyNumber_Int(x); + if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { + res = PyNumber_Int(x); + } #endif - if (res) { + if (likely(res)) { #if PY_MAJOR_VERSION < 3 - if (!PyInt_Check(res) && !PyLong_Check(res)) { + if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else - if (!PyLong_Check(res)) { + if (unlikely(!PyLong_CheckExact(res))) { #endif - PyErr_Format(PyExc_TypeError, - "__%.4s__ returned non-%.4s (type %.200s)", - name, name, Py_TYPE(res)->tp_name); - Py_DECREF(res); - return NULL; + return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { @@ -99509,6 +99914,9 @@ static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_DECREF(x); return ival; } +static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { + return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); +} static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } diff --git a/root_numpy/tmva/src/_libtmvanumpy.cpp b/root_numpy/tmva/src/_libtmvanumpy.cpp index b8951ce..04e3941 100644 --- a/root_numpy/tmva/src/_libtmvanumpy.cpp +++ b/root_numpy/tmva/src/_libtmvanumpy.cpp @@ -1,13 +1,14 @@ -/* Generated by Cython 0.25.2 */ +/* Generated by Cython 0.28.4 */ #define PY_SSIZE_T_CLEAN #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 < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) - #error Cython requires Python 2.6+ or Python 3.2+. +#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) + #error Cython requires Python 2.6+ or Python 3.3+. #else -#define CYTHON_ABI "0_25_2" +#define CYTHON_ABI "0_28_4" +#define CYTHON_FUTURE_DIVISION 0 #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) @@ -29,8 +30,9 @@ #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif +#define __PYX_COMMA , #ifndef HAVE_LONG_LONG - #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000) + #if PY_VERSION_HEX >= 0x02070000 #define HAVE_LONG_LONG #endif #endif @@ -46,8 +48,14 @@ #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 - #undef CYTHON_USE_ASYNC_SLOTS - #define CYTHON_USE_ASYNC_SLOTS 0 + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #if PY_VERSION_HEX < 0x03050000 + #undef CYTHON_USE_ASYNC_SLOTS + #define CYTHON_USE_ASYNC_SLOTS 0 + #elif !defined(CYTHON_USE_ASYNC_SLOTS) + #define CYTHON_USE_ASYNC_SLOTS 1 + #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS @@ -66,6 +74,10 @@ #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #undef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 @@ -73,6 +85,8 @@ #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS @@ -97,6 +111,10 @@ #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 + #undef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT 0 + #undef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 @@ -104,6 +122,12 @@ #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif + #if PY_VERSION_HEX < 0x02070000 + #undef CYTHON_USE_PYTYPE_LOOKUP + #define CYTHON_USE_PYTYPE_LOOKUP 0 + #elif !defined(CYTHON_USE_PYTYPE_LOOKUP) + #define CYTHON_USE_PYTYPE_LOOKUP 1 + #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 @@ -143,6 +167,12 @@ #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif + #ifndef CYTHON_PEP489_MULTI_PHASE_INIT + #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000) + #endif + #ifndef CYTHON_USE_TP_FINALIZE + #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) + #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) @@ -153,6 +183,117 @@ #undef BASE #undef MASK #endif +#ifndef __has_attribute + #define __has_attribute(x) 0 +#endif +#ifndef __has_cpp_attribute + #define __has_cpp_attribute(x) 0 +#endif +#ifndef CYTHON_RESTRICT + #if defined(__GNUC__) + #define CYTHON_RESTRICT __restrict__ + #elif defined(_MSC_VER) && _MSC_VER >= 1400 + #define CYTHON_RESTRICT __restrict + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + #define CYTHON_RESTRICT restrict + #else + #define CYTHON_RESTRICT + #endif +#endif +#ifndef CYTHON_UNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define CYTHON_UNUSED __attribute__ ((__unused__)) +# else +# define CYTHON_UNUSED +# endif +# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) +# define CYTHON_UNUSED __attribute__ ((__unused__)) +# else +# define CYTHON_UNUSED +# endif +#endif +#ifndef CYTHON_MAYBE_UNUSED_VAR +# if defined(__cplusplus) + template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } +# else +# define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) +# endif +#endif +#ifndef CYTHON_NCP_UNUSED +# if CYTHON_COMPILING_IN_CPYTHON +# define CYTHON_NCP_UNUSED +# else +# define CYTHON_NCP_UNUSED CYTHON_UNUSED +# endif +#endif +#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) +#ifdef _MSC_VER + #ifndef _MSC_STDINT_H_ + #if _MSC_VER < 1300 + typedef unsigned char uint8_t; + typedef unsigned int uint32_t; + #else + typedef unsigned __int8 uint8_t; + typedef unsigned __int32 uint32_t; + #endif + #endif +#else + #include +#endif +#ifndef CYTHON_FALLTHROUGH + #if defined(__cplusplus) && __cplusplus >= 201103L + #if __has_cpp_attribute(fallthrough) + #define CYTHON_FALLTHROUGH [[fallthrough]] + #elif __has_cpp_attribute(clang::fallthrough) + #define CYTHON_FALLTHROUGH [[clang::fallthrough]] + #elif __has_cpp_attribute(gnu::fallthrough) + #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] + #endif + #endif + #ifndef CYTHON_FALLTHROUGH + #if __has_attribute(fallthrough) + #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) + #else + #define CYTHON_FALLTHROUGH + #endif + #endif + #if defined(__clang__ ) && defined(__apple_build_version__) + #if __apple_build_version__ < 7000000 + #undef CYTHON_FALLTHROUGH + #define CYTHON_FALLTHROUGH + #endif + #endif +#endif + +#ifndef __cplusplus + #error "Cython files generated with the C++ option must be compiled with a C++ compiler." +#endif +#ifndef CYTHON_INLINE + #if defined(__clang__) + #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) + #else + #define CYTHON_INLINE inline + #endif +#endif +template +void __Pyx_call_destructor(T& x) { + x.~T(); +} +template +class __Pyx_FakeReference { + public: + __Pyx_FakeReference() : ptr(NULL) { } + __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } + T *operator->() { return ptr; } + T *operator&() { return ptr; } + operator T&() { return *ptr; } + template bool operator ==(U other) { return *ptr == other; } + template bool operator !=(U other) { return *ptr != other; } + private: + T *ptr; +}; + #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif @@ -181,19 +322,91 @@ #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif -#ifndef METH_FASTCALL - #define METH_FASTCALL 0x80 - typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, - Py_ssize_t nargs, PyObject *kwnames); +#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) + #ifndef METH_FASTCALL + #define METH_FASTCALL 0x80 + #endif + typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); + typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, + Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast + #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ - ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))))) + ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif +#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) + #define PyObject_Malloc(s) PyMem_Malloc(s) + #define PyObject_Free(p) PyMem_Free(p) + #define PyObject_Realloc(p) PyMem_Realloc(p) +#endif +#if CYTHON_COMPILING_IN_PYSTON + #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) +#else + #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) + #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) +#endif +#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 + #define __Pyx_PyThreadState_Current PyThreadState_GET() +#elif PY_VERSION_HEX >= 0x03060000 + #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() +#elif PY_VERSION_HEX >= 0x03000000 + #define __Pyx_PyThreadState_Current PyThreadState_GET() +#else + #define __Pyx_PyThreadState_Current _PyThreadState_Current +#endif +#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) +#include "pythread.h" +#define Py_tss_NEEDS_INIT 0 +typedef int Py_tss_t; +static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { + *key = PyThread_create_key(); + return 0; // PyThread_create_key reports success always +} +static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { + Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); + *key = Py_tss_NEEDS_INIT; + return key; +} +static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { + PyObject_Free(key); +} +static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { + return *key != Py_tss_NEEDS_INIT; +} +static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { + PyThread_delete_key(*key); + *key = Py_tss_NEEDS_INIT; +} +static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { + return PyThread_set_key_value(*key, value); +} +static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { + return PyThread_get_key_value(*key); +} +#endif // TSS (Thread Specific Storage) API +#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) +#define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) +#else +#define __Pyx_PyDict_NewPresized(n) PyDict_New() +#endif +#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION + #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) + #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) +#else + #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) + #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) +#endif +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS +#define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) +#else +#define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name) +#endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ @@ -238,18 +451,6 @@ #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif -#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) - #define PyObject_Malloc(s) PyMem_Malloc(s) - #define PyObject_Free(p) PyMem_Free(p) - #define PyObject_Realloc(p) PyMem_Realloc(p) -#endif -#if CYTHON_COMPILING_IN_PYSTON - #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) - #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) -#else - #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) - #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) -#endif #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 @@ -266,6 +467,7 @@ #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact + #define PyObject_Unicode PyObject_Str #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) @@ -277,8 +479,11 @@ #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif -#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) -#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) +#if CYTHON_ASSUME_SAFE_MACROS + #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) +#else + #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) +#endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type @@ -313,7 +518,7 @@ #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 - #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) + #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif @@ -322,83 +527,18 @@ #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else - typedef struct { - unaryfunc am_await; - unaryfunc am_aiter; - unaryfunc am_anext; - } __Pyx_PyAsyncMethodsStruct; #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif -#ifndef CYTHON_RESTRICT - #if defined(__GNUC__) - #define CYTHON_RESTRICT __restrict__ - #elif defined(_MSC_VER) && _MSC_VER >= 1400 - #define CYTHON_RESTRICT __restrict - #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - #define CYTHON_RESTRICT restrict - #else - #define CYTHON_RESTRICT - #endif -#endif -#ifndef CYTHON_UNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define CYTHON_UNUSED __attribute__ ((__unused__)) -# else -# define CYTHON_UNUSED -# endif -# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) -# define CYTHON_UNUSED __attribute__ ((__unused__)) -# else -# define CYTHON_UNUSED -# endif -#endif -#ifndef CYTHON_MAYBE_UNUSED_VAR -# if defined(__cplusplus) - template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } -# else -# define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) -# endif -#endif -#ifndef CYTHON_NCP_UNUSED -# if CYTHON_COMPILING_IN_CPYTHON -# define CYTHON_NCP_UNUSED -# else -# define CYTHON_NCP_UNUSED CYTHON_UNUSED -# endif -#endif -#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) - -#ifndef __cplusplus - #error "Cython files generated with the C++ option must be compiled with a C++ compiler." -#endif -#ifndef CYTHON_INLINE - #if defined(__clang__) - #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) - #else - #define CYTHON_INLINE inline - #endif +#ifndef __Pyx_PyAsyncMethodsStruct + typedef struct { + unaryfunc am_await; + unaryfunc am_aiter; + unaryfunc am_anext; + } __Pyx_PyAsyncMethodsStruct; #endif -template -void __Pyx_call_destructor(T& x) { - x.~T(); -} -template -class __Pyx_FakeReference { - public: - __Pyx_FakeReference() : ptr(NULL) { } - __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } - T *operator->() { return ptr; } - T *operator&() { return ptr; } - operator T&() { return *ptr; } - template bool operator ==(U other) { return *ptr == other; } - template bool operator !=(U other) { return *ptr != other; } - private: - T *ptr; -}; #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES @@ -425,14 +565,6 @@ static CYTHON_INLINE float __PYX_NAN() { __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } -#if PY_MAJOR_VERSION >= 3 - #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) - #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) -#else - #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) - #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) -#endif - #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" @@ -443,9 +575,9 @@ static CYTHON_INLINE float __PYX_NAN() { #define __PYX_HAVE___libtmvanumpy #define __PYX_HAVE_API___libtmvanumpy +/* Early includes */ #include #include -#include #include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "pythread.h" @@ -457,6 +589,7 @@ static CYTHON_INLINE float __PYX_NAN() { #include #include #include +#include #include "2to3.h" #include "TMVA/Types.h" #include "TMVA/Event.h" @@ -470,7 +603,7 @@ static CYTHON_INLINE float __PYX_NAN() { #include #endif /* _OPENMP */ -#ifdef PYREX_WITHOUT_ASSERTIONS +#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif @@ -501,8 +634,8 @@ typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* enc #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) -#elif defined (_MSC_VER) && defined (_M_X64) - #define __Pyx_sst_abs(value) _abs64(value) +#elif defined (_MSC_VER) + #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) @@ -510,8 +643,8 @@ typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* enc #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif -static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*); -static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); +static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); +static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString @@ -524,31 +657,37 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #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_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) +#define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) +#define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(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) -{ +static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } -#else -#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen -#endif #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) -#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False)) +static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); +#define __Pyx_PySequence_Tuple(obj)\ + (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS @@ -647,10 +786,12 @@ static int __Pyx_init_sys_getdefaultencoding_params(void) { #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ +static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } -static PyObject *__pyx_m; +static PyObject *__pyx_m = NULL; static PyObject *__pyx_d; static PyObject *__pyx_b; +static PyObject *__pyx_cython_runtime = NULL; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; @@ -685,8 +826,8 @@ static const char *__pyx_filename; static const char *__pyx_f[] = { "root_numpy/tmva/src/evaluate.pyx", "root_numpy/tmva/src/data.pyx", - "array.pxd", "__init__.pxd", + "array.pxd", "stringsource", "root_numpy/tmva/src/_libtmvanumpy.pyx", "type.pxd", @@ -731,7 +872,7 @@ typedef struct { } __Pyx_BufFmt_Context; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":725 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":730 * # in Cython to enable them only on the right systems. * * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<< @@ -739,10 +880,10 @@ typedef struct { * ctypedef npy_int32 int32_t */ -#line 725 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 730 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int8 __pyx_t_5numpy_int8_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":726 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":731 * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< @@ -750,10 +891,10 @@ typedef npy_int8 __pyx_t_5numpy_int8_t; * ctypedef npy_int64 int64_t */ -#line 726 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 731 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int16 __pyx_t_5numpy_int16_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":727 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":732 * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<< @@ -761,10 +902,10 @@ typedef npy_int16 __pyx_t_5numpy_int16_t; * #ctypedef npy_int96 int96_t */ -#line 727 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 732 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int32 __pyx_t_5numpy_int32_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":728 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":733 * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<< @@ -772,10 +913,10 @@ typedef npy_int32 __pyx_t_5numpy_int32_t; * #ctypedef npy_int128 int128_t */ -#line 728 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 733 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_int64 __pyx_t_5numpy_int64_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":732 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":737 * #ctypedef npy_int128 int128_t * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< @@ -783,10 +924,10 @@ typedef npy_int64 __pyx_t_5numpy_int64_t; * ctypedef npy_uint32 uint32_t */ -#line 732 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 737 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint8 __pyx_t_5numpy_uint8_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":733 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":738 * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< @@ -794,10 +935,10 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t; * ctypedef npy_uint64 uint64_t */ -#line 733 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 738 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint16 __pyx_t_5numpy_uint16_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":734 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":739 * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<< @@ -805,10 +946,10 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t; * #ctypedef npy_uint96 uint96_t */ -#line 734 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 739 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint32 __pyx_t_5numpy_uint32_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":735 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":740 * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<< @@ -816,10 +957,10 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t; * #ctypedef npy_uint128 uint128_t */ -#line 735 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 740 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uint64 __pyx_t_5numpy_uint64_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":739 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":744 * #ctypedef npy_uint128 uint128_t * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< @@ -827,10 +968,10 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t; * #ctypedef npy_float80 float80_t */ -#line 739 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 744 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_float32 __pyx_t_5numpy_float32_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":740 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":745 * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< @@ -838,10 +979,10 @@ typedef npy_float32 __pyx_t_5numpy_float32_t; * #ctypedef npy_float128 float128_t */ -#line 740 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 745 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_float64 __pyx_t_5numpy_float64_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":749 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":754 * # The int types are mapped a bit surprising -- * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t # <<<<<<<<<<<<<< @@ -849,10 +990,10 @@ typedef npy_float64 __pyx_t_5numpy_float64_t; * ctypedef npy_longlong longlong_t */ -#line 749 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 754 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_long __pyx_t_5numpy_int_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":750 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":755 * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t * ctypedef npy_longlong long_t # <<<<<<<<<<<<<< @@ -860,10 +1001,10 @@ typedef npy_long __pyx_t_5numpy_int_t; * */ -#line 750 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 755 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_longlong __pyx_t_5numpy_long_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":751 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":756 * ctypedef npy_long int_t * ctypedef npy_longlong long_t * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< @@ -871,10 +1012,10 @@ typedef npy_longlong __pyx_t_5numpy_long_t; * ctypedef npy_ulong uint_t */ -#line 751 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 756 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_longlong __pyx_t_5numpy_longlong_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":753 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":758 * ctypedef npy_longlong longlong_t * * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<< @@ -882,10 +1023,10 @@ typedef npy_longlong __pyx_t_5numpy_longlong_t; * ctypedef npy_ulonglong ulonglong_t */ -#line 753 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 758 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_ulong __pyx_t_5numpy_uint_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":754 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":759 * * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<< @@ -893,10 +1034,10 @@ typedef npy_ulong __pyx_t_5numpy_uint_t; * */ -#line 754 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 759 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_ulonglong __pyx_t_5numpy_ulong_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":755 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":760 * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< @@ -904,10 +1045,10 @@ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; * ctypedef npy_intp intp_t */ -#line 755 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 760 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":757 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":762 * ctypedef npy_ulonglong ulonglong_t * * ctypedef npy_intp intp_t # <<<<<<<<<<<<<< @@ -915,10 +1056,10 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; * */ -#line 757 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 762 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_intp __pyx_t_5numpy_intp_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":758 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":763 * * ctypedef npy_intp intp_t * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<< @@ -926,10 +1067,10 @@ typedef npy_intp __pyx_t_5numpy_intp_t; * ctypedef npy_double float_t */ -#line 758 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 763 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_uintp __pyx_t_5numpy_uintp_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":760 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":765 * ctypedef npy_uintp uintp_t * * ctypedef npy_double float_t # <<<<<<<<<<<<<< @@ -937,10 +1078,10 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t; * ctypedef npy_longdouble longdouble_t */ -#line 760 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 765 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_double __pyx_t_5numpy_float_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":761 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":766 * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< @@ -948,10 +1089,10 @@ typedef npy_double __pyx_t_5numpy_float_t; * */ -#line 761 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 766 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_double __pyx_t_5numpy_double_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":762 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":767 * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< @@ -959,7 +1100,7 @@ typedef npy_double __pyx_t_5numpy_double_t; * ctypedef npy_cfloat cfloat_t */ -#line 762 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 767 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_longdouble __pyx_t_5numpy_longdouble_t; /* "root_numpy/tmva/src/setup.pxi":27 @@ -1058,7 +1199,7 @@ struct arrayobject; typedef struct arrayobject arrayobject; #endif -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":764 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":769 * ctypedef npy_longdouble longdouble_t * * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<< @@ -1066,10 +1207,10 @@ typedef struct arrayobject arrayobject; * ctypedef npy_clongdouble clongdouble_t */ -#line 764 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 769 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_cfloat __pyx_t_5numpy_cfloat_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":765 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 * * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<< @@ -1077,10 +1218,10 @@ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; * */ -#line 765 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 770 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_cdouble __pyx_t_5numpy_cdouble_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":766 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":771 * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<< @@ -1088,10 +1229,10 @@ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; * ctypedef npy_cdouble complex_t */ -#line 766 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 771 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":768 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 * ctypedef npy_clongdouble clongdouble_t * * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<< @@ -1099,7 +1240,7 @@ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; * cdef inline object PyArray_MultiIterNew1(a): */ -#line 768 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 773 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" typedef npy_cdouble __pyx_t_5numpy_complex_t; /* --- Runtime support code (head) --- */ @@ -1168,16 +1309,7 @@ typedef npy_cdouble __pyx_t_5numpy_complex_t; /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS -static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { - PyTypeObject* tp = Py_TYPE(obj); - if (likely(tp->tp_getattro)) - return tp->tp_getattro(obj, attr_name); -#if PY_MAJOR_VERSION < 3 - if (likely(tp->tp_getattr)) - return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); -#endif - return PyObject_GetAttr(obj, attr_name); -} +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif @@ -1198,17 +1330,31 @@ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ const char* function_name); /* ArgTypeTest.proto */ -static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, - const char *name, int exact); +#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ + ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\ + __Pyx__ArgTypeTest(obj, type, name, exact)) +static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); + +/* IsLittleEndian.proto */ +static CYTHON_INLINE int __Pyx_Is_Little_Endian(void); /* BufferFormatCheck.proto */ -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 const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts); static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, - __Pyx_TypeInfo* type); // PROTO + __Pyx_TypeInfo* type); + +/* BufferGetAndValidate.proto */ +#define __Pyx_GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack)\ + ((obj == Py_None || obj == NULL) ?\ + (__Pyx_ZeroBuffer(buf), 0) :\ + __Pyx__GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack)) +static int __Pyx__GetBufferAndValidate(Py_buffer* buf, PyObject* obj, + __Pyx_TypeInfo* dtype, int flags, int nd, int cast, __Pyx_BufFmt_StackElem* stack); +static void __Pyx_ZeroBuffer(Py_buffer* buf); +static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info); +static Py_ssize_t __Pyx_minusones[] = { -1, -1, -1, -1, -1, -1, -1, -1 }; +static Py_ssize_t __Pyx_zeros[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL @@ -1246,23 +1392,35 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; -#define __Pyx_PyThreadState_assign __pyx_tstate = PyThreadState_GET(); +#define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; +#define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign +#define __Pyx_PyErr_Occurred() PyErr_Occurred() #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE +#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) #else +#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) +#endif +#else +#define __Pyx_PyErr_Clear() PyErr_Clear() +#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) +#define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) +#define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif @@ -1280,23 +1438,13 @@ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); #define __Pyx_BufPtrStrided1d(type, buf, i0, s0) (type)((char*)buf + i0 * s0) /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY -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; -} +static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); +#define __Pyx_PyObject_Dict_GetItem(obj, name)\ + (likely(PyDict_CheckExact(obj)) ?\ + __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) #else - #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) +#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) +#define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif /* RaiseTooManyValuesToUnpack.proto */ @@ -1338,6 +1486,13 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); +/* CLineInTraceback.proto */ +#ifdef CYTHON_CLINE_IN_TRACEBACK +#define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) +#else +static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); +#endif + /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; @@ -1383,6 +1538,10 @@ struct arrayobject { char *as_chars; unsigned long *as_ulongs; long *as_longs; +#if PY_MAJOR_VERSION >= 3 + unsigned long long *as_ulonglongs; + long long *as_longlongs; +#endif short *as_shorts; unsigned short *as_ushorts; Py_UNICODE *as_pyunicodes; @@ -1491,10 +1650,6 @@ typedef struct { #endif -/* None.proto */ -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}; - /* CppExceptionConversion.proto */ #ifndef __Pyx_CppExn2PyErr #include @@ -1653,6 +1808,19 @@ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); +/* FastTypeChecks.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) +static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); +static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); +#else +#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) +#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) +#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) +#endif +#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) + /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); @@ -1758,8 +1926,6 @@ static PyTypeObject *__pyx_ptype_7cpython_7complex_complex = 0; /* Module declarations from 'cpython.ref' */ -/* Module declarations from 'libc.stdlib' */ - /* Module declarations from 'numpy' */ /* Module declarations from 'numpy' */ @@ -1793,6 +1959,8 @@ static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *, ch /* Module declarations from 'libcpp.string' */ +/* Module declarations from 'libc.stdlib' */ + /* Module declarations from '_libtmvanumpy' */ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBase *, PyArrayObject *, double); /*proto*/ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_twoclass(TMVA::MethodBase *, PyArrayObject *, double); /*proto*/ @@ -1803,15 +1971,16 @@ static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_double_t = { "double_t", static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_float32_t = { "float32_t", NULL, sizeof(__pyx_t_5numpy_float32_t), { 0 }, 0, 'R', 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 }; #define __Pyx_MODULE_NAME "_libtmvanumpy" +extern int __pyx_module_is_main__libtmvanumpy; int __pyx_module_is_main__libtmvanumpy = 0; /* Implementation of '_libtmvanumpy' */ static PyObject *__pyx_builtin_ValueError; static PyObject *__pyx_builtin_AssertionError; -static PyObject *__pyx_builtin_MemoryError; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_RuntimeError; static PyObject *__pyx_builtin_ImportError; +static PyObject *__pyx_builtin_MemoryError; static const char __pyx_k_i[] = "i"; static const char __pyx_k_j[] = "j"; static const char __pyx_k_np[] = "np"; @@ -1860,19 +2029,20 @@ static const char __pyx_k_signal_label[] = "signal_label"; static const char __pyx_k_AssertionError[] = "AssertionError"; static const char __pyx_k_evaluate_method[] = "evaluate_method"; static const char __pyx_k_evaluate_reader[] = "evaluate_reader"; +static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_add_events_twoclass[] = "add_events_twoclass"; static const char __pyx_k_add_events_multiclass[] = "add_events_multiclass"; static const char __pyx_k_add_events_regression[] = "add_events_regression"; static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous"; -static const char __pyx_k_home_endw_workspace_root_numpy[] = "/home/endw/workspace/root_numpy/root_numpy/tmva/src/evaluate.pyx"; +static const char __pyx_k_root_numpy_tmva_src_data_pyx[] = "root_numpy/tmva/src/data.pyx"; static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import"; static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)"; static const char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd"; static const char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported"; -static const char __pyx_k_home_endw_workspace_root_numpy_2[] = "/home/endw/workspace/root_numpy/root_numpy/tmva/src/data.pyx"; static const char __pyx_k_method_0_is_not_booked_in_this_r[] = "method '{0}' is not booked in this reader"; static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous"; static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import"; +static const char __pyx_k_root_numpy_tmva_src_evaluate_pyx[] = "root_numpy/tmva/src/evaluate.pyx"; static const char __pyx_k_the_analysis_type_of_this_method[] = "the analysis type of this method is not supported"; static const char __pyx_k_there_must_be_at_least_one_regre[] = "there must be at least one regression target"; static const char __pyx_k_there_must_be_at_least_two_class[] = "there must be at least two classes"; @@ -1894,6 +2064,7 @@ static PyObject *__pyx_n_s_add_events_multiclass; static PyObject *__pyx_n_s_add_events_regression; static PyObject *__pyx_n_s_add_events_twoclass; static PyObject *__pyx_n_s_aux; +static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_s_double; static PyObject *__pyx_n_s_dtype; static PyObject *__pyx_n_s_empty; @@ -1903,8 +2074,6 @@ static PyObject *__pyx_n_s_event; static PyObject *__pyx_n_s_events; static PyObject *__pyx_n_s_float32; static PyObject *__pyx_n_s_format; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy; -static PyObject *__pyx_kp_s_home_endw_workspace_root_numpy_2; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_imeth; static PyObject *__pyx_n_s_import; @@ -1931,6 +2100,8 @@ static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_ravel; static PyObject *__pyx_n_s_reader; static PyObject *__pyx_n_s_reader_2; +static PyObject *__pyx_kp_s_root_numpy_tmva_src_data_pyx; +static PyObject *__pyx_kp_s_root_numpy_tmva_src_evaluate_pyx; static PyObject *__pyx_n_s_signal_label; static PyObject *__pyx_n_s_size; static PyObject *__pyx_n_s_targets; @@ -1949,10 +2120,10 @@ static PyObject *__pyx_pf_13_libtmvanumpy_2evaluate_method(CYTHON_UNUSED PyObjec static PyObject *__pyx_pf_13_libtmvanumpy_4add_events_twoclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, int __pyx_v_signal_label, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ static PyObject *__pyx_pf_13_libtmvanumpy_6add_events_multiclass(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_labels, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ static PyObject *__pyx_pf_13_libtmvanumpy_8add_events_regression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj, PyArrayObject *__pyx_v_events, PyArrayObject *__pyx_v_targets, PyArrayObject *__pyx_v_weights, bool __pyx_v_test); /* proto */ -static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags); /* proto */ -static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ +static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags); /* proto */ +static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; @@ -1975,6 +2146,7 @@ static PyObject *__pyx_codeobj__16; static PyObject *__pyx_codeobj__18; static PyObject *__pyx_codeobj__20; static PyObject *__pyx_codeobj__22; +/* Late includes */ /* "root_numpy/tmva/src/evaluate.pyx":3 * @cython.boundscheck(False) @@ -2043,16 +2215,28 @@ static PyObject *__pyx_pw_13_libtmvanumpy_1evaluate_reader(PyObject *__pyx_self, case 4: #line 3 "root_numpy/tmva/src/evaluate.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 3: #line 3 "root_numpy/tmva/src/evaluate.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 2: #line 3 "root_numpy/tmva/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 3 "root_numpy/tmva/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/tmva/src/evaluate.pyx" case 0: break; default: @@ -2072,16 +2256,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_reader)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_reader)) != 0)) kw_args--; else #line 3 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/tmva/src/evaluate.pyx" case 1: #line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; #line 3 "root_numpy/tmva/src/evaluate.pyx" else { @@ -2092,11 +2279,14 @@ __PYX_ERR(0, 3, __pyx_L3_error) #line 3 "root_numpy/tmva/src/evaluate.pyx" } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/tmva/src/evaluate.pyx" case 2: #line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; #line 3 "root_numpy/tmva/src/evaluate.pyx" else { @@ -2107,11 +2297,14 @@ __PYX_ERR(0, 3, __pyx_L3_error) #line 3 "root_numpy/tmva/src/evaluate.pyx" } +#line 3 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 3 "root_numpy/tmva/src/evaluate.pyx" case 3: #line 3 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; + if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; #line 3 "root_numpy/tmva/src/evaluate.pyx" else { @@ -2320,7 +2513,7 @@ static PyObject *__pyx_pf_13_libtmvanumpy_evaluate_reader(CYTHON_UNUSED PyObject */ #line 4 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_reader); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(0, 4, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_reader); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 4, __pyx_L1_error) #line 4 "root_numpy/tmva/src/evaluate.pyx" __pyx_v__reader = ((TMVA::Reader *)__pyx_t_1); @@ -2351,7 +2544,7 @@ static PyObject *__pyx_pf_13_libtmvanumpy_evaluate_reader(CYTHON_UNUSED PyObject __pyx_t_3 = ((__pyx_v_imeth == NULL) != 0); #line 6 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_3) { + if (unlikely(__pyx_t_3)) { /* "root_numpy/tmva/src/evaluate.pyx":8 * if imeth == NULL: @@ -2505,35 +2698,20 @@ static PyObject *__pyx_pf_13_libtmvanumpy_evaluate_reader(CYTHON_UNUSED PyObject */ #line 7 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7, __pyx_L1_error) #line 7 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_5); #line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_4); - -#line 7 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); - -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = 0; - -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; #line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_Raise(__pyx_t_5, 0, 0, 0); #line 7 "root_numpy/tmva/src/evaluate.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - -#line 7 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - #line 7 "root_numpy/tmva/src/evaluate.pyx" __PYX_ERR(0, 7, __pyx_L1_error) @@ -2589,16 +2767,16 @@ static PyObject *__pyx_pf_13_libtmvanumpy_evaluate_reader(CYTHON_UNUSED PyObject __Pyx_XDECREF(__pyx_r); #line 10 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = __pyx_f_13_libtmvanumpy_evaluate_method_dispatch(__pyx_v_method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10, __pyx_L1_error) + __pyx_t_5 = __pyx_f_13_libtmvanumpy_evaluate_method_dispatch(__pyx_v_method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10, __pyx_L1_error) #line 10 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_5); #line 10 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_4; + __pyx_r = __pyx_t_5; #line 10 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = 0; + __pyx_t_5 = 0; #line 10 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; @@ -2744,13 +2922,22 @@ static PyObject *__pyx_pw_13_libtmvanumpy_3evaluate_method(PyObject *__pyx_self, case 3: #line 15 "root_numpy/tmva/src/evaluate.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 15 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 2: #line 15 "root_numpy/tmva/src/evaluate.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 15 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; case 1: #line 15 "root_numpy/tmva/src/evaluate.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 15 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 15 "root_numpy/tmva/src/evaluate.pyx" case 0: break; default: @@ -2770,16 +2957,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 15 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_method)) != 0)) kw_args--; else #line 15 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L5_argtuple_error; +#line 15 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 15 "root_numpy/tmva/src/evaluate.pyx" case 1: #line 15 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; #line 15 "root_numpy/tmva/src/evaluate.pyx" else { @@ -2790,11 +2980,14 @@ __PYX_ERR(0, 15, __pyx_L3_error) #line 15 "root_numpy/tmva/src/evaluate.pyx" } +#line 15 "root_numpy/tmva/src/evaluate.pyx" + CYTHON_FALLTHROUGH; + #line 15 "root_numpy/tmva/src/evaluate.pyx" case 2: #line 15 "root_numpy/tmva/src/evaluate.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aux)) != 0)) kw_args--; #line 15 "root_numpy/tmva/src/evaluate.pyx" else { @@ -2973,7 +3166,7 @@ static PyObject *__pyx_pf_13_libtmvanumpy_2evaluate_method(CYTHON_UNUSED PyObjec */ #line 16 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_method); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(0, 16, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_method); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 16, __pyx_L1_error) #line 16 "root_numpy/tmva/src/evaluate.pyx" __pyx_v__method = ((TMVA::MethodBase *)__pyx_t_1); @@ -3190,7 +3383,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __pyx_t_1 = ((__pyx_v_n_features != __pyx_v__method->GetNVariables()) != 0); #line 25 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/tmva/src/evaluate.pyx":28 * raise ValueError( @@ -3382,35 +3575,20 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa */ #line 26 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error) #line 26 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_3); #line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_2); - -#line 26 "root_numpy/tmva/src/evaluate.pyx" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); - -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; - -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 26 "root_numpy/tmva/src/evaluate.pyx" __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - -#line 26 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - #line 26 "root_numpy/tmva/src/evaluate.pyx" __PYX_ERR(0, 26, __pyx_L1_error) @@ -3462,16 +3640,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __Pyx_XDECREF(__pyx_r); #line 33 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_twoclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) + __pyx_t_3 = __pyx_f_13_libtmvanumpy_evaluate_twoclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_aux); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error) #line 33 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 33 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; + __pyx_r = __pyx_t_3; #line 33 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 33 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; @@ -3521,7 +3699,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __pyx_t_1 = ((__pyx_v_n_classes < 2) != 0); #line 36 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/tmva/src/evaluate.pyx":37 * n_classes = _method.DataInfo().GetNClasses() @@ -3532,16 +3710,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa */ #line 37 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 37, __pyx_L1_error) #line 37 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 37 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 37 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 37 "root_numpy/tmva/src/evaluate.pyx" __PYX_ERR(0, 37, __pyx_L1_error) @@ -3569,16 +3747,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __Pyx_XDECREF(__pyx_r); #line 38 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_multiclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_classes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error) + __pyx_t_3 = __pyx_f_13_libtmvanumpy_evaluate_multiclass(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_classes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 38, __pyx_L1_error) #line 38 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 38 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; + __pyx_r = __pyx_t_3; #line 38 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 38 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; @@ -3628,7 +3806,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __pyx_t_1 = ((__pyx_v_n_targets < 1) != 0); #line 41 "root_numpy/tmva/src/evaluate.pyx" - if (__pyx_t_1) { + if (unlikely(__pyx_t_1)) { /* "root_numpy/tmva/src/evaluate.pyx":42 * n_targets = _method.DataInfo().GetNTargets() @@ -3639,16 +3817,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa */ #line 42 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 42, __pyx_L1_error) #line 42 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 42 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 42 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 42 "root_numpy/tmva/src/evaluate.pyx" __PYX_ERR(0, 42, __pyx_L1_error) @@ -3673,16 +3851,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa */ #line 43 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __pyx_f_13_libtmvanumpy_evaluate_regression(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_targets); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error) + __pyx_t_3 = __pyx_f_13_libtmvanumpy_evaluate_regression(__pyx_v__method, ((PyArrayObject *)__pyx_v_events), __pyx_v_n_targets); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 43, __pyx_L1_error) #line 43 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 43 "root_numpy/tmva/src/evaluate.pyx" - __pyx_v_output = __pyx_t_2; + __pyx_v_output = __pyx_t_3; #line 43 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; /* "root_numpy/tmva/src/evaluate.pyx":44 * raise AssertionError("there must be at least one regression target") @@ -3710,37 +3888,37 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __Pyx_XDECREF(__pyx_r); #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_3); + __Pyx_GOTREF(__pyx_t_2); #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ravel); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_ravel); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 45, __pyx_L1_error) #line 45 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_8); #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = NULL; + __pyx_t_2 = NULL; #line 45 "root_numpy/tmva/src/evaluate.pyx" if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8); + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8); #line 45 "root_numpy/tmva/src/evaluate.pyx" - if (likely(__pyx_t_3)) { + if (likely(__pyx_t_2)) { #line 45 "root_numpy/tmva/src/evaluate.pyx" PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(__pyx_t_2); #line 45 "root_numpy/tmva/src/evaluate.pyx" __Pyx_INCREF(function); @@ -3755,13 +3933,13 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa } #line 45 "root_numpy/tmva/src/evaluate.pyx" - if (!__pyx_t_3) { + if (!__pyx_t_2) { #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_output); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_output); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 45 "root_numpy/tmva/src/evaluate.pyx" } else { @@ -3773,16 +3951,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa if (PyFunction_Check(__pyx_t_8)) { #line 45 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_output}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_output}; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 45 "root_numpy/tmva/src/evaluate.pyx" } else @@ -3797,16 +3975,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { #line 45 "root_numpy/tmva/src/evaluate.pyx" - PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_output}; + PyObject *__pyx_temp[2] = {__pyx_t_2, __pyx_v_output}; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 45 "root_numpy/tmva/src/evaluate.pyx" } else @@ -3824,7 +4002,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __Pyx_GOTREF(__pyx_t_5); #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; + __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; #line 45 "root_numpy/tmva/src/evaluate.pyx" __Pyx_INCREF(__pyx_v_output); @@ -3836,10 +4014,10 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_output); #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error) #line 45 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 45 "root_numpy/tmva/src/evaluate.pyx" __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -3854,10 +4032,10 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_r = __pyx_t_2; + __pyx_r = __pyx_t_3; #line 45 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = 0; + __pyx_t_3 = 0; #line 45 "root_numpy/tmva/src/evaluate.pyx" goto __pyx_L0; @@ -3919,16 +4097,16 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_method_dispatch(TMVA::MethodBa */ #line 47 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_AssertionError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error) #line 47 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_3); #line 47 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_Raise(__pyx_t_3, 0, 0, 0); #line 47 "root_numpy/tmva/src/evaluate.pyx" - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; #line 47 "root_numpy/tmva/src/evaluate.pyx" __PYX_ERR(0, 47, __pyx_L1_error) @@ -4245,7 +4423,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_twoclass(TMVA::MethodBase *__p __pyx_t_1 = 0; #line 60 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error) #line 60 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -4861,7 +5039,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_multiclass(TMVA::MethodBase *_ __pyx_t_4 = 0; #line 83 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) #line 83 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -5004,7 +5182,7 @@ __pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->p __pyx_t_12 = 0; #line 87 "root_numpy/tmva/src/evaluate.pyx" - memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetMulticlassValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_classes)); + (void)(memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetMulticlassValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_classes))); #line 87 "root_numpy/tmva/src/evaluate.pyx" } @@ -5390,7 +5568,7 @@ static PyObject *__pyx_f_13_libtmvanumpy_evaluate_regression(TMVA::MethodBase *_ __pyx_t_4 = 0; #line 102 "root_numpy/tmva/src/evaluate.pyx" - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 102, __pyx_L1_error) #line 102 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GOTREF(__pyx_t_4); @@ -5533,7 +5711,7 @@ __pyx_pybuffernd_output.diminfo[0].strides = __pyx_pybuffernd_output.rcbuffer->p __pyx_t_12 = 0; #line 106 "root_numpy/tmva/src/evaluate.pyx" - memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetRegressionValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_targets)); + (void)(memcpy((&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_float32_t *, __pyx_pybuffernd_output.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_output.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_output.diminfo[1].strides))), (&(__pyx_v__method->GetRegressionValues()[0])), ((sizeof(__pyx_t_5numpy_float32_t)) * __pyx_v_n_targets))); #line 106 "root_numpy/tmva/src/evaluate.pyx" } @@ -5750,22 +5928,40 @@ static PyObject *__pyx_pw_13_libtmvanumpy_5add_events_twoclass(PyObject *__pyx_s case 6: #line 9 "root_numpy/tmva/src/data.pyx" values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 5: #line 9 "root_numpy/tmva/src/data.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 4: #line 9 "root_numpy/tmva/src/data.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 3: #line 9 "root_numpy/tmva/src/data.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 2: #line 9 "root_numpy/tmva/src/data.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 1: #line 9 "root_numpy/tmva/src/data.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 9 "root_numpy/tmva/src/data.pyx" case 0: break; default: @@ -5785,16 +5981,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 9 "root_numpy/tmva/src/data.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; else #line 9 "root_numpy/tmva/src/data.pyx" goto __pyx_L5_argtuple_error; +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 9 "root_numpy/tmva/src/data.pyx" case 1: #line 9 "root_numpy/tmva/src/data.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; #line 9 "root_numpy/tmva/src/data.pyx" else { @@ -5805,11 +6004,14 @@ __PYX_ERR(1, 4, __pyx_L3_error) #line 9 "root_numpy/tmva/src/data.pyx" } +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 9 "root_numpy/tmva/src/data.pyx" case 2: #line 9 "root_numpy/tmva/src/data.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; #line 9 "root_numpy/tmva/src/data.pyx" else { @@ -5820,11 +6022,14 @@ __PYX_ERR(1, 4, __pyx_L3_error) #line 9 "root_numpy/tmva/src/data.pyx" } +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 9 "root_numpy/tmva/src/data.pyx" case 3: #line 9 "root_numpy/tmva/src/data.pyx" - if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signal_label)) != 0)) kw_args--; + if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_signal_label)) != 0)) kw_args--; #line 9 "root_numpy/tmva/src/data.pyx" else { @@ -5835,6 +6040,9 @@ __PYX_ERR(1, 4, __pyx_L3_error) #line 9 "root_numpy/tmva/src/data.pyx" } +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 9 "root_numpy/tmva/src/data.pyx" case 4: @@ -5842,7 +6050,7 @@ __PYX_ERR(1, 4, __pyx_L3_error) if (kw_args > 0) { #line 9 "root_numpy/tmva/src/data.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 9 "root_numpy/tmva/src/data.pyx" if (value) { values[4] = value; kw_args--; } @@ -5850,6 +6058,9 @@ __PYX_ERR(1, 4, __pyx_L3_error) #line 9 "root_numpy/tmva/src/data.pyx" } +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 9 "root_numpy/tmva/src/data.pyx" case 5: @@ -5857,7 +6068,7 @@ __PYX_ERR(1, 4, __pyx_L3_error) if (kw_args > 0) { #line 9 "root_numpy/tmva/src/data.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_test); #line 9 "root_numpy/tmva/src/data.pyx" if (value) { values[5] = value; kw_args--; } @@ -5885,9 +6096,15 @@ __PYX_ERR(1, 4, __pyx_L3_error) case 6: #line 9 "root_numpy/tmva/src/data.pyx" values[5] = PyTuple_GET_ITEM(__pyx_args, 5); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 5: #line 9 "root_numpy/tmva/src/data.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 9 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 4: #line 9 "root_numpy/tmva/src/data.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); @@ -6208,7 +6425,7 @@ static PyObject *__pyx_pf_13_libtmvanumpy_4add_events_twoclass(CYTHON_UNUSED PyO */ #line 11 "root_numpy/tmva/src/data.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 11, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 11, __pyx_L1_error) #line 11 "root_numpy/tmva/src/data.pyx" __pyx_v__obj = ((TMVA_Object *)__pyx_t_1); @@ -6669,19 +6886,34 @@ static PyObject *__pyx_pw_13_libtmvanumpy_7add_events_multiclass(PyObject *__pyx case 5: #line 40 "root_numpy/tmva/src/data.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 4: #line 40 "root_numpy/tmva/src/data.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 3: #line 40 "root_numpy/tmva/src/data.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 2: #line 40 "root_numpy/tmva/src/data.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 1: #line 40 "root_numpy/tmva/src/data.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 40 "root_numpy/tmva/src/data.pyx" case 0: break; default: @@ -6701,16 +6933,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 40 "root_numpy/tmva/src/data.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; else #line 40 "root_numpy/tmva/src/data.pyx" goto __pyx_L5_argtuple_error; +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 40 "root_numpy/tmva/src/data.pyx" case 1: #line 40 "root_numpy/tmva/src/data.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; #line 40 "root_numpy/tmva/src/data.pyx" else { @@ -6721,11 +6956,14 @@ __PYX_ERR(1, 36, __pyx_L3_error) #line 40 "root_numpy/tmva/src/data.pyx" } +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 40 "root_numpy/tmva/src/data.pyx" case 2: #line 40 "root_numpy/tmva/src/data.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_labels)) != 0)) kw_args--; #line 40 "root_numpy/tmva/src/data.pyx" else { @@ -6736,6 +6974,9 @@ __PYX_ERR(1, 36, __pyx_L3_error) #line 40 "root_numpy/tmva/src/data.pyx" } +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 40 "root_numpy/tmva/src/data.pyx" case 3: @@ -6743,7 +6984,7 @@ __PYX_ERR(1, 36, __pyx_L3_error) if (kw_args > 0) { #line 40 "root_numpy/tmva/src/data.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 40 "root_numpy/tmva/src/data.pyx" if (value) { values[3] = value; kw_args--; } @@ -6751,6 +6992,9 @@ __PYX_ERR(1, 36, __pyx_L3_error) #line 40 "root_numpy/tmva/src/data.pyx" } +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 40 "root_numpy/tmva/src/data.pyx" case 4: @@ -6758,7 +7002,7 @@ __PYX_ERR(1, 36, __pyx_L3_error) if (kw_args > 0) { #line 40 "root_numpy/tmva/src/data.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_test); #line 40 "root_numpy/tmva/src/data.pyx" if (value) { values[4] = value; kw_args--; } @@ -6786,9 +7030,15 @@ __PYX_ERR(1, 36, __pyx_L3_error) case 5: #line 40 "root_numpy/tmva/src/data.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 4: #line 40 "root_numpy/tmva/src/data.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 40 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 3: #line 40 "root_numpy/tmva/src/data.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); @@ -7118,7 +7368,7 @@ static PyObject *__pyx_pf_13_libtmvanumpy_6add_events_multiclass(CYTHON_UNUSED P */ #line 42 "root_numpy/tmva/src/data.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 42, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 42, __pyx_L1_error) #line 42 "root_numpy/tmva/src/data.pyx" __pyx_v__obj = ((TMVA_Object *)__pyx_t_1); @@ -7696,19 +7946,34 @@ static PyObject *__pyx_pw_13_libtmvanumpy_9add_events_regression(PyObject *__pyx case 5: #line 68 "root_numpy/tmva/src/data.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 4: #line 68 "root_numpy/tmva/src/data.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 3: #line 68 "root_numpy/tmva/src/data.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); + +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 2: #line 68 "root_numpy/tmva/src/data.pyx" values[1] = PyTuple_GET_ITEM(__pyx_args, 1); + +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 1: #line 68 "root_numpy/tmva/src/data.pyx" values[0] = PyTuple_GET_ITEM(__pyx_args, 0); +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/tmva/src/data.pyx" case 0: break; default: @@ -7728,16 +7993,19 @@ goto __pyx_L5_argtuple_error; case 0: #line 68 "root_numpy/tmva/src/data.pyx" - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; + if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--; else #line 68 "root_numpy/tmva/src/data.pyx" goto __pyx_L5_argtuple_error; +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/tmva/src/data.pyx" case 1: #line 68 "root_numpy/tmva/src/data.pyx" - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; + if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_events)) != 0)) kw_args--; #line 68 "root_numpy/tmva/src/data.pyx" else { @@ -7748,11 +8016,14 @@ __PYX_ERR(1, 64, __pyx_L3_error) #line 68 "root_numpy/tmva/src/data.pyx" } +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/tmva/src/data.pyx" case 2: #line 68 "root_numpy/tmva/src/data.pyx" - if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_targets)) != 0)) kw_args--; + if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_targets)) != 0)) kw_args--; #line 68 "root_numpy/tmva/src/data.pyx" else { @@ -7763,6 +8034,9 @@ __PYX_ERR(1, 64, __pyx_L3_error) #line 68 "root_numpy/tmva/src/data.pyx" } +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/tmva/src/data.pyx" case 3: @@ -7770,7 +8044,7 @@ __PYX_ERR(1, 64, __pyx_L3_error) if (kw_args > 0) { #line 68 "root_numpy/tmva/src/data.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_weights); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights); #line 68 "root_numpy/tmva/src/data.pyx" if (value) { values[3] = value; kw_args--; } @@ -7778,6 +8052,9 @@ __PYX_ERR(1, 64, __pyx_L3_error) #line 68 "root_numpy/tmva/src/data.pyx" } +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; + #line 68 "root_numpy/tmva/src/data.pyx" case 4: @@ -7785,7 +8062,7 @@ __PYX_ERR(1, 64, __pyx_L3_error) if (kw_args > 0) { #line 68 "root_numpy/tmva/src/data.pyx" - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_test); + PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_test); #line 68 "root_numpy/tmva/src/data.pyx" if (value) { values[4] = value; kw_args--; } @@ -7813,9 +8090,15 @@ __PYX_ERR(1, 64, __pyx_L3_error) case 5: #line 68 "root_numpy/tmva/src/data.pyx" values[4] = PyTuple_GET_ITEM(__pyx_args, 4); + +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 4: #line 68 "root_numpy/tmva/src/data.pyx" values[3] = PyTuple_GET_ITEM(__pyx_args, 3); + +#line 68 "root_numpy/tmva/src/data.pyx" + CYTHON_FALLTHROUGH; case 3: #line 68 "root_numpy/tmva/src/data.pyx" values[2] = PyTuple_GET_ITEM(__pyx_args, 2); @@ -8133,7 +8416,7 @@ static PyObject *__pyx_pf_13_libtmvanumpy_8add_events_regression(CYTHON_UNUSED P */ #line 70 "root_numpy/tmva/src/data.pyx" - __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) __PYX_ERR(1, 70, __pyx_L1_error) + __pyx_t_1 = PyCObject_AsVoidPtr(__pyx_v_obj); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 70, __pyx_L1_error) #line 70 "root_numpy/tmva/src/data.pyx" __pyx_v__obj = ((TMVA_Object *)__pyx_t_1); @@ -8490,5714 +8773,5612 @@ static PyObject *__pyx_pf_13_libtmvanumpy_8add_events_regression(CYTHON_UNUSED P #line 64 "root_numpy/tmva/src/data.pyx" } -/* "array.pxd":91 - * __data_union data - * - * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":215 + * # experimental exception made for __getbuffer__ and __releasebuffer__ + * # -- the details of this may change. + * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. + * # requirements, and does not yet fulfill the PEP. */ -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* Python wrapper */ -#line 91 "array.pxd" -static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ -#line 91 "array.pxd" -static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_r; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyDeclarations -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); __pyx_r = -#line 91 "array.pxd" -__pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +__pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" return __pyx_r; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 91 "array.pxd" -static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { - PyObject *__pyx_v_item_count = NULL -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { + int __pyx_v_i +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_ndim +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_endian_detector +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_little_endian +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_t +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + char *__pyx_v_f +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyArray_Descr *__pyx_v_descr = 0 +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_offset +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" ; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_r; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyDeclarations -#line 91 "array.pxd" - PyObject *__pyx_t_1 = NULL; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 91 "array.pxd" - char *__pyx_t_2; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_2; -#line 91 "array.pxd" - int __pyx_t_3; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 91 "array.pxd" - PyObject *__pyx_t_4 = NULL; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 91 "array.pxd" - Py_ssize_t __pyx_t_5; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_5; -#line 91 "array.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" int __pyx_t_6; -#line 91 "array.pxd" - __Pyx_RefNannySetupContext("__getbuffer__", 0); - -#line 91 "array.pxd" - if (__pyx_v_info != NULL) { +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 91 "array.pxd" - __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_t_8; -#line 91 "array.pxd" - __Pyx_GIVEREF(__pyx_v_info->obj); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info == NULL) { -#line 91 "array.pxd" - } +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); - /* "array.pxd":96 - * # In particular strided access is always provided regardless - * # of flags - * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< - * - * info.suboffsets = NULL - */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return -1; -#line 96 "array.pxd" - __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 96, __pyx_L1_error) +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 96 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__getbuffer__", 0); -#line 96 "array.pxd" - __pyx_v_item_count = __pyx_t_1; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); -#line 96 "array.pxd" - __pyx_t_1 = 0; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(__pyx_v_info->obj); - /* "array.pxd":98 - * item_count = Py_SIZE(self) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":222 + * + * cdef int i, ndim + * cdef int endian_detector = 1 # <<<<<<<<<<<<<< + * cdef bint little_endian = ((&endian_detector)[0] != 0) * - * info.suboffsets = NULL # <<<<<<<<<<<<<< - * info.buf = self.data.as_chars - * info.readonly = 0 */ -#line 98 "array.pxd" - __pyx_v_info->suboffsets = NULL; +#line 222 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_endian_detector = 1; - /* "array.pxd":99 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":223 + * cdef int i, ndim + * cdef int endian_detector = 1 + * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< * - * info.suboffsets = NULL - * info.buf = self.data.as_chars # <<<<<<<<<<<<<< - * info.readonly = 0 - * info.ndim = 1 - */ - -#line 99 "array.pxd" - __pyx_t_2 = __pyx_v_self->data.as_chars; - -#line 99 "array.pxd" - __pyx_v_info->buf = __pyx_t_2; - - /* "array.pxd":100 - * info.suboffsets = NULL - * info.buf = self.data.as_chars - * info.readonly = 0 # <<<<<<<<<<<<<< - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * ndim = PyArray_NDIM(self) */ -#line 100 "array.pxd" - __pyx_v_info->readonly = 0; +#line 223 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "array.pxd":101 - * info.buf = self.data.as_chars - * info.readonly = 0 - * info.ndim = 1 # <<<<<<<<<<<<<< - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - * info.len = info.itemsize * item_count + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":225 + * cdef bint little_endian = ((&endian_detector)[0] != 0) + * + * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< + * + * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) */ -#line 101 "array.pxd" - __pyx_v_info->ndim = 1; +#line 225 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); - /* "array.pxd":102 - * info.readonly = 0 - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< - * info.len = info.itemsize * item_count + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":227 + * ndim = PyArray_NDIM(self) * + * 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") */ -#line 102 "array.pxd" - __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; - -#line 102 "array.pxd" - __pyx_v_info->itemsize = __pyx_t_3; +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0); - /* "array.pxd":103 - * info.ndim = 1 - * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) - * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< - * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - */ +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { -#line 103 "array.pxd" - __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 103, __pyx_L1_error) +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 103 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; -#line 103 "array.pxd" - __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 103, __pyx_L1_error) +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L4_bool_binop_done; -#line 103 "array.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 103 "array.pxd" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":228 + * + * 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") + * + */ -#line 103 "array.pxd" - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 103, __pyx_L1_error) +#line 228 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0); -#line 103 "array.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 228 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; -#line 103 "array.pxd" - __pyx_v_info->len = __pyx_t_5; +#line 228 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L4_bool_binop_done:; - /* "array.pxd":105 - * info.len = info.itemsize * item_count + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":227 + * ndim = PyArray_NDIM(self) * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< - * if not info.shape: - * raise MemoryError() + * 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") */ -#line 105 "array.pxd" - __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_1)) { - /* "array.pxd":106 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":229 + * 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") # <<<<<<<<<<<<<< * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: # <<<<<<<<<<<<<< - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing + * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ -#line 106 "array.pxd" - __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 229, __pyx_L1_error) -#line 106 "array.pxd" - if (__pyx_t_6) { +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "array.pxd":107 - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: - * raise MemoryError() # <<<<<<<<<<<<<< - * info.shape[0] = item_count # constant regardless of resizing - * info.strides = &info.itemsize - */ +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 107 "array.pxd" - PyErr_NoMemory(); __PYX_ERR(2, 107, __pyx_L1_error) +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 229, __pyx_L1_error) - /* "array.pxd":106 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":227 + * ndim = PyArray_NDIM(self) * - * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) - * if not info.shape: # <<<<<<<<<<<<<< - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing + * 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") */ -#line 106 "array.pxd" +#line 227 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "array.pxd":108 - * if not info.shape: - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< - * info.strides = &info.itemsize + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * 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") */ -#line 108 "array.pxd" - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 108, __pyx_L1_error) +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0); -#line 108 "array.pxd" - (__pyx_v_info->shape[0]) = __pyx_t_5; +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { - /* "array.pxd":109 - * raise MemoryError() - * info.shape[0] = item_count # constant regardless of resizing - * info.strides = &info.itemsize # <<<<<<<<<<<<<< - * - * info.format = (info.shape + 1) - */ +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 109 "array.pxd" - __pyx_v_info->strides = (&__pyx_v_info->itemsize); +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":111 - * info.strides = &info.itemsize - * - * info.format = (info.shape + 1) # <<<<<<<<<<<<<< - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 - */ +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 111 "array.pxd" - __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "array.pxd":112 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":232 + * + * 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.format = (info.shape + 1) - * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< - * info.format[1] = 0 - * info.obj = self */ -#line 112 "array.pxd" - __pyx_t_3 = __pyx_v_self->ob_descr->typecode; +#line 232 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0); -#line 112 "array.pxd" - (__pyx_v_info->format[0]) = __pyx_t_3; +#line 232 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":113 - * info.format = (info.shape + 1) - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 # <<<<<<<<<<<<<< - * info.obj = self +#line 232 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L7_bool_binop_done:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * 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") */ -#line 113 "array.pxd" - (__pyx_v_info->format[1]) = 0; +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_1)) { - /* "array.pxd":114 - * info.format[0] = self.ob_descr.typecode - * info.format[1] = 0 - * info.obj = self # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":233 + * 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") # <<<<<<<<<<<<<< * - * def __releasebuffer__(self, Py_buffer* info): + * info.buf = PyArray_DATA(self) */ -#line 114 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_self)); +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 233, __pyx_L1_error) -#line 114 "array.pxd" - __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 114 "array.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 114 "array.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 114 "array.pxd" - __pyx_v_info->obj = ((PyObject *)__pyx_v_self); +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 233, __pyx_L1_error) - /* "array.pxd":91 - * __data_union data + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 + * raise ValueError(u"ndarray is not C contiguous") * - * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. + * 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") */ -#line 91 "array.pxd" - +#line 231 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 91 "array.pxd" - /* function exit code */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":235 + * raise ValueError(u"ndarray is not Fortran contiguous") + * + * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< + * info.ndim = ndim + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + */ -#line 91 "array.pxd" - __pyx_r = 0; +#line 235 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); -#line 91 "array.pxd" - goto __pyx_L0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":236 + * + * info.buf = PyArray_DATA(self) + * info.ndim = ndim # <<<<<<<<<<<<<< + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * # Allocate new buffer for strides and shape info. + */ -#line 91 "array.pxd" - __pyx_L1_error:; +#line 236 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->ndim = __pyx_v_ndim; -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 + * info.buf = PyArray_DATA(self) + * info.ndim = ndim + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + */ -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_t_4); +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); -#line 91 "array.pxd" - __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { -#line 91 "array.pxd" - __pyx_r = -1; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":240 + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. + * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) # <<<<<<<<<<<<<< + * info.shape = info.strides + ndim + * for i in range(ndim): + */ -#line 91 "array.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { +#line 240 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->strides = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * 2) * ((size_t)__pyx_v_ndim)))); -#line 91 "array.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":241 + * # This is allocated as one block, strides first. + * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) + * info.shape = info.strides + ndim # <<<<<<<<<<<<<< + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] + */ -#line 91 "array.pxd" - __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; +#line 241 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); -#line 91 "array.pxd" - } - -#line 91 "array.pxd" - goto __pyx_L2; - -#line 91 "array.pxd" - __pyx_L0:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":242 + * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) + * info.shape = info.strides + ndim + * for i in range(ndim): # <<<<<<<<<<<<<< + * info.strides[i] = PyArray_STRIDES(self)[i] + * info.shape[i] = PyArray_DIMS(self)[i] + */ -#line 91 "array.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __pyx_v_ndim; -#line 91 "array.pxd" - __Pyx_GOTREF(Py_None); +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_5 = __pyx_t_4; -#line 91 "array.pxd" - __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { -#line 91 "array.pxd" - } +#line 242 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_i = __pyx_t_6; -#line 91 "array.pxd" - __pyx_L2:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":243 + * info.shape = info.strides + ndim + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< + * info.shape[i] = PyArray_DIMS(self)[i] + * else: + */ -#line 91 "array.pxd" - __Pyx_XDECREF(__pyx_v_item_count); +#line 243 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); -#line 91 "array.pxd" - __Pyx_RefNannyFinishContext(); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":244 + * for i in range(ndim): + * info.strides[i] = PyArray_STRIDES(self)[i] + * info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<< + * else: + * info.strides = PyArray_STRIDES(self) + */ -#line 91 "array.pxd" - return __pyx_r; +#line 244 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); -#line 91 "array.pxd" -} +#line 244 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "array.pxd":116 - * info.obj = self - * - * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< - * PyObject_Free(info.shape) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 + * info.buf = PyArray_DATA(self) + * info.ndim = ndim + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * # Allocate new buffer for strides and shape info. + * # This is allocated as one block, strides first. */ -#line 116 "array.pxd" - +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L9; -#line 116 "array.pxd" -/* Python wrapper */ +#line 237 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 116 "array.pxd" -static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":246 + * info.shape[i] = PyArray_DIMS(self)[i] + * else: + * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL + */ -#line 116 "array.pxd" -static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 246 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 116 "array.pxd" - __Pyx_RefNannyDeclarations +#line 246 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); -#line 116 "array.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":247 + * else: + * info.strides = PyArray_STRIDES(self) + * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) + */ -#line 116 "array.pxd" - __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); +#line 247 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); -#line 116 "array.pxd" +#line 247 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } +#line 247 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L9:; -#line 116 "array.pxd" - /* function exit code */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 + * info.strides = PyArray_STRIDES(self) + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL # <<<<<<<<<<<<<< + * info.itemsize = PyArray_ITEMSIZE(self) + * info.readonly = not PyArray_ISWRITEABLE(self) + */ -#line 116 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 248 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->suboffsets = NULL; -#line 116 "array.pxd" -} + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":249 + * info.shape = PyArray_DIMS(self) + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< + * info.readonly = not PyArray_ISWRITEABLE(self) + * + */ -#line 116 "array.pxd" +#line 249 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":250 + * info.suboffsets = NULL + * info.itemsize = PyArray_ITEMSIZE(self) + * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< + * + * cdef int t + */ -#line 116 "array.pxd" -static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 250 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); -#line 116 "array.pxd" - __Pyx_RefNannyDeclarations + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":253 + * + * cdef int t + * cdef char* f = NULL # <<<<<<<<<<<<<< + * cdef dtype descr = self.descr + * cdef int offset + */ -#line 116 "array.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__", 0); +#line 253 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = NULL; - /* "array.pxd":117 - * - * def __releasebuffer__(self, Py_buffer* info): - * PyObject_Free(info.shape) # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":254 + * cdef int t + * cdef char* f = NULL + * cdef dtype descr = self.descr # <<<<<<<<<<<<<< + * cdef int offset * - * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) */ -#line 117 "array.pxd" - PyObject_Free(__pyx_v_info->shape); +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = ((PyObject *)__pyx_v_self->descr); - /* "array.pxd":116 - * info.obj = self +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_3); + +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); + +#line 254 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":257 + * cdef int offset * - * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< - * PyObject_Free(info.shape) + * info.obj = self # <<<<<<<<<<<<<< * + * if not PyDataType_HASFIELDS(descr): */ -#line 116 "array.pxd" +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_self)); +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); -#line 116 "array.pxd" - /* function exit code */ +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 116 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); -#line 116 "array.pxd" -} +#line 257 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->obj = ((PyObject *)__pyx_v_self); -/* "array.pxd":128 - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + * info.obj = self * - * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< - * """ fast creation of a new array, given a template array. - * type will be same as template. + * if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<< + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or */ -#line 128 "array.pxd" +#line 259 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((!(PyDataType_HASFIELDS(__pyx_v_descr) != 0)) != 0); +#line 259 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { -#line 128 "array.pxd" -static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { - arrayobject *__pyx_v_op = NULL -#line 128 "array.pxd" -; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":260 + * + * if not PyDataType_HASFIELDS(descr): + * t = descr.type_num # <<<<<<<<<<<<<< + * if ((descr.byteorder == c'>' and little_endian) or + * (descr.byteorder == c'<' and not little_endian)): + */ -#line 128 "array.pxd" - arrayobject *__pyx_r = NULL; +#line 260 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __pyx_v_descr->type_num; -#line 128 "array.pxd" - __Pyx_RefNannyDeclarations +#line 260 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_t = __pyx_t_4; -#line 128 "array.pxd" - PyObject *__pyx_t_1 = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * if not PyDataType_HASFIELDS(descr): + * 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") + */ -#line 128 "array.pxd" - int __pyx_t_2; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0); -#line 128 "array.pxd" - int __pyx_t_3; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_2) { -#line 128 "array.pxd" - int __pyx_t_4; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15_next_or; -#line 128 "array.pxd" - __Pyx_RefNannySetupContext("clone", 0); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { - /* "array.pxd":132 - * type will be same as template. - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - */ +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 132 "array.pxd" - __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 132, __pyx_L1_error) +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (__pyx_v_little_endian != 0); -#line 132 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_2) { -#line 132 "array.pxd" - __pyx_v_op = ((arrayobject *)__pyx_t_1); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 132 "array.pxd" - __pyx_t_1 = 0; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":133 - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: # <<<<<<<<<<<<<< - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op - */ +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L14_bool_binop_done; -#line 133 "array.pxd" - __pyx_t_3 = (__pyx_v_zero != 0); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 133 "array.pxd" - if (__pyx_t_3) { +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L15_next_or:; -#line 133 "array.pxd" - } else { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":262 + * 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" + */ -#line 133 "array.pxd" - __pyx_t_2 = __pyx_t_3; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0); -#line 133 "array.pxd" - goto __pyx_L4_bool_binop_done; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { -#line 133 "array.pxd" - } +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 133 "array.pxd" - __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; -#line 133 "array.pxd" - __pyx_t_4 = (__pyx_t_3 != 0); +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L14_bool_binop_done; -#line 133 "array.pxd" - __pyx_t_2 = __pyx_t_4; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 133 "array.pxd" - __pyx_L4_bool_binop_done:; +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0); -#line 133 "array.pxd" - if (__pyx_t_2) { +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_t_2; - /* "array.pxd":134 - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< - * return op - * +#line 262 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L14_bool_binop_done:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * if not PyDataType_HASFIELDS(descr): + * 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") */ -#line 134 "array.pxd" - memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize)); +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_1)) { - /* "array.pxd":133 - * if zero is true, new array will be initialized with zeroes.""" - * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) - * if zero and op is not None: # <<<<<<<<<<<<<< - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 + * 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" */ -#line 133 "array.pxd" - } +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 263, __pyx_L1_error) - /* "array.pxd":135 - * if zero and op is not None: - * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) - * return op # <<<<<<<<<<<<<< - * - * cdef inline array copy(array self): - */ +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 135 "array.pxd" - __Pyx_XDECREF(((PyObject *)__pyx_r)); - -#line 135 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_op)); +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 135 "array.pxd" - __pyx_r = __pyx_v_op; +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 135 "array.pxd" - goto __pyx_L0; +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 263, __pyx_L1_error) - /* "array.pxd":128 - * - * - * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< - * """ fast creation of a new array, given a template array. - * type will be same as template. + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 + * if not PyDataType_HASFIELDS(descr): + * 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") */ -#line 128 "array.pxd" - - -#line 128 "array.pxd" - /* function exit code */ - -#line 128 "array.pxd" - __pyx_L1_error:; - -#line 128 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); - -#line 128 "array.pxd" - __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); - -#line 128 "array.pxd" - __pyx_r = 0; - -#line 128 "array.pxd" - __pyx_L0:; +#line 261 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 128 "array.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_op); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":264 + * (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" + * elif t == NPY_SHORT: f = "h" + */ -#line 128 "array.pxd" - __Pyx_XGIVEREF((PyObject *)__pyx_r); +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + switch (__pyx_v_t) { -#line 128 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_BYTE: -#line 128 "array.pxd" - return __pyx_r; +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"b"); -#line 128 "array.pxd" -} +#line 264 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -/* "array.pxd":137 - * return op - * - * cdef inline array copy(array self): # <<<<<<<<<<<<<< - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 + * raise ValueError(u"Non-native byte order not supported") + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" */ -#line 137 "array.pxd" +#line 265 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_UBYTE: +#line 265 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"B"); -#line 137 "array.pxd" -static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { - arrayobject *__pyx_v_op = NULL -#line 137 "array.pxd" -; +#line 265 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 137 "array.pxd" - arrayobject *__pyx_r = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 + * if t == NPY_BYTE: f = "b" + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" + */ -#line 137 "array.pxd" - __Pyx_RefNannyDeclarations +#line 266 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_SHORT: -#line 137 "array.pxd" - PyObject *__pyx_t_1 = NULL; +#line 266 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"h"); -#line 137 "array.pxd" - __Pyx_RefNannySetupContext("copy", 0); +#line 266 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":139 - * cdef inline array copy(array self): - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) - * return op + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":267 + * elif t == NPY_UBYTE: f = "B" + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" */ -#line 139 "array.pxd" - __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 139, __pyx_L1_error) - -#line 139 "array.pxd" - __Pyx_GOTREF(__pyx_t_1); - -#line 139 "array.pxd" - __pyx_v_op = ((arrayobject *)__pyx_t_1); - -#line 139 "array.pxd" - __pyx_t_1 = 0; +#line 267 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_USHORT: - /* "array.pxd":140 - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< - * return op - * - */ +#line 267 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"H"); -#line 140 "array.pxd" - memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize)); +#line 267 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":141 - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) - * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) - * return op # <<<<<<<<<<<<<< - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 + * elif t == NPY_SHORT: f = "h" + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" */ -#line 141 "array.pxd" - __Pyx_XDECREF(((PyObject *)__pyx_r)); - -#line 141 "array.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_op)); +#line 268 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_INT: -#line 141 "array.pxd" - __pyx_r = __pyx_v_op; +#line 268 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"i"); -#line 141 "array.pxd" - goto __pyx_L0; +#line 268 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":137 - * return op - * - * cdef inline array copy(array self): # <<<<<<<<<<<<<< - * """ make a copy of an array. """ - * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":269 + * elif t == NPY_USHORT: f = "H" + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" */ -#line 137 "array.pxd" - - -#line 137 "array.pxd" - /* function exit code */ +#line 269 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_UINT: -#line 137 "array.pxd" - __pyx_L1_error:; +#line 269 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"I"); -#line 137 "array.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 269 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 137 "array.pxd" - __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 + * elif t == NPY_INT: f = "i" + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" + */ -#line 137 "array.pxd" - __pyx_r = 0; +#line 270 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONG: -#line 137 "array.pxd" - __pyx_L0:; +#line 270 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"l"); -#line 137 "array.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_op); +#line 270 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 137 "array.pxd" - __Pyx_XGIVEREF((PyObject *)__pyx_r); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 + * elif t == NPY_UINT: f = "I" + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" + */ -#line 137 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 271 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_ULONG: -#line 137 "array.pxd" - return __pyx_r; +#line 271 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"L"); -#line 137 "array.pxd" -} +#line 271 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -/* "array.pxd":143 - * return op - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< - * """ efficent appending of new stuff of same type - * (e.g. of same array type) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 + * elif t == NPY_LONG: f = "l" + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" */ -#line 143 "array.pxd" +#line 272 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONGLONG: +#line 272 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"q"); -#line 143 "array.pxd" -static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { - Py_ssize_t __pyx_v_itemsize -#line 143 "array.pxd" -; - Py_ssize_t __pyx_v_origsize -#line 143 "array.pxd" -; +#line 272 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 143 "array.pxd" - int __pyx_r; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":273 + * elif t == NPY_ULONG: f = "L" + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" + */ -#line 143 "array.pxd" - __Pyx_RefNannyDeclarations +#line 273 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_ULONGLONG: -#line 143 "array.pxd" - int __pyx_t_1; +#line 273 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Q"); -#line 143 "array.pxd" - __Pyx_RefNannySetupContext("extend_buffer", 0); +#line 273 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":147 - * (e.g. of same array type) - * n: number of elements (not number of bytes!) """ - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 + * elif t == NPY_LONGLONG: f = "q" + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" */ -#line 147 "array.pxd" - __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; - -#line 147 "array.pxd" - __pyx_v_itemsize = __pyx_t_1; +#line 274 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_FLOAT: - /* "array.pxd":148 - * n: number of elements (not number of bytes!) """ - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize - * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - */ +#line 274 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"f"); -#line 148 "array.pxd" - __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); +#line 274 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":149 - * cdef Py_ssize_t itemsize = self.ob_descr.itemsize - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - * return 0 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 + * elif t == NPY_ULONGLONG: f = "Q" + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" */ -#line 149 "array.pxd" - __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == -1)) __PYX_ERR(2, 149, __pyx_L1_error) +#line 275 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_DOUBLE: - /* "array.pxd":150 - * cdef Py_ssize_t origsize = Py_SIZE(self) - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< - * return 0 - * - */ +#line 275 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"d"); -#line 150 "array.pxd" - memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize)); +#line 275 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; - /* "array.pxd":151 - * resize_smart(self, origsize + n) - * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) - * return 0 # <<<<<<<<<<<<<< - * - * cdef inline int extend(array self, array other) except -1: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 + * elif t == NPY_FLOAT: f = "f" + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" */ -#line 151 "array.pxd" - __pyx_r = 0; - -#line 151 "array.pxd" - goto __pyx_L0; - - /* "array.pxd":143 - * return op - * - * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< - * """ efficent appending of new stuff of same type - * (e.g. of same array type) - */ +#line 276 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_LONGDOUBLE: -#line 143 "array.pxd" +#line 276 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"g"); +#line 276 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 143 "array.pxd" - /* function exit code */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":277 + * elif t == NPY_DOUBLE: f = "d" + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" + */ -#line 143 "array.pxd" - __pyx_L1_error:; +#line 277 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CFLOAT: -#line 143 "array.pxd" - __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 277 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zf"); -#line 143 "array.pxd" - __pyx_r = -1; +#line 277 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 143 "array.pxd" - __pyx_L0:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 + * elif t == NPY_LONGDOUBLE: f = "g" + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< + * elif t == NPY_CLONGDOUBLE: f = "Zg" + * elif t == NPY_OBJECT: f = "O" + */ -#line 143 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 278 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CDOUBLE: -#line 143 "array.pxd" - return __pyx_r; +#line 278 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zd"); -#line 143 "array.pxd" -} +#line 278 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -/* "array.pxd":153 - * return 0 - * - * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 + * elif t == NPY_CFLOAT: f = "Zf" + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< + * elif t == NPY_OBJECT: f = "O" + * else: */ -#line 153 "array.pxd" - - -#line 153 "array.pxd" -static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { - -#line 153 "array.pxd" - int __pyx_r; +#line 279 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_CLONGDOUBLE: -#line 153 "array.pxd" - __Pyx_RefNannyDeclarations +#line 279 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"Zg"); -#line 153 "array.pxd" - int __pyx_t_1; +#line 279 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 153 "array.pxd" - int __pyx_t_2; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 + * elif t == NPY_CDOUBLE: f = "Zd" + * elif t == NPY_CLONGDOUBLE: f = "Zg" + * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + */ -#line 153 "array.pxd" - __Pyx_RefNannySetupContext("extend", 0); +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + case NPY_OBJECT: - /* "array.pxd":155 - * cdef inline int extend(array self, array other) except -1: - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - */ +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = ((char *)"O"); -#line 155 "array.pxd" - __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 155 "array.pxd" - if (__pyx_t_1) { +#line 280 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + default: - /* "array.pxd":156 - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: - * PyErr_BadArgument() # <<<<<<<<<<<<<< - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":282 + * elif t == NPY_OBJECT: f = "O" + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< + * info.format = f + * return */ -#line 156 "array.pxd" - __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == 0)) __PYX_ERR(2, 156, __pyx_L1_error) +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 282, __pyx_L1_error) - /* "array.pxd":155 - * cdef inline int extend(array self, array other) except -1: - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - */ +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 155 "array.pxd" - } +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 282, __pyx_L1_error) - /* "array.pxd":157 - * if self.ob_descr.typecode != other.ob_descr.typecode: - * PyErr_BadArgument() - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< - * - * cdef inline void zero(array self): - */ +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 157 "array.pxd" - __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(2, 157, __pyx_L1_error) +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 157 "array.pxd" - __pyx_r = __pyx_t_2; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 282, __pyx_L1_error) -#line 157 "array.pxd" - goto __pyx_L0; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "array.pxd":153 - * return 0 - * - * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< - * """ extend array with data from another array; types must match. """ - * if self.ob_descr.typecode != other.ob_descr.typecode: - */ +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; -#line 153 "array.pxd" +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 153 "array.pxd" - /* function exit code */ +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 282, __pyx_L1_error) -#line 153 "array.pxd" - __pyx_L1_error:; +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + break; -#line 153 "array.pxd" - __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 282 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 153 "array.pxd" - __pyx_r = -1; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * info.format = f # <<<<<<<<<<<<<< + * return + * else: + */ -#line 153 "array.pxd" - __pyx_L0:; +#line 283 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->format = __pyx_v_f; -#line 153 "array.pxd" - __Pyx_RefNannyFinishContext(); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * info.format = f + * return # <<<<<<<<<<<<<< + * else: + * info.format = PyObject_Malloc(_buffer_format_string_len) + */ -#line 153 "array.pxd" - return __pyx_r; +#line 284 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 153 "array.pxd" -} +#line 284 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -/* "array.pxd":159 - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + * info.obj = self * - * cdef inline void zero(array self): # <<<<<<<<<<<<<< - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + * if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<< + * t = descr.type_num + * if ((descr.byteorder == c'>' and little_endian) or */ -#line 159 "array.pxd" +#line 259 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":286 + * return + * else: + * info.format = PyObject_Malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 + */ -#line 159 "array.pxd" -static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { +#line 286 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 159 "array.pxd" - __Pyx_RefNannyDeclarations +#line 286 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_info->format = ((char *)PyObject_Malloc(0xFF)); -#line 159 "array.pxd" - __Pyx_RefNannySetupContext("zero", 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":287 + * else: + * info.format = PyObject_Malloc(_buffer_format_string_len) + * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< + * offset = 0 + * f = _util_dtypestring(descr, info.format + 1, + */ - /* "array.pxd":161 - * cdef inline void zero(array self): - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< +#line 287 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_info->format[0]) = '^'; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":288 + * info.format = PyObject_Malloc(_buffer_format_string_len) + * info.format[0] = c'^' # Native data types, manual alignment + * offset = 0 # <<<<<<<<<<<<<< + * f = _util_dtypestring(descr, info.format + 1, + * info.format + _buffer_format_string_len, */ -#line 161 "array.pxd" - memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize)); +#line 288 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_offset = 0; - /* "array.pxd":159 - * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) - * - * cdef inline void zero(array self): # <<<<<<<<<<<<<< - * """ set all elements of array to zero. """ - * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":289 + * 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) */ -#line 159 "array.pxd" +#line 289 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_8 == ((char *)NULL))) __PYX_ERR(2, 289, __pyx_L1_error) +#line 289 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = __pyx_t_8; -#line 159 "array.pxd" - /* function exit code */ + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 + * info.format + _buffer_format_string_len, + * &offset) + * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< + * + * def __releasebuffer__(ndarray self, Py_buffer* info): + */ -#line 159 "array.pxd" - __Pyx_RefNannyFinishContext(); +#line 292 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = '\x00'; -#line 159 "array.pxd" -} +#line 292 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":215 * # experimental exception made for __getbuffer__ and __releasebuffer__ * # -- the details of this may change. * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. + * # requirements, and does not yet fulfill the PEP. */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -/* Python wrapper */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); - __pyx_r = -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -__pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info->obj != NULL) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L2; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { - int __pyx_v_copy_shape -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_i -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_ndim -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_endian_detector -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_little_endian -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_t -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - char *__pyx_v_f -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyArray_Descr *__pyx_v_descr = 0 -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_offset -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_hasfields -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_v_info->obj == Py_None) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_2; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L2:; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_descr); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_5; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; +#line 215 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_t_7; +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 + * f[0] = c'\0' # Terminate format string + * + * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__getbuffer__", 0); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +/* Python wrapper */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_v_info->obj); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":203 - * # of flags - * - * if info == NULL: return # <<<<<<<<<<<<<< - * - * cdef int copy_shape, i, ndim - */ +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((__pyx_v_info == NULL) != 0); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; -#line 203 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":206 - * - * cdef int copy_shape, i, ndim - * cdef int endian_detector = 1 # <<<<<<<<<<<<<< - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * - */ +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 206 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_endian_detector = 1; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":207 - * cdef int copy_shape, i, ndim - * cdef int endian_detector = 1 - * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< - * - * ndim = PyArray_NDIM(self) - */ +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 207 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":209 - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * - * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< - * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - */ +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 209 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 - * ndim = PyArray_NDIM(self) +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; + +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__", 0); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":295 * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * copy_shape = 1 - * else: + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); +#line 295 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 295 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":212 - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":296 + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) # <<<<<<<<<<<<<< * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * copy_shape = 1 # <<<<<<<<<<<<<< - * else: - * copy_shape = 0 + * PyObject_Free(info.strides) */ -#line 212 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_copy_shape = 1; +#line 296 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject_Free(__pyx_v_info->format); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211 - * ndim = PyArray_NDIM(self) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":295 * - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * copy_shape = 1 - * else: + * def __releasebuffer__(ndarray self, Py_buffer* info): + * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L4; - -#line 211 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 295 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":214 - * copy_shape = 1 - * else: - * copy_shape = 0 # <<<<<<<<<<<<<< - * - * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297 + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * PyObject_Free(info.strides) + * # info.shape was stored after info.strides in the same block */ -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { - -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_copy_shape = 0; - -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 297 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); -#line 214 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L4:; +#line 297 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216 - * copy_shape = 0 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":298 + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * PyObject_Free(info.strides) # <<<<<<<<<<<<<< + * # info.shape was stored after info.strides in the same block * - * 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") */ -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0); - -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { - -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { - -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; - -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L6_bool_binop_done; +#line 298 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject_Free(__pyx_v_info->strides); -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297 + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) + * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< + * PyObject_Free(info.strides) + * # info.shape was stored after info.strides in the same block + */ - /* "../../.local/lib/python2.7/site-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") +#line 297 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 + * f[0] = c'\0' # Terminate format string * + * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< + * if PyArray_HASFIELDS(self): + * PyObject_Free(info.format) */ -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0); +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; -#line 217 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L6_bool_binop_done:; +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-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") - */ +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 294 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-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") # <<<<<<<<<<<<<< +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":775 + * ctypedef npy_cdouble complex_t + * + * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(1, a) * - * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 218, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 218, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-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") - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 216 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220 - * raise ValueError(u"ndarray is not C contiguous") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 * - * 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") + * cdef inline object PyArray_MultiIterNew1(a): + * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew2(a, b): */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0); +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 776, __pyx_L1_error) -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L9_bool_binop_done; +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 776 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":221 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":775 + * ctypedef npy_cdouble complex_t * - * 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") + * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(1, a) * */ -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0); - -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 221 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L9_bool_binop_done:; - /* "../../.local/lib/python2.7/site-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") - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; - /* "../../.local/lib/python2.7/site-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) - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 222, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 222, __pyx_L1_error) +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); - /* "../../.local/lib/python2.7/site-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") - */ +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 220 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 775 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":224 - * raise ValueError(u"ndarray is not Fortran contiguous") +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778 + * return PyArray_MultiIterNew(1, a) * - * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< - * info.ndim = ndim - * if copy_shape: - */ - -#line 224 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":225 + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, b) * - * info.buf = PyArray_DATA(self) - * info.ndim = ndim # <<<<<<<<<<<<<< - * if copy_shape: - * # Allocate new buffer for strides and shape info. */ -#line 225 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->ndim = __pyx_v_ndim; - - /* "../../.local/lib/python2.7/site-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. - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (__pyx_v_copy_shape != 0); -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { - /* "../../.local/lib/python2.7/site-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 = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) # <<<<<<<<<<<<<< - * info.shape = info.strides + ndim - * for i in range(ndim): - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 229 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2))); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":230 - * # This is allocated as one block, strides first. - * info.strides = stdlib.malloc(sizeof(Py_ssize_t) * ndim * 2) - * info.shape = info.strides + ndim # <<<<<<<<<<<<<< - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 230 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":231 - * info.strides = stdlib.malloc(sizeof(Py_ssize_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] + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 + * + * cdef inline object PyArray_MultiIterNew2(a, b): + * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): */ -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __pyx_v_ndim; +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 779, __pyx_L1_error) -#line 231 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_i = __pyx_t_5; +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":232 - * info.shape = info.strides + ndim - * for i in range(ndim): - * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< - * info.shape[i] = PyArray_DIMS(self)[i] - * else: - */ +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 232 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; - /* "../../.local/lib/python2.7/site-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] # <<<<<<<<<<<<<< - * else: - * info.strides = PyArray_STRIDES(self) +#line 779 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778 + * return PyArray_MultiIterNew(1, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, b) + * */ -#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 233 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } - /* "../../.local/lib/python2.7/site-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. - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L11; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 226 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":235 - * info.shape[i] = PyArray_DIMS(self)[i] - * else: - * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 235 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":236 - * else: - * info.strides = PyArray_STRIDES(self) - * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) - */ +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 236 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L11:; +#line 778 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":237 - * info.strides = PyArray_STRIDES(self) - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL # <<<<<<<<<<<<<< - * info.itemsize = PyArray_ITEMSIZE(self) - * info.readonly = not PyArray_ISWRITEABLE(self) +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":781 + * return PyArray_MultiIterNew(2, a, b) + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, c) + * */ -#line 237 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->suboffsets = NULL; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":238 - * info.shape = PyArray_DIMS(self) - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< - * info.readonly = not PyArray_ISWRITEABLE(self) - * - */ -#line 238 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":239 - * info.suboffsets = NULL - * info.itemsize = PyArray_ITEMSIZE(self) - * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< - * - * cdef int t - */ +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 239 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":242 - * - * cdef int t - * cdef char* f = NULL # <<<<<<<<<<<<<< - * cdef dtype descr = self.descr - * cdef int offset - */ +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 242 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = NULL; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":243 - * cdef int t - * cdef char* f = NULL - * cdef dtype descr = self.descr # <<<<<<<<<<<<<< - * cdef int offset + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): + * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): */ -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = ((PyObject *)__pyx_v_self->descr); +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_3); +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 782, __pyx_L1_error) -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); + +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; + +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 243 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 782 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":246 - * cdef int offset + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":781 + * return PyArray_MultiIterNew(2, a, b) * - * cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<< + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, c) * - * if not hasfields and not copy_shape: */ -#line 246 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 - * cdef bint hasfields = PyDataType_HASFIELDS(descr) - * - * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< - * # do not call releasebuffer - * info.obj = None - */ -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15_bool_binop_done; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0); +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L15_bool_binop_done:; +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 781 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":250 - * if not hasfields and not copy_shape: - * # do not call releasebuffer - * info.obj = None # <<<<<<<<<<<<<< - * else: - * # need to call releasebuffer +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784 + * return PyArray_MultiIterNew(3, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, d) + * */ -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(Py_None); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(Py_None); -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; + +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations + +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 250 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = Py_None; +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248 - * cdef bint hasfields = PyDataType_HASFIELDS(descr) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): + * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< * - * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< - * # do not call releasebuffer - * info.obj = None + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): */ -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L14; +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 248 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(2, 785, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":253 - * else: - * # need to call releasebuffer - * info.obj = self # <<<<<<<<<<<<<< +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); + +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; + +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; + +#line 785 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784 + * return PyArray_MultiIterNew(3, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, d) * - * if not hasfields: */ -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_self)); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->obj = ((PyObject *)__pyx_v_self); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 253 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L14:; +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 - * info.obj = self - * - * if not hasfields: # <<<<<<<<<<<<<< - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or - */ +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); + +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0); +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 784 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":256 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":787 + * return PyArray_MultiIterNew(4, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, e) * - * if not hasfields: - * t = descr.type_num # <<<<<<<<<<<<<< - * if ((descr.byteorder == c'>' and little_endian) or - * (descr.byteorder == c'<' and not little_endian)): */ -#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __pyx_v_descr->type_num; - -#line 256 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_t = __pyx_t_4; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* "../../.local/lib/python2.7/site-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)): - * raise ValueError(u"Non-native byte order not supported") - */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0); +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_2) { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L20_next_or; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (__pyx_v_little_endian != 0); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":788 + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): + * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< + * + * cdef inline tuple PyDataType_SHAPE(dtype d): + */ -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_2) { +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(2, 788, __pyx_L1_error) -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L19_bool_binop_done; +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_t_1; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = 0; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L20_next_or:; +#line 788 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":787 + * return PyArray_MultiIterNew(4, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * */ -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0); +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L19_bool_binop_done; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_t_2; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 258 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L19_bool_binop_done:; +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); - /* "../../.local/lib/python2.7/site-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)): - * raise ValueError(u"Non-native byte order not supported") - */ +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 - * 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" +#line 787 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} + +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * + * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< + * if PyDataType_HASSUBARRAY(d): + * return d.subarray.shape */ -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 259, __pyx_L1_error) +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) { -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 259, __pyx_L1_error) +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-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)): - * raise ValueError(u"Non-native byte order not supported") - */ +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 257 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":260 - * (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" - * elif t == NPY_SHORT: f = "h" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 + * + * cdef inline tuple PyDataType_SHAPE(dtype d): + * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< + * return d.subarray.shape + * else: */ -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - switch (__pyx_v_t) { - -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_BYTE: - -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"b"); +#line 791 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0); -#line 260 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 791 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":261 - * raise ValueError(u"Non-native byte order not supported") - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":792 + * cdef inline tuple PyDataType_SHAPE(dtype d): + * if PyDataType_HASSUBARRAY(d): + * return d.subarray.shape # <<<<<<<<<<<<<< + * else: + * return () */ -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_UBYTE: - -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"B"); +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 261 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape)); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":262 - * if t == NPY_BYTE: f = "b" - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" - */ +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_SHORT: +#line 792 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"h"); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 + * + * cdef inline tuple PyDataType_SHAPE(dtype d): + * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< + * return d.subarray.shape + * else: + */ -#line 262 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 791 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 - * elif t == NPY_UBYTE: f = "B" - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 + * return d.subarray.shape + * else: + * return () # <<<<<<<<<<<<<< + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: */ -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_USHORT: - -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"H"); +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 263 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":264 - * elif t == NPY_SHORT: f = "h" - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" - */ +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_empty_tuple); -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_INT: +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_empty_tuple; -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"i"); +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 264 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 794 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 - * elif t == NPY_USHORT: f = "H" - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 + * return PyArray_MultiIterNew(5, a, b, c, d, e) + * + * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< + * if PyDataType_HASSUBARRAY(d): + * return d.subarray.shape */ -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_UINT: +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"I"); -#line 265 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 - * elif t == NPY_INT: f = "i" - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" - */ +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONG: +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"l"); +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); + +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 266 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 790 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":267 - * elif t == NPY_UINT: f = "I" - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 + * return () + * + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< + * # Recursive utility function used in __getbuffer__ to get format + * # string. The new location in the format string is returned. */ -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_ULONG: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"L"); -#line 267 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) { + PyArray_Descr *__pyx_v_child = 0 +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_endian_detector +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + int __pyx_v_little_endian +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_fields = 0 +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_childname = NULL +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_new_offset = NULL +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; + PyObject *__pyx_v_t = NULL +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 - * elif t == NPY_LONG: f = "l" - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_r; -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONGLONG: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"q"); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 268 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t __pyx_t_2; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":269 - * elif t == NPY_ULONG: f = "L" - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_ULONGLONG: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_4 = NULL; -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Q"); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_5; -#line 269 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_6; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 - * elif t == NPY_LONGLONG: f = "q" - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_7; -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_FLOAT: +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + long __pyx_t_8; -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"f"); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + char *__pyx_t_9; -#line 270 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("_util_dtypestring", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 - * elif t == NPY_ULONGLONG: f = "Q" - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 + * + * cdef dtype child + * cdef int endian_detector = 1 # <<<<<<<<<<<<<< + * cdef bint little_endian = ((&endian_detector)[0] != 0) + * cdef tuple fields */ -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_DOUBLE: +#line 801 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_endian_detector = 1; -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"d"); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 + * cdef dtype child + * cdef int endian_detector = 1 + * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< + * cdef tuple fields + * + */ -#line 271 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 802 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 - * elif t == NPY_FLOAT: f = "f" - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805 + * cdef tuple fields + * + * for childname in descr.names: # <<<<<<<<<<<<<< + * fields = descr.fields[childname] + * child, new_offset = fields */ -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_LONGDOUBLE: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_v_descr->names == Py_None)) { -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"g"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); -#line 272 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 805, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":273 - * elif t == NPY_DOUBLE: f = "d" - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" - */ +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CFLOAT: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zf"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + for (;;) { -#line 273 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 - * elif t == NPY_LONGDOUBLE: f = "g" - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< - * elif t == NPY_CLONGDOUBLE: f = "Zg" - * elif t == NPY_OBJECT: f = "O" - */ +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CDOUBLE: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(2, 805, __pyx_L1_error) -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zd"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else -#line 274 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 805, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 - * elif t == NPY_CFLOAT: f = "Zf" - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< - * elif t == NPY_OBJECT: f = "O" - * else: - */ +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_CLONGDOUBLE: +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"Zg"); +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); -#line 275 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 - * elif t == NPY_CDOUBLE: f = "Zd" - * elif t == NPY_CLONGDOUBLE: f = "Zg" - * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":806 + * + * for childname in descr.names: + * fields = descr.fields[childname] # <<<<<<<<<<<<<< + * child, new_offset = fields + * */ -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - case NPY_OBJECT: +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_v_descr->fields == Py_None)) { -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = ((char *)"O"); +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 806, __pyx_L1_error) -#line 276 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - default: +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 - * elif t == NPY_OBJECT: f = "O" - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< - * info.format = f - * return - */ +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 806, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + 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_ERR(2, 806, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 806 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":807 + * for childname in descr.names: + * fields = descr.fields[childname] + * child, new_offset = fields # <<<<<<<<<<<<<< + * + * if (end - f) - (new_offset - offset[0]) < 15: + */ -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (likely(__pyx_v_fields != Py_None)) { -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject* sequence = __pyx_v_fields; -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_ssize_t size = __Pyx_PySequence_SIZE(sequence); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(size != 2)) { -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (size > 2) __Pyx_RaiseTooManyValuesError(2); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 807, __pyx_L1_error) -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_6, 0, 0, 0); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 278, __pyx_L1_error) +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - break; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_3); -#line 278 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(__pyx_t_4); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * info.format = f # <<<<<<<<<<<<<< - * return - * else: - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #else -#line 279 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->format = __pyx_v_f; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 807, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * info.format = f - * return # <<<<<<<<<<<<<< - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 807, __pyx_L1_error) -#line 280 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255 - * info.obj = self - * - * if not hasfields: # <<<<<<<<<<<<<< - * t = descr.type_num - * if ((descr.byteorder == c'>' and little_endian) or - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + #endif -#line 255 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":282 - * return - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(2, 807, __pyx_L1_error) -#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 282 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_info->format = ((char *)malloc(0xFF)); +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(2, 807, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 - * else: - * info.format = stdlib.malloc(_buffer_format_string_len) - * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< - * offset = 0 - * f = _util_dtypestring(descr, info.format + 1, - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3)); -#line 283 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_info->format[0]) = '^'; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 - * info.format = stdlib.malloc(_buffer_format_string_len) - * info.format[0] = c'^' # Native data types, manual alignment - * offset = 0 # <<<<<<<<<<<<<< - * f = _util_dtypestring(descr, info.format + 1, - * info.format + _buffer_format_string_len, - */ +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); -#line 284 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_offset = 0; +#line 807 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":285 - * 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) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809 + * child, new_offset = fields + * + * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + * */ -#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) __PYX_ERR(3, 285, __pyx_L1_error) - -#line 285 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = __pyx_t_7; +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 809, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288 - * info.format + _buffer_format_string_len, - * &offset) - * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< - * - * def __releasebuffer__(ndarray self, Py_buffer* info): - */ +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = '\x00'; +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 809, __pyx_L1_error) -#line 288 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-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): # <<<<<<<<<<<<<< - * # This implementation of getbuffer is geared towards Cython - * # requirements, and does not yet fullfill the PEP. - */ +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 809, __pyx_L1_error) +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_6)) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":810 + * + * if (end - f) - (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 + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 810, __pyx_L1_error) -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 810, __pyx_L1_error) -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809 + * child, new_offset = fields + * + * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + * + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_v_info->obj); +#line 809 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 + * 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") + */ -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L2; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_7) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_next_or; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(Py_None); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = (__pyx_v_little_endian != 0); -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_7) { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L2:; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_descr); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 197 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_next_or:; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 - * f[0] = c'\0' # Terminate format string + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 * - * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) + * 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 */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -/* Python wrapper */ +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_7) { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } else { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L7_bool_binop_done; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __pyx_t_7; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 813 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L7_bool_binop_done:; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 + * 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") + */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_6)) { -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 + * 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 + */ +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 814, __pyx_L1_error) -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_3, 0, 0, 0); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("__releasebuffer__", 0); +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 814, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 + * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): + * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< + * (child.byteorder == c'<' and not little_endian)): + * raise ValueError(u"Non-native byte order not supported") */ -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); - -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 812 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) # <<<<<<<<<<<<<< - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * stdlib.free(info.strides) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824 + * + * # Output padding bytes + * while offset[0] < new_offset: # <<<<<<<<<<<<<< + * f[0] = 120 # "x"; pad byte + * f += 1 */ -#line 292 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - free(__pyx_v_info->format); +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + while (1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 - * - * def __releasebuffer__(ndarray self, Py_buffer* info): - * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - */ +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 824, __pyx_L1_error) -#line 291 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * stdlib.free(info.strides) - * # info.shape was stored after info.strides in the same block - */ +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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_ERR(2, 824, __pyx_L1_error) -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 824, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":294 - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): - * stdlib.free(info.strides) # <<<<<<<<<<<<<< - * # info.shape was stored after info.strides in the same block - * - */ +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 294 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - free(__pyx_v_info->strides); +#line 824 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (!__pyx_t_6) break; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) - * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< - * stdlib.free(info.strides) - * # info.shape was stored after info.strides in the same block + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":825 + * # Output padding bytes + * while offset[0] < new_offset: + * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< + * f += 1 + * offset[0] += 1 */ -#line 293 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 825 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x78; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 - * f[0] = c'\0' # Terminate format string + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":826 + * while offset[0] < new_offset: + * f[0] = 120 # "x"; pad byte + * f += 1 # <<<<<<<<<<<<<< + * offset[0] += 1 * - * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< - * if PyArray_HASFIELDS(self): - * stdlib.free(info.format) */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 826 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 + * f[0] = 120 # "x"; pad byte + * f += 1 + * offset[0] += 1 # <<<<<<<<<<<<<< + * + * offset[0] += child.itemsize + */ -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 827 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = 0; -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 827 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); -#line 290 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 827 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 - * ctypedef npy_cdouble complex_t + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":829 + * offset[0] += 1 * - * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(1, a) + * offset[0] += child.itemsize # <<<<<<<<<<<<<< * + * if not PyDataType_HASFIELDS(child): */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { +#line 829 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = 0; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 829 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 + * offset[0] += child.itemsize + * + * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< + * t = child.type_num + * if end - f < 5: + */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771 - * - * cdef inline object PyArray_MultiIterNew1(a): - * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":832 * - * cdef inline object PyArray_MultiIterNew2(a, b): + * if not PyDataType_HASFIELDS(child): + * t = child.type_num # <<<<<<<<<<<<<< + * if end - f < 5: + * raise RuntimeError(u"Format string allocated too short.") */ -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); - -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 771, __pyx_L1_error) - -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 832, __pyx_L1_error) -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); -#line 771 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 832 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770 - * ctypedef npy_cdouble complex_t - * - * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(1, a) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 + * if not PyDataType_HASFIELDS(child): + * t = child.type_num + * if end - f < 5: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short.") * */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 833 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 833 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (unlikely(__pyx_t_6)) { -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 + * 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 + */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 834, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_4, 0, 0, 0); -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 834, __pyx_L1_error) -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 + * if not PyDataType_HASFIELDS(child): + * t = child.type_num + * if end - f < 5: # <<<<<<<<<<<<<< + * raise RuntimeError(u"Format string allocated too short.") + * + */ -#line 770 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 833 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 - * return PyArray_MultiIterNew(1, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, b) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 * + * # 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" */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 837, __pyx_L1_error) +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { - -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 837, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 837, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774 - * - * cdef inline object PyArray_MultiIterNew2(a, b): - * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): - */ +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 98; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 774, __pyx_L1_error) +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 837 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 + * # 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" + */ -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 838, __pyx_L1_error) -#line 774 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773 - * return PyArray_MultiIterNew(1, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, b) - * - */ +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 838, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 838, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 66; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 838 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":839 + * 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" + */ -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 839, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 839, __pyx_L1_error) -#line 773 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 - * return PyArray_MultiIterNew(2, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, c) - * - */ +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 839, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x68; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 839 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 + * 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" + */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 840, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777 - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): - * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): - */ +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 840, __pyx_L1_error) -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 777, __pyx_L1_error) +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 840, __pyx_L1_error) -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 777 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 72; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 - * return PyArray_MultiIterNew(2, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, c) - * - */ +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 840 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":841 + * 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" + */ -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 841, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 841, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 841, __pyx_L1_error) -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x69; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 776 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 841 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 - * return PyArray_MultiIterNew(3, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, d) - * + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 + * 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" */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 842, __pyx_L1_error) +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { - -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 842, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 842, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780 - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): - * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): - */ +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 73; -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(3, 780, __pyx_L1_error) +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 842 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":843 + * 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" + */ -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 843, __pyx_L1_error) -#line 780 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 - * return PyArray_MultiIterNew(3, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, d) - * - */ +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 843, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 843, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x6C; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 843 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":844 + * 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" + */ -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 844, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 844, __pyx_L1_error) -#line 779 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 - * return PyArray_MultiIterNew(4, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - */ +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 844, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 76; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 844 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":845 + * 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" + */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 845, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783 - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): - * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< - * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: - */ +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 845, __pyx_L1_error) -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(3, 783, __pyx_L1_error) +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_1); +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 845, __pyx_L1_error) -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_t_1; +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = 0; +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 783 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x71; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782 - * return PyArray_MultiIterNew(4, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - */ +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 845 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":846 + * 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" + */ -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 846, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 846, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 846, __pyx_L1_error) -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 81; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 782 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 846 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 - * return PyArray_MultiIterNew(5, a, b, c, d, e) - * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< - * # Recursive utility function used in __getbuffer__ to get format - * # string. The new location in the format string is returned. + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":847 + * 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" */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 847, __pyx_L1_error) +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) { - PyArray_Descr *__pyx_v_child = 0 -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_endian_detector -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - int __pyx_v_little_endian -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_fields = 0 -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_childname = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_new_offset = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - PyObject *__pyx_v_t = NULL -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 847, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_r; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 847, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t __pyx_t_2; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x66; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_4 = NULL; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_5; +#line 847 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_6; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":848 + * 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 + */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_7; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 848, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - long __pyx_t_8; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - char *__pyx_t_9; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 848, __pyx_L1_error) -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("_util_dtypestring", 0); +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 - * - * cdef dtype child - * cdef int endian_detector = 1 # <<<<<<<<<<<<<< - * cdef bint little_endian = ((&endian_detector)[0] != 0) - * cdef tuple fields - */ +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 848, __pyx_L1_error) -#line 790 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_endian_detector = 1; +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 - * cdef dtype child - * cdef int endian_detector = 1 - * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< - * cdef tuple fields - * - */ +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 791 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x64; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 - * cdef tuple fields - * - * for childname in descr.names: # <<<<<<<<<<<<<< - * fields = descr.fields[childname] - * child, new_offset = fields - */ +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(__pyx_v_descr->names == Py_None)) { +#line 848 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":849 + * 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 + */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 794, __pyx_L1_error) +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 849, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 849, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - for (;;) { +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 849, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(3, 794, __pyx_L1_error) +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 0x67; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 794, __pyx_L1_error) +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 849 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":850 + * 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 + */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 850, __pyx_L1_error) -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":795 - * - * for childname in descr.names: - * fields = descr.fields[childname] # <<<<<<<<<<<<<< - * child, new_offset = fields - * - */ +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 850, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(__pyx_v_descr->fields == Py_None)) { +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 850, __pyx_L1_error) -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 795, __pyx_L1_error) +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 795, __pyx_L1_error) +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x66; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - 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_ERR(3, 795, __pyx_L1_error) +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 795 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 850 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 - * for childname in descr.names: - * fields = descr.fields[childname] - * child, new_offset = fields # <<<<<<<<<<<<<< - * - * if (end - f) - (new_offset - offset[0]) < 15: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851 + * 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" */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (likely(__pyx_v_fields != Py_None)) { +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 851, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject* sequence = __pyx_v_fields; +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if !CYTHON_COMPILING_IN_PYPY +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 851, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t size = Py_SIZE(sequence); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 851, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_ssize_t size = PySequence_Size(sequence); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (unlikely(size != 2)) { +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (size > 2) __Pyx_RaiseTooManyValuesError(2); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x64; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 796, __pyx_L1_error) +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 851 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":852 + * 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: + */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 852, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_3); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 852, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(__pyx_t_4); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #else +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 852, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 796, __pyx_L1_error) +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_6) { -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 796, __pyx_L1_error) +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 90; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[1]) = 0x67; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - #endif +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(3, 796, __pyx_L1_error) +#line 852 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":853 + * 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) + */ -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(3, 796, __pyx_L1_error) +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 853, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3)); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 853, __pyx_L1_error) -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 796 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = 0; +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 853, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") - * - */ +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (likely(__pyx_t_6)) { -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 798, __pyx_L1_error) +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + (__pyx_v_f[0]) = 79; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L15; -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 798, __pyx_L1_error) +#line 853 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855 + * elif t == NPY_OBJECT: f[0] = 79 #"O" + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< + * f += 1 + * else: + */ -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 798, __pyx_L1_error) +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 855, __pyx_L1_error) -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_3); -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 855, __pyx_L1_error) -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_4); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 - * - * if (end - f) - (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 - */ +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 799, __pyx_L1_error) +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_4, 0, 0, 0); -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 855, __pyx_L1_error) + +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 855 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L15:; -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856 + * else: + * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) + * f += 1 # <<<<<<<<<<<<<< + * else: + * # Cython ignores struct boundary information ("T{...}"), + */ -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 799, __pyx_L1_error) +#line 856 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = (__pyx_v_f + 1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 + * offset[0] += child.itemsize * + * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< + * t = child.type_num + * if end - f < 5: */ -#line 798 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L13; + +#line 831 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":860 + * # Cython ignores struct boundary information ("T{...}"), + * # so don't output it + * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< + * return f * - * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< - * (child.byteorder == c'<' and not little_endian)): - * raise ValueError(u"Non-native byte order not supported") */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0); - -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_7) { +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L8_next_or; +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __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 == ((char *)NULL))) __PYX_ERR(2, 860, __pyx_L1_error) -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_f = __pyx_t_9; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = (__pyx_v_little_endian != 0); +#line 860 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L13:; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_7) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805 + * cdef tuple fields + * + * for childname in descr.names: # <<<<<<<<<<<<<< + * fields = descr.fields[childname] + * child, new_offset = fields + */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 805 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L7_bool_binop_done; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":861 + * # so don't output it + * f = _util_dtypestring(child, f, end, offset) + * return f # <<<<<<<<<<<<<< + * + * + */ -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 861 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = __pyx_v_f; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L8_next_or:; +#line 861 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":796 + * return () * - * 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 + * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< + * # Recursive utility function used in __getbuffer__ to get format + * # string. The new location in the format string is returned. */ -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0); - -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_7) { +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } else { -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L7_bool_binop_done; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __pyx_t_7; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_4); -#line 802 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L7_bool_binop_done:; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * 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") - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = NULL; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803 - * 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 - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_child); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 803, __pyx_L1_error) +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_fields); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_childname); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_new_offset); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_v_t); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 803, __pyx_L1_error) +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 - * 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") - */ +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 801 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 796 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 * - * # Output padding bytes - * while offset[0] < new_offset: # <<<<<<<<<<<<<< - * f[0] = 120 # "x"; pad byte - * f += 1 + * + * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< + * cdef PyObject* baseptr + * if base is None: */ -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - while (1) { - -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 813, __pyx_L1_error) +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(3, 813, __pyx_L1_error) +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { + PyObject *__pyx_v_baseptr +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 813, __pyx_L1_error) +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_2; -#line 813 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (!__pyx_t_6) break; +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("set_array_base", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 - * # Output padding bytes - * while offset[0] < new_offset: - * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< - * f += 1 - * offset[0] += 1 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":979 + * cdef inline void set_array_base(ndarray arr, object base): + * cdef PyObject* baseptr + * if base is None: # <<<<<<<<<<<<<< + * baseptr = NULL + * else: */ -#line 814 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x78; +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = (__pyx_v_base == Py_None); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":815 - * while offset[0] < new_offset: - * f[0] = 120 # "x"; pad byte - * f += 1 # <<<<<<<<<<<<<< - * offset[0] += 1 - * - */ +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_2 = (__pyx_t_1 != 0); -#line 815 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_2) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":816 - * f[0] = 120 # "x"; pad byte - * f += 1 - * offset[0] += 1 # <<<<<<<<<<<<<< - * - * offset[0] += child.itemsize + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":980 + * cdef PyObject* baseptr + * if base is None: + * baseptr = NULL # <<<<<<<<<<<<<< + * else: + * Py_INCREF(base) # important to do this before decref below! */ -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = 0; - -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); - -#line 816 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 980 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_baseptr = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":818 - * offset[0] += 1 - * - * offset[0] += child.itemsize # <<<<<<<<<<<<<< - * - * if not PyDataType_HASFIELDS(child): + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":979 + * cdef inline void set_array_base(ndarray arr, object base): + * cdef PyObject* baseptr + * if base is None: # <<<<<<<<<<<<<< + * baseptr = NULL + * else: */ -#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = 0; +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L3; -#line 818 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); +#line 979 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 - * offset[0] += child.itemsize - * - * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< - * t = child.type_num - * if end - f < 5: + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":982 + * baseptr = NULL + * else: + * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< + * baseptr = base + * Py_XDECREF(arr.base) */ -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); +#line 982 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 982 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_INCREF(__pyx_v_base); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 - * - * if not PyDataType_HASFIELDS(child): - * t = child.type_num # <<<<<<<<<<<<<< - * if end - f < 5: - * raise RuntimeError(u"Format string allocated too short.") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":983 + * else: + * Py_INCREF(base) # important to do this before decref below! + * baseptr = base # <<<<<<<<<<<<<< + * Py_XDECREF(arr.base) + * arr.base = baseptr */ -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 821, __pyx_L1_error) - -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 983 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_baseptr = ((PyObject *)__pyx_v_base); -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); +#line 983 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 821 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = 0; +#line 983 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 - * if not PyDataType_HASFIELDS(child): - * t = child.type_num - * if end - f < 5: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short.") + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":984 + * Py_INCREF(base) # important to do this before decref below! + * baseptr = base + * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< + * arr.base = baseptr * */ -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); - -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 984 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + Py_XDECREF(__pyx_v_arr->base); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823 - * t = child.type_num - * if end - f < 5: - * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 + * baseptr = base + * Py_XDECREF(arr.base) + * arr.base = baseptr # <<<<<<<<<<<<<< * - * # Until ticket #99 is fixed, use integers to avoid warnings + * cdef inline object get_array_base(ndarray arr): */ -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 823, __pyx_L1_error) +#line 985 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_v_arr->base = __pyx_v_baseptr; -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + * + * + * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< + * cdef PyObject* baseptr + * if base is None: + */ -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_4, 0, 0, 0); +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 823, __pyx_L1_error) +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 - * if not PyDataType_HASFIELDS(child): - * t = child.type_num - * if end - f < 5: # <<<<<<<<<<<<<< - * raise RuntimeError(u"Format string allocated too short.") - * - */ +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 822 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 977 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":826 +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 + * arr.base = baseptr * - * # 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" + * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< + * if arr.base is NULL: + * return None */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 826, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 826, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_r = NULL; -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 826, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_1; -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("get_array_base", 0); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 98; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 + * + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: # <<<<<<<<<<<<<< + * return None + * else: + */ -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 988 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0); -#line 826 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 988 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 - * # 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: + * return None # <<<<<<<<<<<<<< + * else: + * return arr.base */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 827, __pyx_L1_error) +#line 989 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 989 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = Py_None; __Pyx_INCREF(Py_None); -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 827, __pyx_L1_error) +#line 989 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 + * + * cdef inline object get_array_base(ndarray arr): + * if arr.base is NULL: # <<<<<<<<<<<<<< + * return None + * else: + */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 827, __pyx_L1_error) +#line 988 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 + * return None + * else: + * return arr.base # <<<<<<<<<<<<<< + * + * + */ -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*else*/ { -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 66; +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_r); -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); -#line 827 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = ((PyObject *)__pyx_v_arr->base); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":828 - * 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" - */ +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 828, __pyx_L1_error) +#line 991 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 + * arr.base = baseptr + * + * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< + * if arr.base is NULL: + * return None + */ -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 828, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 828, __pyx_L1_error) +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_r); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x68; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 828 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 987 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":829 - * 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" +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":996 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() */ -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 829, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 829, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 829, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 72; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 829 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 - * 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" - */ +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 830, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 830, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_array", 0); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 830, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x69; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 830 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 - * 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" - */ +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 831, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + * cdef inline int import_array() except -1: + * try: + * _import_array() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") + */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 831, __pyx_L1_error) +#line 998 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 998, __pyx_L3_error) -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 831, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 73; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_try_end; -#line 831 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":832 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":999 + * try: + * _import_array() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.multiarray failed to import") + * */ -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 832, __pyx_L1_error) +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 832, __pyx_L1_error) +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 999, __pyx_L5_except_error) -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 832, __pyx_L1_error) +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 999 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x6C; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 + * _import_array() + * except Exception: + * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_umath() except -1: + */ -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1000, __pyx_L5_except_error) -#line 832 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 - * 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" - */ +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 833, __pyx_L1_error) +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 1000, __pyx_L5_except_error) -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 833, __pyx_L1_error) +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 833, __pyx_L1_error) +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 + * # Cython code. + * cdef inline int import_array() except -1: + * try: # <<<<<<<<<<<<<< + * _import_array() + * except Exception: + */ -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 76; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 833 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 - * 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" - */ +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 834, __pyx_L1_error) +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_try_end:; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 997 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":996 + * # Versions of the import_* functions which are more suitable for + * # Cython code. + * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< + * try: + * _import_array() + */ -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 834, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 834, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ + +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x71; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 834 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":835 - * 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" - */ +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 835, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 835, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 835, __pyx_L1_error) +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 996 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1002 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 81; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; -#line 835 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 - * 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" - */ +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 836, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 836, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 836, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x66; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; -#line 836 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_umath", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 - * 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 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1003 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 837, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 837, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 837, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x64; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1004 + * cdef inline int import_umath() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") + */ -#line 837 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1004 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1004, __pyx_L3_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 - * 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 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1003 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 838, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 838, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 838, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_try_end; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1005 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") + * + */ -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 0x67; +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 838 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":839 - * 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 - */ +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1005, __pyx_L5_except_error) -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 839, __pyx_L1_error) +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 839, __pyx_L1_error) +#line 1005 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1006 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + * + * cdef inline int import_ufunc() except -1: + */ -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 839, __pyx_L1_error) +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1006, __pyx_L5_except_error) -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x66; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 1006, __pyx_L5_except_error) -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; -#line 839 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 - * 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" + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1003 + * + * cdef inline int import_umath() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 840, __pyx_L1_error) - -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 840, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 840, __pyx_L1_error) +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_try_end:; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 1003 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x64; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1002 + * raise ImportError("numpy.core.multiarray failed to import") + * + * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() + */ -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; -#line 840 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":841 - * 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: - */ +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 841, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 841, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 841, __pyx_L1_error) +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 90; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[1]) = 0x67; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyFinishContext(); -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + return __pyx_r; -#line 841 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1002 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 - * 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) +/* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1008 + * raise ImportError("numpy.core.umath failed to import") + * + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 842, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 842, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" +static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_r; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 842, __pyx_L1_error) +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannyDeclarations -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_1 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_6) { +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_2 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - (__pyx_v_f[0]) = 79; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_3 = NULL; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L15; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + int __pyx_t_4; -#line 842 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_5 = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":844 - * elif t == NPY_OBJECT: f[0] = 79 #"O" - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< - * f += 1 - * else: +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_6 = NULL; + +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_7 = NULL; + +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + PyObject *__pyx_t_8 = NULL; + +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_RefNannySetupContext("import_ufunc", 0); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1009 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + { -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 844, __pyx_L1_error) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_declare -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_PyThreadState_assign -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 844, __pyx_L1_error) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_4); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_1); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GIVEREF(__pyx_t_3); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_2); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGOTREF(__pyx_t_3); -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + /*try:*/ { -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 844, __pyx_L1_error) + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1010 + * cdef inline int import_ufunc() except -1: + * try: + * _import_umath() # <<<<<<<<<<<<<< + * except Exception: + * raise ImportError("numpy.core.umath failed to import") + */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_3); +#line 1010 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1010, __pyx_L3_error) -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1009 + * + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: + */ -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_3, 0, 0, 0); +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 844, __pyx_L1_error) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; -#line 844 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L15:; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L8_try_end; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":845 - * else: - * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) - * f += 1 # <<<<<<<<<<<<<< - * else: - * # Cython ignores struct boundary information ("T{...}"), +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L3_error:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1011 + * try: + * _import_umath() + * except Exception: # <<<<<<<<<<<<<< + * raise ImportError("numpy.core.umath failed to import") */ -#line 845 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = (__pyx_v_f + 1); +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820 - * offset[0] += child.itemsize - * - * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< - * t = child.type_num - * if end - f < 5: - */ +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__pyx_t_4) { -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L13; +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 820 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1011, __pyx_L5_except_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":849 - * # Cython ignores struct boundary information ("T{...}"), - * # so don't output it - * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< - * return f - * +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_5); + +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_6); + +#line 1011 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_7); + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1012 + * _import_umath() + * except Exception: + * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1012, __pyx_L5_except_error) -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __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_ERR(3, 849, __pyx_L1_error) +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_GOTREF(__pyx_t_8); -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_f = __pyx_t_9; +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_Raise(__pyx_t_8, 0, 0, 0); + +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __PYX_ERR(2, 1012, __pyx_L5_except_error) -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -#line 849 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L13:; +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L5_except_error; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794 - * cdef tuple fields +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L5_except_error:; + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1009 * - * for childname in descr.names: # <<<<<<<<<<<<<< - * fields = descr.fields[childname] - * child, new_offset = fields + * cdef inline int import_ufunc() except -1: + * try: # <<<<<<<<<<<<<< + * _import_umath() + * except Exception: */ -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_1); -#line 794 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_2); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":850 - * # so don't output it - * f = _util_dtypestring(child, f, end, offset) - * return f # <<<<<<<<<<<<<< - * - * - */ +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XGIVEREF(__pyx_t_3); -#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = __pyx_v_f; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); -#line 850 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L1_error; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 - * return PyArray_MultiIterNew(5, a, b, c, d, e) +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L8_try_end:; + +#line 1009 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + } + + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1008 + * raise ImportError("numpy.core.umath failed to import") * - * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< - * # Recursive utility function used in __getbuffer__ to get format - * # string. The new location in the format string is returned. + * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< + * try: + * _import_umath() */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" /* function exit code */ -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; - -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); - -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = 0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_4); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + goto __pyx_L0; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L1_error:; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = NULL; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_5); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_6); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF((PyObject *)__pyx_v_child); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_7); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_fields); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_XDECREF(__pyx_t_8); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_childname); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_new_offset); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_r = -1; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_v_t); +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_L0:; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_RefNannyFinishContext(); -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" return __pyx_r; -#line 785 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1008 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 - * +/* "array.pxd":93 + * __data_union data * - * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< - * cdef PyObject* baseptr - * if base is None: - */ - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { - PyObject *__pyx_v_baseptr -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -; - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_2; - -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("set_array_base", 0); - - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 - * cdef inline void set_array_base(ndarray arr, object base): - * cdef PyObject* baseptr - * if base is None: # <<<<<<<<<<<<<< - * baseptr = NULL - * else: + * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fulfill the PEP. */ -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = (__pyx_v_base == Py_None); - -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_2 = (__pyx_t_1 != 0); +#line 93 "array.pxd" -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_2) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":969 - * cdef PyObject* baseptr - * if base is None: - * baseptr = NULL # <<<<<<<<<<<<<< - * else: - * Py_INCREF(base) # important to do this before decref below! - */ +#line 93 "array.pxd" +/* Python wrapper */ -#line 969 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_baseptr = NULL; +#line 93 "array.pxd" +static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968 - * cdef inline void set_array_base(ndarray arr, object base): - * cdef PyObject* baseptr - * if base is None: # <<<<<<<<<<<<<< - * baseptr = NULL - * else: - */ +#line 93 "array.pxd" +static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L3; +#line 93 "array.pxd" + int __pyx_r; -#line 968 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" + __Pyx_RefNannyDeclarations - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":971 - * baseptr = NULL - * else: - * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< - * baseptr = base - * Py_XDECREF(arr.base) - */ +#line 93 "array.pxd" + __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); + __pyx_r = +#line 93 "array.pxd" +__pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); -#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 93 "array.pxd" -#line 971 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_INCREF(__pyx_v_base); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":972 - * else: - * Py_INCREF(base) # important to do this before decref below! - * baseptr = base # <<<<<<<<<<<<<< - * Py_XDECREF(arr.base) - * arr.base = baseptr - */ +#line 93 "array.pxd" + /* function exit code */ -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_baseptr = ((PyObject *)__pyx_v_base); +#line 93 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" + return __pyx_r; -#line 972 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3:; +#line 93 "array.pxd" +} - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":973 - * Py_INCREF(base) # important to do this before decref below! - * baseptr = base - * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< - * arr.base = baseptr - * - */ +#line 93 "array.pxd" -#line 973 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - Py_XDECREF(__pyx_v_arr->base); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":974 - * baseptr = base - * Py_XDECREF(arr.base) - * arr.base = baseptr # <<<<<<<<<<<<<< - * - * cdef inline object get_array_base(ndarray arr): - */ +#line 93 "array.pxd" +static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { + PyObject *__pyx_v_item_count = NULL +#line 93 "array.pxd" +; -#line 974 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_v_arr->base = __pyx_v_baseptr; +#line 93 "array.pxd" + int __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966 - * - * - * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< - * cdef PyObject* baseptr - * if base is None: - */ +#line 93 "array.pxd" + __Pyx_RefNannyDeclarations -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 93 "array.pxd" + PyObject *__pyx_t_1 = NULL; +#line 93 "array.pxd" + char *__pyx_t_2; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 93 "array.pxd" + int __pyx_t_3; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 93 "array.pxd" + PyObject *__pyx_t_4 = NULL; -#line 966 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 93 "array.pxd" + Py_ssize_t __pyx_t_5; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 - * arr.base = baseptr - * - * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< - * if arr.base is NULL: - * return None - */ +#line 93 "array.pxd" + int __pyx_t_6; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 93 "array.pxd" + if (__pyx_v_info == NULL) { +#line 93 "array.pxd" + PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { +#line 93 "array.pxd" + return -1; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_r = NULL; +#line 93 "array.pxd" + } -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations +#line 93 "array.pxd" + __Pyx_RefNannySetupContext("__getbuffer__", 0); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_1; +#line 93 "array.pxd" + __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("get_array_base", 0); +#line 93 "array.pxd" + __Pyx_GIVEREF(__pyx_v_info->obj); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + /* "array.pxd":98 + * # In particular strided access is always provided regardless + * # of flags + * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< * - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: # <<<<<<<<<<<<<< - * return None - * else: + * info.suboffsets = NULL */ -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0); - -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_1) { +#line 98 "array.pxd" + __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 98, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":978 - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: - * return None # <<<<<<<<<<<<<< - * else: - * return arr.base - */ +#line 98 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); +#line 98 "array.pxd" + __pyx_v_item_count = __pyx_t_1; -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(Py_None); +#line 98 "array.pxd" + __pyx_t_1 = 0; -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = Py_None; + /* "array.pxd":100 + * item_count = Py_SIZE(self) + * + * info.suboffsets = NULL # <<<<<<<<<<<<<< + * info.buf = self.data.as_chars + * info.readonly = 0 + */ -#line 978 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 100 "array.pxd" + __pyx_v_info->suboffsets = NULL; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977 + /* "array.pxd":101 * - * cdef inline object get_array_base(ndarray arr): - * if arr.base is NULL: # <<<<<<<<<<<<<< - * return None - * else: + * info.suboffsets = NULL + * info.buf = self.data.as_chars # <<<<<<<<<<<<<< + * info.readonly = 0 + * info.ndim = 1 */ -#line 977 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 101 "array.pxd" + __pyx_t_2 = __pyx_v_self->data.as_chars; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":980 - * return None - * else: - * return arr.base # <<<<<<<<<<<<<< - * - * +#line 101 "array.pxd" + __pyx_v_info->buf = __pyx_t_2; + + /* "array.pxd":102 + * info.suboffsets = NULL + * info.buf = self.data.as_chars + * info.readonly = 0 # <<<<<<<<<<<<<< + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) */ -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*else*/ { +#line 102 "array.pxd" + __pyx_v_info->readonly = 0; -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_r); + /* "array.pxd":103 + * info.buf = self.data.as_chars + * info.readonly = 0 + * info.ndim = 1 # <<<<<<<<<<<<<< + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * info.len = info.itemsize * item_count + */ -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); +#line 103 "array.pxd" + __pyx_v_info->ndim = 1; -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = ((PyObject *)__pyx_v_arr->base); + /* "array.pxd":104 + * info.readonly = 0 + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< + * info.len = info.itemsize * item_count + * + */ -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 104 "array.pxd" + __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; -#line 980 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 104 "array.pxd" + __pyx_v_info->itemsize = __pyx_t_3; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976 - * arr.base = baseptr + /* "array.pxd":105 + * info.ndim = 1 + * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) + * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< * - * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< - * if arr.base is NULL: - * return None + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) */ -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 105 "array.pxd" + __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 105, __pyx_L1_error) +#line 105 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 105 "array.pxd" + __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 105, __pyx_L1_error) -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 105 "array.pxd" + __Pyx_GOTREF(__pyx_t_4); -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_r); +#line 105 "array.pxd" + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 105 "array.pxd" + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 105, __pyx_L1_error) -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; +#line 105 "array.pxd" + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; -#line 976 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -} +#line 105 "array.pxd" + __pyx_v_info->len = __pyx_t_5; -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 - * # Versions of the import_* functions which are more suitable for - * # Cython code. - * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< - * try: - * _import_array() + /* "array.pxd":107 + * info.len = info.itemsize * item_count + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< + * if not info.shape: + * raise MemoryError() */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 107 "array.pxd" + __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); + /* "array.pxd":108 + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: # <<<<<<<<<<<<<< + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { +#line 108 "array.pxd" + __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 108 "array.pxd" + if (unlikely(__pyx_t_6)) { -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyDeclarations + /* "array.pxd":109 + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: + * raise MemoryError() # <<<<<<<<<<<<<< + * info.shape[0] = item_count # constant regardless of resizing + * info.strides = &info.itemsize + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 109 "array.pxd" + PyErr_NoMemory(); __PYX_ERR(3, 109, __pyx_L1_error) -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_2 = NULL; + /* "array.pxd":108 + * + * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) + * if not info.shape: # <<<<<<<<<<<<<< + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 108 "array.pxd" + } -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; + /* "array.pxd":110 + * if not info.shape: + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< + * info.strides = &info.itemsize + * + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_5 = NULL; +#line 110 "array.pxd" + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 110, __pyx_L1_error) -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; +#line 110 "array.pxd" + (__pyx_v_info->shape[0]) = __pyx_t_5; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_7 = NULL; + /* "array.pxd":111 + * raise MemoryError() + * info.shape[0] = item_count # constant regardless of resizing + * info.strides = &info.itemsize # <<<<<<<<<<<<<< + * + * info.format = (info.shape + 1) + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_8 = NULL; +#line 111 "array.pxd" + __pyx_v_info->strides = (&__pyx_v_info->itemsize); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("import_array", 0); + /* "array.pxd":113 + * info.strides = &info.itemsize + * + * info.format = (info.shape + 1) # <<<<<<<<<<<<<< + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 + */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 - * # Cython code. - * cdef inline int import_array() except -1: - * try: # <<<<<<<<<<<<<< - * _import_array() - * except Exception: +#line 113 "array.pxd" + __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); + + /* "array.pxd":114 + * + * info.format = (info.shape + 1) + * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< + * info.format[1] = 0 + * info.obj = self */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - { +#line 114 "array.pxd" + __pyx_t_3 = __pyx_v_self->ob_descr->typecode; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_declare +#line 114 "array.pxd" + (__pyx_v_info->format[0]) = __pyx_t_3; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign + /* "array.pxd":115 + * info.format = (info.shape + 1) + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 # <<<<<<<<<<<<<< + * info.obj = self + * + */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); +#line 115 "array.pxd" + (__pyx_v_info->format[1]) = 0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_1); + /* "array.pxd":116 + * info.format[0] = self.ob_descr.typecode + * info.format[1] = 0 + * info.obj = self # <<<<<<<<<<<<<< + * + * def __releasebuffer__(self, Py_buffer* info): + */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_2); +#line 116 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_self)); -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_3); +#line 116 "array.pxd" + __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*try:*/ { +#line 116 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":987 - * cdef inline int import_array() except -1: - * try: - * _import_array() # <<<<<<<<<<<<<< - * except Exception: - * raise ImportError("numpy.core.multiarray failed to import") - */ +#line 116 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); -#line 987 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(3, 987, __pyx_L3_error) +#line 116 "array.pxd" + __pyx_v_info->obj = ((PyObject *)__pyx_v_self); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 - * # Cython code. - * cdef inline int import_array() except -1: - * try: # <<<<<<<<<<<<<< - * _import_array() - * except Exception: + /* "array.pxd":93 + * __data_union data + * + * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< + * # This implementation of getbuffer is geared towards Cython + * # requirements, and does not yet fulfill the PEP. */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 93 "array.pxd" + /* function exit code */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 93 "array.pxd" + __pyx_r = 0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L10_try_end; +#line 93 "array.pxd" + goto __pyx_L0; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3_error:; +#line 93 "array.pxd" + __pyx_L1_error:; -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 93 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":988 - * try: - * _import_array() - * except Exception: # <<<<<<<<<<<<<< - * raise ImportError("numpy.core.multiarray failed to import") - * - */ +#line 93 "array.pxd" + __Pyx_XDECREF(__pyx_t_4); -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 93 "array.pxd" + __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_4) { +#line 93 "array.pxd" + __pyx_r = -1; -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 93 "array.pxd" + if (__pyx_v_info->obj != NULL) { -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 988, __pyx_L5_except_error) +#line 93 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_5); +#line 93 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 93 "array.pxd" + } -#line 988 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_7); +#line 93 "array.pxd" + goto __pyx_L2; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 - * _import_array() - * except Exception: - * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< - * - * cdef inline int import_umath() except -1: - */ +#line 93 "array.pxd" + __pyx_L0:; -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 989, __pyx_L5_except_error) +#line 93 "array.pxd" + if (__pyx_v_info->obj == Py_None) { -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_8); +#line 93 "array.pxd" + __Pyx_GOTREF(__pyx_v_info->obj); -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); +#line 93 "array.pxd" + __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; +#line 93 "array.pxd" + } -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 989, __pyx_L5_except_error) +#line 93 "array.pxd" + __pyx_L2:; -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 93 "array.pxd" + __Pyx_XDECREF(__pyx_v_item_count); -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L5_except_error; +#line 93 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L5_except_error:; +#line 93 "array.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":986 - * # Cython code. - * cdef inline int import_array() except -1: - * try: # <<<<<<<<<<<<<< - * _import_array() - * except Exception: - */ +#line 93 "array.pxd" +} -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +/* "array.pxd":118 + * info.obj = self + * + * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< + * PyObject_Free(info.shape) + * + */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_1); +#line 118 "array.pxd" -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_2); -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_3); +#line 118 "array.pxd" +/* Python wrapper */ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); +#line 118 "array.pxd" +static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L1_error; +#line 118 "array.pxd" +static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L10_try_end:; +#line 118 "array.pxd" + __Pyx_RefNannyDeclarations -#line 986 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 118 "array.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":985 - * # Versions of the import_* functions which are more suitable for - * # Cython code. - * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< - * try: - * _import_array() - */ +#line 118 "array.pxd" + __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 118 "array.pxd" -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 118 "array.pxd" /* function exit code */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; +#line 118 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 118 "array.pxd" +} -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 118 "array.pxd" -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_5); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); +#line 118 "array.pxd" +static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_7); +#line 118 "array.pxd" + __Pyx_RefNannyDeclarations -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_8); +#line 118 "array.pxd" + __Pyx_RefNannySetupContext("__releasebuffer__", 0); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename); + /* "array.pxd":119 + * + * def __releasebuffer__(self, Py_buffer* info): + * PyObject_Free(info.shape) # <<<<<<<<<<<<<< + * + * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; +#line 119 "array.pxd" + PyObject_Free(__pyx_v_info->shape); -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; + /* "array.pxd":118 + * info.obj = self + * + * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< + * PyObject_Free(info.shape) + * + */ -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannyFinishContext(); +#line 118 "array.pxd" -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; -#line 985 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 118 "array.pxd" + /* function exit code */ + +#line 118 "array.pxd" + __Pyx_RefNannyFinishContext(); + +#line 118 "array.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 - * raise ImportError("numpy.core.multiarray failed to import") +/* "array.pxd":130 * - * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() + * + * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< + * """ fast creation of a new array, given a template array. + * type will be same as template. */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { +#line 130 "array.pxd" +static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { + arrayobject *__pyx_v_op = NULL +#line 130 "array.pxd" +; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_r; +#line 130 "array.pxd" + arrayobject *__pyx_r = NULL; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" __Pyx_RefNannyDeclarations -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" PyObject *__pyx_t_1 = NULL; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_2 = NULL; +#line 130 "array.pxd" + int __pyx_t_2; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; +#line 130 "array.pxd" + int __pyx_t_3; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 130 "array.pxd" int __pyx_t_4; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_5 = NULL; +#line 130 "array.pxd" + __Pyx_RefNannySetupContext("clone", 0); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; + /* "array.pxd":134 + * type will be same as template. + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_7 = NULL; +#line 134 "array.pxd" + __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 134, __pyx_L1_error) -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_8 = NULL; +#line 134 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("import_umath", 0); +#line 134 "array.pxd" + __pyx_v_op = ((arrayobject *)__pyx_t_1); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 - * - * cdef inline int import_umath() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: +#line 134 "array.pxd" + __pyx_t_1 = 0; + + /* "array.pxd":135 + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: # <<<<<<<<<<<<<< + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - { +#line 135 "array.pxd" + __pyx_t_3 = (__pyx_v_zero != 0); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_declare +#line 135 "array.pxd" + if (__pyx_t_3) { -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 135 "array.pxd" + } else { -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); +#line 135 "array.pxd" + __pyx_t_2 = __pyx_t_3; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_1); +#line 135 "array.pxd" + goto __pyx_L4_bool_binop_done; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_2); +#line 135 "array.pxd" + } -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_3); +#line 135 "array.pxd" + __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*try:*/ { +#line 135 "array.pxd" + __pyx_t_4 = (__pyx_t_3 != 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":993 - * cdef inline int import_umath() except -1: - * try: - * _import_umath() # <<<<<<<<<<<<<< - * except Exception: - * raise ImportError("numpy.core.umath failed to import") +#line 135 "array.pxd" + __pyx_t_2 = __pyx_t_4; + +#line 135 "array.pxd" + __pyx_L4_bool_binop_done:; + +#line 135 "array.pxd" + if (__pyx_t_2) { + + /* "array.pxd":136 + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< + * return op + * + */ + +#line 136 "array.pxd" + (void)(memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize))); + + /* "array.pxd":135 + * if zero is true, new array will be initialized with zeroes.""" + * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) + * if zero and op is not None: # <<<<<<<<<<<<<< + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op + */ + +#line 135 "array.pxd" + } + + /* "array.pxd":137 + * if zero and op is not None: + * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) + * return op # <<<<<<<<<<<<<< + * + * cdef inline array copy(array self): */ -#line 993 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(3, 993, __pyx_L3_error) +#line 137 "array.pxd" + __Pyx_XDECREF(((PyObject *)__pyx_r)); + +#line 137 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_op)); + +#line 137 "array.pxd" + __pyx_r = __pyx_v_op; + +#line 137 "array.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + /* "array.pxd":130 * - * cdef inline int import_umath() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: + * + * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< + * """ fast creation of a new array, given a template array. + * type will be same as template. */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 130 "array.pxd" + + +#line 130 "array.pxd" + /* function exit code */ + +#line 130 "array.pxd" + __pyx_L1_error:; + +#line 130 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); + +#line 130 "array.pxd" + __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 130 "array.pxd" + __pyx_r = 0; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 130 "array.pxd" + __pyx_L0:; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 130 "array.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_op); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L10_try_end; +#line 130 "array.pxd" + __Pyx_XGIVEREF((PyObject *)__pyx_r); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3_error:; +#line 130 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 130 "array.pxd" + return __pyx_r; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":994 - * try: - * _import_umath() - * except Exception: # <<<<<<<<<<<<<< - * raise ImportError("numpy.core.umath failed to import") +#line 130 "array.pxd" +} + +/* "array.pxd":139 + * return op * + * cdef inline array copy(array self): # <<<<<<<<<<<<<< + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) */ -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 139 "array.pxd" -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_4) { -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 139 "array.pxd" +static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { + arrayobject *__pyx_v_op = NULL +#line 139 "array.pxd" +; -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 994, __pyx_L5_except_error) +#line 139 "array.pxd" + arrayobject *__pyx_r = NULL; -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_5); +#line 139 "array.pxd" + __Pyx_RefNannyDeclarations -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 139 "array.pxd" + PyObject *__pyx_t_1 = NULL; -#line 994 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_7); +#line 139 "array.pxd" + __Pyx_RefNannySetupContext("copy", 0); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 - * _import_umath() - * except Exception: - * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< - * - * cdef inline int import_ufunc() except -1: + /* "array.pxd":141 + * cdef inline array copy(array self): + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) + * return op */ -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 995, __pyx_L5_except_error) - -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_8); - -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); - -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 995, __pyx_L5_except_error) +#line 141 "array.pxd" + __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 141, __pyx_L1_error) -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 141 "array.pxd" + __Pyx_GOTREF(__pyx_t_1); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L5_except_error; +#line 141 "array.pxd" + __pyx_v_op = ((arrayobject *)__pyx_t_1); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L5_except_error:; +#line 141 "array.pxd" + __pyx_t_1 = 0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":992 + /* "array.pxd":142 + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< + * return op * - * cdef inline int import_umath() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign - -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_1); - -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_2); +#line 142 "array.pxd" + (void)(memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize))); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_3); + /* "array.pxd":143 + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) + * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) + * return op # <<<<<<<<<<<<<< + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: + */ -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); +#line 143 "array.pxd" + __Pyx_XDECREF(((PyObject *)__pyx_r)); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L1_error; +#line 143 "array.pxd" + __Pyx_INCREF(((PyObject *)__pyx_v_op)); -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L10_try_end:; +#line 143 "array.pxd" + __pyx_r = __pyx_v_op; -#line 992 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 143 "array.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":991 - * raise ImportError("numpy.core.multiarray failed to import") + /* "array.pxd":139 + * return op * - * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() + * cdef inline array copy(array self): # <<<<<<<<<<<<<< + * """ make a copy of an array. """ + * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" /* function exit code */ -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; - -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; - -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" __pyx_L1_error:; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_5); - -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); +#line 139 "array.pxd" + __Pyx_XDECREF(__pyx_t_1); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_7); +#line 139 "array.pxd" + __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_8); +#line 139 "array.pxd" + __pyx_r = 0; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 139 "array.pxd" + __pyx_L0:; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; +#line 139 "array.pxd" + __Pyx_XDECREF((PyObject *)__pyx_v_op); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 139 "array.pxd" + __Pyx_XGIVEREF((PyObject *)__pyx_r); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" __Pyx_RefNannyFinishContext(); -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" return __pyx_r; -#line 991 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 139 "array.pxd" } -/* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 - * raise ImportError("numpy.core.umath failed to import") +/* "array.pxd":145 + * return op * - * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< + * """ efficient appending of new stuff of same type + * (e.g. of same array type) */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 145 "array.pxd" -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" -static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { +#line 145 "array.pxd" +static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { + Py_ssize_t __pyx_v_itemsize +#line 145 "array.pxd" +; + Py_ssize_t __pyx_v_origsize +#line 145 "array.pxd" +; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 145 "array.pxd" int __pyx_r; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 145 "array.pxd" __Pyx_RefNannyDeclarations -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_1 = NULL; +#line 145 "array.pxd" + int __pyx_t_1; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_2 = NULL; +#line 145 "array.pxd" + __Pyx_RefNannySetupContext("extend_buffer", 0); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_3 = NULL; + /* "array.pxd":149 + * (e.g. of same array type) + * n: number of elements (not number of bytes!) """ + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - int __pyx_t_4; +#line 149 "array.pxd" + __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_5 = NULL; +#line 149 "array.pxd" + __pyx_v_itemsize = __pyx_t_1; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_6 = NULL; + /* "array.pxd":150 + * n: number of elements (not number of bytes!) """ + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize + * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_7 = NULL; +#line 150 "array.pxd" + __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - PyObject *__pyx_t_8 = NULL; + /* "array.pxd":151 + * cdef Py_ssize_t itemsize = self.ob_descr.itemsize + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + * return 0 + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_RefNannySetupContext("import_ufunc", 0); +#line 151 "array.pxd" + __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(3, 151, __pyx_L1_error) - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + /* "array.pxd":152 + * cdef Py_ssize_t origsize = Py_SIZE(self) + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< + * return 0 * - * cdef inline int import_ufunc() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - { +#line 152 "array.pxd" + (void)(memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize))); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_declare + /* "array.pxd":153 + * resize_smart(self, origsize + n) + * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) + * return 0 # <<<<<<<<<<<<<< + * + * cdef inline int extend(array self, array other) except -1: + */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 153 "array.pxd" + __pyx_r = 0; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); +#line 153 "array.pxd" + goto __pyx_L0; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_1); + /* "array.pxd":145 + * return op + * + * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< + * """ efficient appending of new stuff of same type + * (e.g. of same array type) + */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_2); +#line 145 "array.pxd" -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGOTREF(__pyx_t_3); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /*try:*/ { +#line 145 "array.pxd" + /* function exit code */ - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":999 - * cdef inline int import_ufunc() except -1: - * try: - * _import_umath() # <<<<<<<<<<<<<< - * except Exception: - * raise ImportError("numpy.core.umath failed to import") - */ +#line 145 "array.pxd" + __pyx_L1_error:; -#line 999 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(3, 999, __pyx_L3_error) +#line 145 "array.pxd" + __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 - * - * cdef inline int import_ufunc() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: - */ +#line 145 "array.pxd" + __pyx_r = -1; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 145 "array.pxd" + __pyx_L0:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; +#line 145 "array.pxd" + __Pyx_RefNannyFinishContext(); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; +#line 145 "array.pxd" + return __pyx_r; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; +#line 145 "array.pxd" +} + +/* "array.pxd":155 + * return 0 + * + * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L10_try_end; +#line 155 "array.pxd" -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L3_error:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 155 "array.pxd" +static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 - * try: - * _import_umath() - * except Exception: # <<<<<<<<<<<<<< - * raise ImportError("numpy.core.umath failed to import") - */ +#line 155 "array.pxd" + int __pyx_r; -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); +#line 155 "array.pxd" + __Pyx_RefNannyDeclarations -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__pyx_t_4) { +#line 155 "array.pxd" + int __pyx_t_1; -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 155 "array.pxd" + int __pyx_t_2; -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 1000, __pyx_L5_except_error) +#line 155 "array.pxd" + __Pyx_RefNannySetupContext("extend", 0); -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_5); + /* "array.pxd":157 + * cdef inline int extend(array self, array other) except -1: + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + */ -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_6); +#line 157 "array.pxd" + __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); -#line 1000 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_7); +#line 157 "array.pxd" + if (__pyx_t_1) { - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 - * _import_umath() - * except Exception: - * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< + /* "array.pxd":158 + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: + * PyErr_BadArgument() # <<<<<<<<<<<<<< + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1001, __pyx_L5_except_error) - -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_GOTREF(__pyx_t_8); +#line 158 "array.pxd" + __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(3, 158, __pyx_L1_error) -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_Raise(__pyx_t_8, 0, 0, 0); + /* "array.pxd":157 + * cdef inline int extend(array self, array other) except -1: + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; +#line 157 "array.pxd" + } -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __PYX_ERR(3, 1001, __pyx_L5_except_error) + /* "array.pxd":159 + * if self.ob_descr.typecode != other.ob_descr.typecode: + * PyErr_BadArgument() + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< + * + * cdef inline void zero(array self): + */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 159 "array.pxd" + __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 159, __pyx_L1_error) -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L5_except_error; +#line 159 "array.pxd" + __pyx_r = __pyx_t_2; -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L5_except_error:; +#line 159 "array.pxd" + goto __pyx_L0; - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":998 + /* "array.pxd":155 + * return 0 * - * cdef inline int import_ufunc() except -1: - * try: # <<<<<<<<<<<<<< - * _import_umath() - * except Exception: + * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< + * """ extend array with data from another array; types must match. """ + * if self.ob_descr.typecode != other.ob_descr.typecode: */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_PyThreadState_assign +#line 155 "array.pxd" -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_1); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_2); +#line 155 "array.pxd" + /* function exit code */ -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XGIVEREF(__pyx_t_3); +#line 155 "array.pxd" + __pyx_L1_error:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); +#line 155 "array.pxd" + __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L1_error; +#line 155 "array.pxd" + __pyx_r = -1; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L10_try_end:; +#line 155 "array.pxd" + __pyx_L0:; -#line 998 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - } +#line 155 "array.pxd" + __Pyx_RefNannyFinishContext(); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":997 - * raise ImportError("numpy.core.umath failed to import") - * - * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< - * try: - * _import_umath() - */ +#line 155 "array.pxd" + return __pyx_r; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 155 "array.pxd" +} +/* "array.pxd":161 + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + * cdef inline void zero(array self): # <<<<<<<<<<<<<< + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - /* function exit code */ +#line 161 "array.pxd" -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = 0; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - goto __pyx_L0; +#line 161 "array.pxd" +static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L1_error:; +#line 161 "array.pxd" + __Pyx_RefNannyDeclarations -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_5); +#line 161 "array.pxd" + __Pyx_RefNannySetupContext("zero", 0); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_6); + /* "array.pxd":163 + * cdef inline void zero(array self): + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_7); +#line 163 "array.pxd" + (void)(memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize))); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_XDECREF(__pyx_t_8); + /* "array.pxd":161 + * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) + * + * cdef inline void zero(array self): # <<<<<<<<<<<<<< + * """ set all elements of array to zero. """ + * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) + */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 161 "array.pxd" -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_r = -1; -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_L0:; +#line 161 "array.pxd" + /* function exit code */ -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 161 "array.pxd" __Pyx_RefNannyFinishContext(); -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - return __pyx_r; - -#line 997 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 161 "array.pxd" } /* "string.from_py":13 @@ -14205,7 +14386,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ #line 13 "string.from_py" @@ -14216,7 +14397,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v Py_ssize_t __pyx_v_length #line 13 "string.from_py" ; - char *__pyx_v_data + char const *__pyx_v_data #line 13 "string.from_py" ; @@ -14227,7 +14408,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v __Pyx_RefNannyDeclarations #line 13 "string.from_py" - char *__pyx_t_1; + char const *__pyx_t_1; #line 13 "string.from_py" __Pyx_RefNannySetupContext("__pyx_convert_string_from_py_std__in_string", 0); @@ -14235,20 +14416,20 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v /* "string.from_py":15 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< * return string(data, length) * */ #line 15 "string.from_py" - __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == NULL)) __PYX_ERR(4, 15, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == ((char const *)NULL))) __PYX_ERR(4, 15, __pyx_L1_error) #line 15 "string.from_py" __pyx_v_data = __pyx_t_1; /* "string.from_py":16 * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) # <<<<<<<<<<<<<< * * @@ -14265,7 +14446,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ #line 13 "string.from_py" @@ -14280,6 +14461,9 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v #line 13 "string.from_py" __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); +#line 13 "string.from_py" + __Pyx_pretend_to_initialize(&__pyx_r); + #line 13 "string.from_py" __pyx_L0:; @@ -14311,22 +14495,40 @@ static PyMethodDef __pyx_methods[] = { #if PY_MAJOR_VERSION >= 3 #line 13 "string.from_py" -static struct PyModuleDef __pyx_moduledef = { +#if CYTHON_PEP489_MULTI_PHASE_INIT #line 13 "string.from_py" - #if PY_VERSION_HEX < 0x03020000 +static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ #line 13 "string.from_py" - { PyObject_HEAD_INIT(NULL) NULL, 0, NULL }, +static int __pyx_pymod_exec__libtmvanumpy(PyObject* module); /*proto*/ #line 13 "string.from_py" - #else +static PyModuleDef_Slot __pyx_moduledef_slots[] = { #line 13 "string.from_py" - PyModuleDef_HEAD_INIT, + {Py_mod_create, (void*)__pyx_pymod_create}, #line 13 "string.from_py" - #endif + {Py_mod_exec, (void*)__pyx_pymod_exec__libtmvanumpy}, + +#line 13 "string.from_py" + {0, NULL} + +#line 13 "string.from_py" +}; + +#line 13 "string.from_py" +#endif + +#line 13 "string.from_py" + + +#line 13 "string.from_py" +static struct PyModuleDef __pyx_moduledef = { + +#line 13 "string.from_py" + PyModuleDef_HEAD_INIT, #line 13 "string.from_py" "_libtmvanumpy", @@ -14334,15 +14536,39 @@ static struct PyModuleDef __pyx_moduledef = { #line 13 "string.from_py" 0, /* m_doc */ +#line 13 "string.from_py" + #if CYTHON_PEP489_MULTI_PHASE_INIT + +#line 13 "string.from_py" + 0, /* m_size */ + +#line 13 "string.from_py" + #else + #line 13 "string.from_py" -1, /* m_size */ +#line 13 "string.from_py" + #endif + #line 13 "string.from_py" __pyx_methods /* m_methods */, +#line 13 "string.from_py" + #if CYTHON_PEP489_MULTI_PHASE_INIT + +#line 13 "string.from_py" + __pyx_moduledef_slots, /* m_slots */ + +#line 13 "string.from_py" + #else + #line 13 "string.from_py" NULL, /* m_reload */ +#line 13 "string.from_py" + #endif + #line 13 "string.from_py" NULL, /* m_traverse */ @@ -14375,6 +14601,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_add_events_regression, __pyx_k_add_events_regression, sizeof(__pyx_k_add_events_regression), 0, 0, 1, 1}, {&__pyx_n_s_add_events_twoclass, __pyx_k_add_events_twoclass, sizeof(__pyx_k_add_events_twoclass), 0, 0, 1, 1}, {&__pyx_n_s_aux, __pyx_k_aux, sizeof(__pyx_k_aux), 0, 0, 1, 1}, + {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 0, 1, 1}, {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1}, {&__pyx_n_s_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 0, 1, 1}, @@ -14384,8 +14611,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_events, __pyx_k_events, sizeof(__pyx_k_events), 0, 0, 1, 1}, {&__pyx_n_s_float32, __pyx_k_float32, sizeof(__pyx_k_float32), 0, 0, 1, 1}, {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1}, - {&__pyx_kp_s_home_endw_workspace_root_numpy, __pyx_k_home_endw_workspace_root_numpy, sizeof(__pyx_k_home_endw_workspace_root_numpy), 0, 0, 1, 0}, - {&__pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_k_home_endw_workspace_root_numpy_2, sizeof(__pyx_k_home_endw_workspace_root_numpy_2), 0, 0, 1, 0}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_imeth, __pyx_k_imeth, sizeof(__pyx_k_imeth), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, @@ -14412,6 +14637,8 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_ravel, __pyx_k_ravel, sizeof(__pyx_k_ravel), 0, 0, 1, 1}, {&__pyx_n_s_reader, __pyx_k_reader, sizeof(__pyx_k_reader), 0, 0, 1, 1}, {&__pyx_n_s_reader_2, __pyx_k_reader_2, sizeof(__pyx_k_reader_2), 0, 0, 1, 1}, + {&__pyx_kp_s_root_numpy_tmva_src_data_pyx, __pyx_k_root_numpy_tmva_src_data_pyx, sizeof(__pyx_k_root_numpy_tmva_src_data_pyx), 0, 0, 1, 0}, + {&__pyx_kp_s_root_numpy_tmva_src_evaluate_pyx, __pyx_k_root_numpy_tmva_src_evaluate_pyx, sizeof(__pyx_k_root_numpy_tmva_src_evaluate_pyx), 0, 0, 1, 0}, {&__pyx_n_s_signal_label, __pyx_k_signal_label, sizeof(__pyx_k_signal_label), 0, 0, 1, 1}, {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1}, {&__pyx_n_s_targets, __pyx_k_targets, sizeof(__pyx_k_targets), 0, 0, 1, 1}, @@ -14430,10 +14657,10 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 7, __pyx_L1_error) __pyx_builtin_AssertionError = __Pyx_GetBuiltinName(__pyx_n_s_AssertionError); if (!__pyx_builtin_AssertionError) __PYX_ERR(0, 37, __pyx_L1_error) - __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(2, 107, __pyx_L1_error) - __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(3, 231, __pyx_L1_error) - __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(3, 799, __pyx_L1_error) - __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(3, 989, __pyx_L1_error) + __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(2, 242, __pyx_L1_error) + __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(2, 810, __pyx_L1_error) + __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(2, 1000, __pyx_L1_error) + __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(3, 109, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; @@ -14494,7 +14721,7 @@ static int __Pyx_InitCachedConstants(void) { #line 47 "root_numpy/tmva/src/evaluate.pyx" __Pyx_GIVEREF(__pyx_tuple__3); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":229 * 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") # <<<<<<<<<<<<<< @@ -14502,16 +14729,16 @@ static int __Pyx_InitCachedConstants(void) { * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(3, 218, __pyx_L1_error) +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(2, 229, __pyx_L1_error) -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__4); -#line 218 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 229 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__4); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":233 * 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") # <<<<<<<<<<<<<< @@ -14519,16 +14746,16 @@ static int __Pyx_InitCachedConstants(void) { * info.buf = PyArray_DATA(self) */ -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(3, 222, __pyx_L1_error) +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(2, 233, __pyx_L1_error) -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__5); -#line 222 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 233 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__5); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":263 * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< @@ -14536,16 +14763,16 @@ static int __Pyx_InitCachedConstants(void) { * elif t == NPY_UBYTE: f = "B" */ -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(3, 259, __pyx_L1_error) +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(2, 263, __pyx_L1_error) -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__6); -#line 259 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 263 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__6); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":810 * * if (end - f) - (new_offset - offset[0]) < 15: * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< @@ -14553,16 +14780,16 @@ static int __Pyx_InitCachedConstants(void) { * if ((child.byteorder == c'>' and little_endian) or */ -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(3, 799, __pyx_L1_error) +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(2, 810, __pyx_L1_error) -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__7); -#line 799 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 810 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__7); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":814 * if ((child.byteorder == c'>' and little_endian) or * (child.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< @@ -14570,16 +14797,16 @@ static int __Pyx_InitCachedConstants(void) { * # complain instead, BUT: < and > in format strings also imply */ -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(3, 803, __pyx_L1_error) +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(2, 814, __pyx_L1_error) -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__8); -#line 803 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 814 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__8); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 * t = child.type_num * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< @@ -14587,16 +14814,16 @@ static int __Pyx_InitCachedConstants(void) { * # Until ticket #99 is fixed, use integers to avoid warnings */ -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(3, 823, __pyx_L1_error) +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 834, __pyx_L1_error) -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__9); -#line 823 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 834 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__9); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":989 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1000 * _import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< @@ -14604,16 +14831,16 @@ static int __Pyx_InitCachedConstants(void) { * cdef inline int import_umath() except -1: */ -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(3, 989, __pyx_L1_error) +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 1000, __pyx_L1_error) -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__10); -#line 989 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1000 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__10); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":995 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1006 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< @@ -14621,28 +14848,28 @@ static int __Pyx_InitCachedConstants(void) { * cdef inline int import_ufunc() except -1: */ -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(3, 995, __pyx_L1_error) +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(2, 1006, __pyx_L1_error) -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__11); -#line 995 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1006 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__11); - /* "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":1001 + /* "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1012 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" - __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(3, 1001, __pyx_L1_error) +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" + __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(2, 1012, __pyx_L1_error) -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GOTREF(__pyx_tuple__12); -#line 1001 "../../.local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd" +#line 1012 "../../../alice/py3.7/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd" __Pyx_GIVEREF(__pyx_tuple__12); /* "root_numpy/tmva/src/evaluate.pyx":3 @@ -14663,7 +14890,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__13); #line 3 "root_numpy/tmva/src/evaluate.pyx" - __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_evaluate_reader, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_tmva_src_evaluate_pyx, __pyx_n_s_evaluate_reader, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 3, __pyx_L1_error) /* "root_numpy/tmva/src/evaluate.pyx":15 * @cython.boundscheck(False) @@ -14683,7 +14910,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__15); #line 15 "root_numpy/tmva/src/evaluate.pyx" - __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy, __pyx_n_s_evaluate_method, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 15, __pyx_L1_error) + __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_tmva_src_evaluate_pyx, __pyx_n_s_evaluate_method, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 15, __pyx_L1_error) /* "root_numpy/tmva/src/data.pyx":4 * @cython.boundscheck(False) @@ -14703,7 +14930,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__17); #line 4 "root_numpy/tmva/src/data.pyx" - __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(6, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_add_events_twoclass, 4, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(6, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_tmva_src_data_pyx, __pyx_n_s_add_events_twoclass, 4, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(1, 4, __pyx_L1_error) /* "root_numpy/tmva/src/data.pyx":36 * @cython.boundscheck(False) @@ -14723,7 +14950,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__19); #line 36 "root_numpy/tmva/src/data.pyx" - __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_add_events_multiclass, 36, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(1, 36, __pyx_L1_error) + __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_tmva_src_data_pyx, __pyx_n_s_add_events_multiclass, 36, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(1, 36, __pyx_L1_error) /* "root_numpy/tmva/src/data.pyx":64 * @cython.boundscheck(False) @@ -14743,54 +14970,207 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__21); #line 64 "root_numpy/tmva/src/data.pyx" - __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_endw_workspace_root_numpy_2, __pyx_n_s_add_events_regression, 64, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(1, 64, __pyx_L1_error) + __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(5, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_root_numpy_tmva_src_data_pyx, __pyx_n_s_add_events_regression, 64, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(1, 64, __pyx_L1_error) + +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); + +#line 64 "root_numpy/tmva/src/data.pyx" + return 0; + +#line 64 "root_numpy/tmva/src/data.pyx" + __pyx_L1_error:; + +#line 64 "root_numpy/tmva/src/data.pyx" + __Pyx_RefNannyFinishContext(); + +#line 64 "root_numpy/tmva/src/data.pyx" + return -1; #line 64 "root_numpy/tmva/src/data.pyx" +} + +static int __Pyx_InitGlobals(void) { + if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(5, 1, __pyx_L1_error); + return 0; + __pyx_L1_error:; + return -1; +} + +static int __Pyx_modinit_global_init_code(void); /*proto*/ +static int __Pyx_modinit_variable_export_code(void); /*proto*/ +static int __Pyx_modinit_function_export_code(void); /*proto*/ +static int __Pyx_modinit_type_init_code(void); /*proto*/ +static int __Pyx_modinit_type_import_code(void); /*proto*/ +static int __Pyx_modinit_variable_import_code(void); /*proto*/ +static int __Pyx_modinit_function_import_code(void); /*proto*/ + +static int __Pyx_modinit_global_init_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); + /*--- Global init code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_variable_export_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); + /*--- Variable export code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_function_export_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); + /*--- Function export code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_type_init_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); + /*--- Type init code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; +} + +static int __Pyx_modinit_type_import_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); + /*--- Type import code ---*/ + __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type", + #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 + sizeof(PyTypeObject), + #else + sizeof(PyHeapTypeObject), + #endif + 0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) __PYX_ERR(6, 9, __pyx_L1_error) + __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), 0); if (unlikely(!__pyx_ptype_7cpython_4bool_bool)) __PYX_ERR(7, 8, __pyx_L1_error) + __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), 0); if (unlikely(!__pyx_ptype_7cpython_7complex_complex)) __PYX_ERR(8, 15, __pyx_L1_error) + __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) __PYX_ERR(2, 164, __pyx_L1_error) + __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) __PYX_ERR(2, 186, __pyx_L1_error) + __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) __PYX_ERR(2, 190, __pyx_L1_error) + __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) __PYX_ERR(2, 199, __pyx_L1_error) + __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) __PYX_ERR(2, 872, __pyx_L1_error) + __pyx_ptype_7cpython_5array_array = __Pyx_ImportType("array", "array", sizeof(arrayobject), 0); if (unlikely(!__pyx_ptype_7cpython_5array_array)) __PYX_ERR(3, 58, __pyx_L1_error) __Pyx_RefNannyFinishContext(); - -#line 64 "root_numpy/tmva/src/data.pyx" return 0; - -#line 64 "root_numpy/tmva/src/data.pyx" __pyx_L1_error:; - -#line 64 "root_numpy/tmva/src/data.pyx" __Pyx_RefNannyFinishContext(); - -#line 64 "root_numpy/tmva/src/data.pyx" return -1; +} -#line 64 "root_numpy/tmva/src/data.pyx" +static int __Pyx_modinit_variable_import_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); + /*--- Variable import code ---*/ + __Pyx_RefNannyFinishContext(); + return 0; } -static int __Pyx_InitGlobals(void) { - if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(5, 1, __pyx_L1_error); +static int __Pyx_modinit_function_import_code(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); + /*--- Function import code ---*/ + __Pyx_RefNannyFinishContext(); return 0; - __pyx_L1_error:; - return -1; } + +#if PY_MAJOR_VERSION < 3 +#ifdef CYTHON_NO_PYINIT_EXPORT +#define __Pyx_PyMODINIT_FUNC void +#else +#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC +#endif +#else +#ifdef CYTHON_NO_PYINIT_EXPORT +#define __Pyx_PyMODINIT_FUNC PyObject * +#else +#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC +#endif +#endif +#ifndef CYTHON_SMALL_CODE +#if defined(__clang__) + #define CYTHON_SMALL_CODE +#elif defined(__GNUC__) && (!(defined(__cplusplus)) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))) + #define CYTHON_SMALL_CODE __attribute__((optimize("Os"))) +#else + #define CYTHON_SMALL_CODE +#endif +#endif + + #if PY_MAJOR_VERSION < 3 -PyMODINIT_FUNC init_libtmvanumpy(void); /*proto*/ -PyMODINIT_FUNC init_libtmvanumpy(void) +__Pyx_PyMODINIT_FUNC init_libtmvanumpy(void) CYTHON_SMALL_CODE; /*proto*/ +__Pyx_PyMODINIT_FUNC init_libtmvanumpy(void) #else -PyMODINIT_FUNC PyInit__libtmvanumpy(void); /*proto*/ -PyMODINIT_FUNC PyInit__libtmvanumpy(void) +__Pyx_PyMODINIT_FUNC PyInit__libtmvanumpy(void) CYTHON_SMALL_CODE; /*proto*/ +__Pyx_PyMODINIT_FUNC PyInit__libtmvanumpy(void) +#if CYTHON_PEP489_MULTI_PHASE_INIT +{ + return PyModuleDef_Init(&__pyx_moduledef); +} +static int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name) { + PyObject *value = PyObject_GetAttrString(spec, from_name); + int result = 0; + if (likely(value)) { + result = PyDict_SetItemString(moddict, to_name, value); + Py_DECREF(value); + } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { + PyErr_Clear(); + } else { + result = -1; + } + return result; +} +static PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) { + PyObject *module = NULL, *moddict, *modname; + if (__pyx_m) + return __Pyx_NewRef(__pyx_m); + modname = PyObject_GetAttrString(spec, "name"); + if (unlikely(!modname)) goto bad; + module = PyModule_NewObject(modname); + Py_DECREF(modname); + if (unlikely(!module)) goto bad; + moddict = PyModule_GetDict(module); + if (unlikely(!moddict)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__") < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__") < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__") < 0)) goto bad; + if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__") < 0)) goto bad; + return module; +bad: + Py_XDECREF(module); + return NULL; +} + + +static int __pyx_pymod_exec__libtmvanumpy(PyObject *__pyx_pyinit_module) +#endif #endif { PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannyDeclarations - #if CYTHON_REFNANNY - __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); - if (!__Pyx_RefNanny) { - PyErr_Clear(); - __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); - if (!__Pyx_RefNanny) - Py_FatalError("failed to import 'refnanny' module"); - } + #if CYTHON_PEP489_MULTI_PHASE_INIT + if (__pyx_m && __pyx_m == __pyx_pyinit_module) return 0; + #elif PY_MAJOR_VERSION >= 3 + if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif - __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit__libtmvanumpy(void)", 0); + #if CYTHON_REFNANNY +__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); +if (!__Pyx_RefNanny) { + PyErr_Clear(); + __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); + if (!__Pyx_RefNanny) + Py_FatalError("failed to import 'refnanny' module"); +} +#endif + __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit__libtmvanumpy(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(5, 1, __pyx_L1_error) __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(5, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(5, 1, __pyx_L1_error) @@ -14807,6 +15187,9 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) #endif + #ifdef __Pyx_AsyncGen_USED + if (__pyx_AsyncGen_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) #endif @@ -14818,15 +15201,21 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) #endif #endif /*--- Module creation code ---*/ + #if CYTHON_PEP489_MULTI_PHASE_INIT + __pyx_m = __pyx_pyinit_module; + Py_INCREF(__pyx_m); + #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("_libtmvanumpy", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(5, 1, __pyx_L1_error) + #endif __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(5, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(5, 1, __pyx_L1_error) #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif @@ -14851,28 +15240,14 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(5, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(5, 1, __pyx_L1_error) - /*--- Global init code ---*/ - /*--- Variable export code ---*/ - /*--- Function export code ---*/ - /*--- Type init code ---*/ - /*--- Type import code ---*/ - __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type", - #if CYTHON_COMPILING_IN_PYPY - sizeof(PyTypeObject), - #else - sizeof(PyHeapTypeObject), - #endif - 0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) __PYX_ERR(6, 9, __pyx_L1_error) - __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), 0); if (unlikely(!__pyx_ptype_7cpython_4bool_bool)) __PYX_ERR(7, 8, __pyx_L1_error) - __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), 0); if (unlikely(!__pyx_ptype_7cpython_7complex_complex)) __PYX_ERR(8, 15, __pyx_L1_error) - __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) __PYX_ERR(3, 155, __pyx_L1_error) - __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) __PYX_ERR(3, 168, __pyx_L1_error) - __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) __PYX_ERR(3, 172, __pyx_L1_error) - __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) __PYX_ERR(3, 181, __pyx_L1_error) - __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) __PYX_ERR(3, 861, __pyx_L1_error) - __pyx_ptype_7cpython_5array_array = __Pyx_ImportType("array", "array", sizeof(arrayobject), 0); if (unlikely(!__pyx_ptype_7cpython_5array_array)) __PYX_ERR(2, 58, __pyx_L1_error) - /*--- Variable import code ---*/ - /*--- Function import code ---*/ + /*--- Global type/function init code ---*/ + (void)__Pyx_modinit_global_init_code(); + (void)__Pyx_modinit_variable_export_code(); + (void)__Pyx_modinit_function_export_code(); + (void)__Pyx_modinit_type_init_code(); + if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error; + (void)__Pyx_modinit_variable_import_code(); + (void)__Pyx_modinit_function_import_code(); /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(5, 1, __pyx_L1_error) @@ -14907,7 +15282,7 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) */ #line 5 "root_numpy/tmva/src/setup.pxi" - __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(9, 5, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5numpy_import_array(); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(9, 5, __pyx_L1_error) /* "root_numpy/tmva/src/evaluate.pyx":3 * @cython.boundscheck(False) @@ -15016,7 +15391,7 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) */ #line 1 "_libtmvanumpy.pyx" - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 1, __pyx_L1_error) #line 1 "_libtmvanumpy.pyx" __Pyx_GOTREF(__pyx_t_1); @@ -15032,7 +15407,7 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length - * cdef char* data = __Pyx_PyObject_AsStringAndSize(o, &length) + * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ #line 13 "string.from_py" @@ -15060,7 +15435,7 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) if (__pyx_d) { #line 13 "string.from_py" - __Pyx_AddTraceback("init _libtmvanumpy", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("init _libtmvanumpy", 0, __pyx_lineno, __pyx_filename); #line 13 "string.from_py" } @@ -15084,17 +15459,23 @@ PyMODINIT_FUNC PyInit__libtmvanumpy(void) __Pyx_RefNannyFinishContext(); #line 13 "string.from_py" - #if PY_MAJOR_VERSION < 3 + #if CYTHON_PEP489_MULTI_PHASE_INIT #line 13 "string.from_py" - return; + return (__pyx_m != NULL) ? 0 : -1; #line 13 "string.from_py" - #else + #elif PY_MAJOR_VERSION >= 3 #line 13 "string.from_py" return __pyx_m; +#line 13 "string.from_py" + #else + +#line 13 "string.from_py" + return; + #line 13 "string.from_py" #endif @@ -15121,6 +15502,20 @@ static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { } #endif +/* PyObjectGetAttrStr */ +#if CYTHON_USE_TYPE_SLOTS +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { + PyTypeObject* tp = Py_TYPE(obj); + if (likely(tp->tp_getattro)) + return tp->tp_getattro(obj, attr_name); +#if PY_MAJOR_VERSION < 3 + if (likely(tp->tp_getattr)) + return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); +#endif + return PyObject_GetAttr(obj, attr_name); +} +#endif + /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); @@ -15278,37 +15673,38 @@ static int __Pyx_ParseOptionalKeywords( } /* ArgTypeTest */ -static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) { - PyErr_Format(PyExc_TypeError, - "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", - name, type->tp_name, Py_TYPE(obj)->tp_name); -} -static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, - const char *name, int exact) +static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } - if (none_allowed && obj == Py_None) return 1; else if (exact) { - if (likely(Py_TYPE(obj) == type)) return 1; #if PY_MAJOR_VERSION == 2 - else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; + if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; #endif } else { - if (likely(PyObject_TypeCheck(obj, type))) return 1; + if (likely(__Pyx_TypeCheck(obj, type))) return 1; } - __Pyx_RaiseArgumentTypeInvalid(name, obj, type); + PyErr_Format(PyExc_TypeError, + "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", + name, type->tp_name, Py_TYPE(obj)->tp_name); return 0; } -/* BufferFormatCheck */ -static CYTHON_INLINE int __Pyx_IsLittleEndian(void) { - unsigned int n = 1; - return *(unsigned char*)(&n) != 0; +/* IsLittleEndian */ +static CYTHON_INLINE int __Pyx_Is_Little_Endian(void) +{ + union { + uint32_t u32; + uint8_t u8[4]; + } S; + S.u32 = 0x01020304; + return S.u8[0] == 4; } + +/* BufferFormatCheck */ static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx, __Pyx_BufFmt_StackElem* stack, __Pyx_TypeInfo* type) { @@ -15630,7 +16026,7 @@ static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) { ctx->is_complex = 0; return 0; } -static CYTHON_INLINE PyObject * +static PyObject * __pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx, const char** tsp) { const char *ts = *tsp; @@ -15695,7 +16091,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha ++ts; break; case '<': - if (!__Pyx_IsLittleEndian()) { + if (!__Pyx_Is_Little_Endian()) { PyErr_SetString(PyExc_ValueError, "Little-endian buffer not supported on big-endian compiler"); return NULL; } @@ -15704,7 +16100,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha break; case '>': case '!': - if (__Pyx_IsLittleEndian()) { + if (__Pyx_Is_Little_Endian()) { PyErr_SetString(PyExc_ValueError, "Big-endian buffer not supported on little-endian compiler"); return NULL; } @@ -15768,6 +16164,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha __Pyx_BufFmt_RaiseUnexpectedChar('Z'); return NULL; } + CYTHON_FALLTHROUGH; case 'c': case 'b': case 'B': case 'h': case 'H': case 'i': case 'I': case 'l': case 'L': case 'q': case 'Q': case 'f': case 'd': case 'g': @@ -15780,6 +16177,7 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha ++ts; break; } + CYTHON_FALLTHROUGH; case 's': if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL; ctx->enc_count = ctx->new_count; @@ -15807,24 +16205,30 @@ static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const cha } } } -static CYTHON_INLINE void __Pyx_ZeroBuffer(Py_buffer* buf) { + +/* BufferGetAndValidate */ + static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) { + if (unlikely(info->buf == NULL)) return; + if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL; + __Pyx_ReleaseBuffer(info); +} +static void __Pyx_ZeroBuffer(Py_buffer* buf) { buf->buf = NULL; buf->obj = NULL; buf->strides = __Pyx_zeros; buf->shape = __Pyx_zeros; buf->suboffsets = __Pyx_minusones; } -static CYTHON_INLINE int __Pyx_GetBufferAndValidate( +static int __Pyx__GetBufferAndValidate( Py_buffer* buf, PyObject* obj, __Pyx_TypeInfo* dtype, int flags, int nd, int cast, __Pyx_BufFmt_StackElem* stack) { - if (obj == Py_None || obj == NULL) { + buf->buf = NULL; + if (unlikely(__Pyx_GetBuffer(obj, buf, flags) == -1)) { __Pyx_ZeroBuffer(buf); - return 0; + return -1; } - buf->buf = NULL; - if (__Pyx_GetBuffer(obj, buf, flags) == -1) goto fail; - if (buf->ndim != nd) { + if (unlikely(buf->ndim != nd)) { PyErr_Format(PyExc_ValueError, "Buffer has wrong number of dimensions (expected %d, got %d)", nd, buf->ndim); @@ -15835,7 +16239,7 @@ static CYTHON_INLINE int __Pyx_GetBufferAndValidate( __Pyx_BufFmt_Init(&ctx, stack, dtype); if (!__Pyx_BufFmt_CheckString(&ctx, buf->format)) goto fail; } - if ((unsigned)buf->itemsize != dtype->size) { + if (unlikely((unsigned)buf->itemsize != dtype->size)) { PyErr_Format(PyExc_ValueError, "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T "d byte%s) does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T "d byte%s)", buf->itemsize, (buf->itemsize > 1) ? "s" : "", @@ -15845,14 +16249,9 @@ static CYTHON_INLINE int __Pyx_GetBufferAndValidate( if (buf->suboffsets == NULL) buf->suboffsets = __Pyx_minusones; return 0; fail:; - __Pyx_ZeroBuffer(buf); + __Pyx_SafeReleaseBuffer(buf); return -1; } -static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) { - if (info->buf == NULL) return; - if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL; - __Pyx_ReleaseBuffer(info); -} /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL @@ -15860,17 +16259,22 @@ static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, P PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); + int flags = PyCFunction_GET_FLAGS(func); assert(PyCFunction_Check(func)); - assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST))); + assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); - return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); + if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) { + return (*((__Pyx_PyCFunctionFastWithKeywords)meth)) (self, args, nargs, NULL); + } else { + return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs); + } } -#endif // CYTHON_FAST_PYCCALL +#endif /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL @@ -15878,7 +16282,7 @@ static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, P static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; @@ -15989,8 +16393,8 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_LeaveRecursiveCall(); return result; } -#endif // CPython < 3.6 -#endif // CYTHON_FAST_PYCALL +#endif +#endif /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON @@ -16050,11 +16454,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif -#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); #if CYTHON_FAST_PYCCALL @@ -16077,7 +16477,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec #endif /* PyErrFetchRestore */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; @@ -16101,7 +16501,7 @@ static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject #endif /* RaiseException */ - #if PY_MAJOR_VERSION < 3 + #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, CYTHON_UNUSED PyObject *cause) { __Pyx_PyThreadState_declare @@ -16216,11 +16616,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject "raise: exception class must be a subclass of BaseException"); goto bad; } -#if PY_VERSION_HEX >= 0x03030000 if (cause) { -#else - if (cause && cause != Py_None) { -#endif PyObject *fixed_cause; if (cause == Py_None) { fixed_cause = NULL; @@ -16248,7 +16644,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject PyErr_Restore(tmp_type, tmp_value, tb); Py_XDECREF(tmp_tb); #else - PyThreadState *tstate = PyThreadState_GET(); + PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); @@ -16264,13 +16660,22 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject #endif /* GetModuleGlobalName */ - static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { + static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS +#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 + result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); + if (likely(result)) { + Py_INCREF(result); + } else if (unlikely(PyErr_Occurred())) { + result = NULL; + } else { +#else result = PyDict_GetItem(__pyx_d, name); if (likely(result)) { Py_INCREF(result); } else { +#endif #else result = PyObject_GetItem(__pyx_d, name); if (!result) { @@ -16282,54 +16687,88 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject } /* ExtTypeTest */ - static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { + static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } - if (likely(PyObject_TypeCheck(obj, type))) + if (likely(__Pyx_TypeCheck(obj, type))) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", Py_TYPE(obj)->tp_name, type->tp_name); return 0; } +/* DictGetItem */ + #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY +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; +} +#endif + /* RaiseTooManyValuesToUnpack */ - static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { + static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { PyErr_Format(PyExc_ValueError, "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected); } /* RaiseNeedMoreValuesToUnpack */ - static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { + static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { PyErr_Format(PyExc_ValueError, "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack", index, (index == 1) ? "" : "s"); } /* RaiseNoneIterError */ - static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { + static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); } /* SaveResetException */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { + #if PY_VERSION_HEX >= 0x030700A3 + *type = tstate->exc_state.exc_type; + *value = tstate->exc_state.exc_value; + *tb = tstate->exc_state.exc_traceback; + #else *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; + #endif Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; + #if PY_VERSION_HEX >= 0x030700A3 + tmp_type = tstate->exc_state.exc_type; + tmp_value = tstate->exc_state.exc_value; + tmp_tb = tstate->exc_state.exc_traceback; + tstate->exc_state.exc_type = type; + tstate->exc_state.exc_value = value; + tstate->exc_state.exc_traceback = tb; + #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; + #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); @@ -16337,17 +16776,32 @@ static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject #endif /* PyErrExceptionMatches */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE +static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(tuple); +#if PY_MAJOR_VERSION >= 3 + for (i=0; icurexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; - return PyErr_GivenExceptionMatches(exc_type, err); + if (unlikely(PyTuple_Check(err))) + return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); + return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); } #endif /* GetException */ - #if CYTHON_FAST_THREAD_STATE + #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { @@ -16384,12 +16838,21 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE + #if PY_VERSION_HEX >= 0x030700A3 + tmp_type = tstate->exc_state.exc_type; + tmp_value = tstate->exc_state.exc_value; + tmp_tb = tstate->exc_state.exc_traceback; + tstate->exc_state.exc_type = local_type; + tstate->exc_state.exc_value = local_value; + tstate->exc_state.exc_traceback = local_tb; + #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; + #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); @@ -16408,13 +16871,13 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) } /* Import */ - 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; PyObject *empty_dict = 0; PyObject *list; - #if PY_VERSION_HEX < 0x03030000 + #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) @@ -16438,17 +16901,8 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { - #if PY_VERSION_HEX < 0x03030000 - PyObject *py_level = PyInt_FromLong(1); - if (!py_level) - goto bad; - module = PyObject_CallFunctionObjArgs(py_import, - name, global_dict, empty_dict, list, py_level, NULL); - Py_DECREF(py_level); - #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); - #endif if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; @@ -16459,7 +16913,7 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) } #endif if (!module) { - #if PY_VERSION_HEX < 0x03030000 + #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; @@ -16473,7 +16927,7 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) } } bad: - #if PY_VERSION_HEX < 0x03030000 + #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); @@ -16481,8 +16935,48 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) return module; } +/* CLineInTraceback */ + #ifndef CYTHON_CLINE_IN_TRACEBACK +static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) { + PyObject *use_cline; + PyObject *ptype, *pvalue, *ptraceback; +#if CYTHON_COMPILING_IN_CPYTHON + PyObject **cython_runtime_dict; +#endif + if (unlikely(!__pyx_cython_runtime)) { + return c_line; + } + __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); +#if CYTHON_COMPILING_IN_CPYTHON + cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); + if (likely(cython_runtime_dict)) { + use_cline = __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback); + } else +#endif + { + PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); + if (use_cline_obj) { + use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; + Py_DECREF(use_cline_obj); + } else { + PyErr_Clear(); + use_cline = NULL; + } + } + if (!use_cline) { + c_line = 0; + PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); + } + else if (PyObject_Not(use_cline) != 0) { + c_line = 0; + } + __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); + return c_line; +} +#endif + /* CodeObjectCache */ - static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { + 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; @@ -16562,7 +17056,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { } /* AddTraceback */ - #include "compile.h" + #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( @@ -16621,18 +17115,22 @@ 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); + PyThreadState *tstate = __Pyx_PyThreadState_Current; + if (c_line) { + c_line = __Pyx_CLineForTraceback(tstate, c_line); + } + 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); + __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*/ + tstate, /*PyThreadState *tstate,*/ + py_code, /*PyCodeObject *code,*/ + __pyx_d, /*PyObject *globals,*/ + 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); @@ -16645,8 +17143,8 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line, #if PY_MAJOR_VERSION < 3 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) { if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags); - if (PyObject_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags); - if (PyObject_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) return __pyx_pw_7cpython_5array_5array_1__getbuffer__(obj, view, flags); + if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags); + if (__Pyx_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) return __pyx_pw_7cpython_5array_5array_1__getbuffer__(obj, view, flags); PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name); return -1; } @@ -16657,16 +17155,17 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { PyBuffer_Release(view); return; } - if (PyObject_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) { __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view); return; } - if (PyObject_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) { __pyx_pw_7cpython_5array_5array_3__releasebuffer__(obj, view); return; } - Py_DECREF(obj); + if ((0)) {} + else if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view); + else if (__Pyx_TypeCheck(obj, __pyx_ptype_7cpython_5array_array)) __pyx_pw_7cpython_5array_5array_3__releasebuffer__(obj, view); view->obj = NULL; + Py_DECREF(obj); } #endif - /* CIntFromPyVerify */ - #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ + /* CIntFromPyVerify */ + #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) @@ -16688,7 +17187,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -16719,7 +17218,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -16750,7 +17249,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -16781,7 +17280,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* Declarations */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { return ::std::complex< float >(x, y); @@ -16801,7 +17300,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* Arithmetic */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #else static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) { return (a.real == b.real) && (a.imag == b.imag); @@ -16936,7 +17435,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* Declarations */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #ifdef __cplusplus static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { return ::std::complex< double >(x, y); @@ -16956,7 +17455,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* Arithmetic */ - #if CYTHON_CCOMPLEX + #if CYTHON_CCOMPLEX #else static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) { return (a.real == b.real) && (a.imag == b.imag); @@ -17091,7 +17590,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { #endif /* CIntToPy */ - static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) { + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) { const enum NPY_TYPES neg_one = (enum NPY_TYPES) -1, const_zero = (enum NPY_TYPES) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { @@ -17122,7 +17621,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { + static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) -1, const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -17311,7 +17810,7 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { } /* CIntFromPy */ - static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { + static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) -1, const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 @@ -17499,8 +17998,108 @@ static void __Pyx_ReleaseBuffer(Py_buffer *view) { return (long) -1; } +/* FastTypeChecks */ + #if CYTHON_COMPILING_IN_CPYTHON +static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { + while (a) { + a = a->tp_base; + if (a == b) + return 1; + } + return b == &PyBaseObject_Type; +} +static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { + PyObject *mro; + if (a == b) return 1; + mro = a->tp_mro; + if (likely(mro)) { + Py_ssize_t i, n; + n = PyTuple_GET_SIZE(mro); + for (i = 0; i < n; i++) { + if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) + return 1; + } + return 0; + } + return __Pyx_InBases(a, b); +} +#if PY_MAJOR_VERSION == 2 +static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { + PyObject *exception, *value, *tb; + int res; + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ErrFetch(&exception, &value, &tb); + res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; + if (unlikely(res == -1)) { + PyErr_WriteUnraisable(err); + res = 0; + } + if (!res) { + res = PyObject_IsSubclass(err, exc_type2); + if (unlikely(res == -1)) { + PyErr_WriteUnraisable(err); + res = 0; + } + } + __Pyx_ErrRestore(exception, value, tb); + return res; +} +#else +static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { + int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; + if (!res) { + res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); + } + return res; +} +#endif +static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { + Py_ssize_t i, n; + assert(PyExceptionClass_Check(exc_type)); + n = PyTuple_GET_SIZE(tuple); +#if PY_MAJOR_VERSION >= 3 + for (i=0; ip) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { @@ -17624,6 +18223,8 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class #endif if (!*t->p) return -1; + if (PyObject_Hash(*t->p) == -1) + return -1; ++t; } return 0; @@ -17632,50 +18233,57 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } -static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) { +static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } -static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { -#if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) - if ( -#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII - __Pyx_sys_getdefaultencoding_not_ascii && -#endif - PyUnicode_Check(o)) { -#if PY_VERSION_HEX < 0x03030000 - char* defenc_c; - PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); - if (!defenc) return NULL; - defenc_c = PyBytes_AS_STRING(defenc); +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT +#if !CYTHON_PEP393_ENABLED +static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { + char* defenc_c; + PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); + if (!defenc) return NULL; + defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII - { - char* end = defenc_c + PyBytes_GET_SIZE(defenc); - char* c; - for (c = defenc_c; c < end; c++) { - if ((unsigned char) (*c) >= 128) { - PyUnicode_AsASCIIString(o); - return NULL; - } + { + char* end = defenc_c + PyBytes_GET_SIZE(defenc); + char* c; + for (c = defenc_c; c < end; c++) { + if ((unsigned char) (*c) >= 128) { + PyUnicode_AsASCIIString(o); + return NULL; } } + } #endif - *length = PyBytes_GET_SIZE(defenc); - return defenc_c; + *length = PyBytes_GET_SIZE(defenc); + return defenc_c; +} #else - if (__Pyx_PyUnicode_READY(o) == -1) return NULL; +static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { + if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII - if (PyUnicode_IS_ASCII(o)) { - *length = PyUnicode_GET_LENGTH(o); - return PyUnicode_AsUTF8(o); - } else { - PyUnicode_AsASCIIString(o); - return NULL; - } + if (likely(PyUnicode_IS_ASCII(o))) { + *length = PyUnicode_GET_LENGTH(o); + return PyUnicode_AsUTF8(o); + } else { + PyUnicode_AsASCIIString(o); + return NULL; + } #else - return PyUnicode_AsUTF8AndSize(o, length); + return PyUnicode_AsUTF8AndSize(o, length); #endif +} +#endif +#endif +static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { +#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT + if ( +#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII + __Pyx_sys_getdefaultencoding_not_ascii && #endif + PyUnicode_Check(o)) { + return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) @@ -17699,6 +18307,26 @@ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } +static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { +#if PY_MAJOR_VERSION >= 3 + if (PyLong_Check(result)) { + if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, + "__int__ returned non-int (type %.200s). " + "The ability to return an instance of a strict subclass of int " + "is deprecated, and may be removed in a future version of Python.", + Py_TYPE(result)->tp_name)) { + Py_DECREF(result); + return NULL; + } + return result; + } +#endif + PyErr_Format(PyExc_TypeError, + "__%.4s__ returned non-%.4s (type %.200s)", + type_name, type_name, Py_TYPE(result)->tp_name); + Py_DECREF(result); + return NULL; +} static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; @@ -17706,9 +18334,9 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 - if (PyInt_Check(x) || PyLong_Check(x)) + if (likely(PyInt_Check(x) || PyLong_Check(x))) #else - if (PyLong_Check(x)) + if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS @@ -17716,32 +18344,30 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; - res = PyNumber_Int(x); + res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; - res = PyNumber_Long(x); + res = m->nb_long(x); } #else - if (m && m->nb_int) { + if (likely(m && m->nb_int)) { name = "int"; - res = PyNumber_Long(x); + res = m->nb_int(x); } #endif #else - res = PyNumber_Int(x); + if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { + res = PyNumber_Int(x); + } #endif - if (res) { + if (likely(res)) { #if PY_MAJOR_VERSION < 3 - if (!PyInt_Check(res) && !PyLong_Check(res)) { + if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else - if (!PyLong_Check(res)) { + if (unlikely(!PyLong_CheckExact(res))) { #endif - PyErr_Format(PyExc_TypeError, - "__%.4s__ returned non-%.4s (type %.200s)", - name, name, Py_TYPE(res)->tp_name); - Py_DECREF(res); - return NULL; + return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { @@ -17812,6 +18438,9 @@ static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_DECREF(x); return ival; } +static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { + return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); +} static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); }