/* Generated by Cython 0.17.4 on Fri May 17 18:38:10 2013 */ #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 < 0x02040000 #error Cython requires Python 2.4+. #else #include /* For offsetof */ #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #endif #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #define PY_FORMAT_SIZE_T "" #define CYTHON_FORMAT_SSIZE_T "" #define PyInt_FromSsize_t(z) PyInt_FromLong(z) #define PyInt_AsSsize_t(o) __Pyx_PyInt_AsInt(o) #define PyNumber_Index(o) ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \ (PyErr_Format(PyExc_TypeError, \ "expected index value, got %.200s", Py_TYPE(o)->tp_name), \ (PyObject*)0)) #define __Pyx_PyIndex_Check(o) (PyNumber_Check(o) && !PyFloat_Check(o) && \ !PyComplex_Check(o)) #define PyIndex_Check __Pyx_PyIndex_Check #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message) #define __PYX_BUILD_PY_SSIZE_T "i" #else #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #define __Pyx_PyIndex_Check PyIndex_Check #endif #if PY_VERSION_HEX < 0x02060000 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt) #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size) #define PyVarObject_HEAD_INIT(type, size) \ PyObject_HEAD_INIT(type) size, #define PyType_Modified(t) typedef struct { void *buf; PyObject *obj; Py_ssize_t len; Py_ssize_t itemsize; int readonly; int ndim; char *format; Py_ssize_t *shape; Py_ssize_t *strides; Py_ssize_t *suboffsets; void *internal; } Py_buffer; #define PyBUF_SIMPLE 0 #define PyBUF_WRITABLE 0x0001 #define PyBUF_FORMAT 0x0004 #define PyBUF_ND 0x0008 #define PyBUF_STRIDES (0x0010 | PyBUF_ND) #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES) #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES) #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES) #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES) #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE) #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE) typedef int (*getbufferproc)(PyObject *, Py_buffer *, int); typedef void (*releasebufferproc)(PyObject *, Py_buffer *); #endif #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \ PyCode_New(a, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #endif #if PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION < 6 #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict") #endif #if PY_MAJOR_VERSION >= 3 #define Py_TPFLAGS_CHECKTYPES 0 #define Py_TPFLAGS_HAVE_INDEX 0 #endif #if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3) #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ? \ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #else #define CYTHON_PEP393_ENABLED 0 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_READ(k, d, i) ((k=k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #endif #if PY_VERSION_HEX < 0x02060000 #define PyBytesObject PyStringObject #define PyBytes_Type PyString_Type #define PyBytes_Check PyString_Check #define PyBytes_CheckExact PyString_CheckExact #define PyBytes_FromString PyString_FromString #define PyBytes_FromStringAndSize PyString_FromStringAndSize #define PyBytes_FromFormat PyString_FromFormat #define PyBytes_DecodeEscape PyString_DecodeEscape #define PyBytes_AsString PyString_AsString #define PyBytes_AsStringAndSize PyString_AsStringAndSize #define PyBytes_Size PyString_Size #define PyBytes_AS_STRING PyString_AS_STRING #define PyBytes_GET_SIZE PyString_GET_SIZE #define PyBytes_Repr PyString_Repr #define PyBytes_Concat PyString_Concat #define PyBytes_ConcatAndDel PyString_ConcatAndDel #endif #if PY_VERSION_HEX < 0x02060000 #define PySet_Check(obj) PyObject_TypeCheck(obj, &PySet_Type) #define PyFrozenSet_Check(obj) PyObject_TypeCheck(obj, &PyFrozenSet_Type) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_VERSION_HEX < 0x03020000 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300) #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b) #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value) #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b) #else #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \ (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \ (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \ (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0))) #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \ (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \ (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \ (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1))) #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \ (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \ (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \ (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1))) #endif #if PY_MAJOR_VERSION >= 3 #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) #endif #if PY_VERSION_HEX < 0x02050000 #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n))) #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a)) #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n))) #else #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n)) #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a)) #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n)) #endif #if PY_VERSION_HEX < 0x02050000 #define __Pyx_NAMESTR(n) ((char *)(n)) #define __Pyx_DOCSTR(n) ((char *)(n)) #else #define __Pyx_NAMESTR(n) (n) #define __Pyx_DOCSTR(n) (n) #endif #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" #else #define __PYX_EXTERN_C extern #endif #endif #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include #define __PYX_HAVE__tables__utilsextension #define __PYX_HAVE_API__tables__utilsextension #include "time.h" #include "stdio.h" #include "stdlib.h" #include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "hdf5.h" #include "H5ATTR.h" #include "H5ARRAY.h" #include "utils.h" #include "typeconv.h" #include "blosc_filter.h" #include "pythread.h" #include "string.h" #include "blosc.h" #ifdef _OPENMP #include #endif /* _OPENMP */ #ifdef PYREX_WITHOUT_ASSERTIONS #define CYTHON_WITHOUT_ASSERTIONS #endif /* inline attribute */ #ifndef CYTHON_INLINE #if defined(__GNUC__) #define CYTHON_INLINE __inline__ #elif defined(_MSC_VER) #define CYTHON_INLINE __inline #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_INLINE inline #else #define CYTHON_INLINE #endif #endif /* unused attribute */ #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 typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/ /* Type Conversion Predeclarations */ #define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s) #define __Pyx_PyBytes_AsUString(s) ((unsigned char*) PyBytes_AsString(s)) #define __Pyx_Owned_Py_None(b) (Py_INCREF(Py_None), Py_None) #define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False)) static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x); static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*); #if CYTHON_COMPILING_IN_CPYTHON #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #ifdef __GNUC__ /* Test for GCC > 2.95 */ #if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* __GNUC__ > 2 ... */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ > 2 ... */ #else /* __GNUC__ */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static PyObject *__pyx_m; static PyObject *__pyx_b; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; #if !defined(CYTHON_CCOMPLEX) #if defined(__cplusplus) #define CYTHON_CCOMPLEX 1 #elif defined(_Complex_I) #define CYTHON_CCOMPLEX 1 #else #define CYTHON_CCOMPLEX 0 #endif #endif #if CYTHON_CCOMPLEX #ifdef __cplusplus #include #else #include #endif #endif #if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__) #undef _Complex_I #define _Complex_I 1.0fj #endif static const char *__pyx_f[] = { "utilsextension.pyx", "numpy.pxd", "type.pxd", "bool.pxd", "complex.pxd", }; /* "numpy.pxd":723 * # in Cython to enable them only on the right systems. * * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<< * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t */ typedef npy_int8 __pyx_t_5numpy_int8_t; /* "numpy.pxd":724 * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t */ typedef npy_int16 __pyx_t_5numpy_int16_t; /* "numpy.pxd":725 * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<< * ctypedef npy_int64 int64_t * #ctypedef npy_int96 int96_t */ typedef npy_int32 __pyx_t_5numpy_int32_t; /* "numpy.pxd":726 * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<< * #ctypedef npy_int96 int96_t * #ctypedef npy_int128 int128_t */ typedef npy_int64 __pyx_t_5numpy_int64_t; /* "numpy.pxd":730 * #ctypedef npy_int128 int128_t * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t */ typedef npy_uint8 __pyx_t_5numpy_uint8_t; /* "numpy.pxd":731 * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t */ typedef npy_uint16 __pyx_t_5numpy_uint16_t; /* "numpy.pxd":732 * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<< * ctypedef npy_uint64 uint64_t * #ctypedef npy_uint96 uint96_t */ typedef npy_uint32 __pyx_t_5numpy_uint32_t; /* "numpy.pxd":733 * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<< * #ctypedef npy_uint96 uint96_t * #ctypedef npy_uint128 uint128_t */ typedef npy_uint64 __pyx_t_5numpy_uint64_t; /* "numpy.pxd":737 * #ctypedef npy_uint128 uint128_t * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< * ctypedef npy_float64 float64_t * #ctypedef npy_float80 float80_t */ typedef npy_float32 __pyx_t_5numpy_float32_t; /* "numpy.pxd":738 * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< * #ctypedef npy_float80 float80_t * #ctypedef npy_float128 float128_t */ typedef npy_float64 __pyx_t_5numpy_float64_t; /* "numpy.pxd":747 * # The int types are mapped a bit surprising -- * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t # <<<<<<<<<<<<<< * ctypedef npy_longlong long_t * ctypedef npy_longlong longlong_t */ typedef npy_long __pyx_t_5numpy_int_t; /* "numpy.pxd":748 * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t * ctypedef npy_longlong long_t # <<<<<<<<<<<<<< * ctypedef npy_longlong longlong_t * */ typedef npy_longlong __pyx_t_5numpy_long_t; /* "numpy.pxd":749 * ctypedef npy_long int_t * ctypedef npy_longlong long_t * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< * * ctypedef npy_ulong uint_t */ typedef npy_longlong __pyx_t_5numpy_longlong_t; /* "numpy.pxd":751 * ctypedef npy_longlong longlong_t * * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<< * ctypedef npy_ulonglong ulong_t * ctypedef npy_ulonglong ulonglong_t */ typedef npy_ulong __pyx_t_5numpy_uint_t; /* "numpy.pxd":752 * * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<< * ctypedef npy_ulonglong ulonglong_t * */ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; /* "numpy.pxd":753 * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< * * ctypedef npy_intp intp_t */ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; /* "numpy.pxd":755 * ctypedef npy_ulonglong ulonglong_t * * ctypedef npy_intp intp_t # <<<<<<<<<<<<<< * ctypedef npy_uintp uintp_t * */ typedef npy_intp __pyx_t_5numpy_intp_t; /* "numpy.pxd":756 * * ctypedef npy_intp intp_t * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<< * * ctypedef npy_double float_t */ typedef npy_uintp __pyx_t_5numpy_uintp_t; /* "numpy.pxd":758 * ctypedef npy_uintp uintp_t * * ctypedef npy_double float_t # <<<<<<<<<<<<<< * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t */ typedef npy_double __pyx_t_5numpy_float_t; /* "numpy.pxd":759 * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< * ctypedef npy_longdouble longdouble_t * */ typedef npy_double __pyx_t_5numpy_double_t; /* "numpy.pxd":760 * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< * * ctypedef npy_cfloat cfloat_t */ typedef npy_longdouble __pyx_t_5numpy_longdouble_t; #if CYTHON_CCOMPLEX #ifdef __cplusplus typedef ::std::complex< float > __pyx_t_float_complex; #else typedef float _Complex __pyx_t_float_complex; #endif #else typedef struct { float real, imag; } __pyx_t_float_complex; #endif #if CYTHON_CCOMPLEX #ifdef __cplusplus typedef ::std::complex< double > __pyx_t_double_complex; #else typedef double _Complex __pyx_t_double_complex; #endif #else typedef struct { double real, imag; } __pyx_t_double_complex; #endif /*--- Type declarations ---*/ /* "numpy.pxd":762 * ctypedef npy_longdouble longdouble_t * * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<< * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t */ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; /* "numpy.pxd":763 * * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<< * ctypedef npy_clongdouble clongdouble_t * */ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; /* "numpy.pxd":764 * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<< * * ctypedef npy_cdouble complex_t */ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; /* "numpy.pxd":766 * ctypedef npy_clongdouble clongdouble_t * * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<< * * cdef inline object PyArray_MultiIterNew1(a): */ typedef npy_cdouble __pyx_t_5numpy_complex_t; #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/ #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil) \ if (acquire_gil) { \ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); \ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \ PyGILState_Release(__pyx_gilstate_save); \ } else { \ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil) \ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext() \ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif /* CYTHON_REFNANNY */ #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } #define __Pyx_GetItemInt_List(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \ __Pyx_GetItemInt_List_Fast(o, i) : \ __Pyx_GetItemInt_Generic(o, to_py_func(i))) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) { #if CYTHON_COMPILING_IN_CPYTHON if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, i); Py_INCREF(r); return r; } else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) { PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } #define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \ __Pyx_GetItemInt_Tuple_Fast(o, i) : \ __Pyx_GetItemInt_Generic(o, to_py_func(i))) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) { #if CYTHON_COMPILING_IN_CPYTHON if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, i); Py_INCREF(r); return r; } else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) { PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } #define __Pyx_GetItemInt(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \ __Pyx_GetItemInt_Fast(o, i) : \ __Pyx_GetItemInt_Generic(o, to_py_func(i))) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i) { #if CYTHON_COMPILING_IN_CPYTHON if (PyList_CheckExact(o)) { Py_ssize_t n = (likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if (likely((n >= 0) & (n < PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = (likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if (likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { /* inlined PySequence_GetItem() */ PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (unlikely(l < 0)) return NULL; i += l; } return m->sq_item(o, i); } } #else if (PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } static CYTHON_INLINE int __Pyx_PySequence_Contains(PyObject* item, PyObject* seq, int eq) { int result = PySequence_Contains(seq, item); return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); } #ifndef __PYX_FORCE_INIT_THREADS #define __PYX_FORCE_INIT_THREADS 0 #endif static CYTHON_INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) { if (likely(PyList_CheckExact(L))) { if (unlikely(PyList_Append(L, x) < 0)) return NULL; Py_INCREF(Py_None); return Py_None; /* this is just to have an accurate signature */ } else { PyObject *r, *m; m = __Pyx_GetAttrString(L, "append"); if (!m) return NULL; r = PyObject_CallFunctionObjArgs(m, x, NULL); Py_DECREF(m); return r; } } static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /*proto*/ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], \ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, \ const char* function_name); /*proto*/ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/ static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, const char *name, int exact); /*proto*/ static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); static CYTHON_INLINE int __Pyx_IterFinish(void); /*proto*/ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /*proto*/ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/ #define __Pyx_PyIter_Next(obj) __Pyx_PyIter_Next2(obj, NULL) static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject *, PyObject *); /*proto*/ static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level); /*proto*/ static CYTHON_INLINE void __Pyx_RaiseImportError(PyObject *name); static CYTHON_INLINE hid_t __Pyx_PyInt_from_py_hid_t(PyObject *); static CYTHON_INLINE hsize_t __Pyx_PyInt_from_py_hsize_t(PyObject *); static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t); static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hssize_t(hssize_t); #if CYTHON_CCOMPLEX #ifdef __cplusplus #define __Pyx_CREAL(z) ((z).real()) #define __Pyx_CIMAG(z) ((z).imag()) #else #define __Pyx_CREAL(z) (__real__(z)) #define __Pyx_CIMAG(z) (__imag__(z)) #endif #else #define __Pyx_CREAL(z) ((z).real) #define __Pyx_CIMAG(z) ((z).imag) #endif #if defined(_WIN32) && defined(__cplusplus) && CYTHON_CCOMPLEX #define __Pyx_SET_CREAL(z,x) ((z).real(x)) #define __Pyx_SET_CIMAG(z,y) ((z).imag(y)) #else #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x) #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y) #endif static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float); #if CYTHON_CCOMPLEX #define __Pyx_c_eqf(a, b) ((a)==(b)) #define __Pyx_c_sumf(a, b) ((a)+(b)) #define __Pyx_c_difff(a, b) ((a)-(b)) #define __Pyx_c_prodf(a, b) ((a)*(b)) #define __Pyx_c_quotf(a, b) ((a)/(b)) #define __Pyx_c_negf(a) (-(a)) #ifdef __cplusplus #define __Pyx_c_is_zerof(z) ((z)==(float)0) #define __Pyx_c_conjf(z) (::std::conj(z)) #if 1 #define __Pyx_c_absf(z) (::std::abs(z)) #define __Pyx_c_powf(a, b) (::std::pow(a, b)) #endif #else #define __Pyx_c_is_zerof(z) ((z)==0) #define __Pyx_c_conjf(z) (conjf(z)) #if 1 #define __Pyx_c_absf(z) (cabsf(z)) #define __Pyx_c_powf(a, b) (cpowf(a, b)) #endif #endif #else static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex, __pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex, __pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex, __pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex, __pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex, __pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex); static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex); #if 1 static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex); static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex, __pyx_t_float_complex); #endif #endif static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double); #if CYTHON_CCOMPLEX #define __Pyx_c_eq(a, b) ((a)==(b)) #define __Pyx_c_sum(a, b) ((a)+(b)) #define __Pyx_c_diff(a, b) ((a)-(b)) #define __Pyx_c_prod(a, b) ((a)*(b)) #define __Pyx_c_quot(a, b) ((a)/(b)) #define __Pyx_c_neg(a) (-(a)) #ifdef __cplusplus #define __Pyx_c_is_zero(z) ((z)==(double)0) #define __Pyx_c_conj(z) (::std::conj(z)) #if 1 #define __Pyx_c_abs(z) (::std::abs(z)) #define __Pyx_c_pow(a, b) (::std::pow(a, b)) #endif #else #define __Pyx_c_is_zero(z) ((z)==0) #define __Pyx_c_conj(z) (conj(z)) #if 1 #define __Pyx_c_abs(z) (cabs(z)) #define __Pyx_c_pow(a, b) (cpow(a, b)) #endif #endif #else static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex, __pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex, __pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex, __pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex, __pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex, __pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex); static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex); #if 1 static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex); static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex, __pyx_t_double_complex); #endif #endif static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *); static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *); static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *); static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *); static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *); static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *); static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *); static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *); static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *); static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *); static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *); static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *); static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *); static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *); static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *); static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *); static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename); /*proto*/ static int __Pyx_check_binary_version(void); static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /*proto*/ #if !defined(__Pyx_PyIdentifier_FromString) #if PY_MAJOR_VERSION < 3 #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s) #else #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s) #endif #endif static PyObject *__Pyx_ImportModule(const char *name); /*proto*/ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict); /*proto*/ typedef struct { int code_line; PyCodeObject* code_object; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /*proto*/ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/ /* Module declarations from 'libc.stdio' */ /* Module declarations from 'cpython.buffer' */ /* Module declarations from 'cpython.ref' */ /* Module declarations from 'cpython.object' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.type' */ static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0; /* Module declarations from 'libc.stdlib' */ /* Module declarations from 'numpy' */ /* Module declarations from 'numpy' */ static PyTypeObject *__pyx_ptype_5numpy_dtype = 0; static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0; static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0; static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0; static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0; static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/ /* Module declarations from 'tables.definitions' */ /* Module declarations from 'cpython.version' */ /* Module declarations from 'cpython.exc' */ /* Module declarations from 'cpython.module' */ /* Module declarations from 'cpython.mem' */ /* Module declarations from 'cpython.tuple' */ /* Module declarations from 'cpython.list' */ /* Module declarations from 'cpython.sequence' */ /* Module declarations from 'cpython.mapping' */ /* Module declarations from 'cpython.iterator' */ /* Module declarations from 'cpython.number' */ /* Module declarations from 'cpython.int' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.bool' */ static PyTypeObject *__pyx_ptype_7cpython_4bool_bool = 0; /* Module declarations from 'cpython.long' */ /* Module declarations from 'cpython.float' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.complex' */ static PyTypeObject *__pyx_ptype_7cpython_7complex_complex = 0; /* Module declarations from 'cpython.string' */ /* Module declarations from 'cpython.unicode' */ /* Module declarations from 'cpython.dict' */ /* Module declarations from 'cpython.instance' */ /* Module declarations from 'cpython.function' */ /* Module declarations from 'cpython.method' */ /* Module declarations from 'cpython.weakref' */ /* Module declarations from 'cpython.getargs' */ /* Module declarations from 'cpython.pythread' */ /* Module declarations from 'cpython.pystate' */ /* Module declarations from 'cpython.cobject' */ /* Module declarations from 'cpython.oldbuffer' */ /* Module declarations from 'cpython.set' */ /* Module declarations from 'cpython.bytes' */ /* Module declarations from 'cpython.pycapsule' */ /* Module declarations from 'cpython' */ /* Module declarations from 'libc.string' */ /* Module declarations from 'tables.utilsextension' */ static int __pyx_v_6tables_14utilsextension_have_float16; static hsize_t *__pyx_f_6tables_14utilsextension_malloc_dims(PyObject *); /*proto*/ static PyObject *__pyx_f_6tables_14utilsextension_cstr_to_pystr(const char *); /*proto*/ static PyObject *__pyx_f_6tables_14utilsextension_register_blosc_(void); /*proto*/ static herr_t __pyx_f_6tables_14utilsextension_e_walk_cb(unsigned int, H5E_error_t *, void *); /*proto*/ static hid_t __pyx_f_6tables_14utilsextension_get_native_float_type(hid_t); /*proto*/ static hid_t __pyx_f_6tables_14utilsextension_get_nested_native_type(hid_t); /*proto*/ #define __Pyx_MODULE_NAME "tables.utilsextension" int __pyx_module_is_main_tables__utilsextension = 0; /* Implementation of 'tables.utilsextension' */ static PyObject *__pyx_builtin_ImportError; static PyObject *__pyx_builtin_ValueError; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_KeyError; static PyObject *__pyx_builtin_TypeError; static PyObject *__pyx_builtin_NotImplementedError; static PyObject *__pyx_builtin_RuntimeError; static PyObject *__pyx_pf_6tables_14utilsextension__arch_without_blosc(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_2set_blosc_max_threads(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_nthreads); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_4_dump_h5_backtrace(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_6silence_hdf5_messages(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_silence); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_8encode_filename(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_filename); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_10is_hdf5_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_filename); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_12is_pytables_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_filename); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_14get_hdf5_version(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_16get_pytables_version(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_18which_lib_version(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_20which_class(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_loc_id, PyObject *__pyx_v_name); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_22get_nested_field(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_recarray, PyObject *__pyx_v_fieldname); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_24get_indices(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_stop, PyObject *__pyx_v_step, hsize_t __pyx_v_length); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_26read_f_attr(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_file_id, PyObject *__pyx_v_attr_name); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_28get_filters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_parent_id, PyObject *__pyx_v_name); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_30get_type_enum(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_h5type); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_32enum_from_hdf5(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_enumId, CYTHON_UNUSED PyObject *__pyx_v_byteorder); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_34enum_to_hdf5(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_enumAtom, PyObject *__pyx_v_byteorder); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_36atom_to_hdf5_type(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_atom, PyObject *__pyx_v_byteorder); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_38load_enum(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_40hdf5_to_np_nested_type(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_42hdf5_to_np_ext_type(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id, PyObject *__pyx_v_pure_numpy_types, PyObject *__pyx_v_atom); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_44atom_from_hdf5_type(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id, PyObject *__pyx_v_pure_numpy_types); /* proto */ static PyObject *__pyx_pf_6tables_14utilsextension_46create_nested_type(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc, PyObject *__pyx_v_byteorder); /* 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 char __pyx_k_3[] = "utf-8"; static char __pyx_k_8[] = "unable to configure HDF5 internal error handling"; static char __pyx_k_10[] = "getfilesystemencoding"; static char __pyx_k_11[] = "problems identifying file ``%s``"; static char __pyx_k_12[] = "PYTABLES_FORMAT_VERSION"; static char __pyx_k_16[] = "asked version of unsupported library ``%s``; supported library names are ``%s``"; static char __pyx_k_18[] = "Problems getting ndims."; static char __pyx_k_20[] = "Unable to get array info."; static char __pyx_k_23[] = "/"; static char __pyx_k_25[] = "no such column: %s"; static char __pyx_k_26[] = "Problems getting the indices on slice '%s'"; static char __pyx_k_29[] = "failed to get class of HDF5 type"; static char __pyx_k_31[] = "enumerated values can not be stored using the given type"; static char __pyx_k_33[] = "sorry, only integer concrete values are supported at this moment"; static char __pyx_k_37[] = "failed to get element count of HDF5 enumerated type"; static char __pyx_k_39[] = "failed to get element name from HDF5 enumerated type"; static char __pyx_k_41[] = "failed to get element value from HDF5 enumerated type"; static char __pyx_k_43[] = "failed to create HDF5 enumerated type"; static char __pyx_k_45[] = "failed to close HDF5 base type"; static char __pyx_k_48[] = "failed to insert value into HDF5 enumerated type"; static char __pyx_k_50[] = "failed to close HDF5 enumerated type"; static char __pyx_k_53[] = "Invalid type for atom %s"; static char __pyx_k_55[] = "hdf5_to_np_nested_type"; static char __pyx_k_58[] = "i%s"; static char __pyx_k_59[] = "u%s"; static char __pyx_k_60[] = "f%s"; static char __pyx_k_61[] = "c%s"; static char __pyx_k_62[] = "the HDF5 class ``%s`` is not supported yet"; static char __pyx_k_63[] = "hdf5_class_to_string"; static char __pyx_k_64[] = "variable length strings are not supported yet"; static char __pyx_k_66[] = "S%s"; static char __pyx_k_67[] = "t%s"; static char __pyx_k_69[] = "npext_prefixes_to_ptkinds"; static char __pyx_k_71[] = "ndarray is not C contiguous"; static char __pyx_k_73[] = "ndarray is not Fortran contiguous"; static char __pyx_k_75[] = "Non-native byte order not supported"; static char __pyx_k_77[] = "unknown dtype code in numpy.pxd (%d)"; static char __pyx_k_78[] = "Format string allocated too short, see comment in numpy.pxd"; static char __pyx_k_81[] = "Format string allocated too short."; static char __pyx_k_83[] = "Cython utilities for PyTables and HDF5 library."; static char __pyx_k_84[] = "tables.description"; static char __pyx_k_85[] = "tables.misc.enum"; static char __pyx_k_86[] = "tables.exceptions"; static char __pyx_k_87[] = "tables.atom"; static char __pyx_k_88[] = "tables.utils"; static char __pyx_k_89[] = "tables._past"; static char __pyx_k_90[] = "NPExtPrefixesToPTKinds"; static char __pyx_k_93[] = "/home/antonio/projects/PyTables/tables/utilsextension.pyx"; static char __pyx_k_94[] = "tables.utilsextension"; static char __pyx_k_97[] = "set_blosc_max_threads"; static char __pyx_k_98[] = "tables._comp_lzo"; static char __pyx_k_99[] = "tables._comp_bzip2"; static char __pyx_k__B[] = "B"; static char __pyx_k__H[] = "H"; static char __pyx_k__I[] = "I"; static char __pyx_k__L[] = "L"; static char __pyx_k__O[] = "O"; static char __pyx_k__Q[] = "Q"; static char __pyx_k__S[] = "S"; static char __pyx_k__a[] = "a"; static char __pyx_k__b[] = "b"; static char __pyx_k__c[] = "c"; static char __pyx_k__d[] = "d"; static char __pyx_k__e[] = "e"; static char __pyx_k__f[] = "f"; static char __pyx_k__g[] = "g"; static char __pyx_k__h[] = "h"; static char __pyx_k__i[] = "i"; static char __pyx_k__k[] = "k"; static char __pyx_k__l[] = "l"; static char __pyx_k__q[] = "q"; static char __pyx_k__r[] = "r"; static char __pyx_k__s[] = "s"; static char __pyx_k__t[] = "t"; static char __pyx_k__u[] = "u"; static char __pyx_k_104[] = "silence_hdf5_messages"; static char __pyx_k_113[] = "get_pytables_version"; static char __pyx_k_114[] = "bzip2_version_string"; static char __pyx_k_115[] = "blosc_version_string"; static char __pyx_k__Zd[] = "Zd"; static char __pyx_k__Zf[] = "Zf"; static char __pyx_k__Zg[] = "Zg"; static char __pyx_k__b1[] = "b1"; static char __pyx_k__bt[] = "bt"; static char __pyx_k__Col[] = "Col"; static char __pyx_k__arm[] = "arm"; static char __pyx_k__err[] = "err"; static char __pyx_k__int[] = "int"; static char __pyx_k__lzo[] = "lzo"; static char __pyx_k__obj[] = "obj"; static char __pyx_k__pos[] = "pos"; static char __pyx_k__ret[] = "ret"; static char __pyx_k__sys[] = "sys"; static char __pyx_k__tid[] = "tid"; static char __pyx_k__Atom[] = "Atom"; static char __pyx_k__Enum[] = "Enum"; static char __pyx_k__arch[] = "arch"; static char __pyx_k__atom[] = "atom"; static char __pyx_k__base[] = "base"; static char __pyx_k__bool[] = "bool"; static char __pyx_k__cset[] = "cset"; static char __pyx_k__desc[] = "desc"; static char __pyx_k__dflt[] = "dflt"; static char __pyx_k__dims[] = "dims"; static char __pyx_k__enum[] = "enum"; static char __pyx_k__hdf5[] = "hdf5"; static char __pyx_k__imag[] = "imag"; static char __pyx_k__int8[] = "int8"; static char __pyx_k__kind[] = "kind"; static char __pyx_k__lzo1[] = "lzo1"; static char __pyx_k__lzo2[] = "lzo2"; static char __pyx_k__mips[] = "mips"; static char __pyx_k__name[] = "name"; static char __pyx_k__rank[] = "rank"; static char __pyx_k__rbuf[] = "rbuf"; static char __pyx_k__real[] = "real"; static char __pyx_k__sign[] = "sign"; static char __pyx_k__size[] = "size"; static char __pyx_k__step[] = "step"; static char __pyx_k__stop[] = "stop"; static char __pyx_k__str_[] = "str_"; static char __pyx_k__tid2[] = "tid2"; static char __pyx_k__time[] = "time"; static char __pyx_k__type[] = "type"; static char __pyx_k__uint[] = "uint"; static char __pyx_k__zlib[] = "zlib"; static char __pyx_k__ARRAY[] = "ARRAY"; static char __pyx_k__TABLE[] = "TABLE"; static char __pyx_k__array[] = "array"; static char __pyx_k__ascii[] = "ascii"; static char __pyx_k__atom_[] = "atom_"; static char __pyx_k__blosc[] = "blosc"; static char __pyx_k__bzip2[] = "bzip2"; static char __pyx_k__cname[] = "cname"; static char __pyx_k__dtype[] = "dtype"; static char __pyx_k__ename[] = "ename"; static char __pyx_k__field[] = "field"; static char __pyx_k__float[] = "float"; static char __pyx_k__int16[] = "int16"; static char __pyx_k__int32[] = "int32"; static char __pyx_k__int64[] = "int64"; static char __pyx_k__isptf[] = "isptf"; static char __pyx_k__lower[] = "lower"; static char __pyx_k__ndims[] = "ndims"; static char __pyx_k__numpy[] = "numpy"; static char __pyx_k__range[] = "range"; static char __pyx_k__shape[] = "shape"; static char __pyx_k__sparc[] = "sparc"; static char __pyx_k__split[] = "split"; static char __pyx_k__start[] = "start"; static char __pyx_k__stype[] = "stype"; static char __pyx_k__tsize[] = "tsize"; static char __pyx_k__uint8[] = "uint8"; static char __pyx_k__win32[] = "win32"; static char __pyx_k__CARRAY[] = "CARRAY"; static char __pyx_k__EARRAY[] = "EARRAY"; static char __pyx_k___names[] = "_names"; static char __pyx_k___v_pos[] = "_v_pos"; static char __pyx_k__baseId[] = "baseId"; static char __pyx_k__binver[] = "binver"; static char __pyx_k__bytes_[] = "bytes_"; static char __pyx_k__decode[] = "decode"; static char __pyx_k__encode[] = "encode"; static char __pyx_k__enumId[] = "enumId"; static char __pyx_k__h5type[] = "h5type"; static char __pyx_k__layout[] = "layout"; static char __pyx_k__length[] = "length"; static char __pyx_k__libbz2[] = "libbz2"; static char __pyx_k__little[] = "little"; static char __pyx_k__loc_id[] = "loc_id"; static char __pyx_k__nelems[] = "nelems"; static char __pyx_k__npenum[] = "npenum"; static char __pyx_k__nptype[] = "nptype"; static char __pyx_k__o_step[] = "o_step"; static char __pyx_k__o_stop[] = "o_stop"; static char __pyx_k__offset[] = "offset"; static char __pyx_k__sctype[] = "sctype"; static char __pyx_k__shape2[] = "shape2"; static char __pyx_k__string[] = "string"; static char __pyx_k__strver[] = "strver"; static char __pyx_k__tables[] = "tables"; static char __pyx_k__time32[] = "time32"; static char __pyx_k__time64[] = "time64"; static char __pyx_k__uint16[] = "uint16"; static char __pyx_k__uint32[] = "uint32"; static char __pyx_k__uint64[] = "uint64"; static char __pyx_k__VLARRAY[] = "VLARRAY"; static char __pyx_k___values[] = "_values"; static char __pyx_k__classId[] = "classId"; static char __pyx_k__colname[] = "colname"; static char __pyx_k__complex[] = "complex"; static char __pyx_k__encname[] = "encname"; static char __pyx_k__enumId2[] = "enumId2"; static char __pyx_k__file_id[] = "file_id"; static char __pyx_k__float16[] = "float16"; static char __pyx_k__float32[] = "float32"; static char __pyx_k__float64[] = "float64"; static char __pyx_k__float96[] = "float96"; static char __pyx_k__machine[] = "machine"; static char __pyx_k__maxdims[] = "maxdims"; static char __pyx_k__nfields[] = "nfields"; static char __pyx_k__npNames[] = "npNames"; static char __pyx_k__npvalue[] = "npvalue"; static char __pyx_k__o_start[] = "o_start"; static char __pyx_k__pyename[] = "pyename"; static char __pyx_k__rbuffer[] = "rbuffer"; static char __pyx_k__silence[] = "silence"; static char __pyx_k__type_id[] = "type_id"; static char __pyx_k__EnumAtom[] = "EnumAtom"; static char __pyx_k__H5T_ENUM[] = "H5T_ENUM"; static char __pyx_k__H5T_TIME[] = "H5T_TIME"; static char __pyx_k__H5T_VLEN[] = "H5T_VLEN"; static char __pyx_k__KeyError[] = "KeyError"; static char __pyx_k____main__[] = "__main__"; static char __pyx_k____test__[] = "__test__"; static char __pyx_k___v_dtype[] = "_v_dtype"; static char __pyx_k___v_names[] = "_v_names"; static char __pyx_k__baseAtom[] = "baseAtom"; static char __pyx_k__class_id[] = "class_id"; static char __pyx_k__encoding[] = "encoding"; static char __pyx_k__enumAtom[] = "enumAtom"; static char __pyx_k__enumDict[] = "enumDict"; static char __pyx_k__filename[] = "filename"; static char __pyx_k__float128[] = "float128"; static char __pyx_k__itemsize[] = "itemsize"; static char __pyx_k__libnames[] = "libnames"; static char __pyx_k__loadEnum[] = "loadEnum"; static char __pyx_k__npValues[] = "npValues"; static char __pyx_k__nthreads[] = "nthreads"; static char __pyx_k__platform[] = "platform"; static char __pyx_k__recarray[] = "recarray"; static char __pyx_k__retvalue[] = "retvalue"; static char __pyx_k__typeDict[] = "typeDict"; static char __pyx_k__warnings[] = "warnings"; static char __pyx_k__H5T_ARRAY[] = "H5T_ARRAY"; static char __pyx_k__H5T_FLOAT[] = "H5T_FLOAT"; static char __pyx_k__TypeError[] = "TypeError"; static char __pyx_k___comp_lzo[] = "_comp_lzo"; static char __pyx_k__attr_name[] = "attr_name"; static char __pyx_k__byteorder[] = "byteorder"; static char __pyx_k__c_colname[] = "c_colname"; static char __pyx_k__complex64[] = "complex64"; static char __pyx_k__fieldname[] = "fieldname"; static char __pyx_k__from_atom[] = "from_atom"; static char __pyx_k__from_kind[] = "from_kind"; static char __pyx_k__iscomplex[] = "iscomplex"; static char __pyx_k__load_enum[] = "load_enum"; static char __pyx_k__parent_id[] = "parent_id"; static char __pyx_k__register_[] = "register_"; static char __pyx_k__typeClass[] = "typeClass"; static char __pyx_k__H5T_OPAQUE[] = "H5T_OPAQUE"; static char __pyx_k__H5T_STD_B8[] = "H5T_STD_B8"; static char __pyx_k__H5T_STD_I8[] = "H5T_STD_I8"; static char __pyx_k__H5T_STD_U8[] = "H5T_STD_U8"; static char __pyx_k__H5T_STRING[] = "H5T_STRING"; static char __pyx_k__ValueError[] = "ValueError"; static char __pyx_k__attr_value[] = "attr_value"; static char __pyx_k__bytestride[] = "bytestride"; static char __pyx_k__cbyteorder[] = "cbyteorder"; static char __pyx_k__complex128[] = "complex128"; static char __pyx_k__complex192[] = "complex192"; static char __pyx_k__complex256[] = "complex256"; static char __pyx_k__dataset_id[] = "dataset_id"; static char __pyx_k__enumToHDF5[] = "enumToHDF5"; static char __pyx_k__from_dtype[] = "from_dtype"; static char __pyx_k__getFilters[] = "getFilters"; static char __pyx_k__getIndices[] = "getIndices"; static char __pyx_k__isHDF5File[] = "isHDF5File"; static char __pyx_k__nfieldname[] = "nfieldname"; static char __pyx_k__whichClass[] = "whichClass"; static char __pyx_k__Description[] = "Description"; static char __pyx_k__H5T_INTEGER[] = "H5T_INTEGER"; static char __pyx_k__H5T_STD_I16[] = "H5T_STD_I16"; static char __pyx_k__H5T_STD_I32[] = "H5T_STD_I32"; static char __pyx_k__H5T_STD_I64[] = "H5T_STD_I64"; static char __pyx_k__H5T_STD_U16[] = "H5T_STD_U16"; static char __pyx_k__H5T_STD_U32[] = "H5T_STD_U32"; static char __pyx_k__H5T_STD_U64[] = "H5T_STD_U64"; static char __pyx_k__ImportError[] = "ImportError"; static char __pyx_k__UNSUPPORTED[] = "UNSUPPORTED"; static char __pyx_k___comp_bzip2[] = "_comp_bzip2"; static char __pyx_k___v_itemsize[] = "_v_itemsize"; static char __pyx_k__c_attr_name[] = "c_attr_name"; static char __pyx_k__c_byteorder[] = "c_byteorder"; static char __pyx_k__field_name1[] = "field_name1"; static char __pyx_k__field_name2[] = "field_name2"; static char __pyx_k__getTypeEnum[] = "getTypeEnum"; static char __pyx_k__get_filters[] = "get_filters"; static char __pyx_k__get_indices[] = "get_indices"; static char __pyx_k__lzo_version[] = "lzo_version"; static char __pyx_k__read_f_attr[] = "read_f_attr"; static char __pyx_k__slicelength[] = "slicelength"; static char __pyx_k__which_class[] = "which_class"; static char __pyx_k__H5T_BITFIELD[] = "H5T_BITFIELD"; static char __pyx_k__H5T_COMPOUND[] = "H5T_COMPOUND"; static char __pyx_k__H5T_IEEE_F32[] = "H5T_IEEE_F32"; static char __pyx_k__H5T_IEEE_F64[] = "H5T_IEEE_F64"; static char __pyx_k__H5T_NO_CLASS[] = "H5T_NO_CLASS"; static char __pyx_k__H5T_UNIX_D32[] = "H5T_UNIX_D32"; static char __pyx_k__H5T_UNIX_D64[] = "H5T_UNIX_D64"; static char __pyx_k__HDF5ExtError[] = "HDF5ExtError"; static char __pyx_k__PTTypeToHDF5[] = "PTTypeToHDF5"; static char __pyx_k__RuntimeError[] = "RuntimeError"; static char __pyx_k__ZLIB_VERSION[] = "ZLIB_VERSION"; static char __pyx_k__encoded_name[] = "encoded_name"; static char __pyx_k__enumFromHDF5[] = "enumFromHDF5"; static char __pyx_k__enum_to_hdf5[] = "enum_to_hdf5"; static char __pyx_k__is_hdf5_file[] = "is_hdf5_file"; static char __pyx_k__previous_api[] = "previous_api"; static char __pyx_k__version_info[] = "version_info"; static char __pyx_k__H5T_REFERENCE[] = "H5T_REFERENCE"; static char __pyx_k___v_colobjects[] = "_v_colobjects"; static char __pyx_k__blosc_version[] = "blosc_version"; static char __pyx_k__bzip2_version[] = "bzip2_version"; static char __pyx_k__get_type_enum[] = "get_type_enum"; static char __pyx_k__super_type_id[] = "super_type_id"; static char __pyx_k__zlib_imported[] = "zlib_imported"; static char __pyx_k__AtomToHDF5Type[] = "AtomToHDF5Type"; static char __pyx_k__PTSpecialKinds[] = "PTSpecialKinds"; static char __pyx_k__enum_from_hdf5[] = "enum_from_hdf5"; static char __pyx_k__getHDF5Version[] = "getHDF5Version"; static char __pyx_k__getNestedField[] = "getNestedField"; static char __pyx_k__isPyTablesFile[] = "isPyTablesFile"; static char __pyx_k__member_type_id[] = "member_type_id"; static char __pyx_k__native_type_id[] = "native_type_id"; static char __pyx_k__pttype_to_hdf5[] = "pttype_to_hdf5"; static char __pyx_k__HDF5ToNPExtType[] = "HDF5ToNPExtType"; static char __pyx_k__encode_filename[] = "encode_filename"; static char __pyx_k__whichLibVersion[] = "whichLibVersion"; static char __pyx_k__AtomFromHDF5Type[] = "AtomFromHDF5Type"; static char __pyx_k__createNestedType[] = "createNestedType"; static char __pyx_k__get_hdf5_version[] = "get_hdf5_version"; static char __pyx_k__get_nested_field[] = "get_nested_field"; static char __pyx_k__is_pytables_file[] = "is_pytables_file"; static char __pyx_k__lzo_version_date[] = "lzo_version_date"; static char __pyx_k__pt_special_kinds[] = "pt_special_kinds"; static char __pyx_k__pure_numpy_types[] = "pure_numpy_types"; static char __pyx_k__HDF5ClassToString[] = "HDF5ClassToString"; static char __pyx_k__atom_to_hdf5_type[] = "atom_to_hdf5_type"; static char __pyx_k__check_file_access[] = "check_file_access"; static char __pyx_k__encoded_attr_name[] = "encoded_attr_name"; static char __pyx_k__encoded_byteorder[] = "encoded_byteorder"; static char __pyx_k__which_lib_version[] = "which_lib_version"; static char __pyx_k__HDF5ToNPNestedType[] = "HDF5ToNPNestedType"; static char __pyx_k___dump_h5_backtrace[] = "_dump_h5_backtrace"; static char __pyx_k__blosc_version_date[] = "blosc_version_date"; static char __pyx_k__bzip2_version_date[] = "bzip2_version_date"; static char __pyx_k__create_nested_type[] = "create_nested_type"; static char __pyx_k__getPyTablesVersion[] = "getPyTablesVersion"; static char __pyx_k__lzo_version_string[] = "lzo_version_string"; static char __pyx_k__platform_byteorder[] = "platform_byteorder"; static char __pyx_k__setBloscMaxThreads[] = "setBloscMaxThreads"; static char __pyx_k__NotImplementedError[] = "NotImplementedError"; static char __pyx_k___arch_without_blosc[] = "_arch_without_blosc"; static char __pyx_k__atom_from_hdf5_type[] = "atom_from_hdf5_type"; static char __pyx_k__hdf5_to_np_ext_type[] = "hdf5_to_np_ext_type"; static char __pyx_k__silenceHDF5Messages[] = "silenceHDF5Messages"; static PyObject *__pyx_n_s_10; static PyObject *__pyx_n_s_104; static PyObject *__pyx_kp_s_11; static PyObject *__pyx_n_s_113; static PyObject *__pyx_n_s_114; static PyObject *__pyx_n_s_115; static PyObject *__pyx_n_s_12; static PyObject *__pyx_kp_s_16; static PyObject *__pyx_kp_s_18; static PyObject *__pyx_kp_s_20; static PyObject *__pyx_kp_s_23; static PyObject *__pyx_kp_s_25; static PyObject *__pyx_kp_s_26; static PyObject *__pyx_kp_s_29; static PyObject *__pyx_kp_s_3; static PyObject *__pyx_kp_s_31; static PyObject *__pyx_kp_s_33; static PyObject *__pyx_kp_s_37; static PyObject *__pyx_kp_s_39; static PyObject *__pyx_kp_s_41; static PyObject *__pyx_kp_s_43; static PyObject *__pyx_kp_s_45; static PyObject *__pyx_kp_s_48; static PyObject *__pyx_kp_s_50; static PyObject *__pyx_kp_s_53; static PyObject *__pyx_n_s_55; static PyObject *__pyx_kp_s_58; static PyObject *__pyx_kp_s_59; static PyObject *__pyx_kp_s_60; static PyObject *__pyx_kp_s_61; static PyObject *__pyx_kp_s_62; static PyObject *__pyx_n_s_63; static PyObject *__pyx_kp_s_64; static PyObject *__pyx_kp_s_66; static PyObject *__pyx_kp_s_67; static PyObject *__pyx_n_s_69; static PyObject *__pyx_kp_u_71; static PyObject *__pyx_kp_u_73; static PyObject *__pyx_kp_u_75; static PyObject *__pyx_kp_u_77; static PyObject *__pyx_kp_u_78; static PyObject *__pyx_kp_s_8; static PyObject *__pyx_kp_u_81; static PyObject *__pyx_n_s_84; static PyObject *__pyx_n_s_85; static PyObject *__pyx_n_s_86; static PyObject *__pyx_n_s_87; static PyObject *__pyx_n_s_88; static PyObject *__pyx_n_s_89; static PyObject *__pyx_n_s_90; static PyObject *__pyx_kp_s_93; static PyObject *__pyx_n_s_94; static PyObject *__pyx_n_s_97; static PyObject *__pyx_n_s_98; static PyObject *__pyx_n_s_99; static PyObject *__pyx_n_s__ARRAY; static PyObject *__pyx_n_s__Atom; static PyObject *__pyx_n_s__AtomFromHDF5Type; static PyObject *__pyx_n_s__AtomToHDF5Type; static PyObject *__pyx_n_s__CARRAY; static PyObject *__pyx_n_s__Col; static PyObject *__pyx_n_s__Description; static PyObject *__pyx_n_s__EARRAY; static PyObject *__pyx_n_s__Enum; static PyObject *__pyx_n_s__EnumAtom; static PyObject *__pyx_n_s__H5T_ARRAY; static PyObject *__pyx_n_s__H5T_BITFIELD; static PyObject *__pyx_n_s__H5T_COMPOUND; static PyObject *__pyx_n_s__H5T_ENUM; static PyObject *__pyx_n_s__H5T_FLOAT; static PyObject *__pyx_n_s__H5T_IEEE_F32; static PyObject *__pyx_n_s__H5T_IEEE_F64; static PyObject *__pyx_n_s__H5T_INTEGER; static PyObject *__pyx_n_s__H5T_NO_CLASS; static PyObject *__pyx_n_s__H5T_OPAQUE; static PyObject *__pyx_n_s__H5T_REFERENCE; static PyObject *__pyx_n_s__H5T_STD_B8; static PyObject *__pyx_n_s__H5T_STD_I16; static PyObject *__pyx_n_s__H5T_STD_I32; static PyObject *__pyx_n_s__H5T_STD_I64; static PyObject *__pyx_n_s__H5T_STD_I8; static PyObject *__pyx_n_s__H5T_STD_U16; static PyObject *__pyx_n_s__H5T_STD_U32; static PyObject *__pyx_n_s__H5T_STD_U64; static PyObject *__pyx_n_s__H5T_STD_U8; static PyObject *__pyx_n_s__H5T_STRING; static PyObject *__pyx_n_s__H5T_TIME; static PyObject *__pyx_n_s__H5T_UNIX_D32; static PyObject *__pyx_n_s__H5T_UNIX_D64; static PyObject *__pyx_n_s__H5T_VLEN; static PyObject *__pyx_n_s__HDF5ClassToString; static PyObject *__pyx_n_s__HDF5ExtError; static PyObject *__pyx_n_s__HDF5ToNPExtType; static PyObject *__pyx_n_s__HDF5ToNPNestedType; static PyObject *__pyx_n_s__ImportError; static PyObject *__pyx_n_s__KeyError; static PyObject *__pyx_n_s__NotImplementedError; static PyObject *__pyx_n_s__PTSpecialKinds; static PyObject *__pyx_n_s__PTTypeToHDF5; static PyObject *__pyx_n_s__RuntimeError; static PyObject *__pyx_n_s__S; static PyObject *__pyx_n_s__TABLE; static PyObject *__pyx_n_s__TypeError; static PyObject *__pyx_n_s__UNSUPPORTED; static PyObject *__pyx_n_s__VLARRAY; static PyObject *__pyx_n_s__ValueError; static PyObject *__pyx_n_s__ZLIB_VERSION; static PyObject *__pyx_n_s____main__; static PyObject *__pyx_n_s____test__; static PyObject *__pyx_n_s___arch_without_blosc; static PyObject *__pyx_n_s___comp_bzip2; static PyObject *__pyx_n_s___comp_lzo; static PyObject *__pyx_n_s___dump_h5_backtrace; static PyObject *__pyx_n_s___names; static PyObject *__pyx_n_s___v_colobjects; static PyObject *__pyx_n_s___v_dtype; static PyObject *__pyx_n_s___v_itemsize; static PyObject *__pyx_n_s___v_names; static PyObject *__pyx_n_s___v_pos; static PyObject *__pyx_n_s___values; static PyObject *__pyx_n_s__a; static PyObject *__pyx_n_s__arch; static PyObject *__pyx_n_s__arm; static PyObject *__pyx_n_s__array; static PyObject *__pyx_n_s__ascii; static PyObject *__pyx_n_s__atom; static PyObject *__pyx_n_s__atom_; static PyObject *__pyx_n_s__atom_from_hdf5_type; static PyObject *__pyx_n_s__atom_to_hdf5_type; static PyObject *__pyx_n_s__attr_name; static PyObject *__pyx_n_s__attr_value; static PyObject *__pyx_n_s__b; static PyObject *__pyx_n_s__b1; static PyObject *__pyx_n_s__base; static PyObject *__pyx_n_s__baseAtom; static PyObject *__pyx_n_s__baseId; static PyObject *__pyx_n_s__binver; static PyObject *__pyx_n_s__blosc; static PyObject *__pyx_n_s__blosc_version; static PyObject *__pyx_n_s__blosc_version_date; static PyObject *__pyx_n_s__bool; static PyObject *__pyx_n_s__bt; static PyObject *__pyx_n_s__byteorder; static PyObject *__pyx_n_s__bytes_; static PyObject *__pyx_n_s__bytestride; static PyObject *__pyx_n_s__bzip2; static PyObject *__pyx_n_s__bzip2_version; static PyObject *__pyx_n_s__bzip2_version_date; static PyObject *__pyx_n_s__c; static PyObject *__pyx_n_s__c_attr_name; static PyObject *__pyx_n_s__c_byteorder; static PyObject *__pyx_n_s__c_colname; static PyObject *__pyx_n_s__cbyteorder; static PyObject *__pyx_n_s__check_file_access; static PyObject *__pyx_n_s__classId; static PyObject *__pyx_n_s__class_id; static PyObject *__pyx_n_s__cname; static PyObject *__pyx_n_s__colname; static PyObject *__pyx_n_s__complex; static PyObject *__pyx_n_s__complex128; static PyObject *__pyx_n_s__complex192; static PyObject *__pyx_n_s__complex256; static PyObject *__pyx_n_s__complex64; static PyObject *__pyx_n_s__createNestedType; static PyObject *__pyx_n_s__create_nested_type; static PyObject *__pyx_n_s__cset; static PyObject *__pyx_n_s__dataset_id; static PyObject *__pyx_n_s__decode; static PyObject *__pyx_n_s__desc; static PyObject *__pyx_n_s__dflt; static PyObject *__pyx_n_s__dims; static PyObject *__pyx_n_s__dtype; static PyObject *__pyx_n_s__e; static PyObject *__pyx_n_s__ename; static PyObject *__pyx_n_s__encname; static PyObject *__pyx_n_s__encode; static PyObject *__pyx_n_s__encode_filename; static PyObject *__pyx_n_s__encoded_attr_name; static PyObject *__pyx_n_s__encoded_byteorder; static PyObject *__pyx_n_s__encoded_name; static PyObject *__pyx_n_s__encoding; static PyObject *__pyx_n_s__enum; static PyObject *__pyx_n_s__enumAtom; static PyObject *__pyx_n_s__enumDict; static PyObject *__pyx_n_s__enumFromHDF5; static PyObject *__pyx_n_s__enumId; static PyObject *__pyx_n_s__enumId2; static PyObject *__pyx_n_s__enumToHDF5; static PyObject *__pyx_n_s__enum_from_hdf5; static PyObject *__pyx_n_s__enum_to_hdf5; static PyObject *__pyx_n_s__err; static PyObject *__pyx_n_s__f; static PyObject *__pyx_n_s__field; static PyObject *__pyx_n_s__field_name1; static PyObject *__pyx_n_s__field_name2; static PyObject *__pyx_n_s__fieldname; static PyObject *__pyx_n_s__file_id; static PyObject *__pyx_n_s__filename; static PyObject *__pyx_n_s__float; static PyObject *__pyx_n_s__float128; static PyObject *__pyx_n_s__float16; static PyObject *__pyx_n_s__float32; static PyObject *__pyx_n_s__float64; static PyObject *__pyx_n_s__float96; static PyObject *__pyx_n_s__from_atom; static PyObject *__pyx_n_s__from_dtype; static PyObject *__pyx_n_s__from_kind; static PyObject *__pyx_n_s__getFilters; static PyObject *__pyx_n_s__getHDF5Version; static PyObject *__pyx_n_s__getIndices; static PyObject *__pyx_n_s__getNestedField; static PyObject *__pyx_n_s__getPyTablesVersion; static PyObject *__pyx_n_s__getTypeEnum; static PyObject *__pyx_n_s__get_filters; static PyObject *__pyx_n_s__get_hdf5_version; static PyObject *__pyx_n_s__get_indices; static PyObject *__pyx_n_s__get_nested_field; static PyObject *__pyx_n_s__get_type_enum; static PyObject *__pyx_n_s__h5type; static PyObject *__pyx_n_s__hdf5; static PyObject *__pyx_n_s__hdf5_to_np_ext_type; static PyObject *__pyx_n_s__i; static PyObject *__pyx_n_s__int; static PyObject *__pyx_n_s__int16; static PyObject *__pyx_n_s__int32; static PyObject *__pyx_n_s__int64; static PyObject *__pyx_n_s__int8; static PyObject *__pyx_n_s__isHDF5File; static PyObject *__pyx_n_s__isPyTablesFile; static PyObject *__pyx_n_s__is_hdf5_file; static PyObject *__pyx_n_s__is_pytables_file; static PyObject *__pyx_n_s__iscomplex; static PyObject *__pyx_n_s__isptf; static PyObject *__pyx_n_s__itemsize; static PyObject *__pyx_n_s__k; static PyObject *__pyx_n_s__kind; static PyObject *__pyx_n_s__layout; static PyObject *__pyx_n_s__length; static PyObject *__pyx_n_s__libnames; static PyObject *__pyx_n_s__little; static PyObject *__pyx_n_s__loadEnum; static PyObject *__pyx_n_s__load_enum; static PyObject *__pyx_n_s__loc_id; static PyObject *__pyx_n_s__lower; static PyObject *__pyx_n_s__lzo; static PyObject *__pyx_n_s__lzo_version; static PyObject *__pyx_n_s__lzo_version_date; static PyObject *__pyx_n_s__lzo_version_string; static PyObject *__pyx_n_s__machine; static PyObject *__pyx_n_s__maxdims; static PyObject *__pyx_n_s__member_type_id; static PyObject *__pyx_n_s__mips; static PyObject *__pyx_n_s__name; static PyObject *__pyx_n_s__native_type_id; static PyObject *__pyx_n_s__ndims; static PyObject *__pyx_n_s__nelems; static PyObject *__pyx_n_s__nfieldname; static PyObject *__pyx_n_s__nfields; static PyObject *__pyx_n_s__npNames; static PyObject *__pyx_n_s__npValues; static PyObject *__pyx_n_s__npenum; static PyObject *__pyx_n_s__nptype; static PyObject *__pyx_n_s__npvalue; static PyObject *__pyx_n_s__nthreads; static PyObject *__pyx_n_s__numpy; static PyObject *__pyx_n_s__o_start; static PyObject *__pyx_n_s__o_step; static PyObject *__pyx_n_s__o_stop; static PyObject *__pyx_n_s__obj; static PyObject *__pyx_n_s__offset; static PyObject *__pyx_n_s__parent_id; static PyObject *__pyx_n_s__platform; static PyObject *__pyx_n_s__platform_byteorder; static PyObject *__pyx_n_s__pos; static PyObject *__pyx_n_s__previous_api; static PyObject *__pyx_n_s__pt_special_kinds; static PyObject *__pyx_n_s__pttype_to_hdf5; static PyObject *__pyx_n_s__pure_numpy_types; static PyObject *__pyx_n_s__pyename; static PyObject *__pyx_n_s__range; static PyObject *__pyx_n_s__rank; static PyObject *__pyx_n_s__rbuf; static PyObject *__pyx_n_s__rbuffer; static PyObject *__pyx_n_s__read_f_attr; static PyObject *__pyx_n_s__recarray; static PyObject *__pyx_n_s__register_; static PyObject *__pyx_n_s__ret; static PyObject *__pyx_n_s__retvalue; static PyObject *__pyx_n_s__s; static PyObject *__pyx_n_s__sctype; static PyObject *__pyx_n_s__setBloscMaxThreads; static PyObject *__pyx_n_s__shape; static PyObject *__pyx_n_s__shape2; static PyObject *__pyx_n_s__sign; static PyObject *__pyx_n_s__silence; static PyObject *__pyx_n_s__silenceHDF5Messages; static PyObject *__pyx_n_s__size; static PyObject *__pyx_n_s__slicelength; static PyObject *__pyx_n_s__sparc; static PyObject *__pyx_n_s__split; static PyObject *__pyx_n_s__start; static PyObject *__pyx_n_s__step; static PyObject *__pyx_n_s__stop; static PyObject *__pyx_n_s__str_; static PyObject *__pyx_n_s__string; static PyObject *__pyx_n_s__strver; static PyObject *__pyx_n_s__stype; static PyObject *__pyx_n_s__super_type_id; static PyObject *__pyx_n_s__sys; static PyObject *__pyx_n_s__t; static PyObject *__pyx_n_s__tables; static PyObject *__pyx_n_s__tid; static PyObject *__pyx_n_s__tid2; static PyObject *__pyx_n_s__time; static PyObject *__pyx_n_s__time32; static PyObject *__pyx_n_s__time64; static PyObject *__pyx_n_s__tsize; static PyObject *__pyx_n_s__type; static PyObject *__pyx_n_s__typeClass; static PyObject *__pyx_n_s__typeDict; static PyObject *__pyx_n_s__type_id; static PyObject *__pyx_n_s__u; static PyObject *__pyx_n_s__uint; static PyObject *__pyx_n_s__uint16; static PyObject *__pyx_n_s__uint32; static PyObject *__pyx_n_s__uint64; static PyObject *__pyx_n_s__uint8; static PyObject *__pyx_n_s__version_info; static PyObject *__pyx_n_s__warnings; static PyObject *__pyx_n_s__whichClass; static PyObject *__pyx_n_s__whichLibVersion; static PyObject *__pyx_n_s__which_class; static PyObject *__pyx_n_s__which_lib_version; static PyObject *__pyx_n_s__win32; static PyObject *__pyx_n_s__zlib; static PyObject *__pyx_n_s__zlib_imported; static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; static PyObject *__pyx_int_neg_1; static PyObject *__pyx_int_15; static PyObject *__pyx_k_7; static PyObject *__pyx_k_56; static PyObject *__pyx_k_57; static PyObject *__pyx_k_68; static PyObject *__pyx_k_tuple_1; static PyObject *__pyx_k_tuple_2; static PyObject *__pyx_k_tuple_4; static PyObject *__pyx_k_tuple_5; static PyObject *__pyx_k_tuple_6; static PyObject *__pyx_k_tuple_9; static PyObject *__pyx_k_tuple_13; static PyObject *__pyx_k_tuple_14; static PyObject *__pyx_k_tuple_15; static PyObject *__pyx_k_tuple_17; static PyObject *__pyx_k_tuple_19; static PyObject *__pyx_k_tuple_21; static PyObject *__pyx_k_tuple_22; static PyObject *__pyx_k_tuple_24; static PyObject *__pyx_k_tuple_27; static PyObject *__pyx_k_tuple_28; static PyObject *__pyx_k_tuple_30; static PyObject *__pyx_k_tuple_32; static PyObject *__pyx_k_tuple_34; static PyObject *__pyx_k_tuple_35; static PyObject *__pyx_k_tuple_36; static PyObject *__pyx_k_tuple_38; static PyObject *__pyx_k_tuple_40; static PyObject *__pyx_k_tuple_42; static PyObject *__pyx_k_tuple_44; static PyObject *__pyx_k_tuple_46; static PyObject *__pyx_k_tuple_47; static PyObject *__pyx_k_tuple_49; static PyObject *__pyx_k_tuple_51; static PyObject *__pyx_k_tuple_52; static PyObject *__pyx_k_tuple_54; static PyObject *__pyx_k_tuple_65; static PyObject *__pyx_k_tuple_70; static PyObject *__pyx_k_tuple_72; static PyObject *__pyx_k_tuple_74; static PyObject *__pyx_k_tuple_76; static PyObject *__pyx_k_tuple_79; static PyObject *__pyx_k_tuple_80; static PyObject *__pyx_k_tuple_82; static PyObject *__pyx_k_tuple_91; static PyObject *__pyx_k_tuple_95; static PyObject *__pyx_k_tuple_100; static PyObject *__pyx_k_tuple_102; static PyObject *__pyx_k_tuple_105; static PyObject *__pyx_k_tuple_107; static PyObject *__pyx_k_tuple_109; static PyObject *__pyx_k_tuple_116; static PyObject *__pyx_k_tuple_118; static PyObject *__pyx_k_tuple_120; static PyObject *__pyx_k_tuple_122; static PyObject *__pyx_k_tuple_124; static PyObject *__pyx_k_tuple_126; static PyObject *__pyx_k_tuple_128; static PyObject *__pyx_k_tuple_130; static PyObject *__pyx_k_tuple_132; static PyObject *__pyx_k_tuple_134; static PyObject *__pyx_k_tuple_136; static PyObject *__pyx_k_tuple_138; static PyObject *__pyx_k_tuple_140; static PyObject *__pyx_k_tuple_142; static PyObject *__pyx_k_tuple_144; static PyObject *__pyx_k_codeobj_92; static PyObject *__pyx_k_codeobj_96; static PyObject *__pyx_k_codeobj_101; static PyObject *__pyx_k_codeobj_103; static PyObject *__pyx_k_codeobj_106; static PyObject *__pyx_k_codeobj_108; static PyObject *__pyx_k_codeobj_110; static PyObject *__pyx_k_codeobj_111; static PyObject *__pyx_k_codeobj_112; static PyObject *__pyx_k_codeobj_117; static PyObject *__pyx_k_codeobj_119; static PyObject *__pyx_k_codeobj_121; static PyObject *__pyx_k_codeobj_123; static PyObject *__pyx_k_codeobj_125; static PyObject *__pyx_k_codeobj_127; static PyObject *__pyx_k_codeobj_129; static PyObject *__pyx_k_codeobj_131; static PyObject *__pyx_k_codeobj_133; static PyObject *__pyx_k_codeobj_135; static PyObject *__pyx_k_codeobj_137; static PyObject *__pyx_k_codeobj_139; static PyObject *__pyx_k_codeobj_141; static PyObject *__pyx_k_codeobj_143; static PyObject *__pyx_k_codeobj_145; /* "tables/utilsextension.pyx":197 * # @TODO: use the c_string_type and c_string_encoding global directives * # (new in cython 0.19) * cdef str cstr_to_pystr(const_char* cstring): # <<<<<<<<<<<<<< * if PY_MAJOR_VERSION > 2: * pystring = PyUnicode_DecodeUTF8(cstring, strlen(cstring), NULL) */ static PyObject *__pyx_f_6tables_14utilsextension_cstr_to_pystr(const char *__pyx_v_cstring) { PyObject *__pyx_v_pystring = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("cstr_to_pystr", 0); /* "tables/utilsextension.pyx":198 * # (new in cython 0.19) * cdef str cstr_to_pystr(const_char* cstring): * if PY_MAJOR_VERSION > 2: # <<<<<<<<<<<<<< * pystring = PyUnicode_DecodeUTF8(cstring, strlen(cstring), NULL) * else: */ __pyx_t_1 = (PY_MAJOR_VERSION > 2); if (__pyx_t_1) { /* "tables/utilsextension.pyx":199 * cdef str cstr_to_pystr(const_char* cstring): * if PY_MAJOR_VERSION > 2: * pystring = PyUnicode_DecodeUTF8(cstring, strlen(cstring), NULL) # <<<<<<<<<<<<<< * else: * pystring = bytes(cstring) */ __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_cstring, strlen(__pyx_v_cstring), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_pystring = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":201 * pystring = PyUnicode_DecodeUTF8(cstring, strlen(cstring), NULL) * else: * pystring = bytes(cstring) # <<<<<<<<<<<<<< * * return pystring */ __pyx_t_2 = PyBytes_FromString(((char *)__pyx_v_cstring)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)(&PyBytes_Type))), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_v_pystring = __pyx_t_2; __pyx_t_2 = 0; } __pyx_L3:; /* "tables/utilsextension.pyx":203 * pystring = bytes(cstring) * * return pystring # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(((PyObject *)__pyx_r)); if (!(likely(PyString_CheckExact(__pyx_v_pystring))||((__pyx_v_pystring) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected str, got %.200s", Py_TYPE(__pyx_v_pystring)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_pystring); __pyx_r = ((PyObject*)__pyx_v_pystring); goto __pyx_L0; __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.cstr_to_pystr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pystring); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":213 * import_array() * * cdef register_blosc_(): # <<<<<<<<<<<<<< * cdef char *version, *date * */ static PyObject *__pyx_f_6tables_14utilsextension_register_blosc_(void) { char *__pyx_v_version; char *__pyx_v_date; PyObject *__pyx_v_compinfo = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("register_blosc_", 0); /* "tables/utilsextension.pyx":216 * cdef char *version, *date * * register_blosc(&version, &date) # <<<<<<<<<<<<<< * compinfo = (version, date) * free(version) */ register_blosc((&__pyx_v_version), (&__pyx_v_date)); /* "tables/utilsextension.pyx":217 * * register_blosc(&version, &date) * compinfo = (version, date) # <<<<<<<<<<<<<< * free(version) * free(date) */ __pyx_t_1 = PyBytes_FromString(__pyx_v_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_t_2 = PyBytes_FromString(__pyx_v_date); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_1)); __Pyx_GIVEREF(((PyObject *)__pyx_t_1)); PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_v_compinfo = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":218 * register_blosc(&version, &date) * compinfo = (version, date) * free(version) # <<<<<<<<<<<<<< * free(date) * if sys.version_info[0] > 2: */ free(__pyx_v_version); /* "tables/utilsextension.pyx":219 * compinfo = (version, date) * free(version) * free(date) # <<<<<<<<<<<<<< * if sys.version_info[0] > 2: * return compinfo[0].decode('ascii'), compinfo[1].decode('ascii') */ free(__pyx_v_date); /* "tables/utilsextension.pyx":220 * free(version) * free(date) * if sys.version_info[0] > 2: # <<<<<<<<<<<<<< * return compinfo[0].decode('ascii'), compinfo[1].decode('ascii') * else: */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__version_info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, __pyx_int_2, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":221 * free(date) * if sys.version_info[0] > 2: * return compinfo[0].decode('ascii'), compinfo[1].decode('ascii') # <<<<<<<<<<<<<< * else: * return compinfo */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_GetItemInt_Tuple(((PyObject *)__pyx_v_compinfo), 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__decode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetItemInt_Tuple(((PyObject *)__pyx_v_compinfo), 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__decode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":223 * return compinfo[0].decode('ascii'), compinfo[1].decode('ascii') * else: * return compinfo # <<<<<<<<<<<<<< * * # The version of the blosc compression library that is currently included in */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_compinfo)); __pyx_r = ((PyObject *)__pyx_v_compinfo); goto __pyx_L0; } __pyx_L3:; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.register_blosc_", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_compinfo); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_1_arch_without_blosc(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyMethodDef __pyx_mdef_6tables_14utilsextension_1_arch_without_blosc = {__Pyx_NAMESTR("_arch_without_blosc"), (PyCFunction)__pyx_pw_6tables_14utilsextension_1_arch_without_blosc, METH_NOARGS, __Pyx_DOCSTR(0)}; static PyObject *__pyx_pw_6tables_14utilsextension_1_arch_without_blosc(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_arch_without_blosc (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension__arch_without_blosc(__pyx_self); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":231 * # This function detects if blosc can work correctly on the current platform. * # This function has been written by Julian Taylor . * def _arch_without_blosc(): # <<<<<<<<<<<<<< * import platform * arch = platform.machine().lower() */ static PyObject *__pyx_pf_6tables_14utilsextension__arch_without_blosc(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_v_platform = NULL; PyObject *__pyx_v_arch = NULL; PyObject *__pyx_v_a = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_arch_without_blosc", 0); /* "tables/utilsextension.pyx":232 * # This function has been written by Julian Taylor . * def _arch_without_blosc(): * import platform # <<<<<<<<<<<<<< * arch = platform.machine().lower() * for a in ["arm", "sparc", "mips"]: */ __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__platform), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_platform = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":233 * def _arch_without_blosc(): * import platform * arch = platform.machine().lower() # <<<<<<<<<<<<<< * for a in ["arm", "sparc", "mips"]: * if a in arch: */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_platform, __pyx_n_s__machine); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__lower); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_arch = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":234 * import platform * arch = platform.machine().lower() * for a in ["arm", "sparc", "mips"]: # <<<<<<<<<<<<<< * if a in arch: * return True */ __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_n_s__arm)); PyList_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__arm)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__arm)); __Pyx_INCREF(((PyObject *)__pyx_n_s__sparc)); PyList_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_n_s__sparc)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__sparc)); __Pyx_INCREF(((PyObject *)__pyx_n_s__mips)); PyList_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_n_s__mips)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__mips)); __pyx_t_1 = ((PyObject *)__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; for (;;) { if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __pyx_v_a = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":235 * arch = platform.machine().lower() * for a in ["arm", "sparc", "mips"]: * if a in arch: # <<<<<<<<<<<<<< * return True * return False */ __pyx_t_4 = (__Pyx_PySequence_Contains(__pyx_v_a, __pyx_v_arch, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_4) { /* "tables/utilsextension.pyx":236 * for a in ["arm", "sparc", "mips"]: * if a in arch: * return True # <<<<<<<<<<<<<< * return False * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; goto __pyx_L5; } __pyx_L5:; /* "tables/utilsextension.pyx":237 * if a in arch: * return True * return False # <<<<<<<<<<<<<< * * # Only register bloc compressor on platforms that actually support it. */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("tables.utilsextension._arch_without_blosc", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_platform); __Pyx_XDECREF(__pyx_v_arch); __Pyx_XDECREF(__pyx_v_a); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_3set_blosc_max_threads(PyObject *__pyx_self, PyObject *__pyx_v_nthreads); /*proto*/ static char __pyx_doc_6tables_14utilsextension_2set_blosc_max_threads[] = "set_blosc_max_threads(nthreads)\n\n Set the maximum number of threads that Blosc can use.\n\n This actually overrides the :data:`tables.parameters.MAX_BLOSC_THREADS`\n setting in :mod:`tables.parameters`, so the new value will be effective until\n this function is called again or a new file with a different\n :data:`tables.parameters.MAX_BLOSC_THREADS` value is specified.\n\n Returns the previous setting for maximum threads.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_3set_blosc_max_threads = {__Pyx_NAMESTR("set_blosc_max_threads"), (PyCFunction)__pyx_pw_6tables_14utilsextension_3set_blosc_max_threads, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_2set_blosc_max_threads)}; static PyObject *__pyx_pw_6tables_14utilsextension_3set_blosc_max_threads(PyObject *__pyx_self, PyObject *__pyx_v_nthreads) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_blosc_max_threads (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_2set_blosc_max_threads(__pyx_self, ((PyObject *)__pyx_v_nthreads)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":248 * # Important: Blosc calls that modifies global variables in Blosc must be * # called from the same extension where Blosc is registered in HDF5. * def set_blosc_max_threads(nthreads): # <<<<<<<<<<<<<< * """set_blosc_max_threads(nthreads) * */ static PyObject *__pyx_pf_6tables_14utilsextension_2set_blosc_max_threads(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_nthreads) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_blosc_max_threads", 0); /* "tables/utilsextension.pyx":262 * """ * * return blosc_set_nthreads(nthreads) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_nthreads); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_2 = PyInt_FromLong(blosc_set_nthreads(__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("tables.utilsextension.set_blosc_max_threads", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":309 * # XXX: silence warning about incompatible pointer types * #ctypedef H5E_error_t* const_H5E_error_t_ptr "const H5E_error_t*" * cdef herr_t e_walk_cb(unsigned n, H5E_error_t *err, void *data) with gil: # <<<<<<<<<<<<<< * cdef object bt = data # list * #cdef char major_msg[256] */ static herr_t __pyx_f_6tables_14utilsextension_e_walk_cb(CYTHON_UNUSED unsigned int __pyx_v_n, H5E_error_t *__pyx_v_err, void *__pyx_v_data) { PyObject *__pyx_v_bt = 0; PyObject *__pyx_v_msg = NULL; herr_t __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; #ifdef WITH_THREAD PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); #endif __Pyx_RefNannySetupContext("e_walk_cb", 0); /* "tables/utilsextension.pyx":310 * #ctypedef H5E_error_t* const_H5E_error_t_ptr "const H5E_error_t*" * cdef herr_t e_walk_cb(unsigned n, H5E_error_t *err, void *data) with gil: * cdef object bt = data # list # <<<<<<<<<<<<<< * #cdef char major_msg[256] * #cdef char minor_msg[256] */ __Pyx_INCREF(((PyObject *)__pyx_v_data)); __pyx_v_bt = ((PyObject *)__pyx_v_data); /* "tables/utilsextension.pyx":315 * #cdef ssize_t msg_len * * if err == NULL: # <<<<<<<<<<<<<< * return -1 * */ __pyx_t_1 = (__pyx_v_err == NULL); if (__pyx_t_1) { /* "tables/utilsextension.pyx":316 * * if err == NULL: * return -1 # <<<<<<<<<<<<<< * * #msg_len = H5Eget_msg(err.maj_num, NULL, major_msg, 256) */ __pyx_r = -1; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":331 * # bytes(minor_msg).decode('utf-8')) * * msg = bytes(err.desc).decode('utf-8') # <<<<<<<<<<<<<< * * bt.append(( */ __pyx_t_2 = PyBytes_FromString(((char *)__pyx_v_err->desc)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)(&PyBytes_Type))), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__decode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_msg = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":334 * * bt.append(( * bytes(err.file_name).decode('utf-8'), # <<<<<<<<<<<<<< * err.line, * bytes(err.func_name).decode('utf-8'), */ __pyx_t_2 = PyBytes_FromString(((char *)__pyx_v_err->file_name)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)(&PyBytes_Type))), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__decode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_5), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "tables/utilsextension.pyx":335 * bt.append(( * bytes(err.file_name).decode('utf-8'), * err.line, # <<<<<<<<<<<<<< * bytes(err.func_name).decode('utf-8'), * msg, */ __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_err->line); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); /* "tables/utilsextension.pyx":336 * bytes(err.file_name).decode('utf-8'), * err.line, * bytes(err.func_name).decode('utf-8'), # <<<<<<<<<<<<<< * msg, * )) */ __pyx_t_4 = PyBytes_FromString(((char *)__pyx_v_err->func_name)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_4)); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_t_4)); __Pyx_GIVEREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0; __pyx_t_4 = PyObject_Call(((PyObject *)((PyObject*)(&PyBytes_Type))), ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0; __pyx_t_5 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__decode); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_k_tuple_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "tables/utilsextension.pyx":337 * err.line, * bytes(err.func_name).decode('utf-8'), * msg, # <<<<<<<<<<<<<< * )) * */ __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_msg); PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_v_msg); __Pyx_GIVEREF(__pyx_v_msg); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_bt, ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tables/utilsextension.pyx":340 * )) * * return 0 # <<<<<<<<<<<<<< * * */ __pyx_r = 0; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_WriteUnraisable("tables.utilsextension.e_walk_cb", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bt); __Pyx_XDECREF(__pyx_v_msg); __Pyx_RefNannyFinishContext(); #ifdef WITH_THREAD PyGILState_Release(__pyx_gilstate_save); #endif return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_5_dump_h5_backtrace(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyMethodDef __pyx_mdef_6tables_14utilsextension_5_dump_h5_backtrace = {__Pyx_NAMESTR("_dump_h5_backtrace"), (PyCFunction)__pyx_pw_6tables_14utilsextension_5_dump_h5_backtrace, METH_NOARGS, __Pyx_DOCSTR(0)}; static PyObject *__pyx_pw_6tables_14utilsextension_5_dump_h5_backtrace(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_dump_h5_backtrace (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_4_dump_h5_backtrace(__pyx_self); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":343 * * * def _dump_h5_backtrace(): # <<<<<<<<<<<<<< * cdef object bt = [] * */ static PyObject *__pyx_pf_6tables_14utilsextension_4_dump_h5_backtrace(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_v_bt = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_dump_h5_backtrace", 0); /* "tables/utilsextension.pyx":344 * * def _dump_h5_backtrace(): * cdef object bt = [] # <<<<<<<<<<<<<< * * if H5Ewalk(H5E_DEFAULT, H5E_WALK_DOWNWARD, e_walk_cb, bt) < 0: */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bt = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":346 * cdef object bt = [] * * if H5Ewalk(H5E_DEFAULT, H5E_WALK_DOWNWARD, e_walk_cb, bt) < 0: # <<<<<<<<<<<<<< * return None * */ __pyx_t_2 = (H5Ewalk(H5E_DEFAULT, H5E_WALK_DOWNWARD, __pyx_f_6tables_14utilsextension_e_walk_cb, ((void *)__pyx_v_bt)) < 0); if (__pyx_t_2) { /* "tables/utilsextension.pyx":347 * * if H5Ewalk(H5E_DEFAULT, H5E_WALK_DOWNWARD, e_walk_cb, bt) < 0: * return None # <<<<<<<<<<<<<< * * return bt */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":349 * return None * * return bt # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_bt); __pyx_r = __pyx_v_bt; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("tables.utilsextension._dump_h5_backtrace", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bt); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_7silence_hdf5_messages(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_6silence_hdf5_messages[] = "silence_hdf5_messages(silence=True)\n\n Silence (or re-enable) messages from the HDF5 C library.\n\n The *silence* parameter can be used control the behaviour and reset\n the standard HDF5 logging.\n\n .. versionadded:: 2.4\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_7silence_hdf5_messages = {__Pyx_NAMESTR("silence_hdf5_messages"), (PyCFunction)__pyx_pw_6tables_14utilsextension_7silence_hdf5_messages, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_6silence_hdf5_messages)}; static PyObject *__pyx_pw_6tables_14utilsextension_7silence_hdf5_messages(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_silence = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("silence_hdf5_messages (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__silence,0}; PyObject* values[1] = {0}; values[0] = __pyx_k_7; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__silence); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "silence_hdf5_messages") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_silence = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("silence_hdf5_messages", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.silence_hdf5_messages", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_6silence_hdf5_messages(__pyx_self, __pyx_v_silence); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":358 * * * def silence_hdf5_messages(silence=True): # <<<<<<<<<<<<<< * """silence_hdf5_messages(silence=True) * */ static PyObject *__pyx_pf_6tables_14utilsextension_6silence_hdf5_messages(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_silence) { herr_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("silence_hdf5_messages", 0); /* "tables/utilsextension.pyx":370 * """ * cdef herr_t err * if silence: # <<<<<<<<<<<<<< * err = H5Eset_auto(H5E_DEFAULT, NULL, NULL) * else: */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_silence); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { /* "tables/utilsextension.pyx":371 * cdef herr_t err * if silence: * err = H5Eset_auto(H5E_DEFAULT, NULL, NULL) # <<<<<<<<<<<<<< * else: * err = H5Eset_auto(H5E_DEFAULT, H5Eprint, stderr) */ __pyx_v_err = H5Eset_auto(H5E_DEFAULT, NULL, NULL); goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":373 * err = H5Eset_auto(H5E_DEFAULT, NULL, NULL) * else: * err = H5Eset_auto(H5E_DEFAULT, H5Eprint, stderr) # <<<<<<<<<<<<<< * if err < 0: * raise HDF5ExtError("unable to configure HDF5 internal error handling") */ __pyx_v_err = H5Eset_auto(H5E_DEFAULT, ((H5E_auto_t)H5Eprint), stderr); } __pyx_L3:; /* "tables/utilsextension.pyx":374 * else: * err = H5Eset_auto(H5E_DEFAULT, H5Eprint, stderr) * if err < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("unable to configure HDF5 internal error handling") * */ __pyx_t_1 = (__pyx_v_err < 0); if (__pyx_t_1) { /* "tables/utilsextension.pyx":375 * err = H5Eset_auto(H5E_DEFAULT, H5Eprint, stderr) * if err < 0: * raise HDF5ExtError("unable to configure HDF5 internal error handling") # <<<<<<<<<<<<<< * * */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_9), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L4; } __pyx_L4:; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.silence_hdf5_messages", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":386 * * # Helper functions * cdef hsize_t *malloc_dims(object pdims): # <<<<<<<<<<<<<< * """Return a malloced hsize_t dims from a python pdims.""" * */ static hsize_t *__pyx_f_6tables_14utilsextension_malloc_dims(PyObject *__pyx_v_pdims) { int __pyx_v_i; int __pyx_v_rank; hsize_t *__pyx_v_dims; hsize_t *__pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; hsize_t __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("malloc_dims", 0); /* "tables/utilsextension.pyx":392 * cdef hsize_t *dims * * dims = NULL # <<<<<<<<<<<<<< * rank = len(pdims) * if rank > 0: */ __pyx_v_dims = NULL; /* "tables/utilsextension.pyx":393 * * dims = NULL * rank = len(pdims) # <<<<<<<<<<<<<< * if rank > 0: * dims = malloc(rank * sizeof(hsize_t)) */ __pyx_t_1 = PyObject_Length(__pyx_v_pdims); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_rank = __pyx_t_1; /* "tables/utilsextension.pyx":394 * dims = NULL * rank = len(pdims) * if rank > 0: # <<<<<<<<<<<<<< * dims = malloc(rank * sizeof(hsize_t)) * for i from 0 <= i < rank: */ __pyx_t_2 = (__pyx_v_rank > 0); if (__pyx_t_2) { /* "tables/utilsextension.pyx":395 * rank = len(pdims) * if rank > 0: * dims = malloc(rank * sizeof(hsize_t)) # <<<<<<<<<<<<<< * for i from 0 <= i < rank: * dims[i] = pdims[i] */ __pyx_v_dims = ((hsize_t *)malloc((__pyx_v_rank * (sizeof(hsize_t))))); /* "tables/utilsextension.pyx":396 * if rank > 0: * dims = malloc(rank * sizeof(hsize_t)) * for i from 0 <= i < rank: # <<<<<<<<<<<<<< * dims[i] = pdims[i] * return dims */ __pyx_t_3 = __pyx_v_rank; for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { /* "tables/utilsextension.pyx":397 * dims = malloc(rank * sizeof(hsize_t)) * for i from 0 <= i < rank: * dims[i] = pdims[i] # <<<<<<<<<<<<<< * return dims * */ __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pdims, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_from_py_hsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (hsize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (__pyx_v_dims[__pyx_v_i]) = __pyx_t_5; } goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":398 * for i from 0 <= i < rank: * dims[i] = pdims[i] * return dims # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_dims; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_WriteUnraisable("tables.utilsextension.malloc_dims", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":401 * * * cdef hid_t get_native_float_type(hid_t type_id) nogil: # <<<<<<<<<<<<<< * """Get a native type of an HDF5 float type. * */ static hid_t __pyx_f_6tables_14utilsextension_get_native_float_type(hid_t __pyx_v_type_id) { hid_t __pyx_v_native_type_id; size_t __pyx_v_precision; hid_t __pyx_r; int __pyx_t_1; int __pyx_t_2; /* "tables/utilsextension.pyx":411 * cdef size_t precision * * precision = H5Tget_precision(type_id) # <<<<<<<<<<<<<< * * if precision == 16 and have_float16: */ __pyx_v_precision = H5Tget_precision(__pyx_v_type_id); /* "tables/utilsextension.pyx":413 * precision = H5Tget_precision(type_id) * * if precision == 16 and have_float16: # <<<<<<<<<<<<<< * native_type_id = create_ieee_float16(NULL) * else: */ __pyx_t_1 = (__pyx_v_precision == 16); if (__pyx_t_1) { __pyx_t_2 = __pyx_v_6tables_14utilsextension_have_float16; } else { __pyx_t_2 = __pyx_t_1; } if (__pyx_t_2) { /* "tables/utilsextension.pyx":414 * * if precision == 16 and have_float16: * native_type_id = create_ieee_float16(NULL) # <<<<<<<<<<<<<< * else: * native_type_id = H5Tget_native_type(type_id, H5T_DIR_DEFAULT) */ __pyx_v_native_type_id = create_ieee_float16(NULL); goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":416 * native_type_id = create_ieee_float16(NULL) * else: * native_type_id = H5Tget_native_type(type_id, H5T_DIR_DEFAULT) # <<<<<<<<<<<<<< * * return native_type_id */ __pyx_v_native_type_id = H5Tget_native_type(__pyx_v_type_id, H5T_DIR_DEFAULT); } __pyx_L3:; /* "tables/utilsextension.pyx":418 * native_type_id = H5Tget_native_type(type_id, H5T_DIR_DEFAULT) * * return native_type_id # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_native_type_id; goto __pyx_L0; __pyx_r = 0; __pyx_L0:; return __pyx_r; } /* "tables/utilsextension.pyx":424 * # compound types. I should report the flaw to THG as soon as possible. * # F. Alted 2009-08-19 * cdef hid_t get_nested_native_type(hid_t type_id) nogil: # <<<<<<<<<<<<<< * """Get a native nested type of an HDF5 type. * */ static hid_t __pyx_f_6tables_14utilsextension_get_nested_native_type(hid_t __pyx_v_type_id) { hid_t __pyx_v_tid; hid_t __pyx_v_member_type_id; hsize_t __pyx_v_nfields; enum H5T_class_t __pyx_v_class_id; size_t __pyx_v_offset; size_t __pyx_v_itemsize; size_t __pyx_v_itemsize1; char *__pyx_v_colname; int __pyx_v_i; hid_t __pyx_v_native_tid; hid_t __pyx_r; hsize_t __pyx_t_1; int __pyx_t_2; /* "tables/utilsextension.pyx":441 * * # Get the itemsize * itemsize1 = H5Tget_size(type_id) # <<<<<<<<<<<<<< * # Build a new type container * tid = H5Tcreate(H5T_COMPOUND, itemsize1) */ __pyx_v_itemsize1 = H5Tget_size(__pyx_v_type_id); /* "tables/utilsextension.pyx":443 * itemsize1 = H5Tget_size(type_id) * # Build a new type container * tid = H5Tcreate(H5T_COMPOUND, itemsize1) # <<<<<<<<<<<<<< * * offset = 0 */ __pyx_v_tid = H5Tcreate(H5T_COMPOUND, __pyx_v_itemsize1); /* "tables/utilsextension.pyx":445 * tid = H5Tcreate(H5T_COMPOUND, itemsize1) * * offset = 0 # <<<<<<<<<<<<<< * # Get the number of members * nfields = H5Tget_nmembers(type_id) */ __pyx_v_offset = 0; /* "tables/utilsextension.pyx":447 * offset = 0 * # Get the number of members * nfields = H5Tget_nmembers(type_id) # <<<<<<<<<<<<<< * # Iterate thru the members * for i from 0 <= i < nfields: */ __pyx_v_nfields = H5Tget_nmembers(__pyx_v_type_id); /* "tables/utilsextension.pyx":449 * nfields = H5Tget_nmembers(type_id) * # Iterate thru the members * for i from 0 <= i < nfields: # <<<<<<<<<<<<<< * # Get the member name * colname = H5Tget_member_name(type_id, i) */ __pyx_t_1 = __pyx_v_nfields; for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_1; __pyx_v_i++) { /* "tables/utilsextension.pyx":451 * for i from 0 <= i < nfields: * # Get the member name * colname = H5Tget_member_name(type_id, i) # <<<<<<<<<<<<<< * # Get the member type * member_type_id = H5Tget_member_type(type_id, i) */ __pyx_v_colname = H5Tget_member_name(__pyx_v_type_id, __pyx_v_i); /* "tables/utilsextension.pyx":453 * colname = H5Tget_member_name(type_id, i) * # Get the member type * member_type_id = H5Tget_member_type(type_id, i) # <<<<<<<<<<<<<< * # Get the HDF5 class * class_id = H5Tget_class(member_type_id) */ __pyx_v_member_type_id = H5Tget_member_type(__pyx_v_type_id, __pyx_v_i); /* "tables/utilsextension.pyx":455 * member_type_id = H5Tget_member_type(type_id, i) * # Get the HDF5 class * class_id = H5Tget_class(member_type_id) # <<<<<<<<<<<<<< * if class_id == H5T_COMPOUND: * native_tid = get_nested_native_type(member_type_id) */ __pyx_v_class_id = H5Tget_class(__pyx_v_member_type_id); /* "tables/utilsextension.pyx":456 * # Get the HDF5 class * class_id = H5Tget_class(member_type_id) * if class_id == H5T_COMPOUND: # <<<<<<<<<<<<<< * native_tid = get_nested_native_type(member_type_id) * else: */ __pyx_t_2 = (__pyx_v_class_id == H5T_COMPOUND); if (__pyx_t_2) { /* "tables/utilsextension.pyx":457 * class_id = H5Tget_class(member_type_id) * if class_id == H5T_COMPOUND: * native_tid = get_nested_native_type(member_type_id) # <<<<<<<<<<<<<< * else: * if class_id == H5T_FLOAT: */ __pyx_v_native_tid = __pyx_f_6tables_14utilsextension_get_nested_native_type(__pyx_v_member_type_id); goto __pyx_L5; } /*else*/ { /* "tables/utilsextension.pyx":459 * native_tid = get_nested_native_type(member_type_id) * else: * if class_id == H5T_FLOAT: # <<<<<<<<<<<<<< * native_tid = get_native_float_type(member_type_id) * else: */ __pyx_t_2 = (__pyx_v_class_id == H5T_FLOAT); if (__pyx_t_2) { /* "tables/utilsextension.pyx":460 * else: * if class_id == H5T_FLOAT: * native_tid = get_native_float_type(member_type_id) # <<<<<<<<<<<<<< * else: * native_tid = H5Tget_native_type(member_type_id, H5T_DIR_DEFAULT) */ __pyx_v_native_tid = __pyx_f_6tables_14utilsextension_get_native_float_type(__pyx_v_member_type_id); goto __pyx_L6; } /*else*/ { /* "tables/utilsextension.pyx":462 * native_tid = get_native_float_type(member_type_id) * else: * native_tid = H5Tget_native_type(member_type_id, H5T_DIR_DEFAULT) # <<<<<<<<<<<<<< * H5Tinsert(tid, colname, offset, native_tid) * itemsize = H5Tget_size(native_tid) */ __pyx_v_native_tid = H5Tget_native_type(__pyx_v_member_type_id, H5T_DIR_DEFAULT); } __pyx_L6:; } __pyx_L5:; /* "tables/utilsextension.pyx":463 * else: * native_tid = H5Tget_native_type(member_type_id, H5T_DIR_DEFAULT) * H5Tinsert(tid, colname, offset, native_tid) # <<<<<<<<<<<<<< * itemsize = H5Tget_size(native_tid) * offset = offset + itemsize */ H5Tinsert(__pyx_v_tid, __pyx_v_colname, __pyx_v_offset, __pyx_v_native_tid); /* "tables/utilsextension.pyx":464 * native_tid = H5Tget_native_type(member_type_id, H5T_DIR_DEFAULT) * H5Tinsert(tid, colname, offset, native_tid) * itemsize = H5Tget_size(native_tid) # <<<<<<<<<<<<<< * offset = offset + itemsize * # Release resources */ __pyx_v_itemsize = H5Tget_size(__pyx_v_native_tid); /* "tables/utilsextension.pyx":465 * H5Tinsert(tid, colname, offset, native_tid) * itemsize = H5Tget_size(native_tid) * offset = offset + itemsize # <<<<<<<<<<<<<< * # Release resources * H5Tclose(native_tid) */ __pyx_v_offset = (__pyx_v_offset + __pyx_v_itemsize); /* "tables/utilsextension.pyx":467 * offset = offset + itemsize * # Release resources * H5Tclose(native_tid) # <<<<<<<<<<<<<< * H5Tclose(member_type_id) * free(colname) */ H5Tclose(__pyx_v_native_tid); /* "tables/utilsextension.pyx":468 * # Release resources * H5Tclose(native_tid) * H5Tclose(member_type_id) # <<<<<<<<<<<<<< * free(colname) * */ H5Tclose(__pyx_v_member_type_id); /* "tables/utilsextension.pyx":469 * H5Tclose(native_tid) * H5Tclose(member_type_id) * free(colname) # <<<<<<<<<<<<<< * * # Correct the type size in case the memory type size is less */ free(__pyx_v_colname); } /* "tables/utilsextension.pyx":474 * # than the type in-disk (probably due to reading native HDF5 * # files written with tools allowing field padding) * if H5Tget_size(tid) > offset: # <<<<<<<<<<<<<< * H5Tset_size(tid, offset) * */ __pyx_t_2 = (H5Tget_size(__pyx_v_tid) > __pyx_v_offset); if (__pyx_t_2) { /* "tables/utilsextension.pyx":475 * # files written with tools allowing field padding) * if H5Tget_size(tid) > offset: * H5Tset_size(tid, offset) # <<<<<<<<<<<<<< * * return tid */ H5Tset_size(__pyx_v_tid, __pyx_v_offset); goto __pyx_L7; } __pyx_L7:; /* "tables/utilsextension.pyx":477 * H5Tset_size(tid, offset) * * return tid # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_tid; goto __pyx_L0; __pyx_r = 0; __pyx_L0:; return __pyx_r; } /* "tables/utilsextension.pyx":484 * # H5T_BITFIELD and probably others. When 1.8.x would be a requisite, * # this can be simplified. * cdef hid_t get_native_type(hid_t type_id) nogil: # <<<<<<<<<<<<<< * """Get the native type of a HDF5 type.""" * */ static hid_t __pyx_f_6tables_14utilsextension_get_native_type(hid_t __pyx_v_type_id) { enum H5T_class_t __pyx_v_class_id; enum H5T_class_t __pyx_v_super_class_id; hid_t __pyx_v_native_type_id; hid_t __pyx_v_super_type_id; hid_t __pyx_v_native_super_type_id; int __pyx_v_rank; hsize_t *__pyx_v_dims; hid_t __pyx_r; int __pyx_t_1; enum H5T_class_t __pyx_t_2; int __pyx_t_3; int __pyx_t_4; /* "tables/utilsextension.pyx":488 * * cdef H5T_class_t class_id, super_class_id * cdef hid_t native_type_id = 0, super_type_id, native_super_type_id # <<<<<<<<<<<<<< * cdef int rank * cdef hsize_t *dims */ __pyx_v_native_type_id = 0; /* "tables/utilsextension.pyx":492 * cdef hsize_t *dims * * class_id = H5Tget_class(type_id) # <<<<<<<<<<<<<< * if class_id == H5T_COMPOUND: * # XXX It turns out that HDF5 does not correctly implement */ __pyx_v_class_id = H5Tget_class(__pyx_v_type_id); /* "tables/utilsextension.pyx":493 * * class_id = H5Tget_class(type_id) * if class_id == H5T_COMPOUND: # <<<<<<<<<<<<<< * # XXX It turns out that HDF5 does not correctly implement * # H5Tget_native_type on nested compounds types. I should */ __pyx_t_1 = (__pyx_v_class_id == H5T_COMPOUND); if (__pyx_t_1) { /* "tables/utilsextension.pyx":502 * # ever wants to replace get_nested_native_type by native HDF5 calls. * # F. Alted 2009-08-19 * return get_nested_native_type(type_id) # <<<<<<<<<<<<<< * * elif class_id in (H5T_ARRAY, H5T_VLEN): */ __pyx_r = __pyx_f_6tables_14utilsextension_get_nested_native_type(__pyx_v_type_id); goto __pyx_L0; goto __pyx_L3; } /* "tables/utilsextension.pyx":504 * return get_nested_native_type(type_id) * * elif class_id in (H5T_ARRAY, H5T_VLEN): # <<<<<<<<<<<<<< * # Get the array base component * super_type_id = H5Tget_super(type_id) */ __pyx_t_2 = __pyx_v_class_id; __pyx_t_1 = ((int)(__pyx_t_2 == H5T_ARRAY)); if (!__pyx_t_1) { __pyx_t_3 = ((int)(__pyx_t_2 == H5T_VLEN)); __pyx_t_4 = __pyx_t_3; } else { __pyx_t_4 = __pyx_t_1; } __pyx_t_1 = __pyx_t_4; if (__pyx_t_1) { /* "tables/utilsextension.pyx":506 * elif class_id in (H5T_ARRAY, H5T_VLEN): * # Get the array base component * super_type_id = H5Tget_super(type_id) # <<<<<<<<<<<<<< * # Get the class * super_class_id = H5Tget_class(super_type_id) */ __pyx_v_super_type_id = H5Tget_super(__pyx_v_type_id); /* "tables/utilsextension.pyx":508 * super_type_id = H5Tget_super(type_id) * # Get the class * super_class_id = H5Tget_class(super_type_id) # <<<<<<<<<<<<<< * if super_class_id == H5T_FLOAT: * # replicate the logic of H5Tget_native_type for H5T_ARRAY and */ __pyx_v_super_class_id = H5Tget_class(__pyx_v_super_type_id); /* "tables/utilsextension.pyx":509 * # Get the class * super_class_id = H5Tget_class(super_type_id) * if super_class_id == H5T_FLOAT: # <<<<<<<<<<<<<< * # replicate the logic of H5Tget_native_type for H5T_ARRAY and * # H5T_VLEN taking into account extended floating point types */ __pyx_t_1 = (__pyx_v_super_class_id == H5T_FLOAT); if (__pyx_t_1) { /* "tables/utilsextension.pyx":513 * # H5T_VLEN taking into account extended floating point types * # XXX: HDF5 error check * native_super_type_id = get_native_float_type(super_type_id) # <<<<<<<<<<<<<< * H5Tclose(super_type_id) * if class_id == H5T_ARRAY: */ __pyx_v_native_super_type_id = __pyx_f_6tables_14utilsextension_get_native_float_type(__pyx_v_super_type_id); /* "tables/utilsextension.pyx":514 * # XXX: HDF5 error check * native_super_type_id = get_native_float_type(super_type_id) * H5Tclose(super_type_id) # <<<<<<<<<<<<<< * if class_id == H5T_ARRAY: * rank = H5Tget_array_ndims(type_id) */ H5Tclose(__pyx_v_super_type_id); /* "tables/utilsextension.pyx":515 * native_super_type_id = get_native_float_type(super_type_id) * H5Tclose(super_type_id) * if class_id == H5T_ARRAY: # <<<<<<<<<<<<<< * rank = H5Tget_array_ndims(type_id) * dims = malloc(rank * sizeof(hsize_t)) */ __pyx_t_1 = (__pyx_v_class_id == H5T_ARRAY); if (__pyx_t_1) { /* "tables/utilsextension.pyx":516 * H5Tclose(super_type_id) * if class_id == H5T_ARRAY: * rank = H5Tget_array_ndims(type_id) # <<<<<<<<<<<<<< * dims = malloc(rank * sizeof(hsize_t)) * H5Tget_array_dims(type_id, dims) */ __pyx_v_rank = H5Tget_array_ndims(__pyx_v_type_id); /* "tables/utilsextension.pyx":517 * if class_id == H5T_ARRAY: * rank = H5Tget_array_ndims(type_id) * dims = malloc(rank * sizeof(hsize_t)) # <<<<<<<<<<<<<< * H5Tget_array_dims(type_id, dims) * native_type_id = H5Tarray_create(native_super_type_id, rank, dims) */ __pyx_v_dims = ((hsize_t *)malloc((__pyx_v_rank * (sizeof(hsize_t))))); /* "tables/utilsextension.pyx":518 * rank = H5Tget_array_ndims(type_id) * dims = malloc(rank * sizeof(hsize_t)) * H5Tget_array_dims(type_id, dims) # <<<<<<<<<<<<<< * native_type_id = H5Tarray_create(native_super_type_id, rank, dims) * free(dims) */ H5Tget_array_dims(__pyx_v_type_id, __pyx_v_dims); /* "tables/utilsextension.pyx":519 * dims = malloc(rank * sizeof(hsize_t)) * H5Tget_array_dims(type_id, dims) * native_type_id = H5Tarray_create(native_super_type_id, rank, dims) # <<<<<<<<<<<<<< * free(dims) * H5Tclose(native_super_type_id) */ __pyx_v_native_type_id = H5Tarray_create(__pyx_v_native_super_type_id, __pyx_v_rank, __pyx_v_dims); /* "tables/utilsextension.pyx":520 * H5Tget_array_dims(type_id, dims) * native_type_id = H5Tarray_create(native_super_type_id, rank, dims) * free(dims) # <<<<<<<<<<<<<< * H5Tclose(native_super_type_id) * return native_type_id */ free(__pyx_v_dims); /* "tables/utilsextension.pyx":521 * native_type_id = H5Tarray_create(native_super_type_id, rank, dims) * free(dims) * H5Tclose(native_super_type_id) # <<<<<<<<<<<<<< * return native_type_id * elif class_id == H5T_VLEN: */ H5Tclose(__pyx_v_native_super_type_id); /* "tables/utilsextension.pyx":522 * free(dims) * H5Tclose(native_super_type_id) * return native_type_id # <<<<<<<<<<<<<< * elif class_id == H5T_VLEN: * native_type_id = H5Tvlen_create(native_super_type_id) */ __pyx_r = __pyx_v_native_type_id; goto __pyx_L0; goto __pyx_L5; } /* "tables/utilsextension.pyx":523 * H5Tclose(native_super_type_id) * return native_type_id * elif class_id == H5T_VLEN: # <<<<<<<<<<<<<< * native_type_id = H5Tvlen_create(native_super_type_id) * H5Tclose(native_super_type_id) */ __pyx_t_1 = (__pyx_v_class_id == H5T_VLEN); if (__pyx_t_1) { /* "tables/utilsextension.pyx":524 * return native_type_id * elif class_id == H5T_VLEN: * native_type_id = H5Tvlen_create(native_super_type_id) # <<<<<<<<<<<<<< * H5Tclose(native_super_type_id) * return native_type_id */ __pyx_v_native_type_id = H5Tvlen_create(__pyx_v_native_super_type_id); /* "tables/utilsextension.pyx":525 * elif class_id == H5T_VLEN: * native_type_id = H5Tvlen_create(native_super_type_id) * H5Tclose(native_super_type_id) # <<<<<<<<<<<<<< * return native_type_id * class_id = super_class_id */ H5Tclose(__pyx_v_native_super_type_id); /* "tables/utilsextension.pyx":526 * native_type_id = H5Tvlen_create(native_super_type_id) * H5Tclose(native_super_type_id) * return native_type_id # <<<<<<<<<<<<<< * class_id = super_class_id * H5Tclose(super_type_id) */ __pyx_r = __pyx_v_native_type_id; goto __pyx_L0; goto __pyx_L5; } __pyx_L5:; goto __pyx_L4; } __pyx_L4:; /* "tables/utilsextension.pyx":527 * H5Tclose(native_super_type_id) * return native_type_id * class_id = super_class_id # <<<<<<<<<<<<<< * H5Tclose(super_type_id) * */ __pyx_v_class_id = __pyx_v_super_class_id; /* "tables/utilsextension.pyx":528 * return native_type_id * class_id = super_class_id * H5Tclose(super_type_id) # <<<<<<<<<<<<<< * * if class_id == H5T_FLOAT: */ H5Tclose(__pyx_v_super_type_id); goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":530 * H5Tclose(super_type_id) * * if class_id == H5T_FLOAT: # <<<<<<<<<<<<<< * native_type_id = get_native_float_type(type_id) * elif class_id in (H5T_INTEGER, H5T_ENUM): */ __pyx_t_1 = (__pyx_v_class_id == H5T_FLOAT); if (__pyx_t_1) { /* "tables/utilsextension.pyx":531 * * if class_id == H5T_FLOAT: * native_type_id = get_native_float_type(type_id) # <<<<<<<<<<<<<< * elif class_id in (H5T_INTEGER, H5T_ENUM): * native_type_id = H5Tget_native_type(type_id, H5T_DIR_DEFAULT) */ __pyx_v_native_type_id = __pyx_f_6tables_14utilsextension_get_native_float_type(__pyx_v_type_id); goto __pyx_L6; } /* "tables/utilsextension.pyx":532 * if class_id == H5T_FLOAT: * native_type_id = get_native_float_type(type_id) * elif class_id in (H5T_INTEGER, H5T_ENUM): # <<<<<<<<<<<<<< * native_type_id = H5Tget_native_type(type_id, H5T_DIR_DEFAULT) * else: */ __pyx_t_2 = __pyx_v_class_id; __pyx_t_1 = ((int)(__pyx_t_2 == H5T_INTEGER)); if (!__pyx_t_1) { __pyx_t_4 = ((int)(__pyx_t_2 == H5T_ENUM)); __pyx_t_3 = __pyx_t_4; } else { __pyx_t_3 = __pyx_t_1; } __pyx_t_1 = __pyx_t_3; if (__pyx_t_1) { /* "tables/utilsextension.pyx":533 * native_type_id = get_native_float_type(type_id) * elif class_id in (H5T_INTEGER, H5T_ENUM): * native_type_id = H5Tget_native_type(type_id, H5T_DIR_DEFAULT) # <<<<<<<<<<<<<< * else: * # Fixing the byteorder for other types shouldn't be needed. */ __pyx_v_native_type_id = H5Tget_native_type(__pyx_v_type_id, H5T_DIR_DEFAULT); goto __pyx_L6; } /*else*/ { /* "tables/utilsextension.pyx":540 * # Regarding H5T_BITFIELD, well, I'm not sure if changing the byteorder * # of this is a good idea at all. * native_type_id = H5Tcopy(type_id) # <<<<<<<<<<<<<< * * return native_type_id */ __pyx_v_native_type_id = H5Tcopy(__pyx_v_type_id); } __pyx_L6:; /* "tables/utilsextension.pyx":542 * native_type_id = H5Tcopy(type_id) * * return native_type_id # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_native_type_id; goto __pyx_L0; __pyx_r = 0; __pyx_L0:; return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_9encode_filename(PyObject *__pyx_self, PyObject *__pyx_v_filename); /*proto*/ static char __pyx_doc_6tables_14utilsextension_8encode_filename[] = "Return the encoded filename in the filesystem encoding."; static PyMethodDef __pyx_mdef_6tables_14utilsextension_9encode_filename = {__Pyx_NAMESTR("encode_filename"), (PyCFunction)__pyx_pw_6tables_14utilsextension_9encode_filename, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_8encode_filename)}; static PyObject *__pyx_pw_6tables_14utilsextension_9encode_filename(PyObject *__pyx_self, PyObject *__pyx_v_filename) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("encode_filename (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_8encode_filename(__pyx_self, ((PyObject *)__pyx_v_filename)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":545 * * * def encode_filename(object filename): # <<<<<<<<<<<<<< * """Return the encoded filename in the filesystem encoding.""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_8encode_filename(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_filename) { PyObject *__pyx_v_encname = 0; PyObject *__pyx_v_encoding = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("encode_filename", 0); /* "tables/utilsextension.pyx":550 * cdef bytes encname * * if isinstance(filename, (unicode, numpy.str_)): # <<<<<<<<<<<<<< * # if type(filename) is unicode: * encoding = sys.getfilesystemencoding() */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__numpy); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__str_); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)((PyObject*)(&PyUnicode_Type)))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)((PyObject*)(&PyUnicode_Type)))); __Pyx_GIVEREF(((PyObject *)((PyObject*)(&PyUnicode_Type)))); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = PyObject_IsInstance(__pyx_v_filename, ((PyObject *)__pyx_t_1)); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (__pyx_t_3) { /* "tables/utilsextension.pyx":552 * if isinstance(filename, (unicode, numpy.str_)): * # if type(filename) is unicode: * encoding = sys.getfilesystemencoding() # <<<<<<<<<<<<<< * encname = filename.encode(encoding) * else: */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s_10); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_encoding = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":553 * # if type(filename) is unicode: * encoding = sys.getfilesystemencoding() * encname = filename.encode(encoding) # <<<<<<<<<<<<<< * else: * encname = filename */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_filename, __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_encoding); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_encoding); __Pyx_GIVEREF(__pyx_v_encoding); __pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_4)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_encname = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":555 * encname = filename.encode(encoding) * else: * encname = filename # <<<<<<<<<<<<<< * * return encname */ if (!(likely(PyBytes_CheckExact(__pyx_v_filename))||((__pyx_v_filename) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_v_filename)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_filename); __pyx_v_encname = ((PyObject*)__pyx_v_filename); } __pyx_L3:; /* "tables/utilsextension.pyx":557 * encname = filename * * return encname # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_encname)); __pyx_r = ((PyObject *)__pyx_v_encname); goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("tables.utilsextension.encode_filename", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encname); __Pyx_XDECREF(__pyx_v_encoding); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_11is_hdf5_file(PyObject *__pyx_self, PyObject *__pyx_v_filename); /*proto*/ static char __pyx_doc_6tables_14utilsextension_10is_hdf5_file[] = "is_hdf5_file(filename)\n\n Determine whether a file is in the HDF5 format.\n\n When successful, it returns a true value if the file is an HDF5\n file, false otherwise. If there were problems identifying the file,\n an HDF5ExtError is raised.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_11is_hdf5_file = {__Pyx_NAMESTR("is_hdf5_file"), (PyCFunction)__pyx_pw_6tables_14utilsextension_11is_hdf5_file, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_10is_hdf5_file)}; static PyObject *__pyx_pw_6tables_14utilsextension_11is_hdf5_file(PyObject *__pyx_self, PyObject *__pyx_v_filename) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_hdf5_file (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_10is_hdf5_file(__pyx_self, ((PyObject *)__pyx_v_filename)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":561 * * # Main functions * def is_hdf5_file(object filename): # <<<<<<<<<<<<<< * """is_hdf5_file(filename) * */ static PyObject *__pyx_pf_6tables_14utilsextension_10is_hdf5_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_filename) { PyObject *__pyx_v_encname = NULL; htri_t __pyx_v_ret; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; char *__pyx_t_4; int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_hdf5_file", 0); /* "tables/utilsextension.pyx":573 * * # Encode the filename in case it is unicode * encname = encode_filename(filename) # <<<<<<<<<<<<<< * * # Check that the file exists and is readable. */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__encode_filename); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_filename); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_filename); __Pyx_GIVEREF(__pyx_v_filename); __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_v_encname = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":576 * * # Check that the file exists and is readable. * check_file_access(encname) # <<<<<<<<<<<<<< * * ret = H5Fis_hdf5(encname) */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__check_file_access); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_encname); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_encname); __Pyx_GIVEREF(__pyx_v_encname); __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":578 * check_file_access(encname) * * ret = H5Fis_hdf5(encname) # <<<<<<<<<<<<<< * if ret < 0: * raise HDF5ExtError("problems identifying file ``%s``" % (filename,)) */ __pyx_t_4 = PyBytes_AsString(__pyx_v_encname); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_ret = H5Fis_hdf5(__pyx_t_4); /* "tables/utilsextension.pyx":579 * * ret = H5Fis_hdf5(encname) * if ret < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("problems identifying file ``%s``" % (filename,)) * return ret > 0 */ __pyx_t_5 = (__pyx_v_ret < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":580 * ret = H5Fis_hdf5(encname) * if ret < 0: * raise HDF5ExtError("problems identifying file ``%s``" % (filename,)) # <<<<<<<<<<<<<< * return ret > 0 * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_filename); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_filename); __Pyx_GIVEREF(__pyx_v_filename); __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_11), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_t_3)); __Pyx_GIVEREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":581 * if ret < 0: * raise HDF5ExtError("problems identifying file ``%s``" % (filename,)) * return ret > 0 # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_ret > 0)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.is_hdf5_file", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encname); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_13is_pytables_file(PyObject *__pyx_self, PyObject *__pyx_v_filename); /*proto*/ static char __pyx_doc_6tables_14utilsextension_12is_pytables_file[] = "is_pytables_file(filename)\n\n Determine whether a file is in the PyTables format.\n\n When successful, it returns the format version string if the file is a\n PyTables file, None otherwise. If there were problems identifying the\n file, an HDF5ExtError is raised.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_13is_pytables_file = {__Pyx_NAMESTR("is_pytables_file"), (PyCFunction)__pyx_pw_6tables_14utilsextension_13is_pytables_file, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_12is_pytables_file)}; static PyObject *__pyx_pw_6tables_14utilsextension_13is_pytables_file(PyObject *__pyx_self, PyObject *__pyx_v_filename) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("is_pytables_file (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_12is_pytables_file(__pyx_self, ((PyObject *)__pyx_v_filename)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":587 * * * def is_pytables_file(object filename): # <<<<<<<<<<<<<< * """is_pytables_file(filename) * */ static PyObject *__pyx_pf_6tables_14utilsextension_12is_pytables_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_filename) { hid_t __pyx_v_file_id; PyObject *__pyx_v_isptf = 0; PyObject *__pyx_v_encname = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; char *__pyx_t_5; int __pyx_t_6; int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("is_pytables_file", 0); /* "tables/utilsextension.pyx":599 * * cdef hid_t file_id * cdef object isptf = None # A PYTABLES_FORMAT_VERSION attribute was not found # <<<<<<<<<<<<<< * * if is_hdf5_file(filename): */ __Pyx_INCREF(Py_None); __pyx_v_isptf = Py_None; /* "tables/utilsextension.pyx":601 * cdef object isptf = None # A PYTABLES_FORMAT_VERSION attribute was not found * * if is_hdf5_file(filename): # <<<<<<<<<<<<<< * # Encode the filename in case it is unicode * encname = encode_filename(filename) */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__is_hdf5_file); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_filename); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_filename); __Pyx_GIVEREF(__pyx_v_filename); __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":603 * if is_hdf5_file(filename): * # Encode the filename in case it is unicode * encname = encode_filename(filename) # <<<<<<<<<<<<<< * # The file exists and is HDF5, that's ok * # Open it in read-only mode */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__encode_filename); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_filename); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_filename); __Pyx_GIVEREF(__pyx_v_filename); __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_v_encname = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":606 * # The file exists and is HDF5, that's ok * # Open it in read-only mode * file_id = H5Fopen(encname, H5F_ACC_RDONLY, H5P_DEFAULT) # <<<<<<<<<<<<<< * isptf = read_f_attr(file_id, 'PYTABLES_FORMAT_VERSION') * # Close the file */ __pyx_t_5 = PyBytes_AsString(__pyx_v_encname); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_file_id = H5Fopen(__pyx_t_5, H5F_ACC_RDONLY, H5P_DEFAULT); /* "tables/utilsextension.pyx":607 * # Open it in read-only mode * file_id = H5Fopen(encname, H5F_ACC_RDONLY, H5P_DEFAULT) * isptf = read_f_attr(file_id, 'PYTABLES_FORMAT_VERSION') # <<<<<<<<<<<<<< * # Close the file * H5Fclose(file_id) */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__read_f_attr); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_file_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_n_s_12)); PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_n_s_12)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s_12)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_v_isptf); __pyx_v_isptf = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":609 * isptf = read_f_attr(file_id, 'PYTABLES_FORMAT_VERSION') * # Close the file * H5Fclose(file_id) # <<<<<<<<<<<<<< * * # system attributes should always be str */ H5Fclose(__pyx_v_file_id); /* "tables/utilsextension.pyx":612 * * # system attributes should always be str * if PY_MAJOR_VERSION < 3 and PyUnicode_Check(isptf): # <<<<<<<<<<<<<< * isptf = isptf.encode() * elif PY_MAJOR_VERSION > 2 and PyBytes_Check(isptf): */ __pyx_t_4 = (PY_MAJOR_VERSION < 3); if (__pyx_t_4) { __pyx_t_6 = PyUnicode_Check(__pyx_v_isptf); __pyx_t_7 = __pyx_t_6; } else { __pyx_t_7 = __pyx_t_4; } if (__pyx_t_7) { /* "tables/utilsextension.pyx":613 * # system attributes should always be str * if PY_MAJOR_VERSION < 3 and PyUnicode_Check(isptf): * isptf = isptf.encode() # <<<<<<<<<<<<<< * elif PY_MAJOR_VERSION > 2 and PyBytes_Check(isptf): * isptf = isptf.decode('utf-8') */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_isptf, __pyx_n_s__encode); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_isptf); __pyx_v_isptf = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L4; } /* "tables/utilsextension.pyx":614 * if PY_MAJOR_VERSION < 3 and PyUnicode_Check(isptf): * isptf = isptf.encode() * elif PY_MAJOR_VERSION > 2 and PyBytes_Check(isptf): # <<<<<<<<<<<<<< * isptf = isptf.decode('utf-8') * */ __pyx_t_7 = (PY_MAJOR_VERSION > 2); if (__pyx_t_7) { __pyx_t_4 = PyBytes_Check(__pyx_v_isptf); __pyx_t_6 = __pyx_t_4; } else { __pyx_t_6 = __pyx_t_7; } if (__pyx_t_6) { /* "tables/utilsextension.pyx":615 * isptf = isptf.encode() * elif PY_MAJOR_VERSION > 2 and PyBytes_Check(isptf): * isptf = isptf.decode('utf-8') # <<<<<<<<<<<<<< * * return isptf */ __pyx_t_3 = PyObject_GetAttr(__pyx_v_isptf, __pyx_n_s__decode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_13), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_v_isptf); __pyx_v_isptf = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L4; } __pyx_L4:; goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":617 * isptf = isptf.decode('utf-8') * * return isptf # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_isptf); __pyx_r = __pyx_v_isptf; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.is_pytables_file", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_isptf); __Pyx_XDECREF(__pyx_v_encname); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_15get_hdf5_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_6tables_14utilsextension_14get_hdf5_version[] = "Get the underlying HDF5 library version"; static PyMethodDef __pyx_mdef_6tables_14utilsextension_15get_hdf5_version = {__Pyx_NAMESTR("get_hdf5_version"), (PyCFunction)__pyx_pw_6tables_14utilsextension_15get_hdf5_version, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_14get_hdf5_version)}; static PyObject *__pyx_pw_6tables_14utilsextension_15get_hdf5_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_hdf5_version (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_14get_hdf5_version(__pyx_self); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":623 * * * def get_hdf5_version(): # <<<<<<<<<<<<<< * """Get the underlying HDF5 library version""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_14get_hdf5_version(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_hdf5_version", 0); /* "tables/utilsextension.pyx":626 * """Get the underlying HDF5 library version""" * * return getHDF5VersionInfo()[1] # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = getHDF5VersionInfo(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("tables.utilsextension.get_hdf5_version", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_17get_pytables_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_6tables_14utilsextension_16get_pytables_version[] = "Return this extension version."; static PyMethodDef __pyx_mdef_6tables_14utilsextension_17get_pytables_version = {__Pyx_NAMESTR("get_pytables_version"), (PyCFunction)__pyx_pw_6tables_14utilsextension_17get_pytables_version, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_16get_pytables_version)}; static PyObject *__pyx_pw_6tables_14utilsextension_17get_pytables_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_pytables_version (wrapper)", 0); __pyx_r = __pyx_pf_6tables_14utilsextension_16get_pytables_version(__pyx_self); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":632 * * * def get_pytables_version(): # <<<<<<<<<<<<<< * """Return this extension version.""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_16get_pytables_version(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_pytables_version", 0); /* "tables/utilsextension.pyx":635 * """Return this extension version.""" * * return _getTablesVersion() # <<<<<<<<<<<<<< * * getPyTablesVersion = previous_api(get_pytables_version) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = _getTablesVersion(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("tables.utilsextension.get_pytables_version", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_19which_lib_version(PyObject *__pyx_self, PyObject *__pyx_v_name); /*proto*/ static char __pyx_doc_6tables_14utilsextension_18which_lib_version[] = "which_lib_version(name)\n\n Get version information about a C library.\n\n If the library indicated by name is available, this function returns a\n 3-tuple containing the major library version as an integer, its full version\n as a string, and the version date as a string. If the library is not\n available, None is returned.\n\n The currently supported library names are hdf5, zlib, lzo and bzip2. If\n another name is given, a ValueError is raised.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_19which_lib_version = {__Pyx_NAMESTR("which_lib_version"), (PyCFunction)__pyx_pw_6tables_14utilsextension_19which_lib_version, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_18which_lib_version)}; static PyObject *__pyx_pw_6tables_14utilsextension_19which_lib_version(PyObject *__pyx_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("which_lib_version (wrapper)", 0); if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_6tables_14utilsextension_18which_lib_version(__pyx_self, ((PyObject*)__pyx_v_name)); goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":640 * * * def which_lib_version(str name): # <<<<<<<<<<<<<< * """which_lib_version(name) * */ static PyObject *__pyx_pf_6tables_14utilsextension_18which_lib_version(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name) { char *__pyx_v_cname; PyObject *__pyx_v_encoded_name = 0; PyObject *__pyx_v_libnames = NULL; PyObject *__pyx_v_binver = NULL; PyObject *__pyx_v_strver = NULL; PyObject *__pyx_v_lzo_version_string = NULL; PyObject *__pyx_v_lzo_version_date = NULL; PyObject *__pyx_v_bzip2_version_string = NULL; PyObject *__pyx_v_bzip2_version_date = NULL; PyObject *__pyx_v_blosc_version_string = NULL; PyObject *__pyx_v_blosc_version_date = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; char *__pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *(*__pyx_t_7)(PyObject *); int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("which_lib_version", 0); /* "tables/utilsextension.pyx":655 * """ * * cdef char *cname = NULL # <<<<<<<<<<<<<< * cdef bytes encoded_name * */ __pyx_v_cname = NULL; /* "tables/utilsextension.pyx":658 * cdef bytes encoded_name * * encoded_name = name.encode('utf-8') # <<<<<<<<<<<<<< * # get the C pointer * cname = encoded_name */ __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_name), __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_14), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_encoded_name = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":660 * encoded_name = name.encode('utf-8') * # get the C pointer * cname = encoded_name # <<<<<<<<<<<<<< * * libnames = ('hdf5', 'zlib', 'lzo', 'bzip2', 'blosc') */ __pyx_t_3 = PyBytes_AsString(((PyObject *)__pyx_v_encoded_name)); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_cname = __pyx_t_3; /* "tables/utilsextension.pyx":662 * cname = encoded_name * * libnames = ('hdf5', 'zlib', 'lzo', 'bzip2', 'blosc') # <<<<<<<<<<<<<< * * if strcmp(cname, "hdf5") == 0: */ __Pyx_INCREF(((PyObject *)__pyx_k_tuple_15)); __pyx_v_libnames = __pyx_k_tuple_15; /* "tables/utilsextension.pyx":664 * libnames = ('hdf5', 'zlib', 'lzo', 'bzip2', 'blosc') * * if strcmp(cname, "hdf5") == 0: # <<<<<<<<<<<<<< * binver, strver = getHDF5VersionInfo() * return (binver, strver, None) # Should be always available */ __pyx_t_4 = (strcmp(__pyx_v_cname, __pyx_k__hdf5) == 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":665 * * if strcmp(cname, "hdf5") == 0: * binver, strver = getHDF5VersionInfo() # <<<<<<<<<<<<<< * return (binver, strver, None) # Should be always available * elif strcmp(cname, "zlib") == 0: */ __pyx_t_2 = getHDF5VersionInfo(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) { PyObject* sequence = __pyx_t_2; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_1 = PyList_GET_ITEM(sequence, 0); __pyx_t_5 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_5); #else __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { Py_ssize_t index = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; index = 0; __pyx_t_1 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_1)) goto __pyx_L4_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L4_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_7 = NULL; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L5_unpacking_done; __pyx_L4_unpacking_failed:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L5_unpacking_done:; } __pyx_v_binver = __pyx_t_1; __pyx_t_1 = 0; __pyx_v_strver = __pyx_t_5; __pyx_t_5 = 0; /* "tables/utilsextension.pyx":666 * if strcmp(cname, "hdf5") == 0: * binver, strver = getHDF5VersionInfo() * return (binver, strver, None) # Should be always available # <<<<<<<<<<<<<< * elif strcmp(cname, "zlib") == 0: * if zlib_imported: */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_binver); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_binver); __Pyx_GIVEREF(__pyx_v_binver); __Pyx_INCREF(__pyx_v_strver); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_strver); __Pyx_GIVEREF(__pyx_v_strver); __Pyx_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None); __Pyx_GIVEREF(Py_None); __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; goto __pyx_L3; } /* "tables/utilsextension.pyx":667 * binver, strver = getHDF5VersionInfo() * return (binver, strver, None) # Should be always available * elif strcmp(cname, "zlib") == 0: # <<<<<<<<<<<<<< * if zlib_imported: * return (1, zlib.ZLIB_VERSION, None) */ __pyx_t_4 = (strcmp(__pyx_v_cname, __pyx_k__zlib) == 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":668 * return (binver, strver, None) # Should be always available * elif strcmp(cname, "zlib") == 0: * if zlib_imported: # <<<<<<<<<<<<<< * return (1, zlib.ZLIB_VERSION, None) * elif strcmp(cname, "lzo") == 0: */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__zlib_imported); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":669 * elif strcmp(cname, "zlib") == 0: * if zlib_imported: * return (1, zlib.ZLIB_VERSION, None) # <<<<<<<<<<<<<< * elif strcmp(cname, "lzo") == 0: * if lzo_version: */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__zlib); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__ZLIB_VERSION); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_1); __Pyx_GIVEREF(__pyx_int_1); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __Pyx_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None); __Pyx_GIVEREF(Py_None); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; goto __pyx_L3; } /* "tables/utilsextension.pyx":670 * if zlib_imported: * return (1, zlib.ZLIB_VERSION, None) * elif strcmp(cname, "lzo") == 0: # <<<<<<<<<<<<<< * if lzo_version: * (lzo_version_string, lzo_version_date) = lzo_version */ __pyx_t_4 = (strcmp(__pyx_v_cname, __pyx_k__lzo) == 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":671 * return (1, zlib.ZLIB_VERSION, None) * elif strcmp(cname, "lzo") == 0: * if lzo_version: # <<<<<<<<<<<<<< * (lzo_version_string, lzo_version_date) = lzo_version * return (lzo_version, lzo_version_string, lzo_version_date) */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__lzo_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":672 * elif strcmp(cname, "lzo") == 0: * if lzo_version: * (lzo_version_string, lzo_version_date) = lzo_version # <<<<<<<<<<<<<< * return (lzo_version, lzo_version_string, lzo_version_date) * elif strcmp(cname, "bzip2") == 0: */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__lzo_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) { PyObject* sequence = __pyx_t_2; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_5 = PyList_GET_ITEM(sequence, 0); __pyx_t_1 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_1); #else __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_1 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { Py_ssize_t index = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; index = 0; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L8_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); index = 1; __pyx_t_1 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_1)) goto __pyx_L8_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_7 = NULL; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L9_unpacking_done; __pyx_L8_unpacking_failed:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L9_unpacking_done:; } __pyx_v_lzo_version_string = __pyx_t_5; __pyx_t_5 = 0; __pyx_v_lzo_version_date = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":673 * if lzo_version: * (lzo_version_string, lzo_version_date) = lzo_version * return (lzo_version, lzo_version_string, lzo_version_date) # <<<<<<<<<<<<<< * elif strcmp(cname, "bzip2") == 0: * if bzip2_version: */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__lzo_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_lzo_version_string); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_lzo_version_string); __Pyx_GIVEREF(__pyx_v_lzo_version_string); __Pyx_INCREF(__pyx_v_lzo_version_date); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_lzo_version_date); __Pyx_GIVEREF(__pyx_v_lzo_version_date); __pyx_t_2 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; goto __pyx_L7; } __pyx_L7:; goto __pyx_L3; } /* "tables/utilsextension.pyx":674 * (lzo_version_string, lzo_version_date) = lzo_version * return (lzo_version, lzo_version_string, lzo_version_date) * elif strcmp(cname, "bzip2") == 0: # <<<<<<<<<<<<<< * if bzip2_version: * (bzip2_version_string, bzip2_version_date) = bzip2_version */ __pyx_t_4 = (strcmp(__pyx_v_cname, __pyx_k__bzip2) == 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":675 * return (lzo_version, lzo_version_string, lzo_version_date) * elif strcmp(cname, "bzip2") == 0: * if bzip2_version: # <<<<<<<<<<<<<< * (bzip2_version_string, bzip2_version_date) = bzip2_version * return (bzip2_version, bzip2_version_string, bzip2_version_date) */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__bzip2_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":676 * elif strcmp(cname, "bzip2") == 0: * if bzip2_version: * (bzip2_version_string, bzip2_version_date) = bzip2_version # <<<<<<<<<<<<<< * return (bzip2_version, bzip2_version_string, bzip2_version_date) * elif strcmp(cname, "blosc") == 0: */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__bzip2_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { PyObject* sequence = __pyx_t_1; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_2 = PyList_GET_ITEM(sequence, 0); __pyx_t_5 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); #else __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { Py_ssize_t index = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; index = 0; __pyx_t_2 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_2)) goto __pyx_L11_unpacking_failed; __Pyx_GOTREF(__pyx_t_2); index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L11_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_7 = NULL; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L12_unpacking_done; __pyx_L11_unpacking_failed:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L12_unpacking_done:; } __pyx_v_bzip2_version_string = __pyx_t_2; __pyx_t_2 = 0; __pyx_v_bzip2_version_date = __pyx_t_5; __pyx_t_5 = 0; /* "tables/utilsextension.pyx":677 * if bzip2_version: * (bzip2_version_string, bzip2_version_date) = bzip2_version * return (bzip2_version, bzip2_version_string, bzip2_version_date) # <<<<<<<<<<<<<< * elif strcmp(cname, "blosc") == 0: * if blosc_version: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__bzip2_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_bzip2_version_string); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_bzip2_version_string); __Pyx_GIVEREF(__pyx_v_bzip2_version_string); __Pyx_INCREF(__pyx_v_bzip2_version_date); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_bzip2_version_date); __Pyx_GIVEREF(__pyx_v_bzip2_version_date); __pyx_t_1 = 0; __pyx_r = ((PyObject *)__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L0; goto __pyx_L10; } __pyx_L10:; goto __pyx_L3; } /* "tables/utilsextension.pyx":678 * (bzip2_version_string, bzip2_version_date) = bzip2_version * return (bzip2_version, bzip2_version_string, bzip2_version_date) * elif strcmp(cname, "blosc") == 0: # <<<<<<<<<<<<<< * if blosc_version: * (blosc_version_string, blosc_version_date) = blosc_version */ __pyx_t_4 = (strcmp(__pyx_v_cname, __pyx_k__blosc) == 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":679 * return (bzip2_version, bzip2_version_string, bzip2_version_date) * elif strcmp(cname, "blosc") == 0: * if blosc_version: # <<<<<<<<<<<<<< * (blosc_version_string, blosc_version_date) = blosc_version * return (blosc_version, blosc_version_string, blosc_version_date) */ __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__blosc_version); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":680 * elif strcmp(cname, "blosc") == 0: * if blosc_version: * (blosc_version_string, blosc_version_date) = blosc_version # <<<<<<<<<<<<<< * return (blosc_version, blosc_version_string, blosc_version_date) * else: */ __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__blosc_version); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) { PyObject* sequence = __pyx_t_5; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_1 = PyList_GET_ITEM(sequence, 0); __pyx_t_2 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_1); __Pyx_INCREF(__pyx_t_2); #else __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_2 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { Py_ssize_t index = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; index = 0; __pyx_t_1 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_1)) goto __pyx_L14_unpacking_failed; __Pyx_GOTREF(__pyx_t_1); index = 1; __pyx_t_2 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_2)) goto __pyx_L14_unpacking_failed; __Pyx_GOTREF(__pyx_t_2); if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_7 = NULL; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L15_unpacking_done; __pyx_L14_unpacking_failed:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L15_unpacking_done:; } __pyx_v_blosc_version_string = __pyx_t_1; __pyx_t_1 = 0; __pyx_v_blosc_version_date = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":681 * if blosc_version: * (blosc_version_string, blosc_version_date) = blosc_version * return (blosc_version, blosc_version_string, blosc_version_date) # <<<<<<<<<<<<<< * else: * raise ValueError("asked version of unsupported library ``%s``; " */ __Pyx_XDECREF(__pyx_r); __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__blosc_version); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_blosc_version_string); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_blosc_version_string); __Pyx_GIVEREF(__pyx_v_blosc_version_string); __Pyx_INCREF(__pyx_v_blosc_version_date); PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_blosc_version_date); __Pyx_GIVEREF(__pyx_v_blosc_version_date); __pyx_t_5 = 0; __pyx_r = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; goto __pyx_L13; } __pyx_L13:; goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":684 * else: * raise ValueError("asked version of unsupported library ``%s``; " * "supported library names are ``%s``" % (name, libnames)) # <<<<<<<<<<<<<< * * # A supported library was specified, but no version is available. */ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_name)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_name)); __Pyx_GIVEREF(((PyObject *)__pyx_v_name)); __Pyx_INCREF(((PyObject *)__pyx_v_libnames)); PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_libnames)); __Pyx_GIVEREF(((PyObject *)__pyx_v_libnames)); __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_16), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_5)); __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_t_5)); __Pyx_GIVEREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0; __pyx_t_5 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L3:; /* "tables/utilsextension.pyx":687 * * # A supported library was specified, but no version is available. * return None # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("tables.utilsextension.which_lib_version", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encoded_name); __Pyx_XDECREF(__pyx_v_libnames); __Pyx_XDECREF(__pyx_v_binver); __Pyx_XDECREF(__pyx_v_strver); __Pyx_XDECREF(__pyx_v_lzo_version_string); __Pyx_XDECREF(__pyx_v_lzo_version_date); __Pyx_XDECREF(__pyx_v_bzip2_version_string); __Pyx_XDECREF(__pyx_v_bzip2_version_date); __Pyx_XDECREF(__pyx_v_blosc_version_string); __Pyx_XDECREF(__pyx_v_blosc_version_date); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_21which_class(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_20which_class[] = "Detects a class ID using heuristics."; static PyMethodDef __pyx_mdef_6tables_14utilsextension_21which_class = {__Pyx_NAMESTR("which_class"), (PyCFunction)__pyx_pw_6tables_14utilsextension_21which_class, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_20which_class)}; static PyObject *__pyx_pw_6tables_14utilsextension_21which_class(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { hid_t __pyx_v_loc_id; PyObject *__pyx_v_name = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("which_class (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__loc_id,&__pyx_n_s__name,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__loc_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("which_class", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "which_class") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_loc_id = __Pyx_PyInt_from_py_hid_t(values[0]); if (unlikely((__pyx_v_loc_id == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_v_name = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("which_class", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.which_class", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_20which_class(__pyx_self, __pyx_v_loc_id, __pyx_v_name); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":693 * * * def which_class(hid_t loc_id, object name): # <<<<<<<<<<<<<< * """Detects a class ID using heuristics.""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_20which_class(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_loc_id, PyObject *__pyx_v_name) { enum H5T_class_t __pyx_v_class_id; enum H5D_layout_t __pyx_v_layout; hsize_t __pyx_v_nfields; char *__pyx_v_field_name1; char *__pyx_v_field_name2; int __pyx_v_i; hid_t __pyx_v_type_id; hid_t __pyx_v_dataset_id; PyObject *__pyx_v_classId = 0; int __pyx_v_rank; hsize_t *__pyx_v_dims; hsize_t *__pyx_v_maxdims; char __pyx_v_byteorder[11]; PyObject *__pyx_v_encoded_name = 0; int __pyx_v_iscomplex; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; char *__pyx_t_4; int __pyx_t_5; int __pyx_t_6; int __pyx_t_7; int __pyx_t_8; int __pyx_t_9; int __pyx_t_10; int __pyx_t_11; int __pyx_t_12; int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("which_class", 0); /* "tables/utilsextension.pyx":708 * cdef bytes encoded_name * * if isinstance(name, unicode): # <<<<<<<<<<<<<< * encoded_name = name.encode('utf-8') * else: */ __pyx_t_1 = ((PyObject *)((PyObject*)(&PyUnicode_Type))); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_name, __pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "tables/utilsextension.pyx":709 * * if isinstance(name, unicode): * encoded_name = name.encode('utf-8') # <<<<<<<<<<<<<< * else: * encoded_name = name */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_name, __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_17), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_encoded_name = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":711 * encoded_name = name.encode('utf-8') * else: * encoded_name = name # <<<<<<<<<<<<<< * * classId = "UNSUPPORTED" # default value */ if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_v_name)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 711; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_INCREF(__pyx_v_name); __pyx_v_encoded_name = ((PyObject*)__pyx_v_name); } __pyx_L3:; /* "tables/utilsextension.pyx":713 * encoded_name = name * * classId = "UNSUPPORTED" # default value # <<<<<<<<<<<<<< * # Get The HDF5 class for the datatype in this dataset * class_id = getHDF5ClassID(loc_id, encoded_name, &layout, &type_id, */ __Pyx_INCREF(((PyObject *)__pyx_n_s__UNSUPPORTED)); __pyx_v_classId = ((PyObject *)__pyx_n_s__UNSUPPORTED); /* "tables/utilsextension.pyx":715 * classId = "UNSUPPORTED" # default value * # Get The HDF5 class for the datatype in this dataset * class_id = getHDF5ClassID(loc_id, encoded_name, &layout, &type_id, # <<<<<<<<<<<<<< * &dataset_id) * # Check if this a dataset of supported classtype for ARRAY */ __pyx_t_4 = PyBytes_AsString(((PyObject *)__pyx_v_encoded_name)); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":716 * # Get The HDF5 class for the datatype in this dataset * class_id = getHDF5ClassID(loc_id, encoded_name, &layout, &type_id, * &dataset_id) # <<<<<<<<<<<<<< * # Check if this a dataset of supported classtype for ARRAY * if ((class_id == H5T_INTEGER) or */ __pyx_v_class_id = getHDF5ClassID(__pyx_v_loc_id, __pyx_t_4, (&__pyx_v_layout), (&__pyx_v_type_id), (&__pyx_v_dataset_id)); /* "tables/utilsextension.pyx":718 * &dataset_id) * # Check if this a dataset of supported classtype for ARRAY * if ((class_id == H5T_INTEGER) or # <<<<<<<<<<<<<< * (class_id == H5T_FLOAT) or * (class_id == H5T_BITFIELD) or */ __pyx_t_2 = (__pyx_v_class_id == H5T_INTEGER); if (!__pyx_t_2) { /* "tables/utilsextension.pyx":719 * # Check if this a dataset of supported classtype for ARRAY * if ((class_id == H5T_INTEGER) or * (class_id == H5T_FLOAT) or # <<<<<<<<<<<<<< * (class_id == H5T_BITFIELD) or * (class_id == H5T_TIME) or */ __pyx_t_5 = (__pyx_v_class_id == H5T_FLOAT); if (!__pyx_t_5) { /* "tables/utilsextension.pyx":720 * if ((class_id == H5T_INTEGER) or * (class_id == H5T_FLOAT) or * (class_id == H5T_BITFIELD) or # <<<<<<<<<<<<<< * (class_id == H5T_TIME) or * (class_id == H5T_ENUM) or */ __pyx_t_6 = (__pyx_v_class_id == H5T_BITFIELD); if (!__pyx_t_6) { /* "tables/utilsextension.pyx":721 * (class_id == H5T_FLOAT) or * (class_id == H5T_BITFIELD) or * (class_id == H5T_TIME) or # <<<<<<<<<<<<<< * (class_id == H5T_ENUM) or * (class_id == H5T_STRING) or */ __pyx_t_7 = (__pyx_v_class_id == H5T_TIME); if (!__pyx_t_7) { /* "tables/utilsextension.pyx":722 * (class_id == H5T_BITFIELD) or * (class_id == H5T_TIME) or * (class_id == H5T_ENUM) or # <<<<<<<<<<<<<< * (class_id == H5T_STRING) or * (class_id == H5T_ARRAY)): */ __pyx_t_8 = (__pyx_v_class_id == H5T_ENUM); if (!__pyx_t_8) { /* "tables/utilsextension.pyx":723 * (class_id == H5T_TIME) or * (class_id == H5T_ENUM) or * (class_id == H5T_STRING) or # <<<<<<<<<<<<<< * (class_id == H5T_ARRAY)): * if layout == H5D_CHUNKED: */ __pyx_t_9 = (__pyx_v_class_id == H5T_STRING); if (!__pyx_t_9) { /* "tables/utilsextension.pyx":724 * (class_id == H5T_ENUM) or * (class_id == H5T_STRING) or * (class_id == H5T_ARRAY)): # <<<<<<<<<<<<<< * if layout == H5D_CHUNKED: * if H5ARRAYget_ndims(dataset_id, &rank) < 0: */ __pyx_t_10 = (__pyx_v_class_id == H5T_ARRAY); __pyx_t_11 = __pyx_t_10; } else { __pyx_t_11 = __pyx_t_9; } __pyx_t_9 = __pyx_t_11; } else { __pyx_t_9 = __pyx_t_8; } __pyx_t_8 = __pyx_t_9; } else { __pyx_t_8 = __pyx_t_7; } __pyx_t_7 = __pyx_t_8; } else { __pyx_t_7 = __pyx_t_6; } __pyx_t_6 = __pyx_t_7; } else { __pyx_t_6 = __pyx_t_5; } __pyx_t_5 = __pyx_t_6; } else { __pyx_t_5 = __pyx_t_2; } if (__pyx_t_5) { /* "tables/utilsextension.pyx":725 * (class_id == H5T_STRING) or * (class_id == H5T_ARRAY)): * if layout == H5D_CHUNKED: # <<<<<<<<<<<<<< * if H5ARRAYget_ndims(dataset_id, &rank) < 0: * raise HDF5ExtError("Problems getting ndims.") */ __pyx_t_5 = (__pyx_v_layout == H5D_CHUNKED); if (__pyx_t_5) { /* "tables/utilsextension.pyx":726 * (class_id == H5T_ARRAY)): * if layout == H5D_CHUNKED: * if H5ARRAYget_ndims(dataset_id, &rank) < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("Problems getting ndims.") * dims = malloc(rank * sizeof(hsize_t)) */ __pyx_t_5 = (H5ARRAYget_ndims(__pyx_v_dataset_id, (&__pyx_v_rank)) < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":727 * if layout == H5D_CHUNKED: * if H5ARRAYget_ndims(dataset_id, &rank) < 0: * raise HDF5ExtError("Problems getting ndims.") # <<<<<<<<<<<<<< * dims = malloc(rank * sizeof(hsize_t)) * maxdims = malloc(rank * sizeof(hsize_t)) */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_19), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L6; } __pyx_L6:; /* "tables/utilsextension.pyx":728 * if H5ARRAYget_ndims(dataset_id, &rank) < 0: * raise HDF5ExtError("Problems getting ndims.") * dims = malloc(rank * sizeof(hsize_t)) # <<<<<<<<<<<<<< * maxdims = malloc(rank * sizeof(hsize_t)) * if H5ARRAYget_info(dataset_id, type_id, dims, maxdims, */ __pyx_v_dims = ((hsize_t *)malloc((__pyx_v_rank * (sizeof(hsize_t))))); /* "tables/utilsextension.pyx":729 * raise HDF5ExtError("Problems getting ndims.") * dims = malloc(rank * sizeof(hsize_t)) * maxdims = malloc(rank * sizeof(hsize_t)) # <<<<<<<<<<<<<< * if H5ARRAYget_info(dataset_id, type_id, dims, maxdims, * &class_id, byteorder) < 0: */ __pyx_v_maxdims = ((hsize_t *)malloc((__pyx_v_rank * (sizeof(hsize_t))))); /* "tables/utilsextension.pyx":731 * maxdims = malloc(rank * sizeof(hsize_t)) * if H5ARRAYget_info(dataset_id, type_id, dims, maxdims, * &class_id, byteorder) < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("Unable to get array info.") * classId = "CARRAY" */ __pyx_t_5 = (H5ARRAYget_info(__pyx_v_dataset_id, __pyx_v_type_id, __pyx_v_dims, __pyx_v_maxdims, (&__pyx_v_class_id), __pyx_v_byteorder) < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":732 * if H5ARRAYget_info(dataset_id, type_id, dims, maxdims, * &class_id, byteorder) < 0: * raise HDF5ExtError("Unable to get array info.") # <<<<<<<<<<<<<< * classId = "CARRAY" * # Check whether some dimension is enlargeable */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_21), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; /* "tables/utilsextension.pyx":733 * &class_id, byteorder) < 0: * raise HDF5ExtError("Unable to get array info.") * classId = "CARRAY" # <<<<<<<<<<<<<< * # Check whether some dimension is enlargeable * for i in range(rank): */ __Pyx_INCREF(((PyObject *)__pyx_n_s__CARRAY)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__CARRAY); /* "tables/utilsextension.pyx":735 * classId = "CARRAY" * # Check whether some dimension is enlargeable * for i in range(rank): # <<<<<<<<<<<<<< * if maxdims[i] == -1: * classId = "EARRAY" */ __pyx_t_12 = __pyx_v_rank; for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) { __pyx_v_i = __pyx_t_13; /* "tables/utilsextension.pyx":736 * # Check whether some dimension is enlargeable * for i in range(rank): * if maxdims[i] == -1: # <<<<<<<<<<<<<< * classId = "EARRAY" * break */ __pyx_t_5 = ((__pyx_v_maxdims[__pyx_v_i]) == -1); if (__pyx_t_5) { /* "tables/utilsextension.pyx":737 * for i in range(rank): * if maxdims[i] == -1: * classId = "EARRAY" # <<<<<<<<<<<<<< * break * free(dims) */ __Pyx_INCREF(((PyObject *)__pyx_n_s__EARRAY)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__EARRAY); /* "tables/utilsextension.pyx":738 * if maxdims[i] == -1: * classId = "EARRAY" * break # <<<<<<<<<<<<<< * free(dims) * free(maxdims) */ goto __pyx_L9_break; goto __pyx_L10; } __pyx_L10:; } __pyx_L9_break:; /* "tables/utilsextension.pyx":739 * classId = "EARRAY" * break * free(dims) # <<<<<<<<<<<<<< * free(maxdims) * else: */ free(((void *)__pyx_v_dims)); /* "tables/utilsextension.pyx":740 * break * free(dims) * free(maxdims) # <<<<<<<<<<<<<< * else: * classId = "ARRAY" */ free(((void *)__pyx_v_maxdims)); goto __pyx_L5; } /*else*/ { /* "tables/utilsextension.pyx":742 * free(maxdims) * else: * classId = "ARRAY" # <<<<<<<<<<<<<< * * elif class_id == H5T_COMPOUND: */ __Pyx_INCREF(((PyObject *)__pyx_n_s__ARRAY)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__ARRAY); } __pyx_L5:; goto __pyx_L4; } /* "tables/utilsextension.pyx":744 * classId = "ARRAY" * * elif class_id == H5T_COMPOUND: # <<<<<<<<<<<<<< * # check whether the type is complex or not * iscomplex = False */ __pyx_t_5 = (__pyx_v_class_id == H5T_COMPOUND); if (__pyx_t_5) { /* "tables/utilsextension.pyx":746 * elif class_id == H5T_COMPOUND: * # check whether the type is complex or not * iscomplex = False # <<<<<<<<<<<<<< * nfields = H5Tget_nmembers(type_id) * if nfields == 2: */ __pyx_v_iscomplex = 0; /* "tables/utilsextension.pyx":747 * # check whether the type is complex or not * iscomplex = False * nfields = H5Tget_nmembers(type_id) # <<<<<<<<<<<<<< * if nfields == 2: * field_name1 = H5Tget_member_name(type_id, 0) */ __pyx_v_nfields = H5Tget_nmembers(__pyx_v_type_id); /* "tables/utilsextension.pyx":748 * iscomplex = False * nfields = H5Tget_nmembers(type_id) * if nfields == 2: # <<<<<<<<<<<<<< * field_name1 = H5Tget_member_name(type_id, 0) * field_name2 = H5Tget_member_name(type_id, 1) */ __pyx_t_5 = (__pyx_v_nfields == 2); if (__pyx_t_5) { /* "tables/utilsextension.pyx":749 * nfields = H5Tget_nmembers(type_id) * if nfields == 2: * field_name1 = H5Tget_member_name(type_id, 0) # <<<<<<<<<<<<<< * field_name2 = H5Tget_member_name(type_id, 1) * # The pair ("r", "i") is for PyTables. ("real", "imag") for Octave. */ __pyx_v_field_name1 = H5Tget_member_name(__pyx_v_type_id, 0); /* "tables/utilsextension.pyx":750 * if nfields == 2: * field_name1 = H5Tget_member_name(type_id, 0) * field_name2 = H5Tget_member_name(type_id, 1) # <<<<<<<<<<<<<< * # The pair ("r", "i") is for PyTables. ("real", "imag") for Octave. * if ( (strcmp(field_name1, "real") == 0 and */ __pyx_v_field_name2 = H5Tget_member_name(__pyx_v_type_id, 1); /* "tables/utilsextension.pyx":752 * field_name2 = H5Tget_member_name(type_id, 1) * # The pair ("r", "i") is for PyTables. ("real", "imag") for Octave. * if ( (strcmp(field_name1, "real") == 0 and # <<<<<<<<<<<<<< * strcmp(field_name2, "imag") == 0) or * (strcmp(field_name1, "r") == 0 and */ __pyx_t_5 = (strcmp(__pyx_v_field_name1, __pyx_k__real) == 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":753 * # The pair ("r", "i") is for PyTables. ("real", "imag") for Octave. * if ( (strcmp(field_name1, "real") == 0 and * strcmp(field_name2, "imag") == 0) or # <<<<<<<<<<<<<< * (strcmp(field_name1, "r") == 0 and * strcmp(field_name2, "i") == 0) ): */ __pyx_t_2 = (strcmp(__pyx_v_field_name2, __pyx_k__imag) == 0); __pyx_t_6 = __pyx_t_2; } else { __pyx_t_6 = __pyx_t_5; } if (!__pyx_t_6) { /* "tables/utilsextension.pyx":754 * if ( (strcmp(field_name1, "real") == 0 and * strcmp(field_name2, "imag") == 0) or * (strcmp(field_name1, "r") == 0 and # <<<<<<<<<<<<<< * strcmp(field_name2, "i") == 0) ): * iscomplex = True */ __pyx_t_5 = (strcmp(__pyx_v_field_name1, __pyx_k__r) == 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":755 * strcmp(field_name2, "imag") == 0) or * (strcmp(field_name1, "r") == 0 and * strcmp(field_name2, "i") == 0) ): # <<<<<<<<<<<<<< * iscomplex = True * free(field_name1) */ __pyx_t_2 = (strcmp(__pyx_v_field_name2, __pyx_k__i) == 0); __pyx_t_7 = __pyx_t_2; } else { __pyx_t_7 = __pyx_t_5; } __pyx_t_5 = __pyx_t_7; } else { __pyx_t_5 = __pyx_t_6; } if (__pyx_t_5) { /* "tables/utilsextension.pyx":756 * (strcmp(field_name1, "r") == 0 and * strcmp(field_name2, "i") == 0) ): * iscomplex = True # <<<<<<<<<<<<<< * free(field_name1) * free(field_name2) */ __pyx_v_iscomplex = 1; goto __pyx_L12; } __pyx_L12:; /* "tables/utilsextension.pyx":757 * strcmp(field_name2, "i") == 0) ): * iscomplex = True * free(field_name1) # <<<<<<<<<<<<<< * free(field_name2) * if layout == H5D_CHUNKED: */ free(((void *)__pyx_v_field_name1)); /* "tables/utilsextension.pyx":758 * iscomplex = True * free(field_name1) * free(field_name2) # <<<<<<<<<<<<<< * if layout == H5D_CHUNKED: * if iscomplex: */ free(((void *)__pyx_v_field_name2)); goto __pyx_L11; } __pyx_L11:; /* "tables/utilsextension.pyx":759 * free(field_name1) * free(field_name2) * if layout == H5D_CHUNKED: # <<<<<<<<<<<<<< * if iscomplex: * classId = "CARRAY" */ __pyx_t_5 = (__pyx_v_layout == H5D_CHUNKED); if (__pyx_t_5) { /* "tables/utilsextension.pyx":760 * free(field_name2) * if layout == H5D_CHUNKED: * if iscomplex: # <<<<<<<<<<<<<< * classId = "CARRAY" * else: */ if (__pyx_v_iscomplex) { /* "tables/utilsextension.pyx":761 * if layout == H5D_CHUNKED: * if iscomplex: * classId = "CARRAY" # <<<<<<<<<<<<<< * else: * classId = "TABLE" */ __Pyx_INCREF(((PyObject *)__pyx_n_s__CARRAY)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__CARRAY); goto __pyx_L14; } /*else*/ { /* "tables/utilsextension.pyx":763 * classId = "CARRAY" * else: * classId = "TABLE" # <<<<<<<<<<<<<< * else: # Not chunked case * # Octave saves complex arrays as non-chunked tables */ __Pyx_INCREF(((PyObject *)__pyx_n_s__TABLE)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__TABLE); } __pyx_L14:; goto __pyx_L13; } /*else*/ { /* "tables/utilsextension.pyx":769 * # Francesc Alted 2005-04-29 * # Get number of records * if iscomplex: # <<<<<<<<<<<<<< * classId = "ARRAY" # It is probably an Octave complex array * else: */ if (__pyx_v_iscomplex) { /* "tables/utilsextension.pyx":770 * # Get number of records * if iscomplex: * classId = "ARRAY" # It is probably an Octave complex array # <<<<<<<<<<<<<< * else: * # Added to support non-chunked tables */ __Pyx_INCREF(((PyObject *)__pyx_n_s__ARRAY)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__ARRAY); goto __pyx_L15; } /*else*/ { /* "tables/utilsextension.pyx":773 * else: * # Added to support non-chunked tables * classId = "TABLE" # A test for supporting non-growable tables # <<<<<<<<<<<<<< * * elif class_id == H5T_VLEN: */ __Pyx_INCREF(((PyObject *)__pyx_n_s__TABLE)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__TABLE); } __pyx_L15:; } __pyx_L13:; goto __pyx_L4; } /* "tables/utilsextension.pyx":775 * classId = "TABLE" # A test for supporting non-growable tables * * elif class_id == H5T_VLEN: # <<<<<<<<<<<<<< * if layout == H5D_CHUNKED: * classId = "VLARRAY" */ __pyx_t_5 = (__pyx_v_class_id == H5T_VLEN); if (__pyx_t_5) { /* "tables/utilsextension.pyx":776 * * elif class_id == H5T_VLEN: * if layout == H5D_CHUNKED: # <<<<<<<<<<<<<< * classId = "VLARRAY" * */ __pyx_t_5 = (__pyx_v_layout == H5D_CHUNKED); if (__pyx_t_5) { /* "tables/utilsextension.pyx":777 * elif class_id == H5T_VLEN: * if layout == H5D_CHUNKED: * classId = "VLARRAY" # <<<<<<<<<<<<<< * * # Release the datatype. */ __Pyx_INCREF(((PyObject *)__pyx_n_s__VLARRAY)); __Pyx_DECREF(__pyx_v_classId); __pyx_v_classId = ((PyObject *)__pyx_n_s__VLARRAY); goto __pyx_L16; } __pyx_L16:; goto __pyx_L4; } __pyx_L4:; /* "tables/utilsextension.pyx":780 * * # Release the datatype. * H5Tclose(type_id) # <<<<<<<<<<<<<< * * # Close the dataset. */ H5Tclose(__pyx_v_type_id); /* "tables/utilsextension.pyx":783 * * # Close the dataset. * H5Dclose(dataset_id) # <<<<<<<<<<<<<< * * # Fallback */ H5Dclose(__pyx_v_dataset_id); /* "tables/utilsextension.pyx":786 * * # Fallback * return classId # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_classId); __pyx_r = __pyx_v_classId; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.which_class", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_classId); __Pyx_XDECREF(__pyx_v_encoded_name); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_23get_nested_field(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_22get_nested_field[] = "Get the maybe nested field named `fieldname` from the `recarray`.\n\n The `fieldname` may be a simple field name or a nested field name\n with slah-separated components.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_23get_nested_field = {__Pyx_NAMESTR("get_nested_field"), (PyCFunction)__pyx_pw_6tables_14utilsextension_23get_nested_field, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_22get_nested_field)}; static PyObject *__pyx_pw_6tables_14utilsextension_23get_nested_field(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_recarray = 0; PyObject *__pyx_v_fieldname = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_nested_field (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__recarray,&__pyx_n_s__fieldname,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__recarray)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fieldname)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_nested_field", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_nested_field") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_recarray = values[0]; __pyx_v_fieldname = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_nested_field", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.get_nested_field", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_22get_nested_field(__pyx_self, __pyx_v_recarray, __pyx_v_fieldname); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":792 * * * def get_nested_field(recarray, fieldname): # <<<<<<<<<<<<<< * """Get the maybe nested field named `fieldname` from the `recarray`. * */ static PyObject *__pyx_pf_6tables_14utilsextension_22get_nested_field(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_recarray, PyObject *__pyx_v_fieldname) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_field = NULL; PyObject *__pyx_v_nfieldname = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; char *__pyx_t_6; int __pyx_t_7; Py_ssize_t __pyx_t_8; PyObject *(*__pyx_t_9)(PyObject *); int __pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_nested_field", 0); /* "tables/utilsextension.pyx":800 * """ * * cdef bytes name = fieldname.encode('utf-8') # <<<<<<<<<<<<<< * try: * if strchr(name, 47) != NULL: # ord('/') == 47 */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_fieldname, __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_22), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_name = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":801 * * cdef bytes name = fieldname.encode('utf-8') * try: # <<<<<<<<<<<<<< * if strchr(name, 47) != NULL: # ord('/') == 47 * # It may be convenient to implement this way of descending nested */ { __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "tables/utilsextension.pyx":802 * cdef bytes name = fieldname.encode('utf-8') * try: * if strchr(name, 47) != NULL: # ord('/') == 47 # <<<<<<<<<<<<<< * # It may be convenient to implement this way of descending nested * # fields into the ``__getitem__()`` method of a subclass of */ __pyx_t_6 = PyBytes_AsString(((PyObject *)__pyx_v_name)); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_t_7 = (strchr(((char *)__pyx_t_6), 47) != NULL); if (__pyx_t_7) { /* "tables/utilsextension.pyx":806 * # fields into the ``__getitem__()`` method of a subclass of * # ``numpy.ndarray``. -- ivb * field = recarray # <<<<<<<<<<<<<< * for nfieldname in fieldname.split('/'): * field = field[nfieldname] */ __Pyx_INCREF(__pyx_v_recarray); __pyx_v_field = __pyx_v_recarray; /* "tables/utilsextension.pyx":807 * # ``numpy.ndarray``. -- ivb * field = recarray * for nfieldname in fieldname.split('/'): # <<<<<<<<<<<<<< * field = field[nfieldname] * else: */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_fieldname, __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_24), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) { __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_8 = 0; __pyx_t_9 = NULL; } else { __pyx_t_8 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_9 = Py_TYPE(__pyx_t_2)->tp_iternext; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { if (!__pyx_t_9 && PyList_CheckExact(__pyx_t_2)) { if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} #else __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} #endif } else if (!__pyx_t_9 && PyTuple_CheckExact(__pyx_t_2)) { if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} #else __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} #endif } else { __pyx_t_1 = __pyx_t_9(__pyx_t_2); if (unlikely(!__pyx_t_1)) { if (PyErr_Occurred()) { if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear(); else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } break; } __Pyx_GOTREF(__pyx_t_1); } __Pyx_XDECREF(__pyx_v_nfieldname); __pyx_v_nfieldname = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":808 * field = recarray * for nfieldname in fieldname.split('/'): * field = field[nfieldname] # <<<<<<<<<<<<<< * else: * # Faster method for non-nested columns */ __pyx_t_1 = PyObject_GetItem(__pyx_v_field, __pyx_v_nfieldname); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_field); __pyx_v_field = __pyx_t_1; __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L11; } /*else*/ { /* "tables/utilsextension.pyx":811 * else: * # Faster method for non-nested columns * field = recarray[fieldname] # <<<<<<<<<<<<<< * except KeyError: * raise KeyError("no such column: %s" % (fieldname,)) */ __pyx_t_2 = PyObject_GetItem(__pyx_v_recarray, __pyx_v_fieldname); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_field = __pyx_t_2; __pyx_t_2 = 0; } __pyx_L11:; } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L10_try_end; __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":812 * # Faster method for non-nested columns * field = recarray[fieldname] * except KeyError: # <<<<<<<<<<<<<< * raise KeyError("no such column: %s" % (fieldname,)) * return field */ __pyx_t_10 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_10) { __Pyx_AddTraceback("tables.utilsextension.get_nested_field", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_11); /* "tables/utilsextension.pyx":813 * field = recarray[fieldname] * except KeyError: * raise KeyError("no such column: %s" % (fieldname,)) # <<<<<<<<<<<<<< * return field * */ __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_12); __Pyx_INCREF(__pyx_v_fieldname); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_fieldname); __Pyx_GIVEREF(__pyx_v_fieldname); __pyx_t_13 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_25), ((PyObject *)__pyx_t_12)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_13)); __Pyx_DECREF(((PyObject *)__pyx_t_12)); __pyx_t_12 = 0; __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_12, 0, ((PyObject *)__pyx_t_13)); __Pyx_GIVEREF(((PyObject *)__pyx_t_13)); __pyx_t_13 = 0; __pyx_t_13 = PyObject_Call(__pyx_builtin_KeyError, ((PyObject *)__pyx_t_12), NULL); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(((PyObject *)__pyx_t_12)); __pyx_t_12 = 0; __Pyx_Raise(__pyx_t_13, 0, 0, 0); __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; goto __pyx_L4_exception_handled; } __pyx_L5_except_error:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L1_error; __pyx_L4_exception_handled:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); __pyx_L10_try_end:; } /* "tables/utilsextension.pyx":814 * except KeyError: * raise KeyError("no such column: %s" % (fieldname,)) * return field # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_field); __pyx_r = __pyx_v_field; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("tables.utilsextension.get_nested_field", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_name); __Pyx_XDECREF(__pyx_v_field); __Pyx_XDECREF(__pyx_v_nfieldname); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_25get_indices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_6tables_14utilsextension_25get_indices = {__Pyx_NAMESTR("get_indices"), (PyCFunction)__pyx_pw_6tables_14utilsextension_25get_indices, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)}; static PyObject *__pyx_pw_6tables_14utilsextension_25get_indices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_start = 0; PyObject *__pyx_v_stop = 0; PyObject *__pyx_v_step = 0; hsize_t __pyx_v_length; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_indices (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__start,&__pyx_n_s__stop,&__pyx_n_s__step,&__pyx_n_s__length,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__start)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__stop)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_indices", 1, 4, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__step)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_indices", 1, 4, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 3: if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__length)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_indices", 1, 4, 4, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_indices") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); values[3] = PyTuple_GET_ITEM(__pyx_args, 3); } __pyx_v_start = values[0]; __pyx_v_stop = values[1]; __pyx_v_step = values[2]; __pyx_v_length = __Pyx_PyInt_from_py_hsize_t(values[3]); if (unlikely((__pyx_v_length == (hsize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_indices", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.get_indices", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_24get_indices(__pyx_self, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_length); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":820 * * * def get_indices(object start, object stop, object step, hsize_t length): # <<<<<<<<<<<<<< * cdef hssize_t o_start, o_stop, o_step * cdef hsize_t slicelength */ static PyObject *__pyx_pf_6tables_14utilsextension_24get_indices(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_stop, PyObject *__pyx_v_step, hsize_t __pyx_v_length) { hssize_t __pyx_v_o_start; hssize_t __pyx_v_o_stop; hssize_t __pyx_v_o_step; hsize_t __pyx_v_slicelength; PyObject *__pyx_v_s = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_indices", 0); __Pyx_INCREF(__pyx_v_start); __Pyx_INCREF(__pyx_v_stop); __Pyx_INCREF(__pyx_v_step); /* "tables/utilsextension.pyx":826 * * # In order to convert possible numpy.integer values to long ones * if start is not None: start = long(start) # <<<<<<<<<<<<<< * if stop is not None: stop = long(stop) * if step is not None: step = long(step) */ __pyx_t_1 = (__pyx_v_start != Py_None); if (__pyx_t_1) { __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_start); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_start); __Pyx_GIVEREF(__pyx_v_start); __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)(&PyLong_Type))), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_start); __pyx_v_start = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":827 * # In order to convert possible numpy.integer values to long ones * if start is not None: start = long(start) * if stop is not None: stop = long(stop) # <<<<<<<<<<<<<< * if step is not None: step = long(step) * s = slice(start, stop, step) */ __pyx_t_1 = (__pyx_v_stop != Py_None); if (__pyx_t_1) { __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_stop); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_stop); __Pyx_GIVEREF(__pyx_v_stop); __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)(&PyLong_Type))), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_v_stop); __pyx_v_stop = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L4; } __pyx_L4:; /* "tables/utilsextension.pyx":828 * if start is not None: start = long(start) * if stop is not None: stop = long(stop) * if step is not None: step = long(step) # <<<<<<<<<<<<<< * s = slice(start, stop, step) * if getIndicesExt(s, length, &o_start, &o_stop, &o_step, &slicelength) < 0: */ __pyx_t_1 = (__pyx_v_step != Py_None); if (__pyx_t_1) { __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_step); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_step); __Pyx_GIVEREF(__pyx_v_step); __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)(&PyLong_Type))), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_step); __pyx_v_step = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L5; } __pyx_L5:; /* "tables/utilsextension.pyx":829 * if stop is not None: stop = long(stop) * if step is not None: step = long(step) * s = slice(start, stop, step) # <<<<<<<<<<<<<< * if getIndicesExt(s, length, &o_start, &o_stop, &o_step, &slicelength) < 0: * raise ValueError("Problems getting the indices on slice '%s'" % s) */ __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_start); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_start); __Pyx_GIVEREF(__pyx_v_start); __Pyx_INCREF(__pyx_v_stop); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_stop); __Pyx_GIVEREF(__pyx_v_stop); __Pyx_INCREF(__pyx_v_step); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_step); __Pyx_GIVEREF(__pyx_v_step); __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)(&PySlice_Type))), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_v_s = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":830 * if step is not None: step = long(step) * s = slice(start, stop, step) * if getIndicesExt(s, length, &o_start, &o_stop, &o_step, &slicelength) < 0: # <<<<<<<<<<<<<< * raise ValueError("Problems getting the indices on slice '%s'" % s) * return (o_start, o_stop, o_step) */ __pyx_t_1 = (getIndicesExt(__pyx_v_s, __pyx_v_length, (&__pyx_v_o_start), (&__pyx_v_o_stop), (&__pyx_v_o_step), (&__pyx_v_slicelength)) < 0); if (__pyx_t_1) { /* "tables/utilsextension.pyx":831 * s = slice(start, stop, step) * if getIndicesExt(s, length, &o_start, &o_stop, &o_step, &slicelength) < 0: * raise ValueError("Problems getting the indices on slice '%s'" % s) # <<<<<<<<<<<<<< * return (o_start, o_stop, o_step) * */ __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_26), __pyx_v_s); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L6; } __pyx_L6:; /* "tables/utilsextension.pyx":832 * if getIndicesExt(s, length, &o_start, &o_stop, &o_step, &slicelength) < 0: * raise ValueError("Problems getting the indices on slice '%s'" % s) * return (o_start, o_stop, o_step) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyInt_to_py_hssize_t(__pyx_v_o_start); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_to_py_hssize_t(__pyx_v_o_stop); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_to_py_hssize_t(__pyx_v_o_step); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = ((PyObject *)__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tables.utilsextension.get_indices", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_s); __Pyx_XDECREF(__pyx_v_start); __Pyx_XDECREF(__pyx_v_stop); __Pyx_XDECREF(__pyx_v_step); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_27read_f_attr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_26read_f_attr[] = "Read PyTables file attributes (i.e. in root group).\n\n Returns the value of the `attr_name` attribute in root group, or `None`\n if it does not exist. This call cannot fail.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_27read_f_attr = {__Pyx_NAMESTR("read_f_attr"), (PyCFunction)__pyx_pw_6tables_14utilsextension_27read_f_attr, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_26read_f_attr)}; static PyObject *__pyx_pw_6tables_14utilsextension_27read_f_attr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { hid_t __pyx_v_file_id; PyObject *__pyx_v_attr_name = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("read_f_attr (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__file_id,&__pyx_n_s__attr_name,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__file_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__attr_name)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("read_f_attr", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read_f_attr") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_file_id = __Pyx_PyInt_from_py_hid_t(values[0]); if (unlikely((__pyx_v_file_id == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_v_attr_name = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("read_f_attr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.read_f_attr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_attr_name), (&PyString_Type), 1, "attr_name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_6tables_14utilsextension_26read_f_attr(__pyx_self, __pyx_v_file_id, __pyx_v_attr_name); goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":838 * * * def read_f_attr(hid_t file_id, str attr_name): # <<<<<<<<<<<<<< * """Read PyTables file attributes (i.e. in root group). * */ static PyObject *__pyx_pf_6tables_14utilsextension_26read_f_attr(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_file_id, PyObject *__pyx_v_attr_name) { size_t __pyx_v_size; char *__pyx_v_attr_value; int __pyx_v_cset; PyObject *__pyx_v_retvalue = 0; PyObject *__pyx_v_encoded_attr_name = 0; char *__pyx_v_c_attr_name; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; char *__pyx_t_3; herr_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("read_f_attr", 0); /* "tables/utilsextension.pyx":848 * cdef size_t size * cdef char *attr_value * cdef int cset = H5T_CSET_ASCII # <<<<<<<<<<<<<< * cdef object retvalue * cdef bytes encoded_attr_name */ __pyx_v_cset = H5T_CSET_ASCII; /* "tables/utilsextension.pyx":851 * cdef object retvalue * cdef bytes encoded_attr_name * cdef char *c_attr_name = NULL # <<<<<<<<<<<<<< * * encoded_attr_name = attr_name.encode('utf-8') */ __pyx_v_c_attr_name = NULL; /* "tables/utilsextension.pyx":853 * cdef char *c_attr_name = NULL * * encoded_attr_name = attr_name.encode('utf-8') # <<<<<<<<<<<<<< * # Get the C pointer * c_attr_name = encoded_attr_name */ __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_attr_name), __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_27), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_encoded_attr_name = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":855 * encoded_attr_name = attr_name.encode('utf-8') * # Get the C pointer * c_attr_name = encoded_attr_name # <<<<<<<<<<<<<< * * attr_value = NULL */ __pyx_t_3 = PyBytes_AsString(((PyObject *)__pyx_v_encoded_attr_name)); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_c_attr_name = __pyx_t_3; /* "tables/utilsextension.pyx":857 * c_attr_name = encoded_attr_name * * attr_value = NULL # <<<<<<<<<<<<<< * retvalue = None * # Check if attribute exists */ __pyx_v_attr_value = NULL; /* "tables/utilsextension.pyx":858 * * attr_value = NULL * retvalue = None # <<<<<<<<<<<<<< * # Check if attribute exists * if H5ATTRfind_attribute(file_id, c_attr_name): */ __Pyx_INCREF(Py_None); __pyx_v_retvalue = Py_None; /* "tables/utilsextension.pyx":860 * retvalue = None * # Check if attribute exists * if H5ATTRfind_attribute(file_id, c_attr_name): # <<<<<<<<<<<<<< * # Read the attr_name attribute * size = H5ATTRget_attribute_string(file_id, c_attr_name, &attr_value, &cset) */ __pyx_t_4 = H5ATTRfind_attribute(__pyx_v_file_id, __pyx_v_c_attr_name); if (__pyx_t_4) { /* "tables/utilsextension.pyx":862 * if H5ATTRfind_attribute(file_id, c_attr_name): * # Read the attr_name attribute * size = H5ATTRget_attribute_string(file_id, c_attr_name, &attr_value, &cset) # <<<<<<<<<<<<<< * if size > 0: * if cset == H5T_CSET_UTF8: */ __pyx_v_size = H5ATTRget_attribute_string(__pyx_v_file_id, __pyx_v_c_attr_name, (&__pyx_v_attr_value), (&__pyx_v_cset)); /* "tables/utilsextension.pyx":863 * # Read the attr_name attribute * size = H5ATTRget_attribute_string(file_id, c_attr_name, &attr_value, &cset) * if size > 0: # <<<<<<<<<<<<<< * if cset == H5T_CSET_UTF8: * retvalue = PyUnicode_DecodeUTF8(attr_value, strlen(attr_value), NULL) */ __pyx_t_5 = (__pyx_v_size > 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":864 * size = H5ATTRget_attribute_string(file_id, c_attr_name, &attr_value, &cset) * if size > 0: * if cset == H5T_CSET_UTF8: # <<<<<<<<<<<<<< * retvalue = PyUnicode_DecodeUTF8(attr_value, strlen(attr_value), NULL) * retvalue = numpy.str_(retvalue) */ __pyx_t_5 = (__pyx_v_cset == H5T_CSET_UTF8); if (__pyx_t_5) { /* "tables/utilsextension.pyx":865 * if size > 0: * if cset == H5T_CSET_UTF8: * retvalue = PyUnicode_DecodeUTF8(attr_value, strlen(attr_value), NULL) # <<<<<<<<<<<<<< * retvalue = numpy.str_(retvalue) * else: */ __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_attr_value, strlen(__pyx_v_attr_value), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_retvalue); __pyx_v_retvalue = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":866 * if cset == H5T_CSET_UTF8: * retvalue = PyUnicode_DecodeUTF8(attr_value, strlen(attr_value), NULL) * retvalue = numpy.str_(retvalue) # <<<<<<<<<<<<<< * else: * retvalue = attr_value */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__numpy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__str_); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_retvalue); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_retvalue); __Pyx_GIVEREF(__pyx_v_retvalue); __pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_retvalue); __pyx_v_retvalue = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L5; } /*else*/ { /* "tables/utilsextension.pyx":868 * retvalue = numpy.str_(retvalue) * else: * retvalue = attr_value # <<<<<<<<<<<<<< * retvalue = numpy.bytes_(retvalue) * # Important to release attr_value, because it has been malloc'ed! */ __pyx_t_6 = PyBytes_FromString(__pyx_v_attr_value); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_v_retvalue); __pyx_v_retvalue = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":869 * else: * retvalue = attr_value * retvalue = numpy.bytes_(retvalue) # <<<<<<<<<<<<<< * # Important to release attr_value, because it has been malloc'ed! * if attr_value: */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__numpy); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__bytes_); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_retvalue); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_retvalue); __Pyx_GIVEREF(__pyx_v_retvalue); __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_v_retvalue); __pyx_v_retvalue = __pyx_t_1; __pyx_t_1 = 0; } __pyx_L5:; goto __pyx_L4; } __pyx_L4:; /* "tables/utilsextension.pyx":871 * retvalue = numpy.bytes_(retvalue) * # Important to release attr_value, because it has been malloc'ed! * if attr_value: # <<<<<<<<<<<<<< * free(attr_value) * */ __pyx_t_5 = (__pyx_v_attr_value != 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":872 * # Important to release attr_value, because it has been malloc'ed! * if attr_value: * free(attr_value) # <<<<<<<<<<<<<< * * return retvalue */ free(__pyx_v_attr_value); goto __pyx_L6; } __pyx_L6:; goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":874 * free(attr_value) * * return retvalue # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_retvalue); __pyx_r = __pyx_v_retvalue; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("tables.utilsextension.read_f_attr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_retvalue); __Pyx_XDECREF(__pyx_v_encoded_attr_name); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_29get_filters(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_28get_filters[] = "Get a dictionary with the filter names and cd_values"; static PyMethodDef __pyx_mdef_6tables_14utilsextension_29get_filters = {__Pyx_NAMESTR("get_filters"), (PyCFunction)__pyx_pw_6tables_14utilsextension_29get_filters, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_28get_filters)}; static PyObject *__pyx_pw_6tables_14utilsextension_29get_filters(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_parent_id = 0; PyObject *__pyx_v_name = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_filters (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__parent_id,&__pyx_n_s__name,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__parent_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("get_filters", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_filters") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_parent_id = values[0]; __pyx_v_name = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("get_filters", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.get_filters", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_28get_filters(__pyx_self, __pyx_v_parent_id, __pyx_v_name); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":877 * * * def get_filters(parent_id, name): # <<<<<<<<<<<<<< * """Get a dictionary with the filter names and cd_values""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_28get_filters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_parent_id, PyObject *__pyx_v_name) { PyObject *__pyx_v_encoded_name = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; hid_t __pyx_t_3; char *__pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_filters", 0); /* "tables/utilsextension.pyx":882 * cdef bytes encoded_name * * encoded_name = name.encode('utf-8') # <<<<<<<<<<<<<< * * return get_filter_names(parent_id, encoded_name) */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_name, __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_28), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_encoded_name = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":884 * encoded_name = name.encode('utf-8') * * return get_filter_names(parent_id, encoded_name) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_parent_id); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_4 = PyBytes_AsString(((PyObject *)__pyx_v_encoded_name)); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_2 = get_filter_names(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("tables.utilsextension.get_filters", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encoded_name); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_31get_type_enum(PyObject *__pyx_self, PyObject *__pyx_arg_h5type); /*proto*/ static char __pyx_doc_6tables_14utilsextension_30get_type_enum[] = "_getTypeEnum(h5type) -> hid_t\n\n Get the native HDF5 enumerated type of `h5type`.\n\n If `h5type` is an enumerated type, it is returned. If it is a\n variable-length type with an enumerated base type, this is returned. If it\n is a multi-dimensional type with an enumerated base type, this is returned.\n Else, a ``TypeError`` is raised.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_31get_type_enum = {__Pyx_NAMESTR("get_type_enum"), (PyCFunction)__pyx_pw_6tables_14utilsextension_31get_type_enum, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_30get_type_enum)}; static PyObject *__pyx_pw_6tables_14utilsextension_31get_type_enum(PyObject *__pyx_self, PyObject *__pyx_arg_h5type) { hid_t __pyx_v_h5type; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_type_enum (wrapper)", 0); assert(__pyx_arg_h5type); { __pyx_v_h5type = __Pyx_PyInt_from_py_hid_t(__pyx_arg_h5type); if (unlikely((__pyx_v_h5type == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.get_type_enum", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_30get_type_enum(__pyx_self, ((hid_t)__pyx_v_h5type)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":891 * * # This is used by several ._convert_types() methods. * def get_type_enum(hid_t h5type): # <<<<<<<<<<<<<< * """_getTypeEnum(h5type) -> hid_t * */ static PyObject *__pyx_pf_6tables_14utilsextension_30get_type_enum(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_h5type) { enum H5T_class_t __pyx_v_typeClass; hid_t __pyx_v_enumId; hid_t __pyx_v_enumId2; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; enum H5T_class_t __pyx_t_4; int __pyx_t_5; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; hid_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_type_enum", 0); /* "tables/utilsextension.pyx":906 * cdef hid_t enumId, enumId2 * * typeClass = H5Tget_class(h5type) # <<<<<<<<<<<<<< * if typeClass < 0: * raise HDF5ExtError("failed to get class of HDF5 type") */ __pyx_v_typeClass = H5Tget_class(__pyx_v_h5type); /* "tables/utilsextension.pyx":907 * * typeClass = H5Tget_class(h5type) * if typeClass < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("failed to get class of HDF5 type") * */ __pyx_t_1 = (__pyx_v_typeClass < 0); if (__pyx_t_1) { /* "tables/utilsextension.pyx":908 * typeClass = H5Tget_class(h5type) * if typeClass < 0: * raise HDF5ExtError("failed to get class of HDF5 type") # <<<<<<<<<<<<<< * * if typeClass == H5T_ENUM: */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_30), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":910 * raise HDF5ExtError("failed to get class of HDF5 type") * * if typeClass == H5T_ENUM: # <<<<<<<<<<<<<< * # Get the native type (in order to do byteorder conversions automatically) * enumId = H5Tget_native_type(h5type, H5T_DIR_DEFAULT) */ __pyx_t_1 = (__pyx_v_typeClass == H5T_ENUM); if (__pyx_t_1) { /* "tables/utilsextension.pyx":912 * if typeClass == H5T_ENUM: * # Get the native type (in order to do byteorder conversions automatically) * enumId = H5Tget_native_type(h5type, H5T_DIR_DEFAULT) # <<<<<<<<<<<<<< * elif typeClass in (H5T_ARRAY, H5T_VLEN): * # The field is multi-dimensional or variable length. */ __pyx_v_enumId = H5Tget_native_type(__pyx_v_h5type, H5T_DIR_DEFAULT); goto __pyx_L4; } /* "tables/utilsextension.pyx":913 * # Get the native type (in order to do byteorder conversions automatically) * enumId = H5Tget_native_type(h5type, H5T_DIR_DEFAULT) * elif typeClass in (H5T_ARRAY, H5T_VLEN): # <<<<<<<<<<<<<< * # The field is multi-dimensional or variable length. * enumId2 = H5Tget_super(h5type) */ __pyx_t_4 = __pyx_v_typeClass; __pyx_t_1 = ((int)(__pyx_t_4 == H5T_ARRAY)); if (!__pyx_t_1) { __pyx_t_5 = ((int)(__pyx_t_4 == H5T_VLEN)); __pyx_t_6 = __pyx_t_5; } else { __pyx_t_6 = __pyx_t_1; } __pyx_t_1 = __pyx_t_6; if (__pyx_t_1) { /* "tables/utilsextension.pyx":915 * elif typeClass in (H5T_ARRAY, H5T_VLEN): * # The field is multi-dimensional or variable length. * enumId2 = H5Tget_super(h5type) # <<<<<<<<<<<<<< * enumId = get_type_enum(enumId2) * H5Tclose(enumId2) */ __pyx_v_enumId2 = H5Tget_super(__pyx_v_h5type); /* "tables/utilsextension.pyx":916 * # The field is multi-dimensional or variable length. * enumId2 = H5Tget_super(h5type) * enumId = get_type_enum(enumId2) # <<<<<<<<<<<<<< * H5Tclose(enumId2) * else: */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_type_enum); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_enumId2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; __pyx_t_8 = __Pyx_PyInt_from_py_hid_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_enumId = __pyx_t_8; /* "tables/utilsextension.pyx":917 * enumId2 = H5Tget_super(h5type) * enumId = get_type_enum(enumId2) * H5Tclose(enumId2) # <<<<<<<<<<<<<< * else: * raise TypeError( */ H5Tclose(__pyx_v_enumId2); goto __pyx_L4; } /*else*/ { /* "tables/utilsextension.pyx":919 * H5Tclose(enumId2) * else: * raise TypeError( # <<<<<<<<<<<<<< * "enumerated values can not be stored using the given type") * return enumId */ __pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_k_tuple_32), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L4:; /* "tables/utilsextension.pyx":921 * raise TypeError( * "enumerated values can not be stored using the given type") * return enumId # <<<<<<<<<<<<<< * * getTypeEnum = previous_api(get_type_enum) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_enumId); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("tables.utilsextension.get_type_enum", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_33enum_from_hdf5(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_32enum_from_hdf5[] = "enum_from_hdf5(enumId) -> (Enum, npType)\n\n Convert an HDF5 enumerated type to a PyTables one.\n\n This function takes an HDF5 enumerated type and returns an `Enum`\n instance built from that, and the NumPy type used to encode it.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_33enum_from_hdf5 = {__Pyx_NAMESTR("enum_from_hdf5"), (PyCFunction)__pyx_pw_6tables_14utilsextension_33enum_from_hdf5, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_32enum_from_hdf5)}; static PyObject *__pyx_pw_6tables_14utilsextension_33enum_from_hdf5(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { hid_t __pyx_v_enumId; CYTHON_UNUSED PyObject *__pyx_v_byteorder = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("enum_from_hdf5 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__enumId,&__pyx_n_s__byteorder,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__enumId)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__byteorder)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("enum_from_hdf5", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "enum_from_hdf5") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_enumId = __Pyx_PyInt_from_py_hid_t(values[0]); if (unlikely((__pyx_v_enumId == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_v_byteorder = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("enum_from_hdf5", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.enum_from_hdf5", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_byteorder), (&PyString_Type), 1, "byteorder", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_6tables_14utilsextension_32enum_from_hdf5(__pyx_self, __pyx_v_enumId, __pyx_v_byteorder); goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":926 * * * def enum_from_hdf5(hid_t enumId, str byteorder): # <<<<<<<<<<<<<< * """enum_from_hdf5(enumId) -> (Enum, npType) * */ static PyObject *__pyx_pf_6tables_14utilsextension_32enum_from_hdf5(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_enumId, CYTHON_UNUSED PyObject *__pyx_v_byteorder) { hid_t __pyx_v_baseId; int __pyx_v_nelems; int __pyx_v_i; void *__pyx_v_rbuf; char *__pyx_v_ename; PyArrayObject *__pyx_v_npvalue = 0; PyObject *__pyx_v_dtype = 0; PyObject *__pyx_v_pyename = 0; PyObject *__pyx_v_atom = NULL; PyObject *__pyx_v_enumDict = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; int __pyx_t_5; int __pyx_t_6; char *__pyx_t_7; int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("enum_from_hdf5", 0); /* "tables/utilsextension.pyx":945 * * # Find the base type of the enumerated type, and get the atom * baseId = H5Tget_super(enumId) # <<<<<<<<<<<<<< * atom = atom_from_hdf5_type(baseId) * H5Tclose(baseId) */ __pyx_v_baseId = H5Tget_super(__pyx_v_enumId); /* "tables/utilsextension.pyx":946 * # Find the base type of the enumerated type, and get the atom * baseId = H5Tget_super(enumId) * atom = atom_from_hdf5_type(baseId) # <<<<<<<<<<<<<< * H5Tclose(baseId) * if atom.kind not in ('int', 'uint'): */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__atom_from_hdf5_type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_baseId); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_v_atom = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":947 * baseId = H5Tget_super(enumId) * atom = atom_from_hdf5_type(baseId) * H5Tclose(baseId) # <<<<<<<<<<<<<< * if atom.kind not in ('int', 'uint'): * raise NotImplementedError("sorry, only integer concrete values are " */ H5Tclose(__pyx_v_baseId); /* "tables/utilsextension.pyx":948 * atom = atom_from_hdf5_type(baseId) * H5Tclose(baseId) * if atom.kind not in ('int', 'uint'): # <<<<<<<<<<<<<< * raise NotImplementedError("sorry, only integer concrete values are " * "supported at this moment") */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__kind); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__int), Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (((int)__pyx_t_4)) { __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__uint), Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = ((int)__pyx_t_5); } else { __pyx_t_6 = ((int)__pyx_t_4); } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __pyx_t_6; if (__pyx_t_4) { /* "tables/utilsextension.pyx":949 * H5Tclose(baseId) * if atom.kind not in ('int', 'uint'): * raise NotImplementedError("sorry, only integer concrete values are " # <<<<<<<<<<<<<< * "supported at this moment") * */ __pyx_t_2 = PyObject_Call(__pyx_builtin_NotImplementedError, ((PyObject *)__pyx_k_tuple_34), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":952 * "supported at this moment") * * dtype = atom.dtype # <<<<<<<<<<<<<< * npvalue = numpy.array((0,), dtype=dtype) * rbuf = npvalue.data */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__dtype); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_dtype = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":953 * * dtype = atom.dtype * npvalue = numpy.array((0,), dtype=dtype) # <<<<<<<<<<<<<< * rbuf = npvalue.data * */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__numpy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__array); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__dtype), __pyx_v_dtype) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_36), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_npvalue = ((PyArrayObject *)__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":954 * dtype = atom.dtype * npvalue = numpy.array((0,), dtype=dtype) * rbuf = npvalue.data # <<<<<<<<<<<<<< * * # Get the name and value of each of the members */ __pyx_t_7 = __pyx_v_npvalue->data; __pyx_v_rbuf = __pyx_t_7; /* "tables/utilsextension.pyx":958 * # Get the name and value of each of the members * # and put the pair in `enumDict`. * enumDict = {} # <<<<<<<<<<<<<< * * nelems = H5Tget_nmembers(enumId) */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_v_enumDict = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":960 * enumDict = {} * * nelems = H5Tget_nmembers(enumId) # <<<<<<<<<<<<<< * if enumId < 0: * raise HDF5ExtError( */ __pyx_v_nelems = H5Tget_nmembers(__pyx_v_enumId); /* "tables/utilsextension.pyx":961 * * nelems = H5Tget_nmembers(enumId) * if enumId < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError( * "failed to get element count of HDF5 enumerated type") */ __pyx_t_4 = (__pyx_v_enumId < 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":962 * nelems = H5Tget_nmembers(enumId) * if enumId < 0: * raise HDF5ExtError( # <<<<<<<<<<<<<< * "failed to get element count of HDF5 enumerated type") * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_38), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L4; } __pyx_L4:; /* "tables/utilsextension.pyx":965 * "failed to get element count of HDF5 enumerated type") * * for i from 0 <= i < nelems: # <<<<<<<<<<<<<< * ename = H5Tget_member_name(enumId, i) * if ename == NULL: */ __pyx_t_8 = __pyx_v_nelems; for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_8; __pyx_v_i++) { /* "tables/utilsextension.pyx":966 * * for i from 0 <= i < nelems: * ename = H5Tget_member_name(enumId, i) # <<<<<<<<<<<<<< * if ename == NULL: * raise HDF5ExtError( */ __pyx_v_ename = H5Tget_member_name(__pyx_v_enumId, __pyx_v_i); /* "tables/utilsextension.pyx":967 * for i from 0 <= i < nelems: * ename = H5Tget_member_name(enumId, i) * if ename == NULL: # <<<<<<<<<<<<<< * raise HDF5ExtError( * "failed to get element name from HDF5 enumerated type") */ __pyx_t_4 = (__pyx_v_ename == NULL); if (__pyx_t_4) { /* "tables/utilsextension.pyx":968 * ename = H5Tget_member_name(enumId, i) * if ename == NULL: * raise HDF5ExtError( # <<<<<<<<<<<<<< * "failed to get element name from HDF5 enumerated type") * */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_40), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; /* "tables/utilsextension.pyx":971 * "failed to get element name from HDF5 enumerated type") * * pyename = cstr_to_pystr(ename) # <<<<<<<<<<<<<< * * free(ename) */ __pyx_t_1 = ((PyObject *)__pyx_f_6tables_14utilsextension_cstr_to_pystr(__pyx_v_ename)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF(((PyObject *)__pyx_v_pyename)); __pyx_v_pyename = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":973 * pyename = cstr_to_pystr(ename) * * free(ename) # <<<<<<<<<<<<<< * * if H5Tget_member_value(enumId, i, rbuf) < 0: */ free(__pyx_v_ename); /* "tables/utilsextension.pyx":975 * free(ename) * * if H5Tget_member_value(enumId, i, rbuf) < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError( * "failed to get element value from HDF5 enumerated type") */ __pyx_t_4 = (H5Tget_member_value(__pyx_v_enumId, __pyx_v_i, __pyx_v_rbuf) < 0); if (__pyx_t_4) { /* "tables/utilsextension.pyx":976 * * if H5Tget_member_value(enumId, i, rbuf) < 0: * raise HDF5ExtError( # <<<<<<<<<<<<<< * "failed to get element value from HDF5 enumerated type") * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_42), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L8; } __pyx_L8:; /* "tables/utilsextension.pyx":979 * "failed to get element value from HDF5 enumerated type") * * enumDict[pyename] = npvalue[0] # converted to NumPy scalar # <<<<<<<<<<<<<< * * # Build an enumerated type from `enumDict` and return it. */ __pyx_t_2 = __Pyx_GetItemInt(((PyObject *)__pyx_v_npvalue), 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(((PyObject *)__pyx_v_enumDict), ((PyObject *)__pyx_v_pyename), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } /* "tables/utilsextension.pyx":982 * * # Build an enumerated type from `enumDict` and return it. * return Enum(enumDict), dtype # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Enum); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_enumDict)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_enumDict)); __Pyx_GIVEREF(((PyObject *)__pyx_v_enumDict)); __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_dtype); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_dtype); __Pyx_GIVEREF(__pyx_v_dtype); __pyx_t_3 = 0; __pyx_r = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.enum_from_hdf5", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_npvalue); __Pyx_XDECREF(__pyx_v_dtype); __Pyx_XDECREF(__pyx_v_pyename); __Pyx_XDECREF(__pyx_v_atom); __Pyx_XDECREF(__pyx_v_enumDict); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_35enum_to_hdf5(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_34enum_to_hdf5[] = "enum_to_hdf5(enumAtom, byteorder) -> hid_t\n\n Convert a PyTables enumerated type to an HDF5 one.\n\n This function creates an HDF5 enumerated type from the information\n contained in `enumAtom` (an ``Atom`` object), with the specified\n `byteorder` (a string). The resulting HDF5 enumerated type is\n returned.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_35enum_to_hdf5 = {__Pyx_NAMESTR("enum_to_hdf5"), (PyCFunction)__pyx_pw_6tables_14utilsextension_35enum_to_hdf5, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_34enum_to_hdf5)}; static PyObject *__pyx_pw_6tables_14utilsextension_35enum_to_hdf5(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_enumAtom = 0; PyObject *__pyx_v_byteorder = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("enum_to_hdf5 (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__enumAtom,&__pyx_n_s__byteorder,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__enumAtom)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__byteorder)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("enum_to_hdf5", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "enum_to_hdf5") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_enumAtom = values[0]; __pyx_v_byteorder = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("enum_to_hdf5", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.enum_to_hdf5", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_byteorder), (&PyString_Type), 1, "byteorder", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_6tables_14utilsextension_34enum_to_hdf5(__pyx_self, __pyx_v_enumAtom, __pyx_v_byteorder); goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":988 * * * def enum_to_hdf5(object enumAtom, str byteorder): # <<<<<<<<<<<<<< * """enum_to_hdf5(enumAtom, byteorder) -> hid_t * */ static PyObject *__pyx_pf_6tables_14utilsextension_34enum_to_hdf5(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_enumAtom, PyObject *__pyx_v_byteorder) { PyObject *__pyx_v_name = 0; hid_t __pyx_v_baseId; hid_t __pyx_v_enumId; long __pyx_v_bytestride; long __pyx_v_i; void *__pyx_v_rbuffer; void *__pyx_v_rbuf; PyArrayObject *__pyx_v_npValues = 0; PyObject *__pyx_v_baseAtom = 0; PyObject *__pyx_v_npNames = NULL; PyObject *__pyx_v_e = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; hid_t __pyx_t_4; int __pyx_t_5; char *__pyx_t_6; Py_ssize_t __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("enum_to_hdf5", 0); /* "tables/utilsextension.pyx":1008 * * # Get the base HDF5 type and create the enumerated type. * baseAtom = Atom.from_dtype(enumAtom.dtype.base) # <<<<<<<<<<<<<< * baseId = atom_to_hdf5_type(baseAtom, byteorder) * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Atom); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__from_dtype); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_GetAttr(__pyx_v_enumAtom, __pyx_n_s__dtype); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__base); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_v_baseAtom = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1009 * # Get the base HDF5 type and create the enumerated type. * baseAtom = Atom.from_dtype(enumAtom.dtype.base) * baseId = atom_to_hdf5_type(baseAtom, byteorder) # <<<<<<<<<<<<<< * * try: */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__atom_to_hdf5_type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_baseAtom); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_baseAtom); __Pyx_GIVEREF(__pyx_v_baseAtom); __Pyx_INCREF(((PyObject *)__pyx_v_byteorder)); PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_v_byteorder)); __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_t_4 = __Pyx_PyInt_from_py_hid_t(__pyx_t_2); if (unlikely((__pyx_t_4 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_baseId = __pyx_t_4; /* "tables/utilsextension.pyx":1011 * baseId = atom_to_hdf5_type(baseAtom, byteorder) * * try: # <<<<<<<<<<<<<< * enumId = H5Tenum_create(baseId) * if enumId < 0: */ /*try:*/ { /* "tables/utilsextension.pyx":1012 * * try: * enumId = H5Tenum_create(baseId) # <<<<<<<<<<<<<< * if enumId < 0: * raise HDF5ExtError("failed to create HDF5 enumerated type") */ __pyx_v_enumId = H5Tenum_create(__pyx_v_baseId); /* "tables/utilsextension.pyx":1013 * try: * enumId = H5Tenum_create(baseId) * if enumId < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("failed to create HDF5 enumerated type") * finally: */ __pyx_t_5 = (__pyx_v_enumId < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":1014 * enumId = H5Tenum_create(baseId) * if enumId < 0: * raise HDF5ExtError("failed to create HDF5 enumerated type") # <<<<<<<<<<<<<< * finally: * if H5Tclose(baseId) < 0: */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L4;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_44), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L4;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L4;} goto __pyx_L6; } __pyx_L6:; } /* "tables/utilsextension.pyx":1016 * raise HDF5ExtError("failed to create HDF5 enumerated type") * finally: * if H5Tclose(baseId) < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("failed to close HDF5 base type") * */ /*finally:*/ { int __pyx_why; PyObject *__pyx_exc_type, *__pyx_exc_value, *__pyx_exc_tb; int __pyx_exc_lineno; __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; __pyx_exc_lineno = 0; __pyx_why = 0; goto __pyx_L5; __pyx_L4: { __pyx_why = 4; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_ErrFetch(&__pyx_exc_type, &__pyx_exc_value, &__pyx_exc_tb); __pyx_exc_lineno = __pyx_lineno; goto __pyx_L5; } __pyx_L5:; __pyx_t_5 = (H5Tclose(__pyx_v_baseId) < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":1017 * finally: * if H5Tclose(baseId) < 0: * raise HDF5ExtError("failed to close HDF5 base type") # <<<<<<<<<<<<<< * * # Set the name and value of each of the members. */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; __pyx_clineno = __LINE__; goto __pyx_L7_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_46), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; __pyx_clineno = __LINE__; goto __pyx_L7_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; __pyx_clineno = __LINE__; goto __pyx_L7_error;} goto __pyx_L8; } __pyx_L8:; goto __pyx_L9; __pyx_L7_error:; if (__pyx_why == 4) { Py_XDECREF(__pyx_exc_type); Py_XDECREF(__pyx_exc_value); Py_XDECREF(__pyx_exc_tb); } goto __pyx_L1_error; __pyx_L9:; switch (__pyx_why) { case 4: { __Pyx_ErrRestore(__pyx_exc_type, __pyx_exc_value, __pyx_exc_tb); __pyx_lineno = __pyx_exc_lineno; __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; goto __pyx_L1_error; } } } /* "tables/utilsextension.pyx":1020 * * # Set the name and value of each of the members. * npNames = enumAtom._names # <<<<<<<<<<<<<< * npValues = enumAtom._values * bytestride = npValues.strides[0] */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_enumAtom, __pyx_n_s___names); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1020; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_npNames = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1021 * # Set the name and value of each of the members. * npNames = enumAtom._names * npValues = enumAtom._values # <<<<<<<<<<<<<< * bytestride = npValues.strides[0] * rbuffer = npValues.data */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_enumAtom, __pyx_n_s___values); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_npValues = ((PyArrayObject *)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1022 * npNames = enumAtom._names * npValues = enumAtom._values * bytestride = npValues.strides[0] # <<<<<<<<<<<<<< * rbuffer = npValues.data * for i from 0 <= i < len(npNames): */ __pyx_v_bytestride = (__pyx_v_npValues->strides[0]); /* "tables/utilsextension.pyx":1023 * npValues = enumAtom._values * bytestride = npValues.strides[0] * rbuffer = npValues.data # <<<<<<<<<<<<<< * for i from 0 <= i < len(npNames): * name = npNames[i].encode('utf-8') */ __pyx_t_6 = __pyx_v_npValues->data; __pyx_v_rbuffer = __pyx_t_6; /* "tables/utilsextension.pyx":1024 * bytestride = npValues.strides[0] * rbuffer = npValues.data * for i from 0 <= i < len(npNames): # <<<<<<<<<<<<<< * name = npNames[i].encode('utf-8') * rbuf = (rbuffer + bytestride * i) */ __pyx_t_7 = PyObject_Length(__pyx_v_npNames); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1024; __pyx_clineno = __LINE__; goto __pyx_L1_error;} for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) { /* "tables/utilsextension.pyx":1025 * rbuffer = npValues.data * for i from 0 <= i < len(npNames): * name = npNames[i].encode('utf-8') # <<<<<<<<<<<<<< * rbuf = (rbuffer + bytestride * i) * if H5Tenum_insert(enumId, name, rbuf) < 0: */ __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_npNames, __pyx_v_i, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1025; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1025; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_47), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1025; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1025; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_XDECREF(((PyObject *)__pyx_v_name)); __pyx_v_name = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1026 * for i from 0 <= i < len(npNames): * name = npNames[i].encode('utf-8') * rbuf = (rbuffer + bytestride * i) # <<<<<<<<<<<<<< * if H5Tenum_insert(enumId, name, rbuf) < 0: * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") */ __pyx_v_rbuf = ((void *)(((char *)__pyx_v_rbuffer) + (__pyx_v_bytestride * __pyx_v_i))); /* "tables/utilsextension.pyx":1027 * name = npNames[i].encode('utf-8') * rbuf = (rbuffer + bytestride * i) * if H5Tenum_insert(enumId, name, rbuf) < 0: # <<<<<<<<<<<<<< * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") * if H5Tclose(enumId) < 0: */ __pyx_t_6 = PyBytes_AsString(((PyObject *)__pyx_v_name)); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_5 = (H5Tenum_insert(__pyx_v_enumId, __pyx_t_6, __pyx_v_rbuf) < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":1028 * rbuf = (rbuffer + bytestride * i) * if H5Tenum_insert(enumId, name, rbuf) < 0: * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") # <<<<<<<<<<<<<< * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_49), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_e = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1029 * if H5Tenum_insert(enumId, name, rbuf) < 0: * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") * if H5Tclose(enumId) < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("failed to close HDF5 enumerated type") * raise e */ __pyx_t_5 = (H5Tclose(__pyx_v_enumId) < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":1030 * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") # <<<<<<<<<<<<<< * raise e * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_51), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L13; } __pyx_L13:; /* "tables/utilsextension.pyx":1031 * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") * raise e # <<<<<<<<<<<<<< * * # Return the new, open HDF5 enumerated type. */ __Pyx_Raise(__pyx_v_e, 0, 0, 0); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L12; } __pyx_L12:; } /* "tables/utilsextension.pyx":1034 * * # Return the new, open HDF5 enumerated type. * return enumId # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_enumId); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1034; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.enum_to_hdf5", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_name); __Pyx_XDECREF((PyObject *)__pyx_v_npValues); __Pyx_XDECREF(__pyx_v_baseAtom); __Pyx_XDECREF(__pyx_v_npNames); __Pyx_XDECREF(__pyx_v_e); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_37atom_to_hdf5_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_6tables_14utilsextension_37atom_to_hdf5_type = {__Pyx_NAMESTR("atom_to_hdf5_type"), (PyCFunction)__pyx_pw_6tables_14utilsextension_37atom_to_hdf5_type, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)}; static PyObject *__pyx_pw_6tables_14utilsextension_37atom_to_hdf5_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_atom = 0; PyObject *__pyx_v_byteorder = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("atom_to_hdf5_type (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__atom,&__pyx_n_s__byteorder,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__atom)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__byteorder)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("atom_to_hdf5_type", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "atom_to_hdf5_type") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_atom = values[0]; __pyx_v_byteorder = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("atom_to_hdf5_type", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.atom_to_hdf5_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_byteorder), (&PyString_Type), 1, "byteorder", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_6tables_14utilsextension_36atom_to_hdf5_type(__pyx_self, __pyx_v_atom, __pyx_v_byteorder); goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":1040 * * * def atom_to_hdf5_type(atom, str byteorder): # <<<<<<<<<<<<<< * cdef hid_t tid = -1 * cdef hsize_t *dims = NULL */ static PyObject *__pyx_pf_6tables_14utilsextension_36atom_to_hdf5_type(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_atom, PyObject *__pyx_v_byteorder) { hid_t __pyx_v_tid; hsize_t *__pyx_v_dims; PyObject *__pyx_v_encoded_byteorder = 0; char *__pyx_v_cbyteorder; hid_t __pyx_v_tid2; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; char *__pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; hid_t __pyx_t_6; size_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("atom_to_hdf5_type", 0); /* "tables/utilsextension.pyx":1041 * * def atom_to_hdf5_type(atom, str byteorder): * cdef hid_t tid = -1 # <<<<<<<<<<<<<< * cdef hsize_t *dims = NULL * cdef bytes encoded_byteorder */ __pyx_v_tid = -1; /* "tables/utilsextension.pyx":1042 * def atom_to_hdf5_type(atom, str byteorder): * cdef hid_t tid = -1 * cdef hsize_t *dims = NULL # <<<<<<<<<<<<<< * cdef bytes encoded_byteorder * cdef char *cbyteorder = NULL */ __pyx_v_dims = NULL; /* "tables/utilsextension.pyx":1044 * cdef hsize_t *dims = NULL * cdef bytes encoded_byteorder * cdef char *cbyteorder = NULL # <<<<<<<<<<<<<< * * encoded_byteorder = byteorder.encode('utf-8') */ __pyx_v_cbyteorder = NULL; /* "tables/utilsextension.pyx":1046 * cdef char *cbyteorder = NULL * * encoded_byteorder = byteorder.encode('utf-8') # <<<<<<<<<<<<<< * # Get the C pointer * cbyteorder = encoded_byteorder */ __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_byteorder), __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_52), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_encoded_byteorder = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1048 * encoded_byteorder = byteorder.encode('utf-8') * # Get the C pointer * cbyteorder = encoded_byteorder # <<<<<<<<<<<<<< * * # Create the base HDF5 type */ __pyx_t_3 = PyBytes_AsString(((PyObject *)__pyx_v_encoded_byteorder)); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1048; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_cbyteorder = __pyx_t_3; /* "tables/utilsextension.pyx":1051 * * # Create the base HDF5 type * if atom.type in pttype_to_hdf5: # <<<<<<<<<<<<<< * tid = H5Tcopy(pttype_to_hdf5[atom.type]) * # Fix the byteorder */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1051; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__pttype_to_hdf5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1051; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = (__Pyx_PySequence_Contains(__pyx_t_2, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1051; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1052 * # Create the base HDF5 type * if atom.type in pttype_to_hdf5: * tid = H5Tcopy(pttype_to_hdf5[atom.type]) # <<<<<<<<<<<<<< * # Fix the byteorder * if atom.kind != 'time': */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__pttype_to_hdf5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (!__pyx_t_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_6 = __Pyx_PyInt_from_py_hid_t(__pyx_t_5); if (unlikely((__pyx_t_6 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_tid = H5Tcopy(__pyx_t_6); /* "tables/utilsextension.pyx":1054 * tid = H5Tcopy(pttype_to_hdf5[atom.type]) * # Fix the byteorder * if atom.kind != 'time': # <<<<<<<<<<<<<< * set_order(tid, cbyteorder) * elif atom.type == 'float16': */ __pyx_t_5 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__kind); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, ((PyObject *)__pyx_n_s__time), Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1055 * # Fix the byteorder * if atom.kind != 'time': * set_order(tid, cbyteorder) # <<<<<<<<<<<<<< * elif atom.type == 'float16': * tid = create_ieee_float16(cbyteorder) */ set_order(__pyx_v_tid, __pyx_v_cbyteorder); goto __pyx_L4; } __pyx_L4:; goto __pyx_L3; } /* "tables/utilsextension.pyx":1056 * if atom.kind != 'time': * set_order(tid, cbyteorder) * elif atom.type == 'float16': # <<<<<<<<<<<<<< * tid = create_ieee_float16(cbyteorder) * elif atom.kind in pt_special_kinds: */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1056; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__float16), Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1056; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1056; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1057 * set_order(tid, cbyteorder) * elif atom.type == 'float16': * tid = create_ieee_float16(cbyteorder) # <<<<<<<<<<<<<< * elif atom.kind in pt_special_kinds: * # Special cases (the byteorder doesn't need to be fixed afterwards) */ __pyx_v_tid = create_ieee_float16(__pyx_v_cbyteorder); goto __pyx_L3; } /* "tables/utilsextension.pyx":1058 * elif atom.type == 'float16': * tid = create_ieee_float16(cbyteorder) * elif atom.kind in pt_special_kinds: # <<<<<<<<<<<<<< * # Special cases (the byteorder doesn't need to be fixed afterwards) * if atom.type == 'complex64': */ __pyx_t_5 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__kind); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__pt_special_kinds); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = (__Pyx_PySequence_Contains(__pyx_t_5, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1060 * elif atom.kind in pt_special_kinds: * # Special cases (the byteorder doesn't need to be fixed afterwards) * if atom.type == 'complex64': # <<<<<<<<<<<<<< * tid = create_ieee_complex64(cbyteorder) * elif atom.type == 'complex128': */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1060; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__complex64), Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1060; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1060; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1061 * # Special cases (the byteorder doesn't need to be fixed afterwards) * if atom.type == 'complex64': * tid = create_ieee_complex64(cbyteorder) # <<<<<<<<<<<<<< * elif atom.type == 'complex128': * tid = create_ieee_complex128(cbyteorder) */ __pyx_v_tid = create_ieee_complex64(__pyx_v_cbyteorder); goto __pyx_L5; } /* "tables/utilsextension.pyx":1062 * if atom.type == 'complex64': * tid = create_ieee_complex64(cbyteorder) * elif atom.type == 'complex128': # <<<<<<<<<<<<<< * tid = create_ieee_complex128(cbyteorder) * elif atom.type == 'complex192': */ __pyx_t_5 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1062; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, ((PyObject *)__pyx_n_s__complex128), Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1062; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1062; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1063 * tid = create_ieee_complex64(cbyteorder) * elif atom.type == 'complex128': * tid = create_ieee_complex128(cbyteorder) # <<<<<<<<<<<<<< * elif atom.type == 'complex192': * tid = create_ieee_complex192(cbyteorder) */ __pyx_v_tid = create_ieee_complex128(__pyx_v_cbyteorder); goto __pyx_L5; } /* "tables/utilsextension.pyx":1064 * elif atom.type == 'complex128': * tid = create_ieee_complex128(cbyteorder) * elif atom.type == 'complex192': # <<<<<<<<<<<<<< * tid = create_ieee_complex192(cbyteorder) * elif atom.type == 'complex256': */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__complex192), Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1065 * tid = create_ieee_complex128(cbyteorder) * elif atom.type == 'complex192': * tid = create_ieee_complex192(cbyteorder) # <<<<<<<<<<<<<< * elif atom.type == 'complex256': * tid = create_ieee_complex256(cbyteorder) */ __pyx_v_tid = create_ieee_complex192(__pyx_v_cbyteorder); goto __pyx_L5; } /* "tables/utilsextension.pyx":1066 * elif atom.type == 'complex192': * tid = create_ieee_complex192(cbyteorder) * elif atom.type == 'complex256': # <<<<<<<<<<<<<< * tid = create_ieee_complex256(cbyteorder) * elif atom.kind == 'string': */ __pyx_t_5 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__type); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, ((PyObject *)__pyx_n_s__complex256), Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1067 * tid = create_ieee_complex192(cbyteorder) * elif atom.type == 'complex256': * tid = create_ieee_complex256(cbyteorder) # <<<<<<<<<<<<<< * elif atom.kind == 'string': * tid = H5Tcopy(H5T_C_S1); */ __pyx_v_tid = create_ieee_complex256(__pyx_v_cbyteorder); goto __pyx_L5; } /* "tables/utilsextension.pyx":1068 * elif atom.type == 'complex256': * tid = create_ieee_complex256(cbyteorder) * elif atom.kind == 'string': # <<<<<<<<<<<<<< * tid = H5Tcopy(H5T_C_S1); * H5Tset_size(tid, atom.itemsize) */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__kind); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1068; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__string), Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1068; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1068; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1069 * tid = create_ieee_complex256(cbyteorder) * elif atom.kind == 'string': * tid = H5Tcopy(H5T_C_S1); # <<<<<<<<<<<<<< * H5Tset_size(tid, atom.itemsize) * elif atom.kind == 'bool': */ __pyx_v_tid = H5Tcopy(H5T_C_S1); /* "tables/utilsextension.pyx":1070 * elif atom.kind == 'string': * tid = H5Tcopy(H5T_C_S1); * H5Tset_size(tid, atom.itemsize) # <<<<<<<<<<<<<< * elif atom.kind == 'bool': * tid = H5Tcopy(H5T_STD_B8); */ __pyx_t_5 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__itemsize); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1070; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_AsSize_t(__pyx_t_5); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1070; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; H5Tset_size(__pyx_v_tid, __pyx_t_7); goto __pyx_L5; } /* "tables/utilsextension.pyx":1071 * tid = H5Tcopy(H5T_C_S1); * H5Tset_size(tid, atom.itemsize) * elif atom.kind == 'bool': # <<<<<<<<<<<<<< * tid = H5Tcopy(H5T_STD_B8); * elif atom.kind == 'enum': */ __pyx_t_5 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__kind); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, ((PyObject *)__pyx_n_s__bool), Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1072 * H5Tset_size(tid, atom.itemsize) * elif atom.kind == 'bool': * tid = H5Tcopy(H5T_STD_B8); # <<<<<<<<<<<<<< * elif atom.kind == 'enum': * tid = enum_to_hdf5(atom, byteorder) */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_B8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1072; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_from_py_hid_t(__pyx_t_2); if (unlikely((__pyx_t_6 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1072; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_tid = H5Tcopy(__pyx_t_6); goto __pyx_L5; } /* "tables/utilsextension.pyx":1073 * elif atom.kind == 'bool': * tid = H5Tcopy(H5T_STD_B8); * elif atom.kind == 'enum': # <<<<<<<<<<<<<< * tid = enum_to_hdf5(atom, byteorder) * else: */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__kind); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1073; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__enum), Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1073; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1073; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1074 * tid = H5Tcopy(H5T_STD_B8); * elif atom.kind == 'enum': * tid = enum_to_hdf5(atom, byteorder) # <<<<<<<<<<<<<< * else: * raise TypeError("Invalid type for atom %s" % (atom,)) */ __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__enum_to_hdf5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_atom); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_atom); __Pyx_GIVEREF(__pyx_v_atom); __Pyx_INCREF(((PyObject *)__pyx_v_byteorder)); PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_v_byteorder)); __pyx_t_1 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_6 = __Pyx_PyInt_from_py_hid_t(__pyx_t_1); if (unlikely((__pyx_t_6 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_tid = __pyx_t_6; goto __pyx_L5; } __pyx_L5:; goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":1076 * tid = enum_to_hdf5(atom, byteorder) * else: * raise TypeError("Invalid type for atom %s" % (atom,)) # <<<<<<<<<<<<<< * # Create an H5T_ARRAY in case of non-scalar atoms * if atom.shape != (): */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_atom); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_atom); __Pyx_GIVEREF(__pyx_v_atom); __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_53), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L3:; /* "tables/utilsextension.pyx":1078 * raise TypeError("Invalid type for atom %s" % (atom,)) * # Create an H5T_ARRAY in case of non-scalar atoms * if atom.shape != (): # <<<<<<<<<<<<<< * dims = malloc_dims(atom.shape) * tid2 = H5Tarray_create(tid, len(atom.shape), dims) */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__shape); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { /* "tables/utilsextension.pyx":1079 * # Create an H5T_ARRAY in case of non-scalar atoms * if atom.shape != (): * dims = malloc_dims(atom.shape) # <<<<<<<<<<<<<< * tid2 = H5Tarray_create(tid, len(atom.shape), dims) * free(dims) */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__shape); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_dims = __pyx_f_6tables_14utilsextension_malloc_dims(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1080 * if atom.shape != (): * dims = malloc_dims(atom.shape) * tid2 = H5Tarray_create(tid, len(atom.shape), dims) # <<<<<<<<<<<<<< * free(dims) * H5Tclose(tid) */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_atom, __pyx_n_s__shape); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_8 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_tid2 = H5Tarray_create(__pyx_v_tid, __pyx_t_8, __pyx_v_dims); /* "tables/utilsextension.pyx":1081 * dims = malloc_dims(atom.shape) * tid2 = H5Tarray_create(tid, len(atom.shape), dims) * free(dims) # <<<<<<<<<<<<<< * H5Tclose(tid) * tid = tid2 */ free(__pyx_v_dims); /* "tables/utilsextension.pyx":1082 * tid2 = H5Tarray_create(tid, len(atom.shape), dims) * free(dims) * H5Tclose(tid) # <<<<<<<<<<<<<< * tid = tid2 * */ H5Tclose(__pyx_v_tid); /* "tables/utilsextension.pyx":1083 * free(dims) * H5Tclose(tid) * tid = tid2 # <<<<<<<<<<<<<< * * return tid */ __pyx_v_tid = __pyx_v_tid2; goto __pyx_L6; } __pyx_L6:; /* "tables/utilsextension.pyx":1085 * tid = tid2 * * return tid # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_to_py_hid_t(__pyx_v_tid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("tables.utilsextension.atom_to_hdf5_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encoded_byteorder); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_39load_enum(PyObject *__pyx_self, PyObject *__pyx_arg_type_id); /*proto*/ static char __pyx_doc_6tables_14utilsextension_38load_enum[] = "load_enum() -> (Enum, npType)\n\n Load the enumerated HDF5 type associated with this type_id.\n\n It returns an `Enum` instance built from that, and the\n NumPy type used to encode it.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_39load_enum = {__Pyx_NAMESTR("load_enum"), (PyCFunction)__pyx_pw_6tables_14utilsextension_39load_enum, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_38load_enum)}; static PyObject *__pyx_pw_6tables_14utilsextension_39load_enum(PyObject *__pyx_self, PyObject *__pyx_arg_type_id) { hid_t __pyx_v_type_id; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("load_enum (wrapper)", 0); assert(__pyx_arg_type_id); { __pyx_v_type_id = __Pyx_PyInt_from_py_hid_t(__pyx_arg_type_id); if (unlikely((__pyx_v_type_id == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.load_enum", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_38load_enum(__pyx_self, ((hid_t)__pyx_v_type_id)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":1091 * * * def load_enum(hid_t type_id): # <<<<<<<<<<<<<< * """load_enum() -> (Enum, npType) * */ static PyObject *__pyx_pf_6tables_14utilsextension_38load_enum(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id) { hid_t __pyx_v_enumId; char __pyx_v_c_byteorder[11]; PyObject *__pyx_v_byteorder = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; hid_t __pyx_t_4; int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("load_enum", 0); /* "tables/utilsextension.pyx":1106 * * # Get the enumerated type * enumId = get_type_enum(type_id) # <<<<<<<<<<<<<< * * # Get the byteorder */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_type_enum); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_type_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_t_4 = __Pyx_PyInt_from_py_hid_t(__pyx_t_2); if (unlikely((__pyx_t_4 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_enumId = __pyx_t_4; /* "tables/utilsextension.pyx":1109 * * # Get the byteorder * get_order(type_id, c_byteorder) # <<<<<<<<<<<<<< * byteorder = cstr_to_pystr(c_byteorder) * # Get the Enum and NumPy types and close the HDF5 type. */ get_order(__pyx_v_type_id, __pyx_v_c_byteorder); /* "tables/utilsextension.pyx":1110 * # Get the byteorder * get_order(type_id, c_byteorder) * byteorder = cstr_to_pystr(c_byteorder) # <<<<<<<<<<<<<< * # Get the Enum and NumPy types and close the HDF5 type. * try: */ __pyx_t_2 = ((PyObject *)__pyx_f_6tables_14utilsextension_cstr_to_pystr(__pyx_v_c_byteorder)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1110; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_byteorder = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1112 * byteorder = cstr_to_pystr(c_byteorder) * # Get the Enum and NumPy types and close the HDF5 type. * try: # <<<<<<<<<<<<<< * return enum_from_hdf5(enumId, byteorder) * finally: */ /*try:*/ { /* "tables/utilsextension.pyx":1113 * # Get the Enum and NumPy types and close the HDF5 type. * try: * return enum_from_hdf5(enumId, byteorder) # <<<<<<<<<<<<<< * finally: * # (Yes, the ``finally`` clause *is* executed.) */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__enum_from_hdf5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L4;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_to_py_hid_t(__pyx_v_enumId); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L4;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L4;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_INCREF(((PyObject *)__pyx_v_byteorder)); PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_v_byteorder)); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L4;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L3; } /* "tables/utilsextension.pyx":1116 * finally: * # (Yes, the ``finally`` clause *is* executed.) * if H5Tclose(enumId) < 0: # <<<<<<<<<<<<<< * raise HDF5ExtError("failed to close HDF5 enumerated type") * */ /*finally:*/ { int __pyx_why; PyObject *__pyx_exc_type, *__pyx_exc_value, *__pyx_exc_tb; int __pyx_exc_lineno; __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; __pyx_exc_lineno = 0; __pyx_why = 0; goto __pyx_L5; __pyx_L3: __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; __pyx_exc_lineno = 0; __pyx_why = 3; goto __pyx_L5; __pyx_L4: { __pyx_why = 4; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_ErrFetch(&__pyx_exc_type, &__pyx_exc_value, &__pyx_exc_tb); __pyx_exc_lineno = __pyx_lineno; goto __pyx_L5; } __pyx_L5:; __pyx_t_5 = (H5Tclose(__pyx_v_enumId) < 0); if (__pyx_t_5) { /* "tables/utilsextension.pyx":1117 * # (Yes, the ``finally`` clause *is* executed.) * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") # <<<<<<<<<<<<<< * * */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; __pyx_clineno = __LINE__; goto __pyx_L6_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_k_tuple_54), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; __pyx_clineno = __LINE__; goto __pyx_L6_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; __pyx_clineno = __LINE__; goto __pyx_L6_error;} goto __pyx_L7; } __pyx_L7:; goto __pyx_L8; __pyx_L6_error:; if (__pyx_why == 4) { Py_XDECREF(__pyx_exc_type); Py_XDECREF(__pyx_exc_value); Py_XDECREF(__pyx_exc_tb); } goto __pyx_L1_error; __pyx_L8:; switch (__pyx_why) { case 3: goto __pyx_L0; case 4: { __Pyx_ErrRestore(__pyx_exc_type, __pyx_exc_value, __pyx_exc_tb); __pyx_lineno = __pyx_exc_lineno; __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; goto __pyx_L1_error; } } } __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("tables.utilsextension.load_enum", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_byteorder); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_41hdf5_to_np_nested_type(PyObject *__pyx_self, PyObject *__pyx_arg_type_id); /*proto*/ static char __pyx_doc_6tables_14utilsextension_40hdf5_to_np_nested_type[] = "Given a HDF5 `type_id`, return a dtype string representation of it."; static PyMethodDef __pyx_mdef_6tables_14utilsextension_41hdf5_to_np_nested_type = {__Pyx_NAMESTR("hdf5_to_np_nested_type"), (PyCFunction)__pyx_pw_6tables_14utilsextension_41hdf5_to_np_nested_type, METH_O, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_40hdf5_to_np_nested_type)}; static PyObject *__pyx_pw_6tables_14utilsextension_41hdf5_to_np_nested_type(PyObject *__pyx_self, PyObject *__pyx_arg_type_id) { hid_t __pyx_v_type_id; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("hdf5_to_np_nested_type (wrapper)", 0); assert(__pyx_arg_type_id); { __pyx_v_type_id = __Pyx_PyInt_from_py_hid_t(__pyx_arg_type_id); if (unlikely((__pyx_v_type_id == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.hdf5_to_np_nested_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_40hdf5_to_np_nested_type(__pyx_self, ((hid_t)__pyx_v_type_id)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":1123 * * * def hdf5_to_np_nested_type(hid_t type_id): # <<<<<<<<<<<<<< * """Given a HDF5 `type_id`, return a dtype string representation of it.""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_40hdf5_to_np_nested_type(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id) { hid_t __pyx_v_member_type_id; hsize_t __pyx_v_nfields; int __pyx_v_i; char *__pyx_v_c_colname; enum H5T_class_t __pyx_v_class_id; PyObject *__pyx_v_desc = 0; PyObject *__pyx_v_colname = 0; PyObject *__pyx_v_atom = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; hsize_t __pyx_t_2; int __pyx_t_3; int __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("hdf5_to_np_nested_type", 0); /* "tables/utilsextension.pyx":1134 * cdef str colname * * desc = {} # <<<<<<<<<<<<<< * # Get the number of members * nfields = H5Tget_nmembers(type_id) */ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1134; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_v_desc = ((PyObject *)__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1136 * desc = {} * # Get the number of members * nfields = H5Tget_nmembers(type_id) # <<<<<<<<<<<<<< * # Iterate thru the members * for i from 0 <= i < nfields: */ __pyx_v_nfields = H5Tget_nmembers(__pyx_v_type_id); /* "tables/utilsextension.pyx":1138 * nfields = H5Tget_nmembers(type_id) * # Iterate thru the members * for i from 0 <= i < nfields: # <<<<<<<<<<<<<< * # Get the member name * c_colname = H5Tget_member_name(type_id, i) */ __pyx_t_2 = __pyx_v_nfields; for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_2; __pyx_v_i++) { /* "tables/utilsextension.pyx":1140 * for i from 0 <= i < nfields: * # Get the member name * c_colname = H5Tget_member_name(type_id, i) # <<<<<<<<<<<<<< * colname = cstr_to_pystr(c_colname) * */ __pyx_v_c_colname = H5Tget_member_name(__pyx_v_type_id, __pyx_v_i); /* "tables/utilsextension.pyx":1141 * # Get the member name * c_colname = H5Tget_member_name(type_id, i) * colname = cstr_to_pystr(c_colname) # <<<<<<<<<<<<<< * * # Get the member type */ __pyx_t_1 = ((PyObject *)__pyx_f_6tables_14utilsextension_cstr_to_pystr(__pyx_v_c_colname)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1141; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF(((PyObject *)__pyx_v_colname)); __pyx_v_colname = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1144 * * # Get the member type * member_type_id = H5Tget_member_type(type_id, i) # <<<<<<<<<<<<<< * * # Get the HDF5 class */ __pyx_v_member_type_id = H5Tget_member_type(__pyx_v_type_id, __pyx_v_i); /* "tables/utilsextension.pyx":1147 * * # Get the HDF5 class * class_id = H5Tget_class(member_type_id) # <<<<<<<<<<<<<< * if class_id == H5T_COMPOUND and not is_complex(member_type_id): * desc[colname] = hdf5_to_np_nested_type(member_type_id) */ __pyx_v_class_id = H5Tget_class(__pyx_v_member_type_id); /* "tables/utilsextension.pyx":1148 * # Get the HDF5 class * class_id = H5Tget_class(member_type_id) * if class_id == H5T_COMPOUND and not is_complex(member_type_id): # <<<<<<<<<<<<<< * desc[colname] = hdf5_to_np_nested_type(member_type_id) * desc[colname]["_v_pos"] = i # Remember the position */ __pyx_t_3 = (__pyx_v_class_id == H5T_COMPOUND); if (__pyx_t_3) { __pyx_t_4 = (!is_complex(__pyx_v_member_type_id)); __pyx_t_5 = __pyx_t_4; } else { __pyx_t_5 = __pyx_t_3; } if (__pyx_t_5) { /* "tables/utilsextension.pyx":1149 * class_id = H5Tget_class(member_type_id) * if class_id == H5T_COMPOUND and not is_complex(member_type_id): * desc[colname] = hdf5_to_np_nested_type(member_type_id) # <<<<<<<<<<<<<< * desc[colname]["_v_pos"] = i # Remember the position * else: */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s_55); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyInt_to_py_hid_t(__pyx_v_member_type_id); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetItem(__pyx_v_desc, ((PyObject *)__pyx_v_colname), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1150 * if class_id == H5T_COMPOUND and not is_complex(member_type_id): * desc[colname] = hdf5_to_np_nested_type(member_type_id) * desc[colname]["_v_pos"] = i # Remember the position # <<<<<<<<<<<<<< * else: * atom = atom_from_hdf5_type(member_type_id, pure_numpy_types=True) */ __pyx_t_6 = PyInt_FromLong(__pyx_v_i); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyObject_GetItem(__pyx_v_desc, ((PyObject *)__pyx_v_colname)); if (!__pyx_t_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s___v_pos), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L5; } /*else*/ { /* "tables/utilsextension.pyx":1152 * desc[colname]["_v_pos"] = i # Remember the position * else: * atom = atom_from_hdf5_type(member_type_id, pure_numpy_types=True) # <<<<<<<<<<<<<< * desc[colname] = Col.from_atom(atom, pos=i) * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__atom_from_hdf5_type); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyInt_to_py_hid_t(__pyx_v_member_type_id); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_7)); __pyx_t_8 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__pure_numpy_types), __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_v_atom); __pyx_v_atom = __pyx_t_8; __pyx_t_8 = 0; /* "tables/utilsextension.pyx":1153 * else: * atom = atom_from_hdf5_type(member_type_id, pure_numpy_types=True) * desc[colname] = Col.from_atom(atom, pos=i) # <<<<<<<<<<<<<< * * # Release resources */ __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__Col); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __pyx_t_7 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__from_atom); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_v_atom); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_atom); __Pyx_GIVEREF(__pyx_v_atom); __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_t_6 = PyInt_FromLong(__pyx_v_i); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__pos), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_8), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetItem(__pyx_v_desc, ((PyObject *)__pyx_v_colname), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_L5:; /* "tables/utilsextension.pyx":1156 * * # Release resources * H5Tclose(member_type_id) # <<<<<<<<<<<<<< * free(c_colname) * */ H5Tclose(__pyx_v_member_type_id); /* "tables/utilsextension.pyx":1157 * # Release resources * H5Tclose(member_type_id) * free(c_colname) # <<<<<<<<<<<<<< * * return desc */ free(__pyx_v_c_colname); } /* "tables/utilsextension.pyx":1159 * free(c_colname) * * return desc # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_desc); __pyx_r = __pyx_v_desc; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("tables.utilsextension.hdf5_to_np_nested_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_desc); __Pyx_XDECREF(__pyx_v_colname); __Pyx_XDECREF(__pyx_v_atom); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_43hdf5_to_np_ext_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_42hdf5_to_np_ext_type[] = "Map the atomic HDF5 type to a string repr of NumPy extended codes.\n\n If `pure_numpy_types` is true, detected HDF5 types that does not match pure\n NumPy types will raise a ``TypeError`` exception. If not, HDF5 types like\n TIME, VLEN or ENUM are passed through.\n\n If `atom` is true, the resulting repr is meant for atoms. If not, the\n result is meant for attributes.\n\n Returns the string repr of type and its shape. The exception is for\n compounds types, that returns a NumPy dtype and shape instead.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_43hdf5_to_np_ext_type = {__Pyx_NAMESTR("hdf5_to_np_ext_type"), (PyCFunction)__pyx_pw_6tables_14utilsextension_43hdf5_to_np_ext_type, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_42hdf5_to_np_ext_type)}; static PyObject *__pyx_pw_6tables_14utilsextension_43hdf5_to_np_ext_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { hid_t __pyx_v_type_id; PyObject *__pyx_v_pure_numpy_types = 0; PyObject *__pyx_v_atom = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("hdf5_to_np_ext_type (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__type_id,&__pyx_n_s__pure_numpy_types,&__pyx_n_s__atom,0}; PyObject* values[3] = {0,0,0}; values[1] = __pyx_k_56; values[2] = __pyx_k_57; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__type_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__pure_numpy_types); if (value) { values[1] = value; kw_args--; } } case 2: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__atom); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "hdf5_to_np_ext_type") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_type_id = __Pyx_PyInt_from_py_hid_t(values[0]); if (unlikely((__pyx_v_type_id == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_v_pure_numpy_types = values[1]; __pyx_v_atom = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("hdf5_to_np_ext_type", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.hdf5_to_np_ext_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_42hdf5_to_np_ext_type(__pyx_self, __pyx_v_type_id, __pyx_v_pure_numpy_types, __pyx_v_atom); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":1165 * * * def hdf5_to_np_ext_type(hid_t type_id, pure_numpy_types=True, atom=False): # <<<<<<<<<<<<<< * """Map the atomic HDF5 type to a string repr of NumPy extended codes. * */ static PyObject *__pyx_pf_6tables_14utilsextension_42hdf5_to_np_ext_type(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id, PyObject *__pyx_v_pure_numpy_types, PyObject *__pyx_v_atom) { enum H5T_sign_t __pyx_v_sign; hid_t __pyx_v_super_type_id; hid_t __pyx_v_native_type_id; enum H5T_class_t __pyx_v_class_id; size_t __pyx_v_itemsize; PyObject *__pyx_v_stype = 0; PyObject *__pyx_v_shape = 0; CYTHON_UNUSED PyObject *__pyx_v_shape2 = 0; hsize_t *__pyx_v_dims; PyObject *__pyx_v_desc = NULL; PyObject *__pyx_v_ndims = NULL; long __pyx_v_i; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; htri_t __pyx_t_7; PyObject *(*__pyx_t_8)(PyObject *); size_t __pyx_t_9; long __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("hdf5_to_np_ext_type", 0); /* "tables/utilsextension.pyx":1188 * * # default shape * shape = () # <<<<<<<<<<<<<< * # Get the HDF5 class * class_id = H5Tget_class(type_id) */ __Pyx_INCREF(((PyObject *)__pyx_empty_tuple)); __pyx_v_shape = ((PyObject *)__pyx_empty_tuple); /* "tables/utilsextension.pyx":1190 * shape = () * # Get the HDF5 class * class_id = H5Tget_class(type_id) # <<<<<<<<<<<<<< * # Get the itemsize * itemsize = H5Tget_size(type_id) */ __pyx_v_class_id = H5Tget_class(__pyx_v_type_id); /* "tables/utilsextension.pyx":1192 * class_id = H5Tget_class(type_id) * # Get the itemsize * itemsize = H5Tget_size(type_id) # <<<<<<<<<<<<<< * * if class_id == H5T_BITFIELD: */ __pyx_v_itemsize = H5Tget_size(__pyx_v_type_id); /* "tables/utilsextension.pyx":1194 * itemsize = H5Tget_size(type_id) * * if class_id == H5T_BITFIELD: # <<<<<<<<<<<<<< * stype = "b1" * elif class_id == H5T_INTEGER: */ __pyx_t_1 = (__pyx_v_class_id == H5T_BITFIELD); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1195 * * if class_id == H5T_BITFIELD: * stype = "b1" # <<<<<<<<<<<<<< * elif class_id == H5T_INTEGER: * # Get the sign */ __Pyx_INCREF(((PyObject *)__pyx_n_s__b1)); __pyx_v_stype = ((PyObject *)__pyx_n_s__b1); goto __pyx_L3; } /* "tables/utilsextension.pyx":1196 * if class_id == H5T_BITFIELD: * stype = "b1" * elif class_id == H5T_INTEGER: # <<<<<<<<<<<<<< * # Get the sign * sign = H5Tget_sign(type_id) */ __pyx_t_1 = (__pyx_v_class_id == H5T_INTEGER); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1198 * elif class_id == H5T_INTEGER: * # Get the sign * sign = H5Tget_sign(type_id) # <<<<<<<<<<<<<< * if (sign > 0): * stype = "i%s" % itemsize */ __pyx_v_sign = H5Tget_sign(__pyx_v_type_id); /* "tables/utilsextension.pyx":1199 * # Get the sign * sign = H5Tget_sign(type_id) * if (sign > 0): # <<<<<<<<<<<<<< * stype = "i%s" % itemsize * else: */ __pyx_t_1 = (__pyx_v_sign > 0); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1200 * sign = H5Tget_sign(type_id) * if (sign > 0): * stype = "i%s" % itemsize # <<<<<<<<<<<<<< * else: * stype = "u%s" % itemsize */ __pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1200; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_58), __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1200; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_stype = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L4; } /*else*/ { /* "tables/utilsextension.pyx":1202 * stype = "i%s" % itemsize * else: * stype = "u%s" % itemsize # <<<<<<<<<<<<<< * elif class_id == H5T_FLOAT: * stype = "f%s" % itemsize */ __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1202; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_59), __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1202; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_stype = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; } __pyx_L4:; goto __pyx_L3; } /* "tables/utilsextension.pyx":1203 * else: * stype = "u%s" % itemsize * elif class_id == H5T_FLOAT: # <<<<<<<<<<<<<< * stype = "f%s" % itemsize * elif class_id == H5T_COMPOUND: */ __pyx_t_1 = (__pyx_v_class_id == H5T_FLOAT); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1204 * stype = "u%s" % itemsize * elif class_id == H5T_FLOAT: * stype = "f%s" % itemsize # <<<<<<<<<<<<<< * elif class_id == H5T_COMPOUND: * if is_complex(type_id): */ __pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_60), __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_stype = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L3; } /* "tables/utilsextension.pyx":1205 * elif class_id == H5T_FLOAT: * stype = "f%s" % itemsize * elif class_id == H5T_COMPOUND: # <<<<<<<<<<<<<< * if is_complex(type_id): * stype = "c%s" % itemsize */ __pyx_t_1 = (__pyx_v_class_id == H5T_COMPOUND); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1206 * stype = "f%s" % itemsize * elif class_id == H5T_COMPOUND: * if is_complex(type_id): # <<<<<<<<<<<<<< * stype = "c%s" % itemsize * else: */ __pyx_t_4 = is_complex(__pyx_v_type_id); if (__pyx_t_4) { /* "tables/utilsextension.pyx":1207 * elif class_id == H5T_COMPOUND: * if is_complex(type_id): * stype = "c%s" % itemsize # <<<<<<<<<<<<<< * else: * if atom: */ __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_61), __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_stype = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L5; } /*else*/ { /* "tables/utilsextension.pyx":1209 * stype = "c%s" % itemsize * else: * if atom: # <<<<<<<<<<<<<< * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_atom); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { /* "tables/utilsextension.pyx":1211 * if atom: * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) # <<<<<<<<<<<<<< * # Recursively remove possible padding on type_id. * native_type_id = get_nested_native_type(type_id) */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_63); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyInt_FromLong(__pyx_v_class_id); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (!__pyx_t_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_62), __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_t_3)); __Pyx_GIVEREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L6; } __pyx_L6:; /* "tables/utilsextension.pyx":1213 * % hdf5_class_to_string[class_id]) * # Recursively remove possible padding on type_id. * native_type_id = get_nested_native_type(type_id) # <<<<<<<<<<<<<< * desc = Description(hdf5_to_np_nested_type(native_type_id)) * # stype here is not exactly a string, but the NumPy dtype factory */ __pyx_v_native_type_id = __pyx_f_6tables_14utilsextension_get_nested_native_type(__pyx_v_type_id); /* "tables/utilsextension.pyx":1214 * # Recursively remove possible padding on type_id. * native_type_id = get_nested_native_type(type_id) * desc = Description(hdf5_to_np_nested_type(native_type_id)) # <<<<<<<<<<<<<< * # stype here is not exactly a string, but the NumPy dtype factory * # will deal with this. */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Description); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s_55); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_native_type_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_v_desc = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1217 * # stype here is not exactly a string, but the NumPy dtype factory * # will deal with this. * stype = desc._v_dtype # <<<<<<<<<<<<<< * H5Tclose(native_type_id) * elif class_id == H5T_STRING: */ __pyx_t_2 = PyObject_GetAttr(__pyx_v_desc, __pyx_n_s___v_dtype); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_v_stype = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1218 * # will deal with this. * stype = desc._v_dtype * H5Tclose(native_type_id) # <<<<<<<<<<<<<< * elif class_id == H5T_STRING: * if H5Tis_variable_str(type_id): */ H5Tclose(__pyx_v_native_type_id); } __pyx_L5:; goto __pyx_L3; } /* "tables/utilsextension.pyx":1219 * stype = desc._v_dtype * H5Tclose(native_type_id) * elif class_id == H5T_STRING: # <<<<<<<<<<<<<< * if H5Tis_variable_str(type_id): * raise TypeError("variable length strings are not supported yet") */ __pyx_t_1 = (__pyx_v_class_id == H5T_STRING); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1220 * H5Tclose(native_type_id) * elif class_id == H5T_STRING: * if H5Tis_variable_str(type_id): # <<<<<<<<<<<<<< * raise TypeError("variable length strings are not supported yet") * stype = "S%s" % itemsize */ __pyx_t_7 = H5Tis_variable_str(__pyx_v_type_id); if (__pyx_t_7) { /* "tables/utilsextension.pyx":1221 * elif class_id == H5T_STRING: * if H5Tis_variable_str(type_id): * raise TypeError("variable length strings are not supported yet") # <<<<<<<<<<<<<< * stype = "S%s" % itemsize * elif class_id == H5T_TIME: */ __pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_k_tuple_65), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; /* "tables/utilsextension.pyx":1222 * if H5Tis_variable_str(type_id): * raise TypeError("variable length strings are not supported yet") * stype = "S%s" % itemsize # <<<<<<<<<<<<<< * elif class_id == H5T_TIME: * if pure_numpy_types: */ __pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1222; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_66), __pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1222; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_stype = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L3; } /* "tables/utilsextension.pyx":1223 * raise TypeError("variable length strings are not supported yet") * stype = "S%s" % itemsize * elif class_id == H5T_TIME: # <<<<<<<<<<<<<< * if pure_numpy_types: * raise TypeError("the HDF5 class ``%s`` is not supported yet" */ __pyx_t_1 = (__pyx_v_class_id == H5T_TIME); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1224 * stype = "S%s" % itemsize * elif class_id == H5T_TIME: * if pure_numpy_types: # <<<<<<<<<<<<<< * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_pure_numpy_types); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { /* "tables/utilsextension.pyx":1226 * if pure_numpy_types: * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) # <<<<<<<<<<<<<< * stype = "t%s" % itemsize * elif class_id == H5T_ENUM: */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s_63); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyInt_FromLong(__pyx_v_class_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyObject_GetItem(__pyx_t_6, __pyx_t_2); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_62), __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1225; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1225; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1225; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L8; } __pyx_L8:; /* "tables/utilsextension.pyx":1227 * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) * stype = "t%s" % itemsize # <<<<<<<<<<<<<< * elif class_id == H5T_ENUM: * if pure_numpy_types: */ __pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_67), __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_stype = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L3; } /* "tables/utilsextension.pyx":1228 * % hdf5_class_to_string[class_id]) * stype = "t%s" % itemsize * elif class_id == H5T_ENUM: # <<<<<<<<<<<<<< * if pure_numpy_types: * raise TypeError("the HDF5 class ``%s`` is not supported yet" */ __pyx_t_1 = (__pyx_v_class_id == H5T_ENUM); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1229 * stype = "t%s" % itemsize * elif class_id == H5T_ENUM: * if pure_numpy_types: # <<<<<<<<<<<<<< * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_pure_numpy_types); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1229; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { /* "tables/utilsextension.pyx":1231 * if pure_numpy_types: * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) # <<<<<<<<<<<<<< * stype = "e" * elif class_id == H5T_VLEN: */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s_63); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyInt_FromLong(__pyx_v_class_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (!__pyx_t_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_62), __pyx_t_6); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_t_2)); __Pyx_GIVEREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L9; } __pyx_L9:; /* "tables/utilsextension.pyx":1232 * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) * stype = "e" # <<<<<<<<<<<<<< * elif class_id == H5T_VLEN: * if pure_numpy_types: */ __Pyx_INCREF(((PyObject *)__pyx_n_s__e)); __pyx_v_stype = ((PyObject *)__pyx_n_s__e); goto __pyx_L3; } /* "tables/utilsextension.pyx":1233 * % hdf5_class_to_string[class_id]) * stype = "e" * elif class_id == H5T_VLEN: # <<<<<<<<<<<<<< * if pure_numpy_types: * raise TypeError("the HDF5 class ``%s`` is not supported yet" */ __pyx_t_1 = (__pyx_v_class_id == H5T_VLEN); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1234 * stype = "e" * elif class_id == H5T_VLEN: * if pure_numpy_types: # <<<<<<<<<<<<<< * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) */ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_pure_numpy_types); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1234; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { /* "tables/utilsextension.pyx":1236 * if pure_numpy_types: * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) # <<<<<<<<<<<<<< * # Get the variable length base component * super_type_id = H5Tget_super(type_id) */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_63); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyInt_FromLong(__pyx_v_class_id); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_62), __pyx_t_3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_6)); __Pyx_GIVEREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L10; } __pyx_L10:; /* "tables/utilsextension.pyx":1238 * % hdf5_class_to_string[class_id]) * # Get the variable length base component * super_type_id = H5Tget_super(type_id) # <<<<<<<<<<<<<< * # Find the super member format * stype, shape = hdf5_to_np_ext_type(super_type_id, pure_numpy_types) */ __pyx_v_super_type_id = H5Tget_super(__pyx_v_type_id); /* "tables/utilsextension.pyx":1240 * super_type_id = H5Tget_super(type_id) * # Find the super member format * stype, shape = hdf5_to_np_ext_type(super_type_id, pure_numpy_types) # <<<<<<<<<<<<<< * # Release resources * H5Tclose(super_type_id) */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__hdf5_to_np_ext_type); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyInt_to_py_hid_t(__pyx_v_super_type_id); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_pure_numpy_types); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_pure_numpy_types); __Pyx_GIVEREF(__pyx_v_pure_numpy_types); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) { PyObject* sequence = __pyx_t_3; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_2 = PyList_GET_ITEM(sequence, 0); __pyx_t_6 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_6); #else __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { Py_ssize_t index = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_8 = Py_TYPE(__pyx_t_5)->tp_iternext; index = 0; __pyx_t_2 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_2)) goto __pyx_L11_unpacking_failed; __Pyx_GOTREF(__pyx_t_2); index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_6)) goto __pyx_L11_unpacking_failed; __Pyx_GOTREF(__pyx_t_6); if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_8 = NULL; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L12_unpacking_done; __pyx_L11_unpacking_failed:; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_8 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L12_unpacking_done:; } __pyx_v_stype = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_shape); __pyx_v_shape = __pyx_t_6; __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1242 * stype, shape = hdf5_to_np_ext_type(super_type_id, pure_numpy_types) * # Release resources * H5Tclose(super_type_id) # <<<<<<<<<<<<<< * elif class_id == H5T_ARRAY: * # Get the array base component */ H5Tclose(__pyx_v_super_type_id); goto __pyx_L3; } /* "tables/utilsextension.pyx":1243 * # Release resources * H5Tclose(super_type_id) * elif class_id == H5T_ARRAY: # <<<<<<<<<<<<<< * # Get the array base component * super_type_id = H5Tget_super(type_id) */ __pyx_t_1 = (__pyx_v_class_id == H5T_ARRAY); if (__pyx_t_1) { /* "tables/utilsextension.pyx":1245 * elif class_id == H5T_ARRAY: * # Get the array base component * super_type_id = H5Tget_super(type_id) # <<<<<<<<<<<<<< * # Find the super member format * stype, shape2 = hdf5_to_np_ext_type(super_type_id, pure_numpy_types) */ __pyx_v_super_type_id = H5Tget_super(__pyx_v_type_id); /* "tables/utilsextension.pyx":1247 * super_type_id = H5Tget_super(type_id) * # Find the super member format * stype, shape2 = hdf5_to_np_ext_type(super_type_id, pure_numpy_types) # <<<<<<<<<<<<<< * # Get shape * shape = [] */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__hdf5_to_np_ext_type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_to_py_hid_t(__pyx_v_super_type_id); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_pure_numpy_types); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_pure_numpy_types); __Pyx_GIVEREF(__pyx_v_pure_numpy_types); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) { PyObject* sequence = __pyx_t_6; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_2 = PyList_GET_ITEM(sequence, 0); __pyx_t_3 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); #else __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } else { Py_ssize_t index = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_8 = Py_TYPE(__pyx_t_5)->tp_iternext; index = 0; __pyx_t_2 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_2)) goto __pyx_L13_unpacking_failed; __Pyx_GOTREF(__pyx_t_2); index = 1; __pyx_t_3 = __pyx_t_8(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L13_unpacking_failed; __Pyx_GOTREF(__pyx_t_3); if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_8 = NULL; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L14_unpacking_done; __pyx_L13_unpacking_failed:; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_8 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L14_unpacking_done:; } __pyx_v_stype = __pyx_t_2; __pyx_t_2 = 0; __pyx_v_shape2 = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1249 * stype, shape2 = hdf5_to_np_ext_type(super_type_id, pure_numpy_types) * # Get shape * shape = [] # <<<<<<<<<<<<<< * ndims = H5Tget_array_ndims(type_id) * dims = malloc(ndims * sizeof(hsize_t)) */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1249; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_v_shape); __pyx_v_shape = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1250 * # Get shape * shape = [] * ndims = H5Tget_array_ndims(type_id) # <<<<<<<<<<<<<< * dims = malloc(ndims * sizeof(hsize_t)) * H5Tget_array_dims(type_id, dims) */ __pyx_t_6 = PyInt_FromLong(H5Tget_array_ndims(__pyx_v_type_id)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1250; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_v_ndims = __pyx_t_6; __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1251 * shape = [] * ndims = H5Tget_array_ndims(type_id) * dims = malloc(ndims * sizeof(hsize_t)) # <<<<<<<<<<<<<< * H5Tget_array_dims(type_id, dims) * for i from 0 <= i < ndims: */ __pyx_t_6 = __Pyx_PyInt_FromSize_t((sizeof(hsize_t))); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = PyNumber_Multiply(__pyx_v_ndims, __pyx_t_6); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_9 = __Pyx_PyInt_AsSize_t(__pyx_t_3); if (unlikely((__pyx_t_9 == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_dims = ((hsize_t *)malloc(__pyx_t_9)); /* "tables/utilsextension.pyx":1252 * ndims = H5Tget_array_ndims(type_id) * dims = malloc(ndims * sizeof(hsize_t)) * H5Tget_array_dims(type_id, dims) # <<<<<<<<<<<<<< * for i from 0 <= i < ndims: * shape.append(dims[i]) # cast to avoid long representation (i.e. 2L) */ H5Tget_array_dims(__pyx_v_type_id, __pyx_v_dims); /* "tables/utilsextension.pyx":1253 * dims = malloc(ndims * sizeof(hsize_t)) * H5Tget_array_dims(type_id, dims) * for i from 0 <= i < ndims: # <<<<<<<<<<<<<< * shape.append(dims[i]) # cast to avoid long representation (i.e. 2L) * shape = tuple(shape) */ __pyx_t_10 = __Pyx_PyInt_AsLong(__pyx_v_ndims); if (unlikely((__pyx_t_10 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; __pyx_clineno = __LINE__; goto __pyx_L1_error;} for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) { /* "tables/utilsextension.pyx":1254 * H5Tget_array_dims(type_id, dims) * for i from 0 <= i < ndims: * shape.append(dims[i]) # cast to avoid long representation (i.e. 2L) # <<<<<<<<<<<<<< * shape = tuple(shape) * # Release resources */ __pyx_t_3 = PyInt_FromLong(((int)(__pyx_v_dims[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_shape, __pyx_t_3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } /* "tables/utilsextension.pyx":1255 * for i from 0 <= i < ndims: * shape.append(dims[i]) # cast to avoid long representation (i.e. 2L) * shape = tuple(shape) # <<<<<<<<<<<<<< * # Release resources * free(dims) */ __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1255; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_shape); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_shape); __Pyx_GIVEREF(__pyx_v_shape); __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)(&PyTuple_Type))), ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1255; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_v_shape); __pyx_v_shape = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1257 * shape = tuple(shape) * # Release resources * free(dims) # <<<<<<<<<<<<<< * H5Tclose(super_type_id) * else: */ free(__pyx_v_dims); /* "tables/utilsextension.pyx":1258 * # Release resources * free(dims) * H5Tclose(super_type_id) # <<<<<<<<<<<<<< * else: * # Other types are not supported yet */ H5Tclose(__pyx_v_super_type_id); goto __pyx_L3; } /*else*/ { /* "tables/utilsextension.pyx":1262 * # Other types are not supported yet * raise TypeError("the HDF5 class ``%s`` is not supported yet" * % hdf5_class_to_string[class_id]) # <<<<<<<<<<<<<< * * return stype, shape */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s_63); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = PyInt_FromLong(__pyx_v_class_id); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyObject_GetItem(__pyx_t_3, __pyx_t_6); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_62), __pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_6)); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1261; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_t_6)); __Pyx_GIVEREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1261; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1261; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L3:; /* "tables/utilsextension.pyx":1264 * % hdf5_class_to_string[class_id]) * * return stype, shape # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_stype); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_stype); __Pyx_GIVEREF(__pyx_v_stype); __Pyx_INCREF(__pyx_v_shape); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_shape); __Pyx_GIVEREF(__pyx_v_shape); __pyx_r = ((PyObject *)__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("tables.utilsextension.hdf5_to_np_ext_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_stype); __Pyx_XDECREF(__pyx_v_shape); __Pyx_XDECREF(__pyx_v_shape2); __Pyx_XDECREF(__pyx_v_desc); __Pyx_XDECREF(__pyx_v_ndims); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_45atom_from_hdf5_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_44atom_from_hdf5_type[] = "Get an atom from a type_id.\n\n See `hdf5_to_np_ext_type` for an explanation of the `pure_numpy_types`\n parameter.\n\n "; static PyMethodDef __pyx_mdef_6tables_14utilsextension_45atom_from_hdf5_type = {__Pyx_NAMESTR("atom_from_hdf5_type"), (PyCFunction)__pyx_pw_6tables_14utilsextension_45atom_from_hdf5_type, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_44atom_from_hdf5_type)}; static PyObject *__pyx_pw_6tables_14utilsextension_45atom_from_hdf5_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { hid_t __pyx_v_type_id; PyObject *__pyx_v_pure_numpy_types = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("atom_from_hdf5_type (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__type_id,&__pyx_n_s__pure_numpy_types,0}; PyObject* values[2] = {0,0}; values[1] = __pyx_k_68; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__type_id)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (kw_args > 0) { PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__pure_numpy_types); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "atom_from_hdf5_type") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_type_id = __Pyx_PyInt_from_py_hid_t(values[0]); if (unlikely((__pyx_v_type_id == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_v_pure_numpy_types = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("atom_from_hdf5_type", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.atom_from_hdf5_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6tables_14utilsextension_44atom_from_hdf5_type(__pyx_self, __pyx_v_type_id, __pyx_v_pure_numpy_types); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":1270 * * * def atom_from_hdf5_type(hid_t type_id, pure_numpy_types=False): # <<<<<<<<<<<<<< * """Get an atom from a type_id. * */ static PyObject *__pyx_pf_6tables_14utilsextension_44atom_from_hdf5_type(CYTHON_UNUSED PyObject *__pyx_self, hid_t __pyx_v_type_id, PyObject *__pyx_v_pure_numpy_types) { PyObject *__pyx_v_stype = 0; PyObject *__pyx_v_shape = 0; PyObject *__pyx_v_atom_ = 0; PyObject *__pyx_v_tsize = 0; PyObject *__pyx_v_kind = 0; PyObject *__pyx_v_dflt = 0; PyObject *__pyx_v_base = 0; PyObject *__pyx_v_enum = 0; PyObject *__pyx_v_nptype = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *(*__pyx_t_5)(PyObject *); int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("atom_from_hdf5_type", 0); /* "tables/utilsextension.pyx":1281 * cdef object dflt, base, enum, nptype * * stype, shape = hdf5_to_np_ext_type(type_id, pure_numpy_types, atom=True) # <<<<<<<<<<<<<< * # Create the Atom * if stype == 'e': */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__hdf5_to_np_ext_type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_type_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_pure_numpy_types); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pure_numpy_types); __Pyx_GIVEREF(__pyx_v_pure_numpy_types); __pyx_t_2 = 0; __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __pyx_t_4 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__atom), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) { PyObject* sequence = __pyx_t_4; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_2 = PyList_GET_ITEM(sequence, 0); __pyx_t_3 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); #else __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else { Py_ssize_t index = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext; index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_1); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed; __Pyx_GOTREF(__pyx_t_2); index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_1); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed; __Pyx_GOTREF(__pyx_t_3); if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_1), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_5 = NULL; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L4_unpacking_done; __pyx_L3_unpacking_failed:; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L4_unpacking_done:; } __pyx_v_stype = __pyx_t_2; __pyx_t_2 = 0; __pyx_v_shape = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1283 * stype, shape = hdf5_to_np_ext_type(type_id, pure_numpy_types, atom=True) * # Create the Atom * if stype == 'e': # <<<<<<<<<<<<<< * (enum, nptype) = load_enum(type_id) * # Take one of the names as the default in the enumeration. */ __pyx_t_4 = PyObject_RichCompare(__pyx_v_stype, ((PyObject *)__pyx_n_s__e), Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_6) { /* "tables/utilsextension.pyx":1284 * # Create the Atom * if stype == 'e': * (enum, nptype) = load_enum(type_id) # <<<<<<<<<<<<<< * # Take one of the names as the default in the enumeration. * dflt = next(iter(enum))[0] */ __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__load_enum); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_to_py_hid_t(__pyx_v_type_id); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) { PyObject* sequence = __pyx_t_3; #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_2 = PyList_GET_ITEM(sequence, 0); __pyx_t_4 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); #else __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { Py_ssize_t index = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext; index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_1); if (unlikely(!__pyx_t_2)) goto __pyx_L6_unpacking_failed; __Pyx_GOTREF(__pyx_t_2); index = 1; __pyx_t_4 = __pyx_t_5(__pyx_t_1); if (unlikely(!__pyx_t_4)) goto __pyx_L6_unpacking_failed; __Pyx_GOTREF(__pyx_t_4); if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_1), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_5 = NULL; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L7_unpacking_done; __pyx_L6_unpacking_failed:; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L7_unpacking_done:; } __pyx_v_enum = __pyx_t_2; __pyx_t_2 = 0; __pyx_v_nptype = __pyx_t_4; __pyx_t_4 = 0; /* "tables/utilsextension.pyx":1286 * (enum, nptype) = load_enum(type_id) * # Take one of the names as the default in the enumeration. * dflt = next(iter(enum))[0] # <<<<<<<<<<<<<< * base = Atom.from_dtype(nptype) * atom_ = EnumAtom(enum, dflt, base, shape=shape) */ __pyx_t_3 = PyObject_GetIter(__pyx_v_enum); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyIter_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_4, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_dflt = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1287 * # Take one of the names as the default in the enumeration. * dflt = next(iter(enum))[0] * base = Atom.from_dtype(nptype) # <<<<<<<<<<<<<< * atom_ = EnumAtom(enum, dflt, base, shape=shape) * else: */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Atom); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__from_dtype); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_nptype); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_nptype); __Pyx_GIVEREF(__pyx_v_nptype); __pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __pyx_v_base = __pyx_t_2; __pyx_t_2 = 0; /* "tables/utilsextension.pyx":1288 * dflt = next(iter(enum))[0] * base = Atom.from_dtype(nptype) * atom_ = EnumAtom(enum, dflt, base, shape=shape) # <<<<<<<<<<<<<< * else: * kind = npext_prefixes_to_ptkinds[stype[0]] */ __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__EnumAtom); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_enum); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_enum); __Pyx_GIVEREF(__pyx_v_enum); __Pyx_INCREF(__pyx_v_dflt); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_dflt); __Pyx_GIVEREF(__pyx_v_dflt); __Pyx_INCREF(__pyx_v_base); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_base); __Pyx_GIVEREF(__pyx_v_base); __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_4)); if (PyDict_SetItem(__pyx_t_4, ((PyObject *)__pyx_n_s__shape), __pyx_v_shape) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0; __pyx_v_atom_ = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L5; } /*else*/ { /* "tables/utilsextension.pyx":1290 * atom_ = EnumAtom(enum, dflt, base, shape=shape) * else: * kind = npext_prefixes_to_ptkinds[stype[0]] # <<<<<<<<<<<<<< * tsize = int(stype[1:]) * atom_ = Atom.from_kind(kind, tsize, shape=shape) */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s_69); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1290; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_stype, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1290; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_t_4); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1290; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_kind = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1291 * else: * kind = npext_prefixes_to_ptkinds[stype[0]] * tsize = int(stype[1:]) # <<<<<<<<<<<<<< * atom_ = Atom.from_kind(kind, tsize, shape=shape) * */ __pyx_t_3 = __Pyx_PySequence_GetSlice(__pyx_v_stype, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)(&PyInt_Type))), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0; __pyx_v_tsize = __pyx_t_3; __pyx_t_3 = 0; /* "tables/utilsextension.pyx":1292 * kind = npext_prefixes_to_ptkinds[stype[0]] * tsize = int(stype[1:]) * atom_ = Atom.from_kind(kind, tsize, shape=shape) # <<<<<<<<<<<<<< * * return atom_ */ __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Atom); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__from_kind); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_kind); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_kind); __Pyx_GIVEREF(__pyx_v_kind); __Pyx_INCREF(__pyx_v_tsize); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_tsize); __Pyx_GIVEREF(__pyx_v_tsize); __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__shape), __pyx_v_shape) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_v_atom_ = __pyx_t_2; __pyx_t_2 = 0; } __pyx_L5:; /* "tables/utilsextension.pyx":1294 * atom_ = Atom.from_kind(kind, tsize, shape=shape) * * return atom_ # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_atom_); __pyx_r = __pyx_v_atom_; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("tables.utilsextension.atom_from_hdf5_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_stype); __Pyx_XDECREF(__pyx_v_shape); __Pyx_XDECREF(__pyx_v_atom_); __Pyx_XDECREF(__pyx_v_tsize); __Pyx_XDECREF(__pyx_v_kind); __Pyx_XDECREF(__pyx_v_dflt); __Pyx_XDECREF(__pyx_v_base); __Pyx_XDECREF(__pyx_v_enum); __Pyx_XDECREF(__pyx_v_nptype); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_6tables_14utilsextension_47create_nested_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_6tables_14utilsextension_46create_nested_type[] = "Create a nested type based on a description and return an HDF5 type."; static PyMethodDef __pyx_mdef_6tables_14utilsextension_47create_nested_type = {__Pyx_NAMESTR("create_nested_type"), (PyCFunction)__pyx_pw_6tables_14utilsextension_47create_nested_type, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_6tables_14utilsextension_46create_nested_type)}; static PyObject *__pyx_pw_6tables_14utilsextension_47create_nested_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_desc = 0; PyObject *__pyx_v_byteorder = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("create_nested_type (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__desc,&__pyx_n_s__byteorder,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__desc)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; case 1: if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__byteorder)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("create_nested_type", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "create_nested_type") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_desc = values[0]; __pyx_v_byteorder = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("create_nested_type", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("tables.utilsextension.create_nested_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_byteorder), (&PyString_Type), 1, "byteorder", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = __pyx_pf_6tables_14utilsextension_46create_nested_type(__pyx_self, __pyx_v_desc, __pyx_v_byteorder); goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "tables/utilsextension.pyx":1300 * * * def create_nested_type(object desc, str byteorder): # <<<<<<<<<<<<<< * """Create a nested type based on a description and return an HDF5 type.""" * */ static PyObject *__pyx_pf_6tables_14utilsextension_46create_nested_type(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc, PyObject *__pyx_v_byteorder) { hid_t __pyx_v_tid; hid_t __pyx_v_tid2; size_t __pyx_v_offset; PyObject *__pyx_v_encoded_name = 0; PyObject *__pyx_v_k = NULL; PyObject *__pyx_v_obj = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; Py_ssize_t __pyx_t_5; PyObject *(*__pyx_t_6)(PyObject *); PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; hid_t __pyx_t_9; char *__pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("create_nested_type", 0); /* "tables/utilsextension.pyx":1307 * cdef bytes encoded_name * * tid = H5Tcreate(H5T_COMPOUND, desc._v_itemsize) # <<<<<<<<<<<<<< * if tid < 0: * return -1 */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_desc, __pyx_n_s___v_itemsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_AsSize_t(__pyx_t_1); if (unlikely((__pyx_t_2 == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_tid = H5Tcreate(H5T_COMPOUND, __pyx_t_2); /* "tables/utilsextension.pyx":1308 * * tid = H5Tcreate(H5T_COMPOUND, desc._v_itemsize) * if tid < 0: # <<<<<<<<<<<<<< * return -1 * */ __pyx_t_3 = (__pyx_v_tid < 0); if (__pyx_t_3) { /* "tables/utilsextension.pyx":1309 * tid = H5Tcreate(H5T_COMPOUND, desc._v_itemsize) * if tid < 0: * return -1 # <<<<<<<<<<<<<< * * offset = 0 */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_int_neg_1); __pyx_r = __pyx_int_neg_1; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "tables/utilsextension.pyx":1311 * return -1 * * offset = 0 # <<<<<<<<<<<<<< * for k in desc._v_names: * obj = desc._v_colobjects[k] */ __pyx_v_offset = 0; /* "tables/utilsextension.pyx":1312 * * offset = 0 * for k in desc._v_names: # <<<<<<<<<<<<<< * obj = desc._v_colobjects[k] * if isinstance(obj, Description): */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_desc, __pyx_n_s___v_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) { __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_6 = NULL; } else { __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { if (!__pyx_t_6 && PyList_CheckExact(__pyx_t_4)) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (!__pyx_t_6 && PyTuple_CheckExact(__pyx_t_4)) { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else { __pyx_t_1 = __pyx_t_6(__pyx_t_4); if (unlikely(!__pyx_t_1)) { if (PyErr_Occurred()) { if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear(); else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1312; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } break; } __Pyx_GOTREF(__pyx_t_1); } __Pyx_XDECREF(__pyx_v_k); __pyx_v_k = __pyx_t_1; __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1313 * offset = 0 * for k in desc._v_names: * obj = desc._v_colobjects[k] # <<<<<<<<<<<<<< * if isinstance(obj, Description): * tid2 = create_nested_type(obj, byteorder) */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_desc, __pyx_n_s___v_colobjects); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1313; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyObject_GetItem(__pyx_t_1, __pyx_v_k); if (!__pyx_t_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1313; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_v_obj); __pyx_v_obj = __pyx_t_7; __pyx_t_7 = 0; /* "tables/utilsextension.pyx":1314 * for k in desc._v_names: * obj = desc._v_colobjects[k] * if isinstance(obj, Description): # <<<<<<<<<<<<<< * tid2 = create_nested_type(obj, byteorder) * else: */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Description); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_7); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_3) { /* "tables/utilsextension.pyx":1315 * obj = desc._v_colobjects[k] * if isinstance(obj, Description): * tid2 = create_nested_type(obj, byteorder) # <<<<<<<<<<<<<< * else: * tid2 = atom_to_hdf5_type(obj, byteorder) */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__create_nested_type); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_obj); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_obj); __Pyx_GIVEREF(__pyx_v_obj); __Pyx_INCREF(((PyObject *)__pyx_v_byteorder)); PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_v_byteorder)); __pyx_t_8 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_t_9 = __Pyx_PyInt_from_py_hid_t(__pyx_t_8); if (unlikely((__pyx_t_9 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_tid2 = __pyx_t_9; goto __pyx_L6; } /*else*/ { /* "tables/utilsextension.pyx":1317 * tid2 = create_nested_type(obj, byteorder) * else: * tid2 = atom_to_hdf5_type(obj, byteorder) # <<<<<<<<<<<<<< * encoded_name = k.encode('utf-8') * H5Tinsert(tid, encoded_name, offset, tid2) */ __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__atom_to_hdf5_type); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_obj); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_obj); __Pyx_GIVEREF(__pyx_v_obj); __Pyx_INCREF(((PyObject *)__pyx_v_byteorder)); PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_v_byteorder)); __pyx_t_7 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; __pyx_t_9 = __Pyx_PyInt_from_py_hid_t(__pyx_t_7); if (unlikely((__pyx_t_9 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_tid2 = __pyx_t_9; } __pyx_L6:; /* "tables/utilsextension.pyx":1318 * else: * tid2 = atom_to_hdf5_type(obj, byteorder) * encoded_name = k.encode('utf-8') # <<<<<<<<<<<<<< * H5Tinsert(tid, encoded_name, offset, tid2) * offset = offset + desc._v_dtype[k].itemsize */ __pyx_t_7 = PyObject_GetAttr(__pyx_v_k, __pyx_n_s__encode); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_k_tuple_70), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_XDECREF(((PyObject *)__pyx_v_encoded_name)); __pyx_v_encoded_name = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1319 * tid2 = atom_to_hdf5_type(obj, byteorder) * encoded_name = k.encode('utf-8') * H5Tinsert(tid, encoded_name, offset, tid2) # <<<<<<<<<<<<<< * offset = offset + desc._v_dtype[k].itemsize * # Release resources */ __pyx_t_10 = PyBytes_AsString(((PyObject *)__pyx_v_encoded_name)); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;} H5Tinsert(__pyx_v_tid, __pyx_t_10, __pyx_v_offset, __pyx_v_tid2); /* "tables/utilsextension.pyx":1320 * encoded_name = k.encode('utf-8') * H5Tinsert(tid, encoded_name, offset, tid2) * offset = offset + desc._v_dtype[k].itemsize # <<<<<<<<<<<<<< * # Release resources * H5Tclose(tid2) */ __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_offset); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyObject_GetAttr(__pyx_v_desc, __pyx_n_s___v_dtype); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = PyObject_GetItem(__pyx_t_7, __pyx_v_k); if (!__pyx_t_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__itemsize); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_2 = __Pyx_PyInt_AsSize_t(__pyx_t_8); if (unlikely((__pyx_t_2 == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_offset = __pyx_t_2; /* "tables/utilsextension.pyx":1322 * offset = offset + desc._v_dtype[k].itemsize * # Release resources * H5Tclose(tid2) # <<<<<<<<<<<<<< * * return tid */ H5Tclose(__pyx_v_tid2); } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "tables/utilsextension.pyx":1324 * H5Tclose(tid2) * * return tid # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = __Pyx_PyInt_to_py_hid_t(__pyx_v_tid); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1324; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("tables.utilsextension.create_nested_type", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encoded_name); __Pyx_XDECREF(__pyx_v_k); __Pyx_XDECREF(__pyx_v_obj); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); __pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":194 * # 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. */ 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; int __pyx_v_i; int __pyx_v_ndim; int __pyx_v_endian_detector; int __pyx_v_little_endian; int __pyx_v_t; char *__pyx_v_f; PyArray_Descr *__pyx_v_descr = 0; int __pyx_v_offset; int __pyx_v_hasfields; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; int __pyx_t_6; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; char *__pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getbuffer__", 0); if (__pyx_v_info != NULL) { __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); __Pyx_GIVEREF(__pyx_v_info->obj); } /* "numpy.pxd":200 * # of flags * * if info == NULL: return # <<<<<<<<<<<<<< * * cdef int copy_shape, i, ndim */ __pyx_t_1 = (__pyx_v_info == NULL); if (__pyx_t_1) { __pyx_r = 0; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "numpy.pxd":203 * * cdef int copy_shape, i, ndim * cdef int endian_detector = 1 # <<<<<<<<<<<<<< * cdef bint little_endian = ((&endian_detector)[0] != 0) * */ __pyx_v_endian_detector = 1; /* "numpy.pxd":204 * cdef int copy_shape, i, ndim * cdef int endian_detector = 1 * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< * * ndim = PyArray_NDIM(self) */ __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); /* "numpy.pxd":206 * cdef bint little_endian = ((&endian_detector)[0] != 0) * * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< * * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); /* "numpy.pxd":208 * ndim = PyArray_NDIM(self) * * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< * copy_shape = 1 * else: */ __pyx_t_1 = ((sizeof(npy_intp)) != (sizeof(Py_ssize_t))); if (__pyx_t_1) { /* "numpy.pxd":209 * * if sizeof(npy_intp) != sizeof(Py_ssize_t): * copy_shape = 1 # <<<<<<<<<<<<<< * else: * copy_shape = 0 */ __pyx_v_copy_shape = 1; goto __pyx_L4; } /*else*/ { /* "numpy.pxd":211 * copy_shape = 1 * else: * copy_shape = 0 # <<<<<<<<<<<<<< * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) */ __pyx_v_copy_shape = 0; } __pyx_L4:; /* "numpy.pxd":213 * copy_shape = 0 * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): * raise ValueError(u"ndarray is not C contiguous") */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS); if (__pyx_t_1) { /* "numpy.pxd":214 * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): # <<<<<<<<<<<<<< * raise ValueError(u"ndarray is not C contiguous") * */ __pyx_t_2 = (!PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS)); __pyx_t_3 = __pyx_t_2; } else { __pyx_t_3 = __pyx_t_1; } if (__pyx_t_3) { /* "numpy.pxd":215 * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): * raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<< * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_72), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L5; } __pyx_L5:; /* "numpy.pxd":217 * raise ValueError(u"ndarray is not C contiguous") * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): * raise ValueError(u"ndarray is not Fortran contiguous") */ __pyx_t_3 = ((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS); if (__pyx_t_3) { /* "numpy.pxd":218 * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): # <<<<<<<<<<<<<< * raise ValueError(u"ndarray is not Fortran contiguous") * */ __pyx_t_1 = (!PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS)); __pyx_t_2 = __pyx_t_1; } else { __pyx_t_2 = __pyx_t_3; } if (__pyx_t_2) { /* "numpy.pxd":219 * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): * raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<< * * info.buf = PyArray_DATA(self) */ __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_74), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L6; } __pyx_L6:; /* "numpy.pxd":221 * raise ValueError(u"ndarray is not Fortran contiguous") * * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< * info.ndim = ndim * if copy_shape: */ __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); /* "numpy.pxd":222 * * info.buf = PyArray_DATA(self) * info.ndim = ndim # <<<<<<<<<<<<<< * if copy_shape: * # Allocate new buffer for strides and shape info. */ __pyx_v_info->ndim = __pyx_v_ndim; /* "numpy.pxd":223 * 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. */ if (__pyx_v_copy_shape) { /* "numpy.pxd":226 * # 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): */ __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2))); /* "numpy.pxd":227 * # 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] */ __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); /* "numpy.pxd":228 * 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] */ __pyx_t_5 = __pyx_v_ndim; for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; /* "numpy.pxd":229 * 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: */ (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); /* "numpy.pxd":230 * 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) */ (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); } goto __pyx_L7; } /*else*/ { /* "numpy.pxd":232 * info.shape[i] = PyArray_DIMS(self)[i] * else: * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< * info.shape = PyArray_DIMS(self) * info.suboffsets = NULL */ __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); /* "numpy.pxd":233 * else: * info.strides = PyArray_STRIDES(self) * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< * info.suboffsets = NULL * info.itemsize = PyArray_ITEMSIZE(self) */ __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self)); } __pyx_L7:; /* "numpy.pxd":234 * info.strides = PyArray_STRIDES(self) * info.shape = PyArray_DIMS(self) * info.suboffsets = NULL # <<<<<<<<<<<<<< * info.itemsize = PyArray_ITEMSIZE(self) * info.readonly = not PyArray_ISWRITEABLE(self) */ __pyx_v_info->suboffsets = NULL; /* "numpy.pxd":235 * info.shape = PyArray_DIMS(self) * info.suboffsets = NULL * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< * info.readonly = not PyArray_ISWRITEABLE(self) * */ __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); /* "numpy.pxd":236 * info.suboffsets = NULL * info.itemsize = PyArray_ITEMSIZE(self) * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< * * cdef int t */ __pyx_v_info->readonly = (!PyArray_ISWRITEABLE(__pyx_v_self)); /* "numpy.pxd":239 * * cdef int t * cdef char* f = NULL # <<<<<<<<<<<<<< * cdef dtype descr = self.descr * cdef list stack */ __pyx_v_f = NULL; /* "numpy.pxd":240 * cdef int t * cdef char* f = NULL * cdef dtype descr = self.descr # <<<<<<<<<<<<<< * cdef list stack * cdef int offset */ __pyx_t_4 = ((PyObject *)__pyx_v_self->descr); __Pyx_INCREF(__pyx_t_4); __pyx_v_descr = ((PyArray_Descr *)__pyx_t_4); __pyx_t_4 = 0; /* "numpy.pxd":244 * cdef int offset * * cdef bint hasfields = PyDataType_HASFIELDS(descr) # <<<<<<<<<<<<<< * * if not hasfields and not copy_shape: */ __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr); /* "numpy.pxd":246 * cdef bint hasfields = PyDataType_HASFIELDS(descr) * * if not hasfields and not copy_shape: # <<<<<<<<<<<<<< * # do not call releasebuffer * info.obj = None */ __pyx_t_2 = (!__pyx_v_hasfields); if (__pyx_t_2) { __pyx_t_3 = (!__pyx_v_copy_shape); __pyx_t_1 = __pyx_t_3; } else { __pyx_t_1 = __pyx_t_2; } if (__pyx_t_1) { /* "numpy.pxd":248 * if not hasfields and not copy_shape: * # do not call releasebuffer * info.obj = None # <<<<<<<<<<<<<< * else: * # need to call releasebuffer */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = Py_None; goto __pyx_L10; } /*else*/ { /* "numpy.pxd":251 * else: * # need to call releasebuffer * info.obj = self # <<<<<<<<<<<<<< * * if not hasfields: */ __Pyx_INCREF(((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = ((PyObject *)__pyx_v_self); } __pyx_L10:; /* "numpy.pxd":253 * info.obj = self * * if not hasfields: # <<<<<<<<<<<<<< * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or */ __pyx_t_1 = (!__pyx_v_hasfields); if (__pyx_t_1) { /* "numpy.pxd":254 * * if not hasfields: * t = descr.type_num # <<<<<<<<<<<<<< * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): */ __pyx_t_5 = __pyx_v_descr->type_num; __pyx_v_t = __pyx_t_5; /* "numpy.pxd":255 * if not hasfields: * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") */ __pyx_t_1 = (__pyx_v_descr->byteorder == '>'); if (__pyx_t_1) { __pyx_t_2 = __pyx_v_little_endian; } else { __pyx_t_2 = __pyx_t_1; } if (!__pyx_t_2) { /* "numpy.pxd":256 * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< * raise ValueError(u"Non-native byte order not supported") * if t == NPY_BYTE: f = "b" */ __pyx_t_1 = (__pyx_v_descr->byteorder == '<'); if (__pyx_t_1) { __pyx_t_3 = (!__pyx_v_little_endian); __pyx_t_7 = __pyx_t_3; } else { __pyx_t_7 = __pyx_t_1; } __pyx_t_1 = __pyx_t_7; } else { __pyx_t_1 = __pyx_t_2; } if (__pyx_t_1) { /* "numpy.pxd":257 * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< * if t == NPY_BYTE: f = "b" * elif t == NPY_UBYTE: f = "B" */ __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_76), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L12; } __pyx_L12:; /* "numpy.pxd":258 * (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" */ __pyx_t_1 = (__pyx_v_t == NPY_BYTE); if (__pyx_t_1) { __pyx_v_f = __pyx_k__b; goto __pyx_L13; } /* "numpy.pxd":259 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_UBYTE); if (__pyx_t_1) { __pyx_v_f = __pyx_k__B; goto __pyx_L13; } /* "numpy.pxd":260 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_SHORT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__h; goto __pyx_L13; } /* "numpy.pxd":261 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_USHORT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__H; goto __pyx_L13; } /* "numpy.pxd":262 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_INT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__i; goto __pyx_L13; } /* "numpy.pxd":263 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_UINT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__I; goto __pyx_L13; } /* "numpy.pxd":264 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_LONG); if (__pyx_t_1) { __pyx_v_f = __pyx_k__l; goto __pyx_L13; } /* "numpy.pxd":265 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_ULONG); if (__pyx_t_1) { __pyx_v_f = __pyx_k__L; goto __pyx_L13; } /* "numpy.pxd":266 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_LONGLONG); if (__pyx_t_1) { __pyx_v_f = __pyx_k__q; goto __pyx_L13; } /* "numpy.pxd":267 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_ULONGLONG); if (__pyx_t_1) { __pyx_v_f = __pyx_k__Q; goto __pyx_L13; } /* "numpy.pxd":268 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_FLOAT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__f; goto __pyx_L13; } /* "numpy.pxd":269 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_DOUBLE); if (__pyx_t_1) { __pyx_v_f = __pyx_k__d; goto __pyx_L13; } /* "numpy.pxd":270 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_LONGDOUBLE); if (__pyx_t_1) { __pyx_v_f = __pyx_k__g; goto __pyx_L13; } /* "numpy.pxd":271 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_CFLOAT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__Zf; goto __pyx_L13; } /* "numpy.pxd":272 * 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" */ __pyx_t_1 = (__pyx_v_t == NPY_CDOUBLE); if (__pyx_t_1) { __pyx_v_f = __pyx_k__Zd; goto __pyx_L13; } /* "numpy.pxd":273 * 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: */ __pyx_t_1 = (__pyx_v_t == NPY_CLONGDOUBLE); if (__pyx_t_1) { __pyx_v_f = __pyx_k__Zg; goto __pyx_L13; } /* "numpy.pxd":274 * 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) */ __pyx_t_1 = (__pyx_v_t == NPY_OBJECT); if (__pyx_t_1) { __pyx_v_f = __pyx_k__O; goto __pyx_L13; } /*else*/ { /* "numpy.pxd":276 * elif t == NPY_OBJECT: f = "O" * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< * info.format = f * return */ __pyx_t_4 = PyInt_FromLong(__pyx_v_t); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_u_77), __pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_8)); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_8)); __Pyx_GIVEREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0; __pyx_t_8 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L13:; /* "numpy.pxd":277 * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) * info.format = f # <<<<<<<<<<<<<< * return * else: */ __pyx_v_info->format = __pyx_v_f; /* "numpy.pxd":278 * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) * info.format = f * return # <<<<<<<<<<<<<< * else: * info.format = stdlib.malloc(_buffer_format_string_len) */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L11; } /*else*/ { /* "numpy.pxd":280 * return * else: * info.format = stdlib.malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< * info.format[0] = c'^' # Native data types, manual alignment * offset = 0 */ __pyx_v_info->format = ((char *)malloc(255)); /* "numpy.pxd":281 * 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, */ (__pyx_v_info->format[0]) = '^'; /* "numpy.pxd":282 * 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, */ __pyx_v_offset = 0; /* "numpy.pxd":285 * f = _util_dtypestring(descr, info.format + 1, * info.format + _buffer_format_string_len, * &offset) # <<<<<<<<<<<<<< * f[0] = c'\0' # Terminate format string * */ __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 255), (&__pyx_v_offset)); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_f = __pyx_t_9; /* "numpy.pxd":286 * info.format + _buffer_format_string_len, * &offset) * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< * * def __releasebuffer__(ndarray self, Py_buffer* info): */ (__pyx_v_f[0]) = '\x00'; } __pyx_L11:; __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL; } goto __pyx_L2; __pyx_L0:; if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) { __Pyx_GOTREF(Py_None); __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL; } __pyx_L2:; __Pyx_XDECREF((PyObject *)__pyx_v_descr); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); __Pyx_RefNannyFinishContext(); } /* "numpy.pxd":288 * f[0] = c'\0' # Terminate format string * * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< * if PyArray_HASFIELDS(self): * stdlib.free(info.format) */ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) { __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("__releasebuffer__", 0); /* "numpy.pxd":289 * * def __releasebuffer__(ndarray self, Py_buffer* info): * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< * stdlib.free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): */ __pyx_t_1 = PyArray_HASFIELDS(__pyx_v_self); if (__pyx_t_1) { /* "numpy.pxd":290 * 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) */ free(__pyx_v_info->format); goto __pyx_L3; } __pyx_L3:; /* "numpy.pxd":291 * 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 */ __pyx_t_1 = ((sizeof(npy_intp)) != (sizeof(Py_ssize_t))); if (__pyx_t_1) { /* "numpy.pxd":292 * 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 * */ free(__pyx_v_info->strides); goto __pyx_L4; } __pyx_L4:; __Pyx_RefNannyFinishContext(); } /* "numpy.pxd":768 * ctypedef npy_cdouble complex_t * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(1, a) * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); /* "numpy.pxd":769 * * cdef inline object PyArray_MultiIterNew1(a): * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< * * cdef inline object PyArray_MultiIterNew2(a, b): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":771 * return PyArray_MultiIterNew(1, a) * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(2, a, b) * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); /* "numpy.pxd":772 * * cdef inline object PyArray_MultiIterNew2(a, b): * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< * * cdef inline object PyArray_MultiIterNew3(a, b, c): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":774 * return PyArray_MultiIterNew(2, a, b) * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(3, a, b, c) * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); /* "numpy.pxd":775 * * cdef inline object PyArray_MultiIterNew3(a, b, c): * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 775; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":777 * return PyArray_MultiIterNew(3, a, b, c) * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(4, a, b, c, d) * */ 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) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); /* "numpy.pxd":778 * * 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): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":780 * 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) * */ 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) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); /* "numpy.pxd":781 * * 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: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":783 * 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. */ 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; int __pyx_v_endian_detector; int __pyx_v_little_endian; PyObject *__pyx_v_fields = 0; PyObject *__pyx_v_childname = NULL; PyObject *__pyx_v_new_offset = NULL; PyObject *__pyx_v_t = NULL; char *__pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *(*__pyx_t_6)(PyObject *); int __pyx_t_7; int __pyx_t_8; int __pyx_t_9; int __pyx_t_10; long __pyx_t_11; char *__pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_util_dtypestring", 0); /* "numpy.pxd":790 * cdef int delta_offset * cdef tuple i * cdef int endian_detector = 1 # <<<<<<<<<<<<<< * cdef bint little_endian = ((&endian_detector)[0] != 0) * cdef tuple fields */ __pyx_v_endian_detector = 1; /* "numpy.pxd":791 * cdef tuple i * cdef int endian_detector = 1 * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< * cdef tuple fields * */ __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); /* "numpy.pxd":794 * cdef tuple fields * * for childname in descr.names: # <<<<<<<<<<<<<< * fields = descr.fields[childname] * child, new_offset = fields */ if (unlikely(((PyObject *)__pyx_v_descr->names) == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_t_1 = ((PyObject *)__pyx_v_descr->names); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; for (;;) { if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #else __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif __Pyx_XDECREF(__pyx_v_childname); __pyx_v_childname = __pyx_t_3; __pyx_t_3 = 0; /* "numpy.pxd":795 * * for childname in descr.names: * fields = descr.fields[childname] # <<<<<<<<<<<<<< * child, new_offset = fields * */ __pyx_t_3 = PyObject_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (!__pyx_t_3) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected tuple, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_XDECREF(((PyObject *)__pyx_v_fields)); __pyx_v_fields = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "numpy.pxd":796 * for childname in descr.names: * fields = descr.fields[childname] * child, new_offset = fields # <<<<<<<<<<<<<< * * if (end - f) - (new_offset - offset[0]) < 15: */ if (likely(PyTuple_CheckExact(((PyObject *)__pyx_v_fields)))) { PyObject* sequence = ((PyObject *)__pyx_v_fields); #if CYTHON_COMPILING_IN_CPYTHON Py_ssize_t size = Py_SIZE(sequence); #else Py_ssize_t size = PySequence_Size(sequence); #endif if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } #if CYTHON_COMPILING_IN_CPYTHON __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); #else __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif } else if (1) { __Pyx_RaiseNoneNotIterableError(); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } else { Py_ssize_t index = -1; __pyx_t_5 = PyObject_GetIter(((PyObject *)__pyx_v_fields)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext; index = 0; __pyx_t_3 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed; __Pyx_GOTREF(__pyx_t_3); index = 1; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed; __Pyx_GOTREF(__pyx_t_4); if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_6 = NULL; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; goto __pyx_L6_unpacking_done; __pyx_L5_unpacking_failed:; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_6 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_L6_unpacking_done:; } if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_XDECREF(((PyObject *)__pyx_v_child)); __pyx_v_child = ((PyArray_Descr *)__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_v_new_offset); __pyx_v_new_offset = __pyx_t_4; __pyx_t_4 = 0; /* "numpy.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") * */ __pyx_t_4 = PyInt_FromLong((__pyx_v_end - __pyx_v_f)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyInt_FromLong((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = PyNumber_Subtract(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_int_15, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { /* "numpy.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 */ __pyx_t_5 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_79), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; /* "numpy.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") */ __pyx_t_7 = (__pyx_v_child->byteorder == '>'); if (__pyx_t_7) { __pyx_t_8 = __pyx_v_little_endian; } else { __pyx_t_8 = __pyx_t_7; } if (!__pyx_t_8) { /* "numpy.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 */ __pyx_t_7 = (__pyx_v_child->byteorder == '<'); if (__pyx_t_7) { __pyx_t_9 = (!__pyx_v_little_endian); __pyx_t_10 = __pyx_t_9; } else { __pyx_t_10 = __pyx_t_7; } __pyx_t_7 = __pyx_t_10; } else { __pyx_t_7 = __pyx_t_8; } if (__pyx_t_7) { /* "numpy.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 */ __pyx_t_5 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_80), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L8; } __pyx_L8:; /* "numpy.pxd":813 * * # Output padding bytes * while offset[0] < new_offset: # <<<<<<<<<<<<<< * f[0] = 120 # "x"; pad byte * f += 1 */ while (1) { __pyx_t_5 = PyInt_FromLong((__pyx_v_offset[0])); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (!__pyx_t_7) break; /* "numpy.pxd":814 * # Output padding bytes * while offset[0] < new_offset: * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< * f += 1 * offset[0] += 1 */ (__pyx_v_f[0]) = 120; /* "numpy.pxd":815 * while offset[0] < new_offset: * f[0] = 120 # "x"; pad byte * f += 1 # <<<<<<<<<<<<<< * offset[0] += 1 * */ __pyx_v_f = (__pyx_v_f + 1); /* "numpy.pxd":816 * f[0] = 120 # "x"; pad byte * f += 1 * offset[0] += 1 # <<<<<<<<<<<<<< * * offset[0] += child.itemsize */ __pyx_t_11 = 0; (__pyx_v_offset[__pyx_t_11]) = ((__pyx_v_offset[__pyx_t_11]) + 1); } /* "numpy.pxd":818 * offset[0] += 1 * * offset[0] += child.itemsize # <<<<<<<<<<<<<< * * if not PyDataType_HASFIELDS(child): */ __pyx_t_11 = 0; (__pyx_v_offset[__pyx_t_11]) = ((__pyx_v_offset[__pyx_t_11]) + __pyx_v_child->elsize); /* "numpy.pxd":820 * offset[0] += child.itemsize * * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< * t = child.type_num * if end - f < 5: */ __pyx_t_7 = (!PyDataType_HASFIELDS(__pyx_v_child)); if (__pyx_t_7) { /* "numpy.pxd":821 * * if not PyDataType_HASFIELDS(child): * t = child.type_num # <<<<<<<<<<<<<< * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") */ __pyx_t_3 = PyInt_FromLong(__pyx_v_child->type_num); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF(__pyx_v_t); __pyx_v_t = __pyx_t_3; __pyx_t_3 = 0; /* "numpy.pxd":822 * if not PyDataType_HASFIELDS(child): * t = child.type_num * if end - f < 5: # <<<<<<<<<<<<<< * raise RuntimeError(u"Format string allocated too short.") * */ __pyx_t_7 = ((__pyx_v_end - __pyx_v_f) < 5); if (__pyx_t_7) { /* "numpy.pxd":823 * t = child.type_num * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< * * # Until ticket #99 is fixed, use integers to avoid warnings */ __pyx_t_3 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_82), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L12; } __pyx_L12:; /* "numpy.pxd":826 * * # Until ticket #99 is fixed, use integers to avoid warnings * if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<< * elif t == NPY_UBYTE: f[0] = 66 #"B" * elif t == NPY_SHORT: f[0] = 104 #"h" */ __pyx_t_3 = PyInt_FromLong(NPY_BYTE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 98; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_5 = PyInt_FromLong(NPY_UBYTE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 66; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_3 = PyInt_FromLong(NPY_SHORT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 104; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_5 = PyInt_FromLong(NPY_USHORT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 72; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_3 = PyInt_FromLong(NPY_INT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 105; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_5 = PyInt_FromLong(NPY_UINT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 73; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_3 = PyInt_FromLong(NPY_LONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 108; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_5 = PyInt_FromLong(NPY_ULONG); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 76; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_3 = PyInt_FromLong(NPY_LONGLONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 113; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_5 = PyInt_FromLong(NPY_ULONGLONG); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 81; goto __pyx_L13; } /* "numpy.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" */ __pyx_t_3 = PyInt_FromLong(NPY_FLOAT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 102; goto __pyx_L13; } /* "numpy.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 */ __pyx_t_5 = PyInt_FromLong(NPY_DOUBLE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 100; goto __pyx_L13; } /* "numpy.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 */ __pyx_t_3 = PyInt_FromLong(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 103; goto __pyx_L13; } /* "numpy.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 */ __pyx_t_5 = PyInt_FromLong(NPY_CFLOAT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 90; (__pyx_v_f[1]) = 102; __pyx_v_f = (__pyx_v_f + 1); goto __pyx_L13; } /* "numpy.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" */ __pyx_t_3 = PyInt_FromLong(NPY_CDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 90; (__pyx_v_f[1]) = 100; __pyx_v_f = (__pyx_v_f + 1); goto __pyx_L13; } /* "numpy.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: */ __pyx_t_5 = PyInt_FromLong(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 90; (__pyx_v_f[1]) = 103; __pyx_v_f = (__pyx_v_f + 1); goto __pyx_L13; } /* "numpy.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) */ __pyx_t_3 = PyInt_FromLong(NPY_OBJECT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { (__pyx_v_f[0]) = 79; goto __pyx_L13; } /*else*/ { /* "numpy.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: */ __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_u_77), __pyx_v_t); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_5)); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_5)); __Pyx_GIVEREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0; __pyx_t_5 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L13:; /* "numpy.pxd":845 * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) * f += 1 # <<<<<<<<<<<<<< * else: * # Cython ignores struct boundary information ("T{...}"), */ __pyx_v_f = (__pyx_v_f + 1); goto __pyx_L11; } /*else*/ { /* "numpy.pxd":849 * # Cython ignores struct boundary information ("T{...}"), * # so don't output it * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< * return f * */ __pyx_t_12 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_12 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_f = __pyx_t_12; } __pyx_L11:; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "numpy.pxd":850 * # so don't output it * f = _util_dtypestring(child, f, end, offset) * return f # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_f; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_child); __Pyx_XDECREF(__pyx_v_fields); __Pyx_XDECREF(__pyx_v_childname); __Pyx_XDECREF(__pyx_v_new_offset); __Pyx_XDECREF(__pyx_v_t); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "numpy.pxd":965 * * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< * cdef PyObject* baseptr * if base is None: */ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) { PyObject *__pyx_v_baseptr; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("set_array_base", 0); /* "numpy.pxd":967 * cdef inline void set_array_base(ndarray arr, object base): * cdef PyObject* baseptr * if base is None: # <<<<<<<<<<<<<< * baseptr = NULL * else: */ __pyx_t_1 = (__pyx_v_base == Py_None); if (__pyx_t_1) { /* "numpy.pxd":968 * cdef PyObject* baseptr * if base is None: * baseptr = NULL # <<<<<<<<<<<<<< * else: * Py_INCREF(base) # important to do this before decref below! */ __pyx_v_baseptr = NULL; goto __pyx_L3; } /*else*/ { /* "numpy.pxd":970 * baseptr = NULL * else: * Py_INCREF(base) # important to do this before decref below! # <<<<<<<<<<<<<< * baseptr = base * Py_XDECREF(arr.base) */ Py_INCREF(__pyx_v_base); /* "numpy.pxd":971 * else: * Py_INCREF(base) # important to do this before decref below! * baseptr = base # <<<<<<<<<<<<<< * Py_XDECREF(arr.base) * arr.base = baseptr */ __pyx_v_baseptr = ((PyObject *)__pyx_v_base); } __pyx_L3:; /* "numpy.pxd":972 * Py_INCREF(base) # important to do this before decref below! * baseptr = base * Py_XDECREF(arr.base) # <<<<<<<<<<<<<< * arr.base = baseptr * */ Py_XDECREF(__pyx_v_arr->base); /* "numpy.pxd":973 * baseptr = base * Py_XDECREF(arr.base) * arr.base = baseptr # <<<<<<<<<<<<<< * * cdef inline object get_array_base(ndarray arr): */ __pyx_v_arr->base = __pyx_v_baseptr; __Pyx_RefNannyFinishContext(); } /* "numpy.pxd":975 * arr.base = baseptr * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< * if arr.base is NULL: * return None */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("get_array_base", 0); /* "numpy.pxd":976 * * cdef inline object get_array_base(ndarray arr): * if arr.base is NULL: # <<<<<<<<<<<<<< * return None * else: */ __pyx_t_1 = (__pyx_v_arr->base == NULL); if (__pyx_t_1) { /* "numpy.pxd":977 * cdef inline object get_array_base(ndarray arr): * if arr.base is NULL: * return None # <<<<<<<<<<<<<< * else: * return arr.base */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; goto __pyx_L3; } /*else*/ { /* "numpy.pxd":979 * return None * else: * return arr.base # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_arr->base)); __pyx_r = ((PyObject *)__pyx_v_arr->base); goto __pyx_L0; } __pyx_L3:; __pyx_r = Py_None; __Pyx_INCREF(Py_None); __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 static struct PyModuleDef __pyx_moduledef = { PyModuleDef_HEAD_INIT, __Pyx_NAMESTR("utilsextension"), __Pyx_DOCSTR(__pyx_k_83), /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_10, __pyx_k_10, sizeof(__pyx_k_10), 0, 0, 1, 1}, {&__pyx_n_s_104, __pyx_k_104, sizeof(__pyx_k_104), 0, 0, 1, 1}, {&__pyx_kp_s_11, __pyx_k_11, sizeof(__pyx_k_11), 0, 0, 1, 0}, {&__pyx_n_s_113, __pyx_k_113, sizeof(__pyx_k_113), 0, 0, 1, 1}, {&__pyx_n_s_114, __pyx_k_114, sizeof(__pyx_k_114), 0, 0, 1, 1}, {&__pyx_n_s_115, __pyx_k_115, sizeof(__pyx_k_115), 0, 0, 1, 1}, {&__pyx_n_s_12, __pyx_k_12, sizeof(__pyx_k_12), 0, 0, 1, 1}, {&__pyx_kp_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 0}, {&__pyx_kp_s_18, __pyx_k_18, sizeof(__pyx_k_18), 0, 0, 1, 0}, {&__pyx_kp_s_20, __pyx_k_20, sizeof(__pyx_k_20), 0, 0, 1, 0}, {&__pyx_kp_s_23, __pyx_k_23, sizeof(__pyx_k_23), 0, 0, 1, 0}, {&__pyx_kp_s_25, __pyx_k_25, sizeof(__pyx_k_25), 0, 0, 1, 0}, {&__pyx_kp_s_26, __pyx_k_26, sizeof(__pyx_k_26), 0, 0, 1, 0}, {&__pyx_kp_s_29, __pyx_k_29, sizeof(__pyx_k_29), 0, 0, 1, 0}, {&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0}, {&__pyx_kp_s_31, __pyx_k_31, sizeof(__pyx_k_31), 0, 0, 1, 0}, {&__pyx_kp_s_33, __pyx_k_33, sizeof(__pyx_k_33), 0, 0, 1, 0}, {&__pyx_kp_s_37, __pyx_k_37, sizeof(__pyx_k_37), 0, 0, 1, 0}, {&__pyx_kp_s_39, __pyx_k_39, sizeof(__pyx_k_39), 0, 0, 1, 0}, {&__pyx_kp_s_41, __pyx_k_41, sizeof(__pyx_k_41), 0, 0, 1, 0}, {&__pyx_kp_s_43, __pyx_k_43, sizeof(__pyx_k_43), 0, 0, 1, 0}, {&__pyx_kp_s_45, __pyx_k_45, sizeof(__pyx_k_45), 0, 0, 1, 0}, {&__pyx_kp_s_48, __pyx_k_48, sizeof(__pyx_k_48), 0, 0, 1, 0}, {&__pyx_kp_s_50, __pyx_k_50, sizeof(__pyx_k_50), 0, 0, 1, 0}, {&__pyx_kp_s_53, __pyx_k_53, sizeof(__pyx_k_53), 0, 0, 1, 0}, {&__pyx_n_s_55, __pyx_k_55, sizeof(__pyx_k_55), 0, 0, 1, 1}, {&__pyx_kp_s_58, __pyx_k_58, sizeof(__pyx_k_58), 0, 0, 1, 0}, {&__pyx_kp_s_59, __pyx_k_59, sizeof(__pyx_k_59), 0, 0, 1, 0}, {&__pyx_kp_s_60, __pyx_k_60, sizeof(__pyx_k_60), 0, 0, 1, 0}, {&__pyx_kp_s_61, __pyx_k_61, sizeof(__pyx_k_61), 0, 0, 1, 0}, {&__pyx_kp_s_62, __pyx_k_62, sizeof(__pyx_k_62), 0, 0, 1, 0}, {&__pyx_n_s_63, __pyx_k_63, sizeof(__pyx_k_63), 0, 0, 1, 1}, {&__pyx_kp_s_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 0, 1, 0}, {&__pyx_kp_s_66, __pyx_k_66, sizeof(__pyx_k_66), 0, 0, 1, 0}, {&__pyx_kp_s_67, __pyx_k_67, sizeof(__pyx_k_67), 0, 0, 1, 0}, {&__pyx_n_s_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 0, 1, 1}, {&__pyx_kp_u_71, __pyx_k_71, sizeof(__pyx_k_71), 0, 1, 0, 0}, {&__pyx_kp_u_73, __pyx_k_73, sizeof(__pyx_k_73), 0, 1, 0, 0}, {&__pyx_kp_u_75, __pyx_k_75, sizeof(__pyx_k_75), 0, 1, 0, 0}, {&__pyx_kp_u_77, __pyx_k_77, sizeof(__pyx_k_77), 0, 1, 0, 0}, {&__pyx_kp_u_78, __pyx_k_78, sizeof(__pyx_k_78), 0, 1, 0, 0}, {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0}, {&__pyx_kp_u_81, __pyx_k_81, sizeof(__pyx_k_81), 0, 1, 0, 0}, {&__pyx_n_s_84, __pyx_k_84, sizeof(__pyx_k_84), 0, 0, 1, 1}, {&__pyx_n_s_85, __pyx_k_85, sizeof(__pyx_k_85), 0, 0, 1, 1}, {&__pyx_n_s_86, __pyx_k_86, sizeof(__pyx_k_86), 0, 0, 1, 1}, {&__pyx_n_s_87, __pyx_k_87, sizeof(__pyx_k_87), 0, 0, 1, 1}, {&__pyx_n_s_88, __pyx_k_88, sizeof(__pyx_k_88), 0, 0, 1, 1}, {&__pyx_n_s_89, __pyx_k_89, sizeof(__pyx_k_89), 0, 0, 1, 1}, {&__pyx_n_s_90, __pyx_k_90, sizeof(__pyx_k_90), 0, 0, 1, 1}, {&__pyx_kp_s_93, __pyx_k_93, sizeof(__pyx_k_93), 0, 0, 1, 0}, {&__pyx_n_s_94, __pyx_k_94, sizeof(__pyx_k_94), 0, 0, 1, 1}, {&__pyx_n_s_97, __pyx_k_97, sizeof(__pyx_k_97), 0, 0, 1, 1}, {&__pyx_n_s_98, __pyx_k_98, sizeof(__pyx_k_98), 0, 0, 1, 1}, {&__pyx_n_s_99, __pyx_k_99, sizeof(__pyx_k_99), 0, 0, 1, 1}, {&__pyx_n_s__ARRAY, __pyx_k__ARRAY, sizeof(__pyx_k__ARRAY), 0, 0, 1, 1}, {&__pyx_n_s__Atom, __pyx_k__Atom, sizeof(__pyx_k__Atom), 0, 0, 1, 1}, {&__pyx_n_s__AtomFromHDF5Type, __pyx_k__AtomFromHDF5Type, sizeof(__pyx_k__AtomFromHDF5Type), 0, 0, 1, 1}, {&__pyx_n_s__AtomToHDF5Type, __pyx_k__AtomToHDF5Type, sizeof(__pyx_k__AtomToHDF5Type), 0, 0, 1, 1}, {&__pyx_n_s__CARRAY, __pyx_k__CARRAY, sizeof(__pyx_k__CARRAY), 0, 0, 1, 1}, {&__pyx_n_s__Col, __pyx_k__Col, sizeof(__pyx_k__Col), 0, 0, 1, 1}, {&__pyx_n_s__Description, __pyx_k__Description, sizeof(__pyx_k__Description), 0, 0, 1, 1}, {&__pyx_n_s__EARRAY, __pyx_k__EARRAY, sizeof(__pyx_k__EARRAY), 0, 0, 1, 1}, {&__pyx_n_s__Enum, __pyx_k__Enum, sizeof(__pyx_k__Enum), 0, 0, 1, 1}, {&__pyx_n_s__EnumAtom, __pyx_k__EnumAtom, sizeof(__pyx_k__EnumAtom), 0, 0, 1, 1}, {&__pyx_n_s__H5T_ARRAY, __pyx_k__H5T_ARRAY, sizeof(__pyx_k__H5T_ARRAY), 0, 0, 1, 1}, {&__pyx_n_s__H5T_BITFIELD, __pyx_k__H5T_BITFIELD, sizeof(__pyx_k__H5T_BITFIELD), 0, 0, 1, 1}, {&__pyx_n_s__H5T_COMPOUND, __pyx_k__H5T_COMPOUND, sizeof(__pyx_k__H5T_COMPOUND), 0, 0, 1, 1}, {&__pyx_n_s__H5T_ENUM, __pyx_k__H5T_ENUM, sizeof(__pyx_k__H5T_ENUM), 0, 0, 1, 1}, {&__pyx_n_s__H5T_FLOAT, __pyx_k__H5T_FLOAT, sizeof(__pyx_k__H5T_FLOAT), 0, 0, 1, 1}, {&__pyx_n_s__H5T_IEEE_F32, __pyx_k__H5T_IEEE_F32, sizeof(__pyx_k__H5T_IEEE_F32), 0, 0, 1, 1}, {&__pyx_n_s__H5T_IEEE_F64, __pyx_k__H5T_IEEE_F64, sizeof(__pyx_k__H5T_IEEE_F64), 0, 0, 1, 1}, {&__pyx_n_s__H5T_INTEGER, __pyx_k__H5T_INTEGER, sizeof(__pyx_k__H5T_INTEGER), 0, 0, 1, 1}, {&__pyx_n_s__H5T_NO_CLASS, __pyx_k__H5T_NO_CLASS, sizeof(__pyx_k__H5T_NO_CLASS), 0, 0, 1, 1}, {&__pyx_n_s__H5T_OPAQUE, __pyx_k__H5T_OPAQUE, sizeof(__pyx_k__H5T_OPAQUE), 0, 0, 1, 1}, {&__pyx_n_s__H5T_REFERENCE, __pyx_k__H5T_REFERENCE, sizeof(__pyx_k__H5T_REFERENCE), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_B8, __pyx_k__H5T_STD_B8, sizeof(__pyx_k__H5T_STD_B8), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_I16, __pyx_k__H5T_STD_I16, sizeof(__pyx_k__H5T_STD_I16), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_I32, __pyx_k__H5T_STD_I32, sizeof(__pyx_k__H5T_STD_I32), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_I64, __pyx_k__H5T_STD_I64, sizeof(__pyx_k__H5T_STD_I64), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_I8, __pyx_k__H5T_STD_I8, sizeof(__pyx_k__H5T_STD_I8), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_U16, __pyx_k__H5T_STD_U16, sizeof(__pyx_k__H5T_STD_U16), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_U32, __pyx_k__H5T_STD_U32, sizeof(__pyx_k__H5T_STD_U32), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_U64, __pyx_k__H5T_STD_U64, sizeof(__pyx_k__H5T_STD_U64), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STD_U8, __pyx_k__H5T_STD_U8, sizeof(__pyx_k__H5T_STD_U8), 0, 0, 1, 1}, {&__pyx_n_s__H5T_STRING, __pyx_k__H5T_STRING, sizeof(__pyx_k__H5T_STRING), 0, 0, 1, 1}, {&__pyx_n_s__H5T_TIME, __pyx_k__H5T_TIME, sizeof(__pyx_k__H5T_TIME), 0, 0, 1, 1}, {&__pyx_n_s__H5T_UNIX_D32, __pyx_k__H5T_UNIX_D32, sizeof(__pyx_k__H5T_UNIX_D32), 0, 0, 1, 1}, {&__pyx_n_s__H5T_UNIX_D64, __pyx_k__H5T_UNIX_D64, sizeof(__pyx_k__H5T_UNIX_D64), 0, 0, 1, 1}, {&__pyx_n_s__H5T_VLEN, __pyx_k__H5T_VLEN, sizeof(__pyx_k__H5T_VLEN), 0, 0, 1, 1}, {&__pyx_n_s__HDF5ClassToString, __pyx_k__HDF5ClassToString, sizeof(__pyx_k__HDF5ClassToString), 0, 0, 1, 1}, {&__pyx_n_s__HDF5ExtError, __pyx_k__HDF5ExtError, sizeof(__pyx_k__HDF5ExtError), 0, 0, 1, 1}, {&__pyx_n_s__HDF5ToNPExtType, __pyx_k__HDF5ToNPExtType, sizeof(__pyx_k__HDF5ToNPExtType), 0, 0, 1, 1}, {&__pyx_n_s__HDF5ToNPNestedType, __pyx_k__HDF5ToNPNestedType, sizeof(__pyx_k__HDF5ToNPNestedType), 0, 0, 1, 1}, {&__pyx_n_s__ImportError, __pyx_k__ImportError, sizeof(__pyx_k__ImportError), 0, 0, 1, 1}, {&__pyx_n_s__KeyError, __pyx_k__KeyError, sizeof(__pyx_k__KeyError), 0, 0, 1, 1}, {&__pyx_n_s__NotImplementedError, __pyx_k__NotImplementedError, sizeof(__pyx_k__NotImplementedError), 0, 0, 1, 1}, {&__pyx_n_s__PTSpecialKinds, __pyx_k__PTSpecialKinds, sizeof(__pyx_k__PTSpecialKinds), 0, 0, 1, 1}, {&__pyx_n_s__PTTypeToHDF5, __pyx_k__PTTypeToHDF5, sizeof(__pyx_k__PTTypeToHDF5), 0, 0, 1, 1}, {&__pyx_n_s__RuntimeError, __pyx_k__RuntimeError, sizeof(__pyx_k__RuntimeError), 0, 0, 1, 1}, {&__pyx_n_s__S, __pyx_k__S, sizeof(__pyx_k__S), 0, 0, 1, 1}, {&__pyx_n_s__TABLE, __pyx_k__TABLE, sizeof(__pyx_k__TABLE), 0, 0, 1, 1}, {&__pyx_n_s__TypeError, __pyx_k__TypeError, sizeof(__pyx_k__TypeError), 0, 0, 1, 1}, {&__pyx_n_s__UNSUPPORTED, __pyx_k__UNSUPPORTED, sizeof(__pyx_k__UNSUPPORTED), 0, 0, 1, 1}, {&__pyx_n_s__VLARRAY, __pyx_k__VLARRAY, sizeof(__pyx_k__VLARRAY), 0, 0, 1, 1}, {&__pyx_n_s__ValueError, __pyx_k__ValueError, sizeof(__pyx_k__ValueError), 0, 0, 1, 1}, {&__pyx_n_s__ZLIB_VERSION, __pyx_k__ZLIB_VERSION, sizeof(__pyx_k__ZLIB_VERSION), 0, 0, 1, 1}, {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1}, {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1}, {&__pyx_n_s___arch_without_blosc, __pyx_k___arch_without_blosc, sizeof(__pyx_k___arch_without_blosc), 0, 0, 1, 1}, {&__pyx_n_s___comp_bzip2, __pyx_k___comp_bzip2, sizeof(__pyx_k___comp_bzip2), 0, 0, 1, 1}, {&__pyx_n_s___comp_lzo, __pyx_k___comp_lzo, sizeof(__pyx_k___comp_lzo), 0, 0, 1, 1}, {&__pyx_n_s___dump_h5_backtrace, __pyx_k___dump_h5_backtrace, sizeof(__pyx_k___dump_h5_backtrace), 0, 0, 1, 1}, {&__pyx_n_s___names, __pyx_k___names, sizeof(__pyx_k___names), 0, 0, 1, 1}, {&__pyx_n_s___v_colobjects, __pyx_k___v_colobjects, sizeof(__pyx_k___v_colobjects), 0, 0, 1, 1}, {&__pyx_n_s___v_dtype, __pyx_k___v_dtype, sizeof(__pyx_k___v_dtype), 0, 0, 1, 1}, {&__pyx_n_s___v_itemsize, __pyx_k___v_itemsize, sizeof(__pyx_k___v_itemsize), 0, 0, 1, 1}, {&__pyx_n_s___v_names, __pyx_k___v_names, sizeof(__pyx_k___v_names), 0, 0, 1, 1}, {&__pyx_n_s___v_pos, __pyx_k___v_pos, sizeof(__pyx_k___v_pos), 0, 0, 1, 1}, {&__pyx_n_s___values, __pyx_k___values, sizeof(__pyx_k___values), 0, 0, 1, 1}, {&__pyx_n_s__a, __pyx_k__a, sizeof(__pyx_k__a), 0, 0, 1, 1}, {&__pyx_n_s__arch, __pyx_k__arch, sizeof(__pyx_k__arch), 0, 0, 1, 1}, {&__pyx_n_s__arm, __pyx_k__arm, sizeof(__pyx_k__arm), 0, 0, 1, 1}, {&__pyx_n_s__array, __pyx_k__array, sizeof(__pyx_k__array), 0, 0, 1, 1}, {&__pyx_n_s__ascii, __pyx_k__ascii, sizeof(__pyx_k__ascii), 0, 0, 1, 1}, {&__pyx_n_s__atom, __pyx_k__atom, sizeof(__pyx_k__atom), 0, 0, 1, 1}, {&__pyx_n_s__atom_, __pyx_k__atom_, sizeof(__pyx_k__atom_), 0, 0, 1, 1}, {&__pyx_n_s__atom_from_hdf5_type, __pyx_k__atom_from_hdf5_type, sizeof(__pyx_k__atom_from_hdf5_type), 0, 0, 1, 1}, {&__pyx_n_s__atom_to_hdf5_type, __pyx_k__atom_to_hdf5_type, sizeof(__pyx_k__atom_to_hdf5_type), 0, 0, 1, 1}, {&__pyx_n_s__attr_name, __pyx_k__attr_name, sizeof(__pyx_k__attr_name), 0, 0, 1, 1}, {&__pyx_n_s__attr_value, __pyx_k__attr_value, sizeof(__pyx_k__attr_value), 0, 0, 1, 1}, {&__pyx_n_s__b, __pyx_k__b, sizeof(__pyx_k__b), 0, 0, 1, 1}, {&__pyx_n_s__b1, __pyx_k__b1, sizeof(__pyx_k__b1), 0, 0, 1, 1}, {&__pyx_n_s__base, __pyx_k__base, sizeof(__pyx_k__base), 0, 0, 1, 1}, {&__pyx_n_s__baseAtom, __pyx_k__baseAtom, sizeof(__pyx_k__baseAtom), 0, 0, 1, 1}, {&__pyx_n_s__baseId, __pyx_k__baseId, sizeof(__pyx_k__baseId), 0, 0, 1, 1}, {&__pyx_n_s__binver, __pyx_k__binver, sizeof(__pyx_k__binver), 0, 0, 1, 1}, {&__pyx_n_s__blosc, __pyx_k__blosc, sizeof(__pyx_k__blosc), 0, 0, 1, 1}, {&__pyx_n_s__blosc_version, __pyx_k__blosc_version, sizeof(__pyx_k__blosc_version), 0, 0, 1, 1}, {&__pyx_n_s__blosc_version_date, __pyx_k__blosc_version_date, sizeof(__pyx_k__blosc_version_date), 0, 0, 1, 1}, {&__pyx_n_s__bool, __pyx_k__bool, sizeof(__pyx_k__bool), 0, 0, 1, 1}, {&__pyx_n_s__bt, __pyx_k__bt, sizeof(__pyx_k__bt), 0, 0, 1, 1}, {&__pyx_n_s__byteorder, __pyx_k__byteorder, sizeof(__pyx_k__byteorder), 0, 0, 1, 1}, {&__pyx_n_s__bytes_, __pyx_k__bytes_, sizeof(__pyx_k__bytes_), 0, 0, 1, 1}, {&__pyx_n_s__bytestride, __pyx_k__bytestride, sizeof(__pyx_k__bytestride), 0, 0, 1, 1}, {&__pyx_n_s__bzip2, __pyx_k__bzip2, sizeof(__pyx_k__bzip2), 0, 0, 1, 1}, {&__pyx_n_s__bzip2_version, __pyx_k__bzip2_version, sizeof(__pyx_k__bzip2_version), 0, 0, 1, 1}, {&__pyx_n_s__bzip2_version_date, __pyx_k__bzip2_version_date, sizeof(__pyx_k__bzip2_version_date), 0, 0, 1, 1}, {&__pyx_n_s__c, __pyx_k__c, sizeof(__pyx_k__c), 0, 0, 1, 1}, {&__pyx_n_s__c_attr_name, __pyx_k__c_attr_name, sizeof(__pyx_k__c_attr_name), 0, 0, 1, 1}, {&__pyx_n_s__c_byteorder, __pyx_k__c_byteorder, sizeof(__pyx_k__c_byteorder), 0, 0, 1, 1}, {&__pyx_n_s__c_colname, __pyx_k__c_colname, sizeof(__pyx_k__c_colname), 0, 0, 1, 1}, {&__pyx_n_s__cbyteorder, __pyx_k__cbyteorder, sizeof(__pyx_k__cbyteorder), 0, 0, 1, 1}, {&__pyx_n_s__check_file_access, __pyx_k__check_file_access, sizeof(__pyx_k__check_file_access), 0, 0, 1, 1}, {&__pyx_n_s__classId, __pyx_k__classId, sizeof(__pyx_k__classId), 0, 0, 1, 1}, {&__pyx_n_s__class_id, __pyx_k__class_id, sizeof(__pyx_k__class_id), 0, 0, 1, 1}, {&__pyx_n_s__cname, __pyx_k__cname, sizeof(__pyx_k__cname), 0, 0, 1, 1}, {&__pyx_n_s__colname, __pyx_k__colname, sizeof(__pyx_k__colname), 0, 0, 1, 1}, {&__pyx_n_s__complex, __pyx_k__complex, sizeof(__pyx_k__complex), 0, 0, 1, 1}, {&__pyx_n_s__complex128, __pyx_k__complex128, sizeof(__pyx_k__complex128), 0, 0, 1, 1}, {&__pyx_n_s__complex192, __pyx_k__complex192, sizeof(__pyx_k__complex192), 0, 0, 1, 1}, {&__pyx_n_s__complex256, __pyx_k__complex256, sizeof(__pyx_k__complex256), 0, 0, 1, 1}, {&__pyx_n_s__complex64, __pyx_k__complex64, sizeof(__pyx_k__complex64), 0, 0, 1, 1}, {&__pyx_n_s__createNestedType, __pyx_k__createNestedType, sizeof(__pyx_k__createNestedType), 0, 0, 1, 1}, {&__pyx_n_s__create_nested_type, __pyx_k__create_nested_type, sizeof(__pyx_k__create_nested_type), 0, 0, 1, 1}, {&__pyx_n_s__cset, __pyx_k__cset, sizeof(__pyx_k__cset), 0, 0, 1, 1}, {&__pyx_n_s__dataset_id, __pyx_k__dataset_id, sizeof(__pyx_k__dataset_id), 0, 0, 1, 1}, {&__pyx_n_s__decode, __pyx_k__decode, sizeof(__pyx_k__decode), 0, 0, 1, 1}, {&__pyx_n_s__desc, __pyx_k__desc, sizeof(__pyx_k__desc), 0, 0, 1, 1}, {&__pyx_n_s__dflt, __pyx_k__dflt, sizeof(__pyx_k__dflt), 0, 0, 1, 1}, {&__pyx_n_s__dims, __pyx_k__dims, sizeof(__pyx_k__dims), 0, 0, 1, 1}, {&__pyx_n_s__dtype, __pyx_k__dtype, sizeof(__pyx_k__dtype), 0, 0, 1, 1}, {&__pyx_n_s__e, __pyx_k__e, sizeof(__pyx_k__e), 0, 0, 1, 1}, {&__pyx_n_s__ename, __pyx_k__ename, sizeof(__pyx_k__ename), 0, 0, 1, 1}, {&__pyx_n_s__encname, __pyx_k__encname, sizeof(__pyx_k__encname), 0, 0, 1, 1}, {&__pyx_n_s__encode, __pyx_k__encode, sizeof(__pyx_k__encode), 0, 0, 1, 1}, {&__pyx_n_s__encode_filename, __pyx_k__encode_filename, sizeof(__pyx_k__encode_filename), 0, 0, 1, 1}, {&__pyx_n_s__encoded_attr_name, __pyx_k__encoded_attr_name, sizeof(__pyx_k__encoded_attr_name), 0, 0, 1, 1}, {&__pyx_n_s__encoded_byteorder, __pyx_k__encoded_byteorder, sizeof(__pyx_k__encoded_byteorder), 0, 0, 1, 1}, {&__pyx_n_s__encoded_name, __pyx_k__encoded_name, sizeof(__pyx_k__encoded_name), 0, 0, 1, 1}, {&__pyx_n_s__encoding, __pyx_k__encoding, sizeof(__pyx_k__encoding), 0, 0, 1, 1}, {&__pyx_n_s__enum, __pyx_k__enum, sizeof(__pyx_k__enum), 0, 0, 1, 1}, {&__pyx_n_s__enumAtom, __pyx_k__enumAtom, sizeof(__pyx_k__enumAtom), 0, 0, 1, 1}, {&__pyx_n_s__enumDict, __pyx_k__enumDict, sizeof(__pyx_k__enumDict), 0, 0, 1, 1}, {&__pyx_n_s__enumFromHDF5, __pyx_k__enumFromHDF5, sizeof(__pyx_k__enumFromHDF5), 0, 0, 1, 1}, {&__pyx_n_s__enumId, __pyx_k__enumId, sizeof(__pyx_k__enumId), 0, 0, 1, 1}, {&__pyx_n_s__enumId2, __pyx_k__enumId2, sizeof(__pyx_k__enumId2), 0, 0, 1, 1}, {&__pyx_n_s__enumToHDF5, __pyx_k__enumToHDF5, sizeof(__pyx_k__enumToHDF5), 0, 0, 1, 1}, {&__pyx_n_s__enum_from_hdf5, __pyx_k__enum_from_hdf5, sizeof(__pyx_k__enum_from_hdf5), 0, 0, 1, 1}, {&__pyx_n_s__enum_to_hdf5, __pyx_k__enum_to_hdf5, sizeof(__pyx_k__enum_to_hdf5), 0, 0, 1, 1}, {&__pyx_n_s__err, __pyx_k__err, sizeof(__pyx_k__err), 0, 0, 1, 1}, {&__pyx_n_s__f, __pyx_k__f, sizeof(__pyx_k__f), 0, 0, 1, 1}, {&__pyx_n_s__field, __pyx_k__field, sizeof(__pyx_k__field), 0, 0, 1, 1}, {&__pyx_n_s__field_name1, __pyx_k__field_name1, sizeof(__pyx_k__field_name1), 0, 0, 1, 1}, {&__pyx_n_s__field_name2, __pyx_k__field_name2, sizeof(__pyx_k__field_name2), 0, 0, 1, 1}, {&__pyx_n_s__fieldname, __pyx_k__fieldname, sizeof(__pyx_k__fieldname), 0, 0, 1, 1}, {&__pyx_n_s__file_id, __pyx_k__file_id, sizeof(__pyx_k__file_id), 0, 0, 1, 1}, {&__pyx_n_s__filename, __pyx_k__filename, sizeof(__pyx_k__filename), 0, 0, 1, 1}, {&__pyx_n_s__float, __pyx_k__float, sizeof(__pyx_k__float), 0, 0, 1, 1}, {&__pyx_n_s__float128, __pyx_k__float128, sizeof(__pyx_k__float128), 0, 0, 1, 1}, {&__pyx_n_s__float16, __pyx_k__float16, sizeof(__pyx_k__float16), 0, 0, 1, 1}, {&__pyx_n_s__float32, __pyx_k__float32, sizeof(__pyx_k__float32), 0, 0, 1, 1}, {&__pyx_n_s__float64, __pyx_k__float64, sizeof(__pyx_k__float64), 0, 0, 1, 1}, {&__pyx_n_s__float96, __pyx_k__float96, sizeof(__pyx_k__float96), 0, 0, 1, 1}, {&__pyx_n_s__from_atom, __pyx_k__from_atom, sizeof(__pyx_k__from_atom), 0, 0, 1, 1}, {&__pyx_n_s__from_dtype, __pyx_k__from_dtype, sizeof(__pyx_k__from_dtype), 0, 0, 1, 1}, {&__pyx_n_s__from_kind, __pyx_k__from_kind, sizeof(__pyx_k__from_kind), 0, 0, 1, 1}, {&__pyx_n_s__getFilters, __pyx_k__getFilters, sizeof(__pyx_k__getFilters), 0, 0, 1, 1}, {&__pyx_n_s__getHDF5Version, __pyx_k__getHDF5Version, sizeof(__pyx_k__getHDF5Version), 0, 0, 1, 1}, {&__pyx_n_s__getIndices, __pyx_k__getIndices, sizeof(__pyx_k__getIndices), 0, 0, 1, 1}, {&__pyx_n_s__getNestedField, __pyx_k__getNestedField, sizeof(__pyx_k__getNestedField), 0, 0, 1, 1}, {&__pyx_n_s__getPyTablesVersion, __pyx_k__getPyTablesVersion, sizeof(__pyx_k__getPyTablesVersion), 0, 0, 1, 1}, {&__pyx_n_s__getTypeEnum, __pyx_k__getTypeEnum, sizeof(__pyx_k__getTypeEnum), 0, 0, 1, 1}, {&__pyx_n_s__get_filters, __pyx_k__get_filters, sizeof(__pyx_k__get_filters), 0, 0, 1, 1}, {&__pyx_n_s__get_hdf5_version, __pyx_k__get_hdf5_version, sizeof(__pyx_k__get_hdf5_version), 0, 0, 1, 1}, {&__pyx_n_s__get_indices, __pyx_k__get_indices, sizeof(__pyx_k__get_indices), 0, 0, 1, 1}, {&__pyx_n_s__get_nested_field, __pyx_k__get_nested_field, sizeof(__pyx_k__get_nested_field), 0, 0, 1, 1}, {&__pyx_n_s__get_type_enum, __pyx_k__get_type_enum, sizeof(__pyx_k__get_type_enum), 0, 0, 1, 1}, {&__pyx_n_s__h5type, __pyx_k__h5type, sizeof(__pyx_k__h5type), 0, 0, 1, 1}, {&__pyx_n_s__hdf5, __pyx_k__hdf5, sizeof(__pyx_k__hdf5), 0, 0, 1, 1}, {&__pyx_n_s__hdf5_to_np_ext_type, __pyx_k__hdf5_to_np_ext_type, sizeof(__pyx_k__hdf5_to_np_ext_type), 0, 0, 1, 1}, {&__pyx_n_s__i, __pyx_k__i, sizeof(__pyx_k__i), 0, 0, 1, 1}, {&__pyx_n_s__int, __pyx_k__int, sizeof(__pyx_k__int), 0, 0, 1, 1}, {&__pyx_n_s__int16, __pyx_k__int16, sizeof(__pyx_k__int16), 0, 0, 1, 1}, {&__pyx_n_s__int32, __pyx_k__int32, sizeof(__pyx_k__int32), 0, 0, 1, 1}, {&__pyx_n_s__int64, __pyx_k__int64, sizeof(__pyx_k__int64), 0, 0, 1, 1}, {&__pyx_n_s__int8, __pyx_k__int8, sizeof(__pyx_k__int8), 0, 0, 1, 1}, {&__pyx_n_s__isHDF5File, __pyx_k__isHDF5File, sizeof(__pyx_k__isHDF5File), 0, 0, 1, 1}, {&__pyx_n_s__isPyTablesFile, __pyx_k__isPyTablesFile, sizeof(__pyx_k__isPyTablesFile), 0, 0, 1, 1}, {&__pyx_n_s__is_hdf5_file, __pyx_k__is_hdf5_file, sizeof(__pyx_k__is_hdf5_file), 0, 0, 1, 1}, {&__pyx_n_s__is_pytables_file, __pyx_k__is_pytables_file, sizeof(__pyx_k__is_pytables_file), 0, 0, 1, 1}, {&__pyx_n_s__iscomplex, __pyx_k__iscomplex, sizeof(__pyx_k__iscomplex), 0, 0, 1, 1}, {&__pyx_n_s__isptf, __pyx_k__isptf, sizeof(__pyx_k__isptf), 0, 0, 1, 1}, {&__pyx_n_s__itemsize, __pyx_k__itemsize, sizeof(__pyx_k__itemsize), 0, 0, 1, 1}, {&__pyx_n_s__k, __pyx_k__k, sizeof(__pyx_k__k), 0, 0, 1, 1}, {&__pyx_n_s__kind, __pyx_k__kind, sizeof(__pyx_k__kind), 0, 0, 1, 1}, {&__pyx_n_s__layout, __pyx_k__layout, sizeof(__pyx_k__layout), 0, 0, 1, 1}, {&__pyx_n_s__length, __pyx_k__length, sizeof(__pyx_k__length), 0, 0, 1, 1}, {&__pyx_n_s__libnames, __pyx_k__libnames, sizeof(__pyx_k__libnames), 0, 0, 1, 1}, {&__pyx_n_s__little, __pyx_k__little, sizeof(__pyx_k__little), 0, 0, 1, 1}, {&__pyx_n_s__loadEnum, __pyx_k__loadEnum, sizeof(__pyx_k__loadEnum), 0, 0, 1, 1}, {&__pyx_n_s__load_enum, __pyx_k__load_enum, sizeof(__pyx_k__load_enum), 0, 0, 1, 1}, {&__pyx_n_s__loc_id, __pyx_k__loc_id, sizeof(__pyx_k__loc_id), 0, 0, 1, 1}, {&__pyx_n_s__lower, __pyx_k__lower, sizeof(__pyx_k__lower), 0, 0, 1, 1}, {&__pyx_n_s__lzo, __pyx_k__lzo, sizeof(__pyx_k__lzo), 0, 0, 1, 1}, {&__pyx_n_s__lzo_version, __pyx_k__lzo_version, sizeof(__pyx_k__lzo_version), 0, 0, 1, 1}, {&__pyx_n_s__lzo_version_date, __pyx_k__lzo_version_date, sizeof(__pyx_k__lzo_version_date), 0, 0, 1, 1}, {&__pyx_n_s__lzo_version_string, __pyx_k__lzo_version_string, sizeof(__pyx_k__lzo_version_string), 0, 0, 1, 1}, {&__pyx_n_s__machine, __pyx_k__machine, sizeof(__pyx_k__machine), 0, 0, 1, 1}, {&__pyx_n_s__maxdims, __pyx_k__maxdims, sizeof(__pyx_k__maxdims), 0, 0, 1, 1}, {&__pyx_n_s__member_type_id, __pyx_k__member_type_id, sizeof(__pyx_k__member_type_id), 0, 0, 1, 1}, {&__pyx_n_s__mips, __pyx_k__mips, sizeof(__pyx_k__mips), 0, 0, 1, 1}, {&__pyx_n_s__name, __pyx_k__name, sizeof(__pyx_k__name), 0, 0, 1, 1}, {&__pyx_n_s__native_type_id, __pyx_k__native_type_id, sizeof(__pyx_k__native_type_id), 0, 0, 1, 1}, {&__pyx_n_s__ndims, __pyx_k__ndims, sizeof(__pyx_k__ndims), 0, 0, 1, 1}, {&__pyx_n_s__nelems, __pyx_k__nelems, sizeof(__pyx_k__nelems), 0, 0, 1, 1}, {&__pyx_n_s__nfieldname, __pyx_k__nfieldname, sizeof(__pyx_k__nfieldname), 0, 0, 1, 1}, {&__pyx_n_s__nfields, __pyx_k__nfields, sizeof(__pyx_k__nfields), 0, 0, 1, 1}, {&__pyx_n_s__npNames, __pyx_k__npNames, sizeof(__pyx_k__npNames), 0, 0, 1, 1}, {&__pyx_n_s__npValues, __pyx_k__npValues, sizeof(__pyx_k__npValues), 0, 0, 1, 1}, {&__pyx_n_s__npenum, __pyx_k__npenum, sizeof(__pyx_k__npenum), 0, 0, 1, 1}, {&__pyx_n_s__nptype, __pyx_k__nptype, sizeof(__pyx_k__nptype), 0, 0, 1, 1}, {&__pyx_n_s__npvalue, __pyx_k__npvalue, sizeof(__pyx_k__npvalue), 0, 0, 1, 1}, {&__pyx_n_s__nthreads, __pyx_k__nthreads, sizeof(__pyx_k__nthreads), 0, 0, 1, 1}, {&__pyx_n_s__numpy, __pyx_k__numpy, sizeof(__pyx_k__numpy), 0, 0, 1, 1}, {&__pyx_n_s__o_start, __pyx_k__o_start, sizeof(__pyx_k__o_start), 0, 0, 1, 1}, {&__pyx_n_s__o_step, __pyx_k__o_step, sizeof(__pyx_k__o_step), 0, 0, 1, 1}, {&__pyx_n_s__o_stop, __pyx_k__o_stop, sizeof(__pyx_k__o_stop), 0, 0, 1, 1}, {&__pyx_n_s__obj, __pyx_k__obj, sizeof(__pyx_k__obj), 0, 0, 1, 1}, {&__pyx_n_s__offset, __pyx_k__offset, sizeof(__pyx_k__offset), 0, 0, 1, 1}, {&__pyx_n_s__parent_id, __pyx_k__parent_id, sizeof(__pyx_k__parent_id), 0, 0, 1, 1}, {&__pyx_n_s__platform, __pyx_k__platform, sizeof(__pyx_k__platform), 0, 0, 1, 1}, {&__pyx_n_s__platform_byteorder, __pyx_k__platform_byteorder, sizeof(__pyx_k__platform_byteorder), 0, 0, 1, 1}, {&__pyx_n_s__pos, __pyx_k__pos, sizeof(__pyx_k__pos), 0, 0, 1, 1}, {&__pyx_n_s__previous_api, __pyx_k__previous_api, sizeof(__pyx_k__previous_api), 0, 0, 1, 1}, {&__pyx_n_s__pt_special_kinds, __pyx_k__pt_special_kinds, sizeof(__pyx_k__pt_special_kinds), 0, 0, 1, 1}, {&__pyx_n_s__pttype_to_hdf5, __pyx_k__pttype_to_hdf5, sizeof(__pyx_k__pttype_to_hdf5), 0, 0, 1, 1}, {&__pyx_n_s__pure_numpy_types, __pyx_k__pure_numpy_types, sizeof(__pyx_k__pure_numpy_types), 0, 0, 1, 1}, {&__pyx_n_s__pyename, __pyx_k__pyename, sizeof(__pyx_k__pyename), 0, 0, 1, 1}, {&__pyx_n_s__range, __pyx_k__range, sizeof(__pyx_k__range), 0, 0, 1, 1}, {&__pyx_n_s__rank, __pyx_k__rank, sizeof(__pyx_k__rank), 0, 0, 1, 1}, {&__pyx_n_s__rbuf, __pyx_k__rbuf, sizeof(__pyx_k__rbuf), 0, 0, 1, 1}, {&__pyx_n_s__rbuffer, __pyx_k__rbuffer, sizeof(__pyx_k__rbuffer), 0, 0, 1, 1}, {&__pyx_n_s__read_f_attr, __pyx_k__read_f_attr, sizeof(__pyx_k__read_f_attr), 0, 0, 1, 1}, {&__pyx_n_s__recarray, __pyx_k__recarray, sizeof(__pyx_k__recarray), 0, 0, 1, 1}, {&__pyx_n_s__register_, __pyx_k__register_, sizeof(__pyx_k__register_), 0, 0, 1, 1}, {&__pyx_n_s__ret, __pyx_k__ret, sizeof(__pyx_k__ret), 0, 0, 1, 1}, {&__pyx_n_s__retvalue, __pyx_k__retvalue, sizeof(__pyx_k__retvalue), 0, 0, 1, 1}, {&__pyx_n_s__s, __pyx_k__s, sizeof(__pyx_k__s), 0, 0, 1, 1}, {&__pyx_n_s__sctype, __pyx_k__sctype, sizeof(__pyx_k__sctype), 0, 0, 1, 1}, {&__pyx_n_s__setBloscMaxThreads, __pyx_k__setBloscMaxThreads, sizeof(__pyx_k__setBloscMaxThreads), 0, 0, 1, 1}, {&__pyx_n_s__shape, __pyx_k__shape, sizeof(__pyx_k__shape), 0, 0, 1, 1}, {&__pyx_n_s__shape2, __pyx_k__shape2, sizeof(__pyx_k__shape2), 0, 0, 1, 1}, {&__pyx_n_s__sign, __pyx_k__sign, sizeof(__pyx_k__sign), 0, 0, 1, 1}, {&__pyx_n_s__silence, __pyx_k__silence, sizeof(__pyx_k__silence), 0, 0, 1, 1}, {&__pyx_n_s__silenceHDF5Messages, __pyx_k__silenceHDF5Messages, sizeof(__pyx_k__silenceHDF5Messages), 0, 0, 1, 1}, {&__pyx_n_s__size, __pyx_k__size, sizeof(__pyx_k__size), 0, 0, 1, 1}, {&__pyx_n_s__slicelength, __pyx_k__slicelength, sizeof(__pyx_k__slicelength), 0, 0, 1, 1}, {&__pyx_n_s__sparc, __pyx_k__sparc, sizeof(__pyx_k__sparc), 0, 0, 1, 1}, {&__pyx_n_s__split, __pyx_k__split, sizeof(__pyx_k__split), 0, 0, 1, 1}, {&__pyx_n_s__start, __pyx_k__start, sizeof(__pyx_k__start), 0, 0, 1, 1}, {&__pyx_n_s__step, __pyx_k__step, sizeof(__pyx_k__step), 0, 0, 1, 1}, {&__pyx_n_s__stop, __pyx_k__stop, sizeof(__pyx_k__stop), 0, 0, 1, 1}, {&__pyx_n_s__str_, __pyx_k__str_, sizeof(__pyx_k__str_), 0, 0, 1, 1}, {&__pyx_n_s__string, __pyx_k__string, sizeof(__pyx_k__string), 0, 0, 1, 1}, {&__pyx_n_s__strver, __pyx_k__strver, sizeof(__pyx_k__strver), 0, 0, 1, 1}, {&__pyx_n_s__stype, __pyx_k__stype, sizeof(__pyx_k__stype), 0, 0, 1, 1}, {&__pyx_n_s__super_type_id, __pyx_k__super_type_id, sizeof(__pyx_k__super_type_id), 0, 0, 1, 1}, {&__pyx_n_s__sys, __pyx_k__sys, sizeof(__pyx_k__sys), 0, 0, 1, 1}, {&__pyx_n_s__t, __pyx_k__t, sizeof(__pyx_k__t), 0, 0, 1, 1}, {&__pyx_n_s__tables, __pyx_k__tables, sizeof(__pyx_k__tables), 0, 0, 1, 1}, {&__pyx_n_s__tid, __pyx_k__tid, sizeof(__pyx_k__tid), 0, 0, 1, 1}, {&__pyx_n_s__tid2, __pyx_k__tid2, sizeof(__pyx_k__tid2), 0, 0, 1, 1}, {&__pyx_n_s__time, __pyx_k__time, sizeof(__pyx_k__time), 0, 0, 1, 1}, {&__pyx_n_s__time32, __pyx_k__time32, sizeof(__pyx_k__time32), 0, 0, 1, 1}, {&__pyx_n_s__time64, __pyx_k__time64, sizeof(__pyx_k__time64), 0, 0, 1, 1}, {&__pyx_n_s__tsize, __pyx_k__tsize, sizeof(__pyx_k__tsize), 0, 0, 1, 1}, {&__pyx_n_s__type, __pyx_k__type, sizeof(__pyx_k__type), 0, 0, 1, 1}, {&__pyx_n_s__typeClass, __pyx_k__typeClass, sizeof(__pyx_k__typeClass), 0, 0, 1, 1}, {&__pyx_n_s__typeDict, __pyx_k__typeDict, sizeof(__pyx_k__typeDict), 0, 0, 1, 1}, {&__pyx_n_s__type_id, __pyx_k__type_id, sizeof(__pyx_k__type_id), 0, 0, 1, 1}, {&__pyx_n_s__u, __pyx_k__u, sizeof(__pyx_k__u), 0, 0, 1, 1}, {&__pyx_n_s__uint, __pyx_k__uint, sizeof(__pyx_k__uint), 0, 0, 1, 1}, {&__pyx_n_s__uint16, __pyx_k__uint16, sizeof(__pyx_k__uint16), 0, 0, 1, 1}, {&__pyx_n_s__uint32, __pyx_k__uint32, sizeof(__pyx_k__uint32), 0, 0, 1, 1}, {&__pyx_n_s__uint64, __pyx_k__uint64, sizeof(__pyx_k__uint64), 0, 0, 1, 1}, {&__pyx_n_s__uint8, __pyx_k__uint8, sizeof(__pyx_k__uint8), 0, 0, 1, 1}, {&__pyx_n_s__version_info, __pyx_k__version_info, sizeof(__pyx_k__version_info), 0, 0, 1, 1}, {&__pyx_n_s__warnings, __pyx_k__warnings, sizeof(__pyx_k__warnings), 0, 0, 1, 1}, {&__pyx_n_s__whichClass, __pyx_k__whichClass, sizeof(__pyx_k__whichClass), 0, 0, 1, 1}, {&__pyx_n_s__whichLibVersion, __pyx_k__whichLibVersion, sizeof(__pyx_k__whichLibVersion), 0, 0, 1, 1}, {&__pyx_n_s__which_class, __pyx_k__which_class, sizeof(__pyx_k__which_class), 0, 0, 1, 1}, {&__pyx_n_s__which_lib_version, __pyx_k__which_lib_version, sizeof(__pyx_k__which_lib_version), 0, 0, 1, 1}, {&__pyx_n_s__win32, __pyx_k__win32, sizeof(__pyx_k__win32), 0, 0, 1, 1}, {&__pyx_n_s__zlib, __pyx_k__zlib, sizeof(__pyx_k__zlib), 0, 0, 1, 1}, {&__pyx_n_s__zlib_imported, __pyx_k__zlib_imported, sizeof(__pyx_k__zlib_imported), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_ImportError = __Pyx_GetName(__pyx_b, __pyx_n_s__ImportError); if (!__pyx_builtin_ImportError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_range = __Pyx_GetName(__pyx_b, __pyx_n_s__range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_KeyError = __Pyx_GetName(__pyx_b, __pyx_n_s__KeyError); if (!__pyx_builtin_KeyError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_s__TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_NotImplementedError = __Pyx_GetName(__pyx_b, __pyx_n_s__NotImplementedError); if (!__pyx_builtin_NotImplementedError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_RuntimeError = __Pyx_GetName(__pyx_b, __pyx_n_s__RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} return 0; __pyx_L1_error:; return -1; } static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "tables/utilsextension.pyx":221 * free(date) * if sys.version_info[0] > 2: * return compinfo[0].decode('ascii'), compinfo[1].decode('ascii') # <<<<<<<<<<<<<< * else: * return compinfo */ __pyx_k_tuple_1 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_1); __Pyx_INCREF(((PyObject *)__pyx_n_s__ascii)); PyTuple_SET_ITEM(__pyx_k_tuple_1, 0, ((PyObject *)__pyx_n_s__ascii)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ascii)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_1)); __pyx_k_tuple_2 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_2); __Pyx_INCREF(((PyObject *)__pyx_n_s__ascii)); PyTuple_SET_ITEM(__pyx_k_tuple_2, 0, ((PyObject *)__pyx_n_s__ascii)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ascii)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_2)); /* "tables/utilsextension.pyx":331 * # bytes(minor_msg).decode('utf-8')) * * msg = bytes(err.desc).decode('utf-8') # <<<<<<<<<<<<<< * * bt.append(( */ __pyx_k_tuple_4 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_4); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_4, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_4)); /* "tables/utilsextension.pyx":334 * * bt.append(( * bytes(err.file_name).decode('utf-8'), # <<<<<<<<<<<<<< * err.line, * bytes(err.func_name).decode('utf-8'), */ __pyx_k_tuple_5 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_5); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_5, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_5)); /* "tables/utilsextension.pyx":336 * bytes(err.file_name).decode('utf-8'), * err.line, * bytes(err.func_name).decode('utf-8'), # <<<<<<<<<<<<<< * msg, * )) */ __pyx_k_tuple_6 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_6); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_6, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_6)); /* "tables/utilsextension.pyx":375 * err = H5Eset_auto(H5E_DEFAULT, H5Eprint, stderr) * if err < 0: * raise HDF5ExtError("unable to configure HDF5 internal error handling") # <<<<<<<<<<<<<< * * */ __pyx_k_tuple_9 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_9); __Pyx_INCREF(((PyObject *)__pyx_kp_s_8)); PyTuple_SET_ITEM(__pyx_k_tuple_9, 0, ((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_9)); /* "tables/utilsextension.pyx":615 * isptf = isptf.encode() * elif PY_MAJOR_VERSION > 2 and PyBytes_Check(isptf): * isptf = isptf.decode('utf-8') # <<<<<<<<<<<<<< * * return isptf */ __pyx_k_tuple_13 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_13); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_13, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_13)); /* "tables/utilsextension.pyx":658 * cdef bytes encoded_name * * encoded_name = name.encode('utf-8') # <<<<<<<<<<<<<< * # get the C pointer * cname = encoded_name */ __pyx_k_tuple_14 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_14); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_14, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_14)); /* "tables/utilsextension.pyx":662 * cname = encoded_name * * libnames = ('hdf5', 'zlib', 'lzo', 'bzip2', 'blosc') # <<<<<<<<<<<<<< * * if strcmp(cname, "hdf5") == 0: */ __pyx_k_tuple_15 = PyTuple_New(5); if (unlikely(!__pyx_k_tuple_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_15); __Pyx_INCREF(((PyObject *)__pyx_n_s__hdf5)); PyTuple_SET_ITEM(__pyx_k_tuple_15, 0, ((PyObject *)__pyx_n_s__hdf5)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__hdf5)); __Pyx_INCREF(((PyObject *)__pyx_n_s__zlib)); PyTuple_SET_ITEM(__pyx_k_tuple_15, 1, ((PyObject *)__pyx_n_s__zlib)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__zlib)); __Pyx_INCREF(((PyObject *)__pyx_n_s__lzo)); PyTuple_SET_ITEM(__pyx_k_tuple_15, 2, ((PyObject *)__pyx_n_s__lzo)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__lzo)); __Pyx_INCREF(((PyObject *)__pyx_n_s__bzip2)); PyTuple_SET_ITEM(__pyx_k_tuple_15, 3, ((PyObject *)__pyx_n_s__bzip2)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__bzip2)); __Pyx_INCREF(((PyObject *)__pyx_n_s__blosc)); PyTuple_SET_ITEM(__pyx_k_tuple_15, 4, ((PyObject *)__pyx_n_s__blosc)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__blosc)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_15)); /* "tables/utilsextension.pyx":709 * * if isinstance(name, unicode): * encoded_name = name.encode('utf-8') # <<<<<<<<<<<<<< * else: * encoded_name = name */ __pyx_k_tuple_17 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_17)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_17); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_17, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_17)); /* "tables/utilsextension.pyx":727 * if layout == H5D_CHUNKED: * if H5ARRAYget_ndims(dataset_id, &rank) < 0: * raise HDF5ExtError("Problems getting ndims.") # <<<<<<<<<<<<<< * dims = malloc(rank * sizeof(hsize_t)) * maxdims = malloc(rank * sizeof(hsize_t)) */ __pyx_k_tuple_19 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_19)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_19); __Pyx_INCREF(((PyObject *)__pyx_kp_s_18)); PyTuple_SET_ITEM(__pyx_k_tuple_19, 0, ((PyObject *)__pyx_kp_s_18)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_18)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_19)); /* "tables/utilsextension.pyx":732 * if H5ARRAYget_info(dataset_id, type_id, dims, maxdims, * &class_id, byteorder) < 0: * raise HDF5ExtError("Unable to get array info.") # <<<<<<<<<<<<<< * classId = "CARRAY" * # Check whether some dimension is enlargeable */ __pyx_k_tuple_21 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_21); __Pyx_INCREF(((PyObject *)__pyx_kp_s_20)); PyTuple_SET_ITEM(__pyx_k_tuple_21, 0, ((PyObject *)__pyx_kp_s_20)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_20)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_21)); /* "tables/utilsextension.pyx":800 * """ * * cdef bytes name = fieldname.encode('utf-8') # <<<<<<<<<<<<<< * try: * if strchr(name, 47) != NULL: # ord('/') == 47 */ __pyx_k_tuple_22 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_22); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_22, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_22)); /* "tables/utilsextension.pyx":807 * # ``numpy.ndarray``. -- ivb * field = recarray * for nfieldname in fieldname.split('/'): # <<<<<<<<<<<<<< * field = field[nfieldname] * else: */ __pyx_k_tuple_24 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_24); __Pyx_INCREF(((PyObject *)__pyx_kp_s_23)); PyTuple_SET_ITEM(__pyx_k_tuple_24, 0, ((PyObject *)__pyx_kp_s_23)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_24)); /* "tables/utilsextension.pyx":853 * cdef char *c_attr_name = NULL * * encoded_attr_name = attr_name.encode('utf-8') # <<<<<<<<<<<<<< * # Get the C pointer * c_attr_name = encoded_attr_name */ __pyx_k_tuple_27 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_27); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_27, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_27)); /* "tables/utilsextension.pyx":882 * cdef bytes encoded_name * * encoded_name = name.encode('utf-8') # <<<<<<<<<<<<<< * * return get_filter_names(parent_id, encoded_name) */ __pyx_k_tuple_28 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_28); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_28, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_28)); /* "tables/utilsextension.pyx":908 * typeClass = H5Tget_class(h5type) * if typeClass < 0: * raise HDF5ExtError("failed to get class of HDF5 type") # <<<<<<<<<<<<<< * * if typeClass == H5T_ENUM: */ __pyx_k_tuple_30 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_30); __Pyx_INCREF(((PyObject *)__pyx_kp_s_29)); PyTuple_SET_ITEM(__pyx_k_tuple_30, 0, ((PyObject *)__pyx_kp_s_29)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_29)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_30)); /* "tables/utilsextension.pyx":919 * H5Tclose(enumId2) * else: * raise TypeError( # <<<<<<<<<<<<<< * "enumerated values can not be stored using the given type") * return enumId */ __pyx_k_tuple_32 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_32); __Pyx_INCREF(((PyObject *)__pyx_kp_s_31)); PyTuple_SET_ITEM(__pyx_k_tuple_32, 0, ((PyObject *)__pyx_kp_s_31)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_31)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_32)); /* "tables/utilsextension.pyx":949 * H5Tclose(baseId) * if atom.kind not in ('int', 'uint'): * raise NotImplementedError("sorry, only integer concrete values are " # <<<<<<<<<<<<<< * "supported at this moment") * */ __pyx_k_tuple_34 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_34); __Pyx_INCREF(((PyObject *)__pyx_kp_s_33)); PyTuple_SET_ITEM(__pyx_k_tuple_34, 0, ((PyObject *)__pyx_kp_s_33)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_33)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_34)); /* "tables/utilsextension.pyx":953 * * dtype = atom.dtype * npvalue = numpy.array((0,), dtype=dtype) # <<<<<<<<<<<<<< * rbuf = npvalue.data * */ __pyx_k_tuple_35 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_35); __Pyx_INCREF(__pyx_int_0); PyTuple_SET_ITEM(__pyx_k_tuple_35, 0, __pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_35)); __pyx_k_tuple_36 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_36); __Pyx_INCREF(((PyObject *)__pyx_k_tuple_35)); PyTuple_SET_ITEM(__pyx_k_tuple_36, 0, ((PyObject *)__pyx_k_tuple_35)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_35)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_36)); /* "tables/utilsextension.pyx":962 * nelems = H5Tget_nmembers(enumId) * if enumId < 0: * raise HDF5ExtError( # <<<<<<<<<<<<<< * "failed to get element count of HDF5 enumerated type") * */ __pyx_k_tuple_38 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_38)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_38); __Pyx_INCREF(((PyObject *)__pyx_kp_s_37)); PyTuple_SET_ITEM(__pyx_k_tuple_38, 0, ((PyObject *)__pyx_kp_s_37)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_37)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_38)); /* "tables/utilsextension.pyx":968 * ename = H5Tget_member_name(enumId, i) * if ename == NULL: * raise HDF5ExtError( # <<<<<<<<<<<<<< * "failed to get element name from HDF5 enumerated type") * */ __pyx_k_tuple_40 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_40)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_40); __Pyx_INCREF(((PyObject *)__pyx_kp_s_39)); PyTuple_SET_ITEM(__pyx_k_tuple_40, 0, ((PyObject *)__pyx_kp_s_39)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_39)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_40)); /* "tables/utilsextension.pyx":976 * * if H5Tget_member_value(enumId, i, rbuf) < 0: * raise HDF5ExtError( # <<<<<<<<<<<<<< * "failed to get element value from HDF5 enumerated type") * */ __pyx_k_tuple_42 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_42)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_42); __Pyx_INCREF(((PyObject *)__pyx_kp_s_41)); PyTuple_SET_ITEM(__pyx_k_tuple_42, 0, ((PyObject *)__pyx_kp_s_41)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_41)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_42)); /* "tables/utilsextension.pyx":1014 * enumId = H5Tenum_create(baseId) * if enumId < 0: * raise HDF5ExtError("failed to create HDF5 enumerated type") # <<<<<<<<<<<<<< * finally: * if H5Tclose(baseId) < 0: */ __pyx_k_tuple_44 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_44)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_44); __Pyx_INCREF(((PyObject *)__pyx_kp_s_43)); PyTuple_SET_ITEM(__pyx_k_tuple_44, 0, ((PyObject *)__pyx_kp_s_43)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_44)); /* "tables/utilsextension.pyx":1017 * finally: * if H5Tclose(baseId) < 0: * raise HDF5ExtError("failed to close HDF5 base type") # <<<<<<<<<<<<<< * * # Set the name and value of each of the members. */ __pyx_k_tuple_46 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_46); __Pyx_INCREF(((PyObject *)__pyx_kp_s_45)); PyTuple_SET_ITEM(__pyx_k_tuple_46, 0, ((PyObject *)__pyx_kp_s_45)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_46)); /* "tables/utilsextension.pyx":1025 * rbuffer = npValues.data * for i from 0 <= i < len(npNames): * name = npNames[i].encode('utf-8') # <<<<<<<<<<<<<< * rbuf = (rbuffer + bytestride * i) * if H5Tenum_insert(enumId, name, rbuf) < 0: */ __pyx_k_tuple_47 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1025; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_47); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_47, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_47)); /* "tables/utilsextension.pyx":1028 * rbuf = (rbuffer + bytestride * i) * if H5Tenum_insert(enumId, name, rbuf) < 0: * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") # <<<<<<<<<<<<<< * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") */ __pyx_k_tuple_49 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_49); __Pyx_INCREF(((PyObject *)__pyx_kp_s_48)); PyTuple_SET_ITEM(__pyx_k_tuple_49, 0, ((PyObject *)__pyx_kp_s_48)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_48)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_49)); /* "tables/utilsextension.pyx":1030 * e = HDF5ExtError("failed to insert value into HDF5 enumerated type") * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") # <<<<<<<<<<<<<< * raise e * */ __pyx_k_tuple_51 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_51); __Pyx_INCREF(((PyObject *)__pyx_kp_s_50)); PyTuple_SET_ITEM(__pyx_k_tuple_51, 0, ((PyObject *)__pyx_kp_s_50)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_50)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_51)); /* "tables/utilsextension.pyx":1046 * cdef char *cbyteorder = NULL * * encoded_byteorder = byteorder.encode('utf-8') # <<<<<<<<<<<<<< * # Get the C pointer * cbyteorder = encoded_byteorder */ __pyx_k_tuple_52 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_52); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_52, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_52)); /* "tables/utilsextension.pyx":1117 * # (Yes, the ``finally`` clause *is* executed.) * if H5Tclose(enumId) < 0: * raise HDF5ExtError("failed to close HDF5 enumerated type") # <<<<<<<<<<<<<< * * */ __pyx_k_tuple_54 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1117; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_54); __Pyx_INCREF(((PyObject *)__pyx_kp_s_50)); PyTuple_SET_ITEM(__pyx_k_tuple_54, 0, ((PyObject *)__pyx_kp_s_50)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_50)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_54)); /* "tables/utilsextension.pyx":1221 * elif class_id == H5T_STRING: * if H5Tis_variable_str(type_id): * raise TypeError("variable length strings are not supported yet") # <<<<<<<<<<<<<< * stype = "S%s" % itemsize * elif class_id == H5T_TIME: */ __pyx_k_tuple_65 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_65)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_65); __Pyx_INCREF(((PyObject *)__pyx_kp_s_64)); PyTuple_SET_ITEM(__pyx_k_tuple_65, 0, ((PyObject *)__pyx_kp_s_64)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_64)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_65)); /* "tables/utilsextension.pyx":1318 * else: * tid2 = atom_to_hdf5_type(obj, byteorder) * encoded_name = k.encode('utf-8') # <<<<<<<<<<<<<< * H5Tinsert(tid, encoded_name, offset, tid2) * offset = offset + desc._v_dtype[k].itemsize */ __pyx_k_tuple_70 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_70)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_70); __Pyx_INCREF(((PyObject *)__pyx_kp_s_3)); PyTuple_SET_ITEM(__pyx_k_tuple_70, 0, ((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_70)); /* "numpy.pxd":215 * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)): * raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<< * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ __pyx_k_tuple_72 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_72)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_72); __Pyx_INCREF(((PyObject *)__pyx_kp_u_71)); PyTuple_SET_ITEM(__pyx_k_tuple_72, 0, ((PyObject *)__pyx_kp_u_71)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_u_71)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_72)); /* "numpy.pxd":219 * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)): * raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<< * * info.buf = PyArray_DATA(self) */ __pyx_k_tuple_74 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_74)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_74); __Pyx_INCREF(((PyObject *)__pyx_kp_u_73)); PyTuple_SET_ITEM(__pyx_k_tuple_74, 0, ((PyObject *)__pyx_kp_u_73)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_u_73)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_74)); /* "numpy.pxd":257 * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< * if t == NPY_BYTE: f = "b" * elif t == NPY_UBYTE: f = "B" */ __pyx_k_tuple_76 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_76)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_76); __Pyx_INCREF(((PyObject *)__pyx_kp_u_75)); PyTuple_SET_ITEM(__pyx_k_tuple_76, 0, ((PyObject *)__pyx_kp_u_75)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_u_75)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_76)); /* "numpy.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 */ __pyx_k_tuple_79 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_79)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_79); __Pyx_INCREF(((PyObject *)__pyx_kp_u_78)); PyTuple_SET_ITEM(__pyx_k_tuple_79, 0, ((PyObject *)__pyx_kp_u_78)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_u_78)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_79)); /* "numpy.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 */ __pyx_k_tuple_80 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_80)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_80); __Pyx_INCREF(((PyObject *)__pyx_kp_u_75)); PyTuple_SET_ITEM(__pyx_k_tuple_80, 0, ((PyObject *)__pyx_kp_u_75)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_u_75)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_80)); /* "numpy.pxd":823 * t = child.type_num * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< * * # Until ticket #99 is fixed, use integers to avoid warnings */ __pyx_k_tuple_82 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_82)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_82); __Pyx_INCREF(((PyObject *)__pyx_kp_u_81)); PyTuple_SET_ITEM(__pyx_k_tuple_82, 0, ((PyObject *)__pyx_kp_u_81)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_u_81)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_82)); /* "tables/utilsextension.pyx":231 * # This function detects if blosc can work correctly on the current platform. * # This function has been written by Julian Taylor . * def _arch_without_blosc(): # <<<<<<<<<<<<<< * import platform * arch = platform.machine().lower() */ __pyx_k_tuple_91 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_91)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_91); __Pyx_INCREF(((PyObject *)__pyx_n_s__platform)); PyTuple_SET_ITEM(__pyx_k_tuple_91, 0, ((PyObject *)__pyx_n_s__platform)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__platform)); __Pyx_INCREF(((PyObject *)__pyx_n_s__arch)); PyTuple_SET_ITEM(__pyx_k_tuple_91, 1, ((PyObject *)__pyx_n_s__arch)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__arch)); __Pyx_INCREF(((PyObject *)__pyx_n_s__a)); PyTuple_SET_ITEM(__pyx_k_tuple_91, 2, ((PyObject *)__pyx_n_s__a)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__a)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_91)); __pyx_k_codeobj_92 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s___arch_without_blosc, 231, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_92)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":248 * # Important: Blosc calls that modifies global variables in Blosc must be * # called from the same extension where Blosc is registered in HDF5. * def set_blosc_max_threads(nthreads): # <<<<<<<<<<<<<< * """set_blosc_max_threads(nthreads) * */ __pyx_k_tuple_95 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_95)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_95); __Pyx_INCREF(((PyObject *)__pyx_n_s__nthreads)); PyTuple_SET_ITEM(__pyx_k_tuple_95, 0, ((PyObject *)__pyx_n_s__nthreads)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__nthreads)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_95)); __pyx_k_codeobj_96 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s_97, 248, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_96)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":343 * * * def _dump_h5_backtrace(): # <<<<<<<<<<<<<< * cdef object bt = [] * */ __pyx_k_tuple_100 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_100)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_100); __Pyx_INCREF(((PyObject *)__pyx_n_s__bt)); PyTuple_SET_ITEM(__pyx_k_tuple_100, 0, ((PyObject *)__pyx_n_s__bt)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__bt)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_100)); __pyx_k_codeobj_101 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s___dump_h5_backtrace, 343, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_101)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":358 * * * def silence_hdf5_messages(silence=True): # <<<<<<<<<<<<<< * """silence_hdf5_messages(silence=True) * */ __pyx_k_tuple_102 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_102)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_102); __Pyx_INCREF(((PyObject *)__pyx_n_s__silence)); PyTuple_SET_ITEM(__pyx_k_tuple_102, 0, ((PyObject *)__pyx_n_s__silence)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__silence)); __Pyx_INCREF(((PyObject *)__pyx_n_s__err)); PyTuple_SET_ITEM(__pyx_k_tuple_102, 1, ((PyObject *)__pyx_n_s__err)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__err)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_102)); __pyx_k_codeobj_103 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_102, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s_104, 358, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_103)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":545 * * * def encode_filename(object filename): # <<<<<<<<<<<<<< * """Return the encoded filename in the filesystem encoding.""" * */ __pyx_k_tuple_105 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_105)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_105); __Pyx_INCREF(((PyObject *)__pyx_n_s__filename)); PyTuple_SET_ITEM(__pyx_k_tuple_105, 0, ((PyObject *)__pyx_n_s__filename)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__filename)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encname)); PyTuple_SET_ITEM(__pyx_k_tuple_105, 1, ((PyObject *)__pyx_n_s__encname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encname)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoding)); PyTuple_SET_ITEM(__pyx_k_tuple_105, 2, ((PyObject *)__pyx_n_s__encoding)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoding)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_105)); __pyx_k_codeobj_106 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__encode_filename, 545, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_106)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":561 * * # Main functions * def is_hdf5_file(object filename): # <<<<<<<<<<<<<< * """is_hdf5_file(filename) * */ __pyx_k_tuple_107 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_107)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_107); __Pyx_INCREF(((PyObject *)__pyx_n_s__filename)); PyTuple_SET_ITEM(__pyx_k_tuple_107, 0, ((PyObject *)__pyx_n_s__filename)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__filename)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encname)); PyTuple_SET_ITEM(__pyx_k_tuple_107, 1, ((PyObject *)__pyx_n_s__encname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encname)); __Pyx_INCREF(((PyObject *)__pyx_n_s__ret)); PyTuple_SET_ITEM(__pyx_k_tuple_107, 2, ((PyObject *)__pyx_n_s__ret)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ret)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_107)); __pyx_k_codeobj_108 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__is_hdf5_file, 561, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_108)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":587 * * * def is_pytables_file(object filename): # <<<<<<<<<<<<<< * """is_pytables_file(filename) * */ __pyx_k_tuple_109 = PyTuple_New(4); if (unlikely(!__pyx_k_tuple_109)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_109); __Pyx_INCREF(((PyObject *)__pyx_n_s__filename)); PyTuple_SET_ITEM(__pyx_k_tuple_109, 0, ((PyObject *)__pyx_n_s__filename)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__filename)); __Pyx_INCREF(((PyObject *)__pyx_n_s__file_id)); PyTuple_SET_ITEM(__pyx_k_tuple_109, 1, ((PyObject *)__pyx_n_s__file_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__file_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__isptf)); PyTuple_SET_ITEM(__pyx_k_tuple_109, 2, ((PyObject *)__pyx_n_s__isptf)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__isptf)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encname)); PyTuple_SET_ITEM(__pyx_k_tuple_109, 3, ((PyObject *)__pyx_n_s__encname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encname)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_109)); __pyx_k_codeobj_110 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__is_pytables_file, 587, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_110)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":623 * * * def get_hdf5_version(): # <<<<<<<<<<<<<< * """Get the underlying HDF5 library version""" * */ __pyx_k_codeobj_111 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__get_hdf5_version, 623, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_111)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":632 * * * def get_pytables_version(): # <<<<<<<<<<<<<< * """Return this extension version.""" * */ __pyx_k_codeobj_112 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s_113, 632, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_112)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":640 * * * def which_lib_version(str name): # <<<<<<<<<<<<<< * """which_lib_version(name) * */ __pyx_k_tuple_116 = PyTuple_New(12); if (unlikely(!__pyx_k_tuple_116)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_116); __Pyx_INCREF(((PyObject *)__pyx_n_s__name)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 0, ((PyObject *)__pyx_n_s__name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__cname)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 1, ((PyObject *)__pyx_n_s__cname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__cname)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoded_name)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 2, ((PyObject *)__pyx_n_s__encoded_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoded_name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__libnames)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 3, ((PyObject *)__pyx_n_s__libnames)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__libnames)); __Pyx_INCREF(((PyObject *)__pyx_n_s__binver)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 4, ((PyObject *)__pyx_n_s__binver)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__binver)); __Pyx_INCREF(((PyObject *)__pyx_n_s__strver)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 5, ((PyObject *)__pyx_n_s__strver)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__strver)); __Pyx_INCREF(((PyObject *)__pyx_n_s__lzo_version_string)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 6, ((PyObject *)__pyx_n_s__lzo_version_string)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__lzo_version_string)); __Pyx_INCREF(((PyObject *)__pyx_n_s__lzo_version_date)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 7, ((PyObject *)__pyx_n_s__lzo_version_date)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__lzo_version_date)); __Pyx_INCREF(((PyObject *)__pyx_n_s_114)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 8, ((PyObject *)__pyx_n_s_114)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s_114)); __Pyx_INCREF(((PyObject *)__pyx_n_s__bzip2_version_date)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 9, ((PyObject *)__pyx_n_s__bzip2_version_date)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__bzip2_version_date)); __Pyx_INCREF(((PyObject *)__pyx_n_s_115)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 10, ((PyObject *)__pyx_n_s_115)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s_115)); __Pyx_INCREF(((PyObject *)__pyx_n_s__blosc_version_date)); PyTuple_SET_ITEM(__pyx_k_tuple_116, 11, ((PyObject *)__pyx_n_s__blosc_version_date)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__blosc_version_date)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_116)); __pyx_k_codeobj_117 = (PyObject*)__Pyx_PyCode_New(1, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__which_lib_version, 640, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_117)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":693 * * * def which_class(hid_t loc_id, object name): # <<<<<<<<<<<<<< * """Detects a class ID using heuristics.""" * */ __pyx_k_tuple_118 = PyTuple_New(17); if (unlikely(!__pyx_k_tuple_118)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_118); __Pyx_INCREF(((PyObject *)__pyx_n_s__loc_id)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 0, ((PyObject *)__pyx_n_s__loc_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__loc_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__name)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 1, ((PyObject *)__pyx_n_s__name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__class_id)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 2, ((PyObject *)__pyx_n_s__class_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__class_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__layout)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 3, ((PyObject *)__pyx_n_s__layout)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__layout)); __Pyx_INCREF(((PyObject *)__pyx_n_s__nfields)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 4, ((PyObject *)__pyx_n_s__nfields)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__nfields)); __Pyx_INCREF(((PyObject *)__pyx_n_s__field_name1)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 5, ((PyObject *)__pyx_n_s__field_name1)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__field_name1)); __Pyx_INCREF(((PyObject *)__pyx_n_s__field_name2)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 6, ((PyObject *)__pyx_n_s__field_name2)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__field_name2)); __Pyx_INCREF(((PyObject *)__pyx_n_s__i)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 7, ((PyObject *)__pyx_n_s__i)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__i)); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 8, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__dataset_id)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 9, ((PyObject *)__pyx_n_s__dataset_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dataset_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__classId)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 10, ((PyObject *)__pyx_n_s__classId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__classId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__rank)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 11, ((PyObject *)__pyx_n_s__rank)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__rank)); __Pyx_INCREF(((PyObject *)__pyx_n_s__dims)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 12, ((PyObject *)__pyx_n_s__dims)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dims)); __Pyx_INCREF(((PyObject *)__pyx_n_s__maxdims)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 13, ((PyObject *)__pyx_n_s__maxdims)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__maxdims)); __Pyx_INCREF(((PyObject *)__pyx_n_s__byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 14, ((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoded_name)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 15, ((PyObject *)__pyx_n_s__encoded_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoded_name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__iscomplex)); PyTuple_SET_ITEM(__pyx_k_tuple_118, 16, ((PyObject *)__pyx_n_s__iscomplex)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__iscomplex)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_118)); __pyx_k_codeobj_119 = (PyObject*)__Pyx_PyCode_New(2, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_118, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__which_class, 693, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_119)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":792 * * * def get_nested_field(recarray, fieldname): # <<<<<<<<<<<<<< * """Get the maybe nested field named `fieldname` from the `recarray`. * */ __pyx_k_tuple_120 = PyTuple_New(5); if (unlikely(!__pyx_k_tuple_120)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_120); __Pyx_INCREF(((PyObject *)__pyx_n_s__recarray)); PyTuple_SET_ITEM(__pyx_k_tuple_120, 0, ((PyObject *)__pyx_n_s__recarray)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__recarray)); __Pyx_INCREF(((PyObject *)__pyx_n_s__fieldname)); PyTuple_SET_ITEM(__pyx_k_tuple_120, 1, ((PyObject *)__pyx_n_s__fieldname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fieldname)); __Pyx_INCREF(((PyObject *)__pyx_n_s__name)); PyTuple_SET_ITEM(__pyx_k_tuple_120, 2, ((PyObject *)__pyx_n_s__name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__field)); PyTuple_SET_ITEM(__pyx_k_tuple_120, 3, ((PyObject *)__pyx_n_s__field)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__field)); __Pyx_INCREF(((PyObject *)__pyx_n_s__nfieldname)); PyTuple_SET_ITEM(__pyx_k_tuple_120, 4, ((PyObject *)__pyx_n_s__nfieldname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__nfieldname)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_120)); __pyx_k_codeobj_121 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__get_nested_field, 792, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_121)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":820 * * * def get_indices(object start, object stop, object step, hsize_t length): # <<<<<<<<<<<<<< * cdef hssize_t o_start, o_stop, o_step * cdef hsize_t slicelength */ __pyx_k_tuple_122 = PyTuple_New(9); if (unlikely(!__pyx_k_tuple_122)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_122); __Pyx_INCREF(((PyObject *)__pyx_n_s__start)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 0, ((PyObject *)__pyx_n_s__start)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__start)); __Pyx_INCREF(((PyObject *)__pyx_n_s__stop)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 1, ((PyObject *)__pyx_n_s__stop)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__stop)); __Pyx_INCREF(((PyObject *)__pyx_n_s__step)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 2, ((PyObject *)__pyx_n_s__step)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__step)); __Pyx_INCREF(((PyObject *)__pyx_n_s__length)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 3, ((PyObject *)__pyx_n_s__length)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__length)); __Pyx_INCREF(((PyObject *)__pyx_n_s__o_start)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 4, ((PyObject *)__pyx_n_s__o_start)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__o_start)); __Pyx_INCREF(((PyObject *)__pyx_n_s__o_stop)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 5, ((PyObject *)__pyx_n_s__o_stop)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__o_stop)); __Pyx_INCREF(((PyObject *)__pyx_n_s__o_step)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 6, ((PyObject *)__pyx_n_s__o_step)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__o_step)); __Pyx_INCREF(((PyObject *)__pyx_n_s__slicelength)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 7, ((PyObject *)__pyx_n_s__slicelength)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__slicelength)); __Pyx_INCREF(((PyObject *)__pyx_n_s__s)); PyTuple_SET_ITEM(__pyx_k_tuple_122, 8, ((PyObject *)__pyx_n_s__s)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__s)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_122)); __pyx_k_codeobj_123 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_122, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__get_indices, 820, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_123)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":838 * * * def read_f_attr(hid_t file_id, str attr_name): # <<<<<<<<<<<<<< * """Read PyTables file attributes (i.e. in root group). * */ __pyx_k_tuple_124 = PyTuple_New(8); if (unlikely(!__pyx_k_tuple_124)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_124); __Pyx_INCREF(((PyObject *)__pyx_n_s__file_id)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 0, ((PyObject *)__pyx_n_s__file_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__file_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__attr_name)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 1, ((PyObject *)__pyx_n_s__attr_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__attr_name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__size)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 2, ((PyObject *)__pyx_n_s__size)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__size)); __Pyx_INCREF(((PyObject *)__pyx_n_s__attr_value)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 3, ((PyObject *)__pyx_n_s__attr_value)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__attr_value)); __Pyx_INCREF(((PyObject *)__pyx_n_s__cset)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 4, ((PyObject *)__pyx_n_s__cset)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__cset)); __Pyx_INCREF(((PyObject *)__pyx_n_s__retvalue)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 5, ((PyObject *)__pyx_n_s__retvalue)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__retvalue)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoded_attr_name)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 6, ((PyObject *)__pyx_n_s__encoded_attr_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoded_attr_name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__c_attr_name)); PyTuple_SET_ITEM(__pyx_k_tuple_124, 7, ((PyObject *)__pyx_n_s__c_attr_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__c_attr_name)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_124)); __pyx_k_codeobj_125 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__read_f_attr, 838, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_125)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":877 * * * def get_filters(parent_id, name): # <<<<<<<<<<<<<< * """Get a dictionary with the filter names and cd_values""" * */ __pyx_k_tuple_126 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_126)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_126); __Pyx_INCREF(((PyObject *)__pyx_n_s__parent_id)); PyTuple_SET_ITEM(__pyx_k_tuple_126, 0, ((PyObject *)__pyx_n_s__parent_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__parent_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__name)); PyTuple_SET_ITEM(__pyx_k_tuple_126, 1, ((PyObject *)__pyx_n_s__name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoded_name)); PyTuple_SET_ITEM(__pyx_k_tuple_126, 2, ((PyObject *)__pyx_n_s__encoded_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoded_name)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_126)); __pyx_k_codeobj_127 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_126, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__get_filters, 877, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_127)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":891 * * # This is used by several ._convert_types() methods. * def get_type_enum(hid_t h5type): # <<<<<<<<<<<<<< * """_getTypeEnum(h5type) -> hid_t * */ __pyx_k_tuple_128 = PyTuple_New(5); if (unlikely(!__pyx_k_tuple_128)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_128); __Pyx_INCREF(((PyObject *)__pyx_n_s__h5type)); PyTuple_SET_ITEM(__pyx_k_tuple_128, 0, ((PyObject *)__pyx_n_s__h5type)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__h5type)); __Pyx_INCREF(((PyObject *)__pyx_n_s__h5type)); PyTuple_SET_ITEM(__pyx_k_tuple_128, 1, ((PyObject *)__pyx_n_s__h5type)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__h5type)); __Pyx_INCREF(((PyObject *)__pyx_n_s__typeClass)); PyTuple_SET_ITEM(__pyx_k_tuple_128, 2, ((PyObject *)__pyx_n_s__typeClass)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__typeClass)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumId)); PyTuple_SET_ITEM(__pyx_k_tuple_128, 3, ((PyObject *)__pyx_n_s__enumId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumId2)); PyTuple_SET_ITEM(__pyx_k_tuple_128, 4, ((PyObject *)__pyx_n_s__enumId2)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumId2)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_128)); __pyx_k_codeobj_129 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__get_type_enum, 891, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_129)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":926 * * * def enum_from_hdf5(hid_t enumId, str byteorder): # <<<<<<<<<<<<<< * """enum_from_hdf5(enumId) -> (Enum, npType) * */ __pyx_k_tuple_130 = PyTuple_New(13); if (unlikely(!__pyx_k_tuple_130)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_130); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumId)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 0, ((PyObject *)__pyx_n_s__enumId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 1, ((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__baseId)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 2, ((PyObject *)__pyx_n_s__baseId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__baseId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__nelems)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 3, ((PyObject *)__pyx_n_s__nelems)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__nelems)); __Pyx_INCREF(((PyObject *)__pyx_n_s__npenum)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 4, ((PyObject *)__pyx_n_s__npenum)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__npenum)); __Pyx_INCREF(((PyObject *)__pyx_n_s__i)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 5, ((PyObject *)__pyx_n_s__i)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__i)); __Pyx_INCREF(((PyObject *)__pyx_n_s__rbuf)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 6, ((PyObject *)__pyx_n_s__rbuf)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__rbuf)); __Pyx_INCREF(((PyObject *)__pyx_n_s__ename)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 7, ((PyObject *)__pyx_n_s__ename)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ename)); __Pyx_INCREF(((PyObject *)__pyx_n_s__npvalue)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 8, ((PyObject *)__pyx_n_s__npvalue)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__npvalue)); __Pyx_INCREF(((PyObject *)__pyx_n_s__dtype)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 9, ((PyObject *)__pyx_n_s__dtype)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dtype)); __Pyx_INCREF(((PyObject *)__pyx_n_s__pyename)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 10, ((PyObject *)__pyx_n_s__pyename)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__pyename)); __Pyx_INCREF(((PyObject *)__pyx_n_s__atom)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 11, ((PyObject *)__pyx_n_s__atom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__atom)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumDict)); PyTuple_SET_ITEM(__pyx_k_tuple_130, 12, ((PyObject *)__pyx_n_s__enumDict)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumDict)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_130)); __pyx_k_codeobj_131 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_130, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__enum_from_hdf5, 926, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_131)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":988 * * * def enum_to_hdf5(object enumAtom, str byteorder): # <<<<<<<<<<<<<< * """enum_to_hdf5(enumAtom, byteorder) -> hid_t * */ __pyx_k_tuple_132 = PyTuple_New(13); if (unlikely(!__pyx_k_tuple_132)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_132); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumAtom)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 0, ((PyObject *)__pyx_n_s__enumAtom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumAtom)); __Pyx_INCREF(((PyObject *)__pyx_n_s__byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 1, ((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__name)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 2, ((PyObject *)__pyx_n_s__name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__baseId)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 3, ((PyObject *)__pyx_n_s__baseId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__baseId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumId)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 4, ((PyObject *)__pyx_n_s__enumId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__bytestride)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 5, ((PyObject *)__pyx_n_s__bytestride)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__bytestride)); __Pyx_INCREF(((PyObject *)__pyx_n_s__i)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 6, ((PyObject *)__pyx_n_s__i)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__i)); __Pyx_INCREF(((PyObject *)__pyx_n_s__rbuffer)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 7, ((PyObject *)__pyx_n_s__rbuffer)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__rbuffer)); __Pyx_INCREF(((PyObject *)__pyx_n_s__rbuf)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 8, ((PyObject *)__pyx_n_s__rbuf)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__rbuf)); __Pyx_INCREF(((PyObject *)__pyx_n_s__npValues)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 9, ((PyObject *)__pyx_n_s__npValues)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__npValues)); __Pyx_INCREF(((PyObject *)__pyx_n_s__baseAtom)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 10, ((PyObject *)__pyx_n_s__baseAtom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__baseAtom)); __Pyx_INCREF(((PyObject *)__pyx_n_s__npNames)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 11, ((PyObject *)__pyx_n_s__npNames)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__npNames)); __Pyx_INCREF(((PyObject *)__pyx_n_s__e)); PyTuple_SET_ITEM(__pyx_k_tuple_132, 12, ((PyObject *)__pyx_n_s__e)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__e)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_132)); __pyx_k_codeobj_133 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_132, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__enum_to_hdf5, 988, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_133)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":1040 * * * def atom_to_hdf5_type(atom, str byteorder): # <<<<<<<<<<<<<< * cdef hid_t tid = -1 * cdef hsize_t *dims = NULL */ __pyx_k_tuple_134 = PyTuple_New(7); if (unlikely(!__pyx_k_tuple_134)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_134); __Pyx_INCREF(((PyObject *)__pyx_n_s__atom)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 0, ((PyObject *)__pyx_n_s__atom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__atom)); __Pyx_INCREF(((PyObject *)__pyx_n_s__byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 1, ((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__tid)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 2, ((PyObject *)__pyx_n_s__tid)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__tid)); __Pyx_INCREF(((PyObject *)__pyx_n_s__dims)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 3, ((PyObject *)__pyx_n_s__dims)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dims)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoded_byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 4, ((PyObject *)__pyx_n_s__encoded_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoded_byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__cbyteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 5, ((PyObject *)__pyx_n_s__cbyteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__cbyteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__tid2)); PyTuple_SET_ITEM(__pyx_k_tuple_134, 6, ((PyObject *)__pyx_n_s__tid2)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__tid2)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_134)); __pyx_k_codeobj_135 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_134, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__atom_to_hdf5_type, 1040, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_135)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":1091 * * * def load_enum(hid_t type_id): # <<<<<<<<<<<<<< * """load_enum() -> (Enum, npType) * */ __pyx_k_tuple_136 = PyTuple_New(5); if (unlikely(!__pyx_k_tuple_136)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_136); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_136, 0, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_136, 1, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enumId)); PyTuple_SET_ITEM(__pyx_k_tuple_136, 2, ((PyObject *)__pyx_n_s__enumId)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enumId)); __Pyx_INCREF(((PyObject *)__pyx_n_s__c_byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_136, 3, ((PyObject *)__pyx_n_s__c_byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__c_byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_136, 4, ((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_136)); __pyx_k_codeobj_137 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_136, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__load_enum, 1091, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_137)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":1123 * * * def hdf5_to_np_nested_type(hid_t type_id): # <<<<<<<<<<<<<< * """Given a HDF5 `type_id`, return a dtype string representation of it.""" * */ __pyx_k_tuple_138 = PyTuple_New(10); if (unlikely(!__pyx_k_tuple_138)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_138); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 0, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 1, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__member_type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 2, ((PyObject *)__pyx_n_s__member_type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__member_type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__nfields)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 3, ((PyObject *)__pyx_n_s__nfields)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__nfields)); __Pyx_INCREF(((PyObject *)__pyx_n_s__i)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 4, ((PyObject *)__pyx_n_s__i)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__i)); __Pyx_INCREF(((PyObject *)__pyx_n_s__c_colname)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 5, ((PyObject *)__pyx_n_s__c_colname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__c_colname)); __Pyx_INCREF(((PyObject *)__pyx_n_s__class_id)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 6, ((PyObject *)__pyx_n_s__class_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__class_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__desc)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 7, ((PyObject *)__pyx_n_s__desc)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__desc)); __Pyx_INCREF(((PyObject *)__pyx_n_s__colname)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 8, ((PyObject *)__pyx_n_s__colname)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__colname)); __Pyx_INCREF(((PyObject *)__pyx_n_s__atom)); PyTuple_SET_ITEM(__pyx_k_tuple_138, 9, ((PyObject *)__pyx_n_s__atom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__atom)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_138)); __pyx_k_codeobj_139 = (PyObject*)__Pyx_PyCode_New(1, 0, 10, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_138, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s_55, 1123, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_139)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":1165 * * * def hdf5_to_np_ext_type(hid_t type_id, pure_numpy_types=True, atom=False): # <<<<<<<<<<<<<< * """Map the atomic HDF5 type to a string repr of NumPy extended codes. * */ __pyx_k_tuple_140 = PyTuple_New(15); if (unlikely(!__pyx_k_tuple_140)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_140); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 0, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__pure_numpy_types)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 1, ((PyObject *)__pyx_n_s__pure_numpy_types)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__pure_numpy_types)); __Pyx_INCREF(((PyObject *)__pyx_n_s__atom)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 2, ((PyObject *)__pyx_n_s__atom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__atom)); __Pyx_INCREF(((PyObject *)__pyx_n_s__sign)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 3, ((PyObject *)__pyx_n_s__sign)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__sign)); __Pyx_INCREF(((PyObject *)__pyx_n_s__super_type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 4, ((PyObject *)__pyx_n_s__super_type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__super_type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__native_type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 5, ((PyObject *)__pyx_n_s__native_type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__native_type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__class_id)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 6, ((PyObject *)__pyx_n_s__class_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__class_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__itemsize)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 7, ((PyObject *)__pyx_n_s__itemsize)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__itemsize)); __Pyx_INCREF(((PyObject *)__pyx_n_s__stype)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 8, ((PyObject *)__pyx_n_s__stype)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__stype)); __Pyx_INCREF(((PyObject *)__pyx_n_s__shape)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 9, ((PyObject *)__pyx_n_s__shape)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__shape)); __Pyx_INCREF(((PyObject *)__pyx_n_s__shape2)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 10, ((PyObject *)__pyx_n_s__shape2)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__shape2)); __Pyx_INCREF(((PyObject *)__pyx_n_s__dims)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 11, ((PyObject *)__pyx_n_s__dims)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dims)); __Pyx_INCREF(((PyObject *)__pyx_n_s__desc)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 12, ((PyObject *)__pyx_n_s__desc)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__desc)); __Pyx_INCREF(((PyObject *)__pyx_n_s__ndims)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 13, ((PyObject *)__pyx_n_s__ndims)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ndims)); __Pyx_INCREF(((PyObject *)__pyx_n_s__i)); PyTuple_SET_ITEM(__pyx_k_tuple_140, 14, ((PyObject *)__pyx_n_s__i)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__i)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_140)); __pyx_k_codeobj_141 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_140, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__hdf5_to_np_ext_type, 1165, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_141)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":1270 * * * def atom_from_hdf5_type(hid_t type_id, pure_numpy_types=False): # <<<<<<<<<<<<<< * """Get an atom from a type_id. * */ __pyx_k_tuple_142 = PyTuple_New(12); if (unlikely(!__pyx_k_tuple_142)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_142); __Pyx_INCREF(((PyObject *)__pyx_n_s__type_id)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 0, ((PyObject *)__pyx_n_s__type_id)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type_id)); __Pyx_INCREF(((PyObject *)__pyx_n_s__pure_numpy_types)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 1, ((PyObject *)__pyx_n_s__pure_numpy_types)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__pure_numpy_types)); __Pyx_INCREF(((PyObject *)__pyx_n_s__stype)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 2, ((PyObject *)__pyx_n_s__stype)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__stype)); __Pyx_INCREF(((PyObject *)__pyx_n_s__shape)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 3, ((PyObject *)__pyx_n_s__shape)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__shape)); __Pyx_INCREF(((PyObject *)__pyx_n_s__atom_)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 4, ((PyObject *)__pyx_n_s__atom_)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__atom_)); __Pyx_INCREF(((PyObject *)__pyx_n_s__sctype)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 5, ((PyObject *)__pyx_n_s__sctype)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__sctype)); __Pyx_INCREF(((PyObject *)__pyx_n_s__tsize)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 6, ((PyObject *)__pyx_n_s__tsize)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__tsize)); __Pyx_INCREF(((PyObject *)__pyx_n_s__kind)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 7, ((PyObject *)__pyx_n_s__kind)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__kind)); __Pyx_INCREF(((PyObject *)__pyx_n_s__dflt)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 8, ((PyObject *)__pyx_n_s__dflt)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dflt)); __Pyx_INCREF(((PyObject *)__pyx_n_s__base)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 9, ((PyObject *)__pyx_n_s__base)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__base)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enum)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 10, ((PyObject *)__pyx_n_s__enum)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enum)); __Pyx_INCREF(((PyObject *)__pyx_n_s__nptype)); PyTuple_SET_ITEM(__pyx_k_tuple_142, 11, ((PyObject *)__pyx_n_s__nptype)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__nptype)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_142)); __pyx_k_codeobj_143 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_142, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__atom_from_hdf5_type, 1270, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_143)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "tables/utilsextension.pyx":1300 * * * def create_nested_type(object desc, str byteorder): # <<<<<<<<<<<<<< * """Create a nested type based on a description and return an HDF5 type.""" * */ __pyx_k_tuple_144 = PyTuple_New(8); if (unlikely(!__pyx_k_tuple_144)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_k_tuple_144); __Pyx_INCREF(((PyObject *)__pyx_n_s__desc)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 0, ((PyObject *)__pyx_n_s__desc)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__desc)); __Pyx_INCREF(((PyObject *)__pyx_n_s__byteorder)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 1, ((PyObject *)__pyx_n_s__byteorder)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__byteorder)); __Pyx_INCREF(((PyObject *)__pyx_n_s__tid)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 2, ((PyObject *)__pyx_n_s__tid)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__tid)); __Pyx_INCREF(((PyObject *)__pyx_n_s__tid2)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 3, ((PyObject *)__pyx_n_s__tid2)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__tid2)); __Pyx_INCREF(((PyObject *)__pyx_n_s__offset)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 4, ((PyObject *)__pyx_n_s__offset)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__offset)); __Pyx_INCREF(((PyObject *)__pyx_n_s__encoded_name)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 5, ((PyObject *)__pyx_n_s__encoded_name)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__encoded_name)); __Pyx_INCREF(((PyObject *)__pyx_n_s__k)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 6, ((PyObject *)__pyx_n_s__k)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__k)); __Pyx_INCREF(((PyObject *)__pyx_n_s__obj)); PyTuple_SET_ITEM(__pyx_k_tuple_144, 7, ((PyObject *)__pyx_n_s__obj)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__obj)); __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_144)); __pyx_k_codeobj_145 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_144, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_93, __pyx_n_s__create_nested_type, 1300, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_145)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; return 0; __pyx_L1_error:; return -1; } #if PY_MAJOR_VERSION < 3 PyMODINIT_FUNC initutilsextension(void); /*proto*/ PyMODINIT_FUNC initutilsextension(void) #else PyMODINIT_FUNC PyInit_utilsextension(void); /*proto*/ PyMODINIT_FUNC PyInit_utilsextension(void) #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; int __pyx_t_11; __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"); } #endif __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_utilsextension(void)", 0); if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #ifdef __Pyx_CyFunction_USED if (__Pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4(__Pyx_NAMESTR("utilsextension"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_83), 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (!PyDict_GetItemString(modules, "tables.utilsextension")) { if (unlikely(PyDict_SetItemString(modules, "tables.utilsextension", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } } #endif __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #if CYTHON_COMPILING_IN_PYPY Py_INCREF(__pyx_b); #endif if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; /*--- Initialize various global constants etc. ---*/ if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_module_is_main_tables__utilsextension) { if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; } /*--- Builtin init code ---*/ if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /*--- Constants init code ---*/ if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /*--- Global init code ---*/ /*--- Variable export code ---*/ /*--- Function export code ---*/ if (__Pyx_ExportFunction("malloc_dims", (void (*)(void))__pyx_f_6tables_14utilsextension_malloc_dims, "hsize_t *(PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__Pyx_ExportFunction("get_native_type", (void (*)(void))__pyx_f_6tables_14utilsextension_get_native_type, "hid_t (hid_t)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__Pyx_ExportFunction("cstr_to_pystr", (void (*)(void))__pyx_f_6tables_14utilsextension_cstr_to_pystr, "PyObject *(const char *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /*--- 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_filename = __pyx_f[2]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), 0); if (unlikely(!__pyx_ptype_7cpython_4bool_bool)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[4]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ /* "tables/utilsextension.pyx":15 * """Cython utilities for PyTables and HDF5 library.""" * * import sys # <<<<<<<<<<<<<< * import warnings * */ __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__sys), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__sys, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":16 * * import sys * import warnings # <<<<<<<<<<<<<< * * try: */ __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__warnings), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__warnings, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":18 * import warnings * * try: # <<<<<<<<<<<<<< * import zlib * zlib_imported = True */ { __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { /* "tables/utilsextension.pyx":19 * * try: * import zlib # <<<<<<<<<<<<<< * zlib_imported = True * except ImportError: */ __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__zlib), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L2_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__zlib, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L2_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":20 * try: * import zlib * zlib_imported = True # <<<<<<<<<<<<<< * except ImportError: * zlib_imported = False */ __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L2_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__zlib_imported, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L2_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L9_try_end; __pyx_L2_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":21 * import zlib * zlib_imported = True * except ImportError: # <<<<<<<<<<<<<< * zlib_imported = False * */ __pyx_t_5 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); if (__pyx_t_5) { __Pyx_AddTraceback("tables.utilsextension", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); /* "tables/utilsextension.pyx":22 * zlib_imported = True * except ImportError: * zlib_imported = False # <<<<<<<<<<<<<< * * import numpy */ __pyx_t_8 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} __Pyx_GOTREF(__pyx_t_8); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__zlib_imported, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L3_exception_handled; } __pyx_L4_except_error:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L1_error; __pyx_L3_exception_handled:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); __pyx_L9_try_end:; } /* "tables/utilsextension.pyx":24 * zlib_imported = False * * import numpy # <<<<<<<<<<<<<< * * from tables.description import Description, Col */ __pyx_t_7 = __Pyx_Import(((PyObject *)__pyx_n_s__numpy), 0, -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__numpy, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":26 * import numpy * * from tables.description import Description, Col # <<<<<<<<<<<<<< * from tables.misc.enum import Enum * from tables.exceptions import HDF5ExtError */ __pyx_t_7 = PyList_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(((PyObject *)__pyx_n_s__Description)); PyList_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_n_s__Description)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__Description)); __Pyx_INCREF(((PyObject *)__pyx_n_s__Col)); PyList_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s__Col)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__Col)); __pyx_t_6 = __Pyx_Import(((PyObject *)__pyx_n_s_84), ((PyObject *)__pyx_t_7), -1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__Description); if (__pyx_t_7 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__Description); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Description, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__Col); if (__pyx_t_7 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__Col); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Col, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":27 * * from tables.description import Description, Col * from tables.misc.enum import Enum # <<<<<<<<<<<<<< * from tables.exceptions import HDF5ExtError * from tables.atom import Atom, EnumAtom */ __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(((PyObject *)__pyx_n_s__Enum)); PyList_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_n_s__Enum)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__Enum)); __pyx_t_7 = __Pyx_Import(((PyObject *)__pyx_n_s_85), ((PyObject *)__pyx_t_6), -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__Enum); if (__pyx_t_6 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__Enum); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Enum, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":28 * from tables.description import Description, Col * from tables.misc.enum import Enum * from tables.exceptions import HDF5ExtError # <<<<<<<<<<<<<< * from tables.atom import Atom, EnumAtom * */ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(((PyObject *)__pyx_n_s__HDF5ExtError)); PyList_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_n_s__HDF5ExtError)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__HDF5ExtError)); __pyx_t_6 = __Pyx_Import(((PyObject *)__pyx_n_s_86), ((PyObject *)__pyx_t_7), -1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__HDF5ExtError); if (__pyx_t_7 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HDF5ExtError, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":29 * from tables.misc.enum import Enum * from tables.exceptions import HDF5ExtError * from tables.atom import Atom, EnumAtom # <<<<<<<<<<<<<< * * from tables.utils import check_file_access */ __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(((PyObject *)__pyx_n_s__Atom)); PyList_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_n_s__Atom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__Atom)); __Pyx_INCREF(((PyObject *)__pyx_n_s__EnumAtom)); PyList_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_n_s__EnumAtom)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__EnumAtom)); __pyx_t_7 = __Pyx_Import(((PyObject *)__pyx_n_s_87), ((PyObject *)__pyx_t_6), -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__Atom); if (__pyx_t_6 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__Atom); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Atom, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__EnumAtom); if (__pyx_t_6 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__EnumAtom); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EnumAtom, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":31 * from tables.atom import Atom, EnumAtom * * from tables.utils import check_file_access # <<<<<<<<<<<<<< * from tables._past import previous_api * */ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(((PyObject *)__pyx_n_s__check_file_access)); PyList_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_n_s__check_file_access)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__check_file_access)); __pyx_t_6 = __Pyx_Import(((PyObject *)__pyx_n_s_88), ((PyObject *)__pyx_t_7), -1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__check_file_access); if (__pyx_t_7 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__check_file_access); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__check_file_access, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":32 * * from tables.utils import check_file_access * from tables._past import previous_api # <<<<<<<<<<<<<< * * from cpython cimport PY_MAJOR_VERSION */ __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(((PyObject *)__pyx_n_s__previous_api)); PyList_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_n_s__previous_api)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__previous_api)); __pyx_t_7 = __Pyx_Import(((PyObject *)__pyx_n_s_89), ((PyObject *)__pyx_t_6), -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__previous_api); if (__pyx_t_6 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__previous_api, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":75 * * # Platform-dependent types * if sys.byteorder == "little": # <<<<<<<<<<<<<< * platform_byteorder = H5T_ORDER_LE * # Standard types, independent of the byteorder */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__byteorder); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_RichCompare(__pyx_t_6, ((PyObject *)__pyx_n_s__little), Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_9) { /* "tables/utilsextension.pyx":76 * # Platform-dependent types * if sys.byteorder == "little": * platform_byteorder = H5T_ORDER_LE # <<<<<<<<<<<<<< * # Standard types, independent of the byteorder * H5T_STD_B8 = H5T_STD_B8LE */ __pyx_t_7 = PyInt_FromLong(H5T_ORDER_LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__platform_byteorder, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":78 * platform_byteorder = H5T_ORDER_LE * # Standard types, independent of the byteorder * H5T_STD_B8 = H5T_STD_B8LE # <<<<<<<<<<<<<< * H5T_STD_I8 = H5T_STD_I8LE * H5T_STD_I16 = H5T_STD_I16LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_B8LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_B8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":79 * # Standard types, independent of the byteorder * H5T_STD_B8 = H5T_STD_B8LE * H5T_STD_I8 = H5T_STD_I8LE # <<<<<<<<<<<<<< * H5T_STD_I16 = H5T_STD_I16LE * H5T_STD_I32 = H5T_STD_I32LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I8LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":80 * H5T_STD_B8 = H5T_STD_B8LE * H5T_STD_I8 = H5T_STD_I8LE * H5T_STD_I16 = H5T_STD_I16LE # <<<<<<<<<<<<<< * H5T_STD_I32 = H5T_STD_I32LE * H5T_STD_I64 = H5T_STD_I64LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I16LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I16, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":81 * H5T_STD_I8 = H5T_STD_I8LE * H5T_STD_I16 = H5T_STD_I16LE * H5T_STD_I32 = H5T_STD_I32LE # <<<<<<<<<<<<<< * H5T_STD_I64 = H5T_STD_I64LE * H5T_STD_U8 = H5T_STD_U8LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I32LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":82 * H5T_STD_I16 = H5T_STD_I16LE * H5T_STD_I32 = H5T_STD_I32LE * H5T_STD_I64 = H5T_STD_I64LE # <<<<<<<<<<<<<< * H5T_STD_U8 = H5T_STD_U8LE * H5T_STD_U16 = H5T_STD_U16LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I64LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":83 * H5T_STD_I32 = H5T_STD_I32LE * H5T_STD_I64 = H5T_STD_I64LE * H5T_STD_U8 = H5T_STD_U8LE # <<<<<<<<<<<<<< * H5T_STD_U16 = H5T_STD_U16LE * H5T_STD_U32 = H5T_STD_U32LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U8LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":84 * H5T_STD_I64 = H5T_STD_I64LE * H5T_STD_U8 = H5T_STD_U8LE * H5T_STD_U16 = H5T_STD_U16LE # <<<<<<<<<<<<<< * H5T_STD_U32 = H5T_STD_U32LE * H5T_STD_U64 = H5T_STD_U64LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U16LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U16, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":85 * H5T_STD_U8 = H5T_STD_U8LE * H5T_STD_U16 = H5T_STD_U16LE * H5T_STD_U32 = H5T_STD_U32LE # <<<<<<<<<<<<<< * H5T_STD_U64 = H5T_STD_U64LE * H5T_IEEE_F32 = H5T_IEEE_F32LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U32LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":86 * H5T_STD_U16 = H5T_STD_U16LE * H5T_STD_U32 = H5T_STD_U32LE * H5T_STD_U64 = H5T_STD_U64LE # <<<<<<<<<<<<<< * H5T_IEEE_F32 = H5T_IEEE_F32LE * H5T_IEEE_F64 = H5T_IEEE_F64LE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U64LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":87 * H5T_STD_U32 = H5T_STD_U32LE * H5T_STD_U64 = H5T_STD_U64LE * H5T_IEEE_F32 = H5T_IEEE_F32LE # <<<<<<<<<<<<<< * H5T_IEEE_F64 = H5T_IEEE_F64LE * H5T_UNIX_D32 = H5T_UNIX_D32LE */ __pyx_t_7 = PyInt_FromLong(H5T_IEEE_F32LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_IEEE_F32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":88 * H5T_STD_U64 = H5T_STD_U64LE * H5T_IEEE_F32 = H5T_IEEE_F32LE * H5T_IEEE_F64 = H5T_IEEE_F64LE # <<<<<<<<<<<<<< * H5T_UNIX_D32 = H5T_UNIX_D32LE * H5T_UNIX_D64 = H5T_UNIX_D64LE */ __pyx_t_7 = PyInt_FromLong(H5T_IEEE_F64LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_IEEE_F64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":89 * H5T_IEEE_F32 = H5T_IEEE_F32LE * H5T_IEEE_F64 = H5T_IEEE_F64LE * H5T_UNIX_D32 = H5T_UNIX_D32LE # <<<<<<<<<<<<<< * H5T_UNIX_D64 = H5T_UNIX_D64LE * else: # sys.byteorder == "big" */ __pyx_t_7 = PyInt_FromLong(H5T_UNIX_D32LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_UNIX_D32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":90 * H5T_IEEE_F64 = H5T_IEEE_F64LE * H5T_UNIX_D32 = H5T_UNIX_D32LE * H5T_UNIX_D64 = H5T_UNIX_D64LE # <<<<<<<<<<<<<< * else: # sys.byteorder == "big" * platform_byteorder = H5T_ORDER_BE */ __pyx_t_7 = PyInt_FromLong(H5T_UNIX_D64LE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_UNIX_D64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L12; } /*else*/ { /* "tables/utilsextension.pyx":92 * H5T_UNIX_D64 = H5T_UNIX_D64LE * else: # sys.byteorder == "big" * platform_byteorder = H5T_ORDER_BE # <<<<<<<<<<<<<< * # Standard types, independent of the byteorder * H5T_STD_B8 = H5T_STD_B8BE */ __pyx_t_7 = PyInt_FromLong(H5T_ORDER_BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__platform_byteorder, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":94 * platform_byteorder = H5T_ORDER_BE * # Standard types, independent of the byteorder * H5T_STD_B8 = H5T_STD_B8BE # <<<<<<<<<<<<<< * H5T_STD_I8 = H5T_STD_I8BE * H5T_STD_I16 = H5T_STD_I16BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_B8BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_B8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":95 * # Standard types, independent of the byteorder * H5T_STD_B8 = H5T_STD_B8BE * H5T_STD_I8 = H5T_STD_I8BE # <<<<<<<<<<<<<< * H5T_STD_I16 = H5T_STD_I16BE * H5T_STD_I32 = H5T_STD_I32BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I8BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":96 * H5T_STD_B8 = H5T_STD_B8BE * H5T_STD_I8 = H5T_STD_I8BE * H5T_STD_I16 = H5T_STD_I16BE # <<<<<<<<<<<<<< * H5T_STD_I32 = H5T_STD_I32BE * H5T_STD_I64 = H5T_STD_I64BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I16BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I16, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":97 * H5T_STD_I8 = H5T_STD_I8BE * H5T_STD_I16 = H5T_STD_I16BE * H5T_STD_I32 = H5T_STD_I32BE # <<<<<<<<<<<<<< * H5T_STD_I64 = H5T_STD_I64BE * H5T_STD_U8 = H5T_STD_U8BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I32BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":98 * H5T_STD_I16 = H5T_STD_I16BE * H5T_STD_I32 = H5T_STD_I32BE * H5T_STD_I64 = H5T_STD_I64BE # <<<<<<<<<<<<<< * H5T_STD_U8 = H5T_STD_U8BE * H5T_STD_U16 = H5T_STD_U16BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_I64BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_I64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":99 * H5T_STD_I32 = H5T_STD_I32BE * H5T_STD_I64 = H5T_STD_I64BE * H5T_STD_U8 = H5T_STD_U8BE # <<<<<<<<<<<<<< * H5T_STD_U16 = H5T_STD_U16BE * H5T_STD_U32 = H5T_STD_U32BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U8BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":100 * H5T_STD_I64 = H5T_STD_I64BE * H5T_STD_U8 = H5T_STD_U8BE * H5T_STD_U16 = H5T_STD_U16BE # <<<<<<<<<<<<<< * H5T_STD_U32 = H5T_STD_U32BE * H5T_STD_U64 = H5T_STD_U64BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U16BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U16, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":101 * H5T_STD_U8 = H5T_STD_U8BE * H5T_STD_U16 = H5T_STD_U16BE * H5T_STD_U32 = H5T_STD_U32BE # <<<<<<<<<<<<<< * H5T_STD_U64 = H5T_STD_U64BE * H5T_IEEE_F32 = H5T_IEEE_F32BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U32BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":102 * H5T_STD_U16 = H5T_STD_U16BE * H5T_STD_U32 = H5T_STD_U32BE * H5T_STD_U64 = H5T_STD_U64BE # <<<<<<<<<<<<<< * H5T_IEEE_F32 = H5T_IEEE_F32BE * H5T_IEEE_F64 = H5T_IEEE_F64BE */ __pyx_t_7 = PyInt_FromLong(H5T_STD_U64BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_STD_U64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":103 * H5T_STD_U32 = H5T_STD_U32BE * H5T_STD_U64 = H5T_STD_U64BE * H5T_IEEE_F32 = H5T_IEEE_F32BE # <<<<<<<<<<<<<< * H5T_IEEE_F64 = H5T_IEEE_F64BE * H5T_UNIX_D32 = H5T_UNIX_D32BE */ __pyx_t_7 = PyInt_FromLong(H5T_IEEE_F32BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_IEEE_F32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":104 * H5T_STD_U64 = H5T_STD_U64BE * H5T_IEEE_F32 = H5T_IEEE_F32BE * H5T_IEEE_F64 = H5T_IEEE_F64BE # <<<<<<<<<<<<<< * H5T_UNIX_D32 = H5T_UNIX_D32BE * H5T_UNIX_D64 = H5T_UNIX_D64BE */ __pyx_t_7 = PyInt_FromLong(H5T_IEEE_F64BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_IEEE_F64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":105 * H5T_IEEE_F32 = H5T_IEEE_F32BE * H5T_IEEE_F64 = H5T_IEEE_F64BE * H5T_UNIX_D32 = H5T_UNIX_D32BE # <<<<<<<<<<<<<< * H5T_UNIX_D64 = H5T_UNIX_D64BE * */ __pyx_t_7 = PyInt_FromLong(H5T_UNIX_D32BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_UNIX_D32, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":106 * H5T_IEEE_F64 = H5T_IEEE_F64BE * H5T_UNIX_D32 = H5T_UNIX_D32BE * H5T_UNIX_D64 = H5T_UNIX_D64BE # <<<<<<<<<<<<<< * * */ __pyx_t_7 = PyInt_FromLong(H5T_UNIX_D64BE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__H5T_UNIX_D64, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_L12:; /* "tables/utilsextension.pyx":114 * # List only types that are susceptible of changing byteorder * # (complex & enumerated types are special and should not be listed here) * pttype_to_hdf5 = { # <<<<<<<<<<<<<< * 'int8' : H5T_STD_I8, 'uint8' : H5T_STD_U8, * 'int16' : H5T_STD_I16, 'uint16' : H5T_STD_U16, */ __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_7)); /* "tables/utilsextension.pyx":115 * # (complex & enumerated types are special and should not be listed here) * pttype_to_hdf5 = { * 'int8' : H5T_STD_I8, 'uint8' : H5T_STD_U8, # <<<<<<<<<<<<<< * 'int16' : H5T_STD_I16, 'uint16' : H5T_STD_U16, * 'int32' : H5T_STD_I32, 'uint32' : H5T_STD_U32, */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_I8); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__int8), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_U8); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__uint8), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":116 * pttype_to_hdf5 = { * 'int8' : H5T_STD_I8, 'uint8' : H5T_STD_U8, * 'int16' : H5T_STD_I16, 'uint16' : H5T_STD_U16, # <<<<<<<<<<<<<< * 'int32' : H5T_STD_I32, 'uint32' : H5T_STD_U32, * 'int64' : H5T_STD_I64, 'uint64' : H5T_STD_U64, */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_I16); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__int16), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_U16); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__uint16), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":117 * 'int8' : H5T_STD_I8, 'uint8' : H5T_STD_U8, * 'int16' : H5T_STD_I16, 'uint16' : H5T_STD_U16, * 'int32' : H5T_STD_I32, 'uint32' : H5T_STD_U32, # <<<<<<<<<<<<<< * 'int64' : H5T_STD_I64, 'uint64' : H5T_STD_U64, * 'float32': H5T_IEEE_F32, 'float64': H5T_IEEE_F64, */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_I32); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__int32), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_U32); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__uint32), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":118 * 'int16' : H5T_STD_I16, 'uint16' : H5T_STD_U16, * 'int32' : H5T_STD_I32, 'uint32' : H5T_STD_U32, * 'int64' : H5T_STD_I64, 'uint64' : H5T_STD_U64, # <<<<<<<<<<<<<< * 'float32': H5T_IEEE_F32, 'float64': H5T_IEEE_F64, * 'float96': H5T_NATIVE_LDOUBLE, 'float128': H5T_NATIVE_LDOUBLE, */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_I64); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__int64), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_STD_U64); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__uint64), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":119 * 'int32' : H5T_STD_I32, 'uint32' : H5T_STD_U32, * 'int64' : H5T_STD_I64, 'uint64' : H5T_STD_U64, * 'float32': H5T_IEEE_F32, 'float64': H5T_IEEE_F64, # <<<<<<<<<<<<<< * 'float96': H5T_NATIVE_LDOUBLE, 'float128': H5T_NATIVE_LDOUBLE, * 'time32' : H5T_UNIX_D32, 'time64' : H5T_UNIX_D64, */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_IEEE_F32); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__float32), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_IEEE_F64); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__float64), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":120 * 'int64' : H5T_STD_I64, 'uint64' : H5T_STD_U64, * 'float32': H5T_IEEE_F32, 'float64': H5T_IEEE_F64, * 'float96': H5T_NATIVE_LDOUBLE, 'float128': H5T_NATIVE_LDOUBLE, # <<<<<<<<<<<<<< * 'time32' : H5T_UNIX_D32, 'time64' : H5T_UNIX_D64, * } */ __pyx_t_6 = PyInt_FromLong(H5T_NATIVE_LDOUBLE); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__float96), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyInt_FromLong(H5T_NATIVE_LDOUBLE); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__float128), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":121 * 'float32': H5T_IEEE_F32, 'float64': H5T_IEEE_F64, * 'float96': H5T_NATIVE_LDOUBLE, 'float128': H5T_NATIVE_LDOUBLE, * 'time32' : H5T_UNIX_D32, 'time64' : H5T_UNIX_D64, # <<<<<<<<<<<<<< * } * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_UNIX_D32); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__time32), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__H5T_UNIX_D64); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__time64), __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__pttype_to_hdf5, ((PyObject *)__pyx_t_7)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":125 * * # Special cases whose byteorder cannot be directly changed * pt_special_kinds = ['complex', 'string', 'enum', 'bool'] # <<<<<<<<<<<<<< * * # Conversion table from NumPy extended codes prefixes to PyTables kinds */ __pyx_t_7 = PyList_New(4); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(((PyObject *)__pyx_n_s__complex)); PyList_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_n_s__complex)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__complex)); __Pyx_INCREF(((PyObject *)__pyx_n_s__string)); PyList_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s__string)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__string)); __Pyx_INCREF(((PyObject *)__pyx_n_s__enum)); PyList_SET_ITEM(__pyx_t_7, 2, ((PyObject *)__pyx_n_s__enum)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__enum)); __Pyx_INCREF(((PyObject *)__pyx_n_s__bool)); PyList_SET_ITEM(__pyx_t_7, 3, ((PyObject *)__pyx_n_s__bool)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__bool)); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__pt_special_kinds, ((PyObject *)__pyx_t_7)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":128 * * # Conversion table from NumPy extended codes prefixes to PyTables kinds * npext_prefixes_to_ptkinds = { # <<<<<<<<<<<<<< * "S": "string", * "b": "bool", */ __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_7)); if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__S), ((PyObject *)__pyx_n_s__string)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__b), ((PyObject *)__pyx_n_s__bool)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__i), ((PyObject *)__pyx_n_s__int)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__u), ((PyObject *)__pyx_n_s__uint)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__f), ((PyObject *)__pyx_n_s__float)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__c), ((PyObject *)__pyx_n_s__complex)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__t), ((PyObject *)__pyx_n_s__time)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__e), ((PyObject *)__pyx_n_s__enum)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyObject_SetAttr(__pyx_m, __pyx_n_s_69, ((PyObject *)__pyx_t_7)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":140 * * # Names of HDF5 classes * hdf5_class_to_string = { # <<<<<<<<<<<<<< * H5T_NO_CLASS : 'H5T_NO_CLASS', * H5T_INTEGER : 'H5T_INTEGER', */ __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_7)); /* "tables/utilsextension.pyx":141 * # Names of HDF5 classes * hdf5_class_to_string = { * H5T_NO_CLASS : 'H5T_NO_CLASS', # <<<<<<<<<<<<<< * H5T_INTEGER : 'H5T_INTEGER', * H5T_FLOAT : 'H5T_FLOAT', */ __pyx_t_6 = PyInt_FromLong(H5T_NO_CLASS); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_NO_CLASS)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":142 * hdf5_class_to_string = { * H5T_NO_CLASS : 'H5T_NO_CLASS', * H5T_INTEGER : 'H5T_INTEGER', # <<<<<<<<<<<<<< * H5T_FLOAT : 'H5T_FLOAT', * H5T_TIME : 'H5T_TIME', */ __pyx_t_6 = PyInt_FromLong(H5T_INTEGER); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_INTEGER)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":143 * H5T_NO_CLASS : 'H5T_NO_CLASS', * H5T_INTEGER : 'H5T_INTEGER', * H5T_FLOAT : 'H5T_FLOAT', # <<<<<<<<<<<<<< * H5T_TIME : 'H5T_TIME', * H5T_STRING : 'H5T_STRING', */ __pyx_t_6 = PyInt_FromLong(H5T_FLOAT); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_FLOAT)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":144 * H5T_INTEGER : 'H5T_INTEGER', * H5T_FLOAT : 'H5T_FLOAT', * H5T_TIME : 'H5T_TIME', # <<<<<<<<<<<<<< * H5T_STRING : 'H5T_STRING', * H5T_BITFIELD : 'H5T_BITFIELD', */ __pyx_t_6 = PyInt_FromLong(H5T_TIME); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_TIME)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":145 * H5T_FLOAT : 'H5T_FLOAT', * H5T_TIME : 'H5T_TIME', * H5T_STRING : 'H5T_STRING', # <<<<<<<<<<<<<< * H5T_BITFIELD : 'H5T_BITFIELD', * H5T_OPAQUE : 'H5T_OPAQUE', */ __pyx_t_6 = PyInt_FromLong(H5T_STRING); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_STRING)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":146 * H5T_TIME : 'H5T_TIME', * H5T_STRING : 'H5T_STRING', * H5T_BITFIELD : 'H5T_BITFIELD', # <<<<<<<<<<<<<< * H5T_OPAQUE : 'H5T_OPAQUE', * H5T_COMPOUND : 'H5T_COMPOUND', */ __pyx_t_6 = PyInt_FromLong(H5T_BITFIELD); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_BITFIELD)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":147 * H5T_STRING : 'H5T_STRING', * H5T_BITFIELD : 'H5T_BITFIELD', * H5T_OPAQUE : 'H5T_OPAQUE', # <<<<<<<<<<<<<< * H5T_COMPOUND : 'H5T_COMPOUND', * H5T_REFERENCE : 'H5T_REFERENCE', */ __pyx_t_6 = PyInt_FromLong(H5T_OPAQUE); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_OPAQUE)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":148 * H5T_BITFIELD : 'H5T_BITFIELD', * H5T_OPAQUE : 'H5T_OPAQUE', * H5T_COMPOUND : 'H5T_COMPOUND', # <<<<<<<<<<<<<< * H5T_REFERENCE : 'H5T_REFERENCE', * H5T_ENUM : 'H5T_ENUM', */ __pyx_t_6 = PyInt_FromLong(H5T_COMPOUND); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_COMPOUND)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":149 * H5T_OPAQUE : 'H5T_OPAQUE', * H5T_COMPOUND : 'H5T_COMPOUND', * H5T_REFERENCE : 'H5T_REFERENCE', # <<<<<<<<<<<<<< * H5T_ENUM : 'H5T_ENUM', * H5T_VLEN : 'H5T_VLEN', */ __pyx_t_6 = PyInt_FromLong(H5T_REFERENCE); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_REFERENCE)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":150 * H5T_COMPOUND : 'H5T_COMPOUND', * H5T_REFERENCE : 'H5T_REFERENCE', * H5T_ENUM : 'H5T_ENUM', # <<<<<<<<<<<<<< * H5T_VLEN : 'H5T_VLEN', * H5T_ARRAY : 'H5T_ARRAY', */ __pyx_t_6 = PyInt_FromLong(H5T_ENUM); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_ENUM)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":151 * H5T_REFERENCE : 'H5T_REFERENCE', * H5T_ENUM : 'H5T_ENUM', * H5T_VLEN : 'H5T_VLEN', # <<<<<<<<<<<<<< * H5T_ARRAY : 'H5T_ARRAY', * } */ __pyx_t_6 = PyInt_FromLong(H5T_VLEN); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_VLEN)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":152 * H5T_ENUM : 'H5T_ENUM', * H5T_VLEN : 'H5T_VLEN', * H5T_ARRAY : 'H5T_ARRAY', # <<<<<<<<<<<<<< * } * */ __pyx_t_6 = PyInt_FromLong(H5T_ARRAY); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_7, __pyx_t_6, ((PyObject *)__pyx_n_s__H5T_ARRAY)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s_63, ((PyObject *)__pyx_t_7)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":157 * * # Depprecated API * PTTypeToHDF5 = pttype_to_hdf5 # <<<<<<<<<<<<<< * PTSpecialKinds = pt_special_kinds * NPExtPrefixesToPTKinds = npext_prefixes_to_ptkinds */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__pttype_to_hdf5); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PTTypeToHDF5, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":158 * # Depprecated API * PTTypeToHDF5 = pttype_to_hdf5 * PTSpecialKinds = pt_special_kinds # <<<<<<<<<<<<<< * NPExtPrefixesToPTKinds = npext_prefixes_to_ptkinds * HDF5ClassToString = hdf5_class_to_string */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__pt_special_kinds); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PTSpecialKinds, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":159 * PTTypeToHDF5 = pttype_to_hdf5 * PTSpecialKinds = pt_special_kinds * NPExtPrefixesToPTKinds = npext_prefixes_to_ptkinds # <<<<<<<<<<<<<< * HDF5ClassToString = hdf5_class_to_string * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s_69); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s_90, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":160 * PTSpecialKinds = pt_special_kinds * NPExtPrefixesToPTKinds = npext_prefixes_to_ptkinds * HDF5ClassToString = hdf5_class_to_string # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s_63); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HDF5ClassToString, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":163 * * * from numpy import typeDict # <<<<<<<<<<<<<< * cdef int have_float16 = ("float16" in typeDict) * */ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(((PyObject *)__pyx_n_s__typeDict)); PyList_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_n_s__typeDict)); __Pyx_GIVEREF(((PyObject *)__pyx_n_s__typeDict)); __pyx_t_6 = __Pyx_Import(((PyObject *)__pyx_n_s__numpy), ((PyObject *)__pyx_t_7), -1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__typeDict); if (__pyx_t_7 == NULL) { if (PyErr_ExceptionMatches(PyExc_AttributeError)) __Pyx_RaiseImportError(__pyx_n_s__typeDict); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__typeDict, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":164 * * from numpy import typeDict * cdef int have_float16 = ("float16" in typeDict) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__typeDict); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = (__Pyx_PySequence_Contains(((PyObject *)__pyx_n_s__float16), __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_6tables_14utilsextension_have_float16 = __pyx_t_9; /* "tables/utilsextension.pyx":211 * # The NumPy API requires this function to be called before * # using any NumPy facilities in an extension module. * import_array() # <<<<<<<<<<<<<< * * cdef register_blosc_(): */ import_array(); /* "tables/utilsextension.pyx":231 * # This function detects if blosc can work correctly on the current platform. * # This function has been written by Julian Taylor . * def _arch_without_blosc(): # <<<<<<<<<<<<<< * import platform * arch = platform.machine().lower() */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_1_arch_without_blosc, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s___arch_without_blosc, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":240 * * # Only register bloc compressor on platforms that actually support it. * if _arch_without_blosc(): # <<<<<<<<<<<<<< * blosc_version = None * else: */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s___arch_without_blosc); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_9) { /* "tables/utilsextension.pyx":241 * # Only register bloc compressor on platforms that actually support it. * if _arch_without_blosc(): * blosc_version = None # <<<<<<<<<<<<<< * else: * blosc_version = register_blosc_() */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__blosc_version, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L13; } /*else*/ { /* "tables/utilsextension.pyx":243 * blosc_version = None * else: * blosc_version = register_blosc_() # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __pyx_f_6tables_14utilsextension_register_blosc_(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__blosc_version, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_L13:; /* "tables/utilsextension.pyx":248 * # Important: Blosc calls that modifies global variables in Blosc must be * # called from the same extension where Blosc is registered in HDF5. * def set_blosc_max_threads(nthreads): # <<<<<<<<<<<<<< * """set_blosc_max_threads(nthreads) * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_3set_blosc_max_threads, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s_97, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":265 * * * setBloscMaxThreads = previous_api(set_blosc_max_threads) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s_97); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__setBloscMaxThreads, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":268 * * * if sys.platform == "win32": # <<<<<<<<<<<<<< * # We need a different approach in Windows, because it complains when * # trying to import the extension that is linked with a dynamic library */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__platform); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_n_s__win32), Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_9) { /* "tables/utilsextension.pyx":274 * * # Initialize & register lzo * if getLibrary("lzo2") == 0 or getLibrary("lzo1") == 0: # <<<<<<<<<<<<<< * import tables._comp_lzo * lzo_version = tables._comp_lzo.register_() */ __pyx_t_9 = (getLibrary(__pyx_k__lzo2) == 0); if (!__pyx_t_9) { __pyx_t_10 = (getLibrary(__pyx_k__lzo1) == 0); __pyx_t_11 = __pyx_t_10; } else { __pyx_t_11 = __pyx_t_9; } if (__pyx_t_11) { /* "tables/utilsextension.pyx":275 * # Initialize & register lzo * if getLibrary("lzo2") == 0 or getLibrary("lzo1") == 0: * import tables._comp_lzo # <<<<<<<<<<<<<< * lzo_version = tables._comp_lzo.register_() * else: */ __pyx_t_6 = __Pyx_Import(((PyObject *)__pyx_n_s_98), 0, -1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__tables, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":276 * if getLibrary("lzo2") == 0 or getLibrary("lzo1") == 0: * import tables._comp_lzo * lzo_version = tables._comp_lzo.register_() # <<<<<<<<<<<<<< * else: * lzo_version = None */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__tables); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s___comp_lzo); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__register_); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__lzo_version, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L15; } /*else*/ { /* "tables/utilsextension.pyx":278 * lzo_version = tables._comp_lzo.register_() * else: * lzo_version = None # <<<<<<<<<<<<<< * * # Initialize & register bzip2 */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__lzo_version, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L15:; /* "tables/utilsextension.pyx":281 * * # Initialize & register bzip2 * if getLibrary("bzip2") == 0 or getLibrary("libbz2") == 0: # <<<<<<<<<<<<<< * import tables._comp_bzip2 * bzip2_version = tables._comp_bzip2.register_() */ __pyx_t_11 = (getLibrary(__pyx_k__bzip2) == 0); if (!__pyx_t_11) { __pyx_t_9 = (getLibrary(__pyx_k__libbz2) == 0); __pyx_t_10 = __pyx_t_9; } else { __pyx_t_10 = __pyx_t_11; } if (__pyx_t_10) { /* "tables/utilsextension.pyx":282 * # Initialize & register bzip2 * if getLibrary("bzip2") == 0 or getLibrary("libbz2") == 0: * import tables._comp_bzip2 # <<<<<<<<<<<<<< * bzip2_version = tables._comp_bzip2.register_() * else: */ __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s_99), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__tables, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":283 * if getLibrary("bzip2") == 0 or getLibrary("libbz2") == 0: * import tables._comp_bzip2 * bzip2_version = tables._comp_bzip2.register_() # <<<<<<<<<<<<<< * else: * bzip2_version = None */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__tables); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s___comp_bzip2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__register_); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__bzip2_version, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; goto __pyx_L16; } /*else*/ { /* "tables/utilsextension.pyx":285 * bzip2_version = tables._comp_bzip2.register_() * else: * bzip2_version = None # <<<<<<<<<<<<<< * * else: # Unix systems */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__bzip2_version, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L16:; goto __pyx_L14; } /*else*/ { /* "tables/utilsextension.pyx":289 * else: # Unix systems * # Initialize & register lzo * try: # <<<<<<<<<<<<<< * import tables._comp_lzo * lzo_version = tables._comp_lzo.register_() */ { __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); /*try:*/ { /* "tables/utilsextension.pyx":290 * # Initialize & register lzo * try: * import tables._comp_lzo # <<<<<<<<<<<<<< * lzo_version = tables._comp_lzo.register_() * except ImportError: */ __pyx_t_6 = __Pyx_Import(((PyObject *)__pyx_n_s_98), 0, -1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__tables, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":291 * try: * import tables._comp_lzo * lzo_version = tables._comp_lzo.register_() # <<<<<<<<<<<<<< * except ImportError: * lzo_version = None */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__tables); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s___comp_lzo); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__register_); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__lzo_version, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L17_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L24_try_end; __pyx_L17_error:; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":292 * import tables._comp_lzo * lzo_version = tables._comp_lzo.register_() * except ImportError: # <<<<<<<<<<<<<< * lzo_version = None * */ __pyx_t_5 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); if (__pyx_t_5) { __Pyx_AddTraceback("tables.utilsextension", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L19_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); /* "tables/utilsextension.pyx":293 * lzo_version = tables._comp_lzo.register_() * except ImportError: * lzo_version = None # <<<<<<<<<<<<<< * * # Initialize & register bzip2 */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__lzo_version, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L19_except_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L18_exception_handled; } __pyx_L19_except_error:; __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); goto __pyx_L1_error; __pyx_L18_exception_handled:; __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); __pyx_L24_try_end:; } /* "tables/utilsextension.pyx":296 * * # Initialize & register bzip2 * try: # <<<<<<<<<<<<<< * import tables._comp_bzip2 * bzip2_version = tables._comp_bzip2.register_() */ { __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { /* "tables/utilsextension.pyx":297 * # Initialize & register bzip2 * try: * import tables._comp_bzip2 # <<<<<<<<<<<<<< * bzip2_version = tables._comp_bzip2.register_() * except ImportError: */ __pyx_t_7 = __Pyx_Import(((PyObject *)__pyx_n_s_99), 0, -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__tables, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":298 * try: * import tables._comp_bzip2 * bzip2_version = tables._comp_bzip2.register_() # <<<<<<<<<<<<<< * except ImportError: * bzip2_version = None */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__tables); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s___comp_bzip2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__register_); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__bzip2_version, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L27_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L34_try_end; __pyx_L27_error:; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":299 * import tables._comp_bzip2 * bzip2_version = tables._comp_bzip2.register_() * except ImportError: # <<<<<<<<<<<<<< * bzip2_version = None * */ __pyx_t_5 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); if (__pyx_t_5) { __Pyx_AddTraceback("tables.utilsextension", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L29_except_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_1); /* "tables/utilsextension.pyx":300 * bzip2_version = tables._comp_bzip2.register_() * except ImportError: * bzip2_version = None # <<<<<<<<<<<<<< * * */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__bzip2_version, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L29_except_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L28_exception_handled; } __pyx_L29_except_error:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L1_error; __pyx_L28_exception_handled:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); __pyx_L34_try_end:; } } __pyx_L14:; /* "tables/utilsextension.pyx":343 * * * def _dump_h5_backtrace(): # <<<<<<<<<<<<<< * cdef object bt = [] * */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_5_dump_h5_backtrace, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s___dump_h5_backtrace, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":355 * # The unusual machinery is needed in order to avoid cirdular dependencies * # between modules. * HDF5ExtError._dump_h5_backtrace = _dump_h5_backtrace # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___dump_h5_backtrace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__HDF5ExtError); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_t_7, __pyx_n_s___dump_h5_backtrace, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":358 * * * def silence_hdf5_messages(silence=True): # <<<<<<<<<<<<<< * """silence_hdf5_messages(silence=True) * */ __pyx_t_7 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_k_7 = __pyx_t_7; __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_7silence_hdf5_messages, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s_104, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":378 * * * silenceHDF5Messages = previous_api(silence_hdf5_messages) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s_104); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__silenceHDF5Messages, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":382 * * # Disable automatic HDF5 error logging * silence_hdf5_messages() # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s_104); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":545 * * * def encode_filename(object filename): # <<<<<<<<<<<<<< * """Return the encoded filename in the filesystem encoding.""" * */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_9encode_filename, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__encode_filename, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":561 * * # Main functions * def is_hdf5_file(object filename): # <<<<<<<<<<<<<< * """is_hdf5_file(filename) * */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_11is_hdf5_file, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__is_hdf5_file, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":584 * * * isHDF5File = previous_api(is_hdf5_file) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__is_hdf5_file); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__isHDF5File, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":587 * * * def is_pytables_file(object filename): # <<<<<<<<<<<<<< * """is_pytables_file(filename) * */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_13is_pytables_file, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__is_pytables_file, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":620 * * * isPyTablesFile = previous_api(is_pytables_file) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__is_pytables_file); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__isPyTablesFile, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":623 * * * def get_hdf5_version(): # <<<<<<<<<<<<<< * """Get the underlying HDF5 library version""" * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_15get_hdf5_version, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_hdf5_version, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":629 * * * getHDF5Version = previous_api(get_hdf5_version) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_hdf5_version); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__getHDF5Version, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":632 * * * def get_pytables_version(): # <<<<<<<<<<<<<< * """Return this extension version.""" * */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_17get_pytables_version, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s_113, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":637 * return _getTablesVersion() * * getPyTablesVersion = previous_api(get_pytables_version) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s_113); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__getPyTablesVersion, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":640 * * * def which_lib_version(str name): # <<<<<<<<<<<<<< * """which_lib_version(name) * */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_19which_lib_version, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__which_lib_version, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":690 * * * whichLibVersion = previous_api(which_lib_version) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__which_lib_version); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__whichLibVersion, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":693 * * * def which_class(hid_t loc_id, object name): # <<<<<<<<<<<<<< * """Detects a class ID using heuristics.""" * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_21which_class, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__which_class, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":789 * * * whichClass = previous_api(which_class) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__which_class); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__whichClass, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":792 * * * def get_nested_field(recarray, fieldname): # <<<<<<<<<<<<<< * """Get the maybe nested field named `fieldname` from the `recarray`. * */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_23get_nested_field, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_nested_field, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":817 * * * getNestedField = previous_api(get_nested_field) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_nested_field); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__getNestedField, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":820 * * * def get_indices(object start, object stop, object step, hsize_t length): # <<<<<<<<<<<<<< * cdef hssize_t o_start, o_stop, o_step * cdef hsize_t slicelength */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_25get_indices, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_indices, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":835 * * * getIndices = previous_api(get_indices) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_indices); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__getIndices, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":838 * * * def read_f_attr(hid_t file_id, str attr_name): # <<<<<<<<<<<<<< * """Read PyTables file attributes (i.e. in root group). * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_27read_f_attr, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__read_f_attr, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":877 * * * def get_filters(parent_id, name): # <<<<<<<<<<<<<< * """Get a dictionary with the filter names and cd_values""" * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_29get_filters, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_filters, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":887 * * * getFilters = previous_api(get_filters) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_filters); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__getFilters, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":891 * * # This is used by several ._convert_types() methods. * def get_type_enum(hid_t h5type): # <<<<<<<<<<<<<< * """_getTypeEnum(h5type) -> hid_t * */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_31get_type_enum, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_type_enum, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":923 * return enumId * * getTypeEnum = previous_api(get_type_enum) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_type_enum); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__getTypeEnum, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":926 * * * def enum_from_hdf5(hid_t enumId, str byteorder): # <<<<<<<<<<<<<< * """enum_from_hdf5(enumId) -> (Enum, npType) * */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_33enum_from_hdf5, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__enum_from_hdf5, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":985 * * * enumFromHDF5 = previous_api(enum_from_hdf5) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__enum_from_hdf5); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__enumFromHDF5, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":988 * * * def enum_to_hdf5(object enumAtom, str byteorder): # <<<<<<<<<<<<<< * """enum_to_hdf5(enumAtom, byteorder) -> hid_t * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_35enum_to_hdf5, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__enum_to_hdf5, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":1037 * * * enumToHDF5 = previous_api(enum_to_hdf5) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__enum_to_hdf5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__enumToHDF5, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1040 * * * def atom_to_hdf5_type(atom, str byteorder): # <<<<<<<<<<<<<< * cdef hid_t tid = -1 * cdef hsize_t *dims = NULL */ __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_37atom_to_hdf5_type, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__atom_to_hdf5_type, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1088 * * * AtomToHDF5Type = previous_api(atom_to_hdf5_type) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__atom_to_hdf5_type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__AtomToHDF5Type, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1091 * * * def load_enum(hid_t type_id): # <<<<<<<<<<<<<< * """load_enum() -> (Enum, npType) * */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_39load_enum, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__load_enum, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1120 * * * loadEnum = previous_api(load_enum) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__load_enum); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__loadEnum, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1120; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":1123 * * * def hdf5_to_np_nested_type(hid_t type_id): # <<<<<<<<<<<<<< * """Given a HDF5 `type_id`, return a dtype string representation of it.""" * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_41hdf5_to_np_nested_type, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s_55, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":1162 * * * HDF5ToNPNestedType = previous_api(hdf5_to_np_nested_type) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s_55); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HDF5ToNPNestedType, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1165 * * * def hdf5_to_np_ext_type(hid_t type_id, pure_numpy_types=True, atom=False): # <<<<<<<<<<<<<< * """Map the atomic HDF5 type to a string repr of NumPy extended codes. * */ __pyx_t_6 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_k_56 = __pyx_t_6; __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_k_57 = __pyx_t_6; __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_43hdf5_to_np_ext_type, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__hdf5_to_np_ext_type, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1267 * * * HDF5ToNPExtType = previous_api(hdf5_to_np_ext_type) # <<<<<<<<<<<<<< * * */ __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__hdf5_to_np_ext_type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HDF5ToNPExtType, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1270 * * * def atom_from_hdf5_type(hid_t type_id, pure_numpy_types=False): # <<<<<<<<<<<<<< * """Get an atom from a type_id. * */ __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_k_68 = __pyx_t_1; __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_45atom_from_hdf5_type, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__atom_from_hdf5_type, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "tables/utilsextension.pyx":1297 * * * AtomFromHDF5Type = previous_api(atom_from_hdf5_type) # <<<<<<<<<<<<<< * * */ __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__atom_from_hdf5_type); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__AtomFromHDF5Type, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":1300 * * * def create_nested_type(object desc, str byteorder): # <<<<<<<<<<<<<< * """Create a nested type based on a description and return an HDF5 type.""" * */ __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_6tables_14utilsextension_47create_nested_type, NULL, __pyx_n_s_94); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__create_nested_type, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "tables/utilsextension.pyx":1327 * * * createNestedType = previous_api(create_nested_type) # <<<<<<<<<<<<<< * * */ __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__previous_api); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__create_nested_type); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; if (PyObject_SetAttr(__pyx_m, __pyx_n_s__createNestedType, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; /* "tables/utilsextension.pyx":1 * # -*- coding: utf-8 -*- # <<<<<<<<<<<<<< * * ######################################################################## */ __pyx_t_6 = PyDict_New(); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_6)); if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_6)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; /* "numpy.pxd":975 * arr.base = baseptr * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< * if arr.base is NULL: * return None */ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); if (__pyx_m) { __Pyx_AddTraceback("init tables.utilsextension", __pyx_clineno, __pyx_lineno, __pyx_filename); Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init tables.utilsextension"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if PY_MAJOR_VERSION < 3 return; #else return __pyx_m; #endif } /* Runtime support code */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule((char *)modname); if (!m) goto end; p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* CYTHON_REFNANNY */ static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { PyObject *result; result = PyObject_GetAttr(dict, name); if (!result) { if (dict != __pyx_b) { PyErr_Clear(); result = PyObject_GetAttr(__pyx_b, name); } if (!result) { PyErr_SetObject(PyExc_NameError, name); } } return result; } static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%s() got an unexpected keyword argument '%s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%s() takes %s %" CYTHON_FORMAT_SSIZE_T "d positional argument%s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) { #if CYTHON_COMPILING_IN_CPYTHON PyObject *tmp_type, *tmp_value, *tmp_tb; PyThreadState *tstate = PyThreadState_GET(); tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_Restore(type, value, tb); #endif } static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) { #if CYTHON_COMPILING_IN_CPYTHON PyThreadState *tstate = PyThreadState_GET(); *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(type, value, tb); #endif } #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, CYTHON_UNUSED PyObject *cause) { Py_XINCREF(type); if (!value || value == Py_None) value = NULL; else Py_INCREF(value); if (!tb || tb == Py_None) tb = NULL; else { Py_INCREF(tb); if (!PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } } #if PY_VERSION_HEX < 0x02050000 if (PyClass_Check(type)) { #else if (PyType_Check(type)) { #endif #if CYTHON_COMPILING_IN_PYPY if (!value) { Py_INCREF(Py_None); value = Py_None; } #endif PyErr_NormalizeException(&type, &value, &tb); } else { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } value = type; #if PY_VERSION_HEX < 0x02050000 if (PyInstance_Check(type)) { type = (PyObject*) ((PyInstanceObject*)type)->in_class; Py_INCREF(type); } else { type = 0; PyErr_SetString(PyExc_TypeError, "raise: exception must be an old-style class or instance"); goto raise_error; } #else type = (PyObject*) Py_TYPE(type); Py_INCREF(type); if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto raise_error; } #endif } __Pyx_ErrRestore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } #else /* Python 3+ */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { PyObject* owned_instance = NULL; if (tb == Py_None) { tb = 0; } else if (tb && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto bad; } if (value == Py_None) value = 0; if (PyExceptionInstance_Check(type)) { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto bad; } value = type; type = (PyObject*) Py_TYPE(value); } else if (PyExceptionClass_Check(type)) { PyObject *args; if (!value) args = PyTuple_New(0); else if (PyTuple_Check(value)) { Py_INCREF(value); args = value; } else args = PyTuple_Pack(1, value); if (!args) goto bad; owned_instance = PyEval_CallObject(type, args); Py_DECREF(args); if (!owned_instance) goto bad; value = owned_instance; if (!PyExceptionInstance_Check(value)) { PyErr_Format(PyExc_TypeError, "calling %R should have returned an instance of " "BaseException, not %R", type, Py_TYPE(value)); goto bad; } } else { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto bad; } if (cause && cause != Py_None) { PyObject *fixed_cause; if (PyExceptionClass_Check(cause)) { fixed_cause = PyObject_CallObject(cause, NULL); if (fixed_cause == NULL) goto bad; } else if (PyExceptionInstance_Check(cause)) { fixed_cause = cause; Py_INCREF(fixed_cause); } else { PyErr_SetString(PyExc_TypeError, "exception causes must derive from " "BaseException"); goto bad; } PyException_SetCause(value, fixed_cause); } PyErr_SetObject(type, value); if (tb) { PyThreadState *tstate = PyThreadState_GET(); PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } } bad: Py_XDECREF(owned_instance); return; } #endif static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, const char *name, int exact) { if (!type) { PyErr_Format(PyExc_SystemError, "Missing type object"); return 0; } if (none_allowed && obj == Py_None) return 1; else if (exact) { if (Py_TYPE(obj) == type) return 1; } else { if (PyObject_TypeCheck(obj, type)) return 1; } PyErr_Format(PyExc_TypeError, "Argument '%s' has incorrect type (expected %s, got %s)", name, type->tp_name, Py_TYPE(obj)->tp_name); return 0; } 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); } static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { PyErr_Format(PyExc_ValueError, "need more than %" CYTHON_FORMAT_SSIZE_T "d value%s to unpack", index, (index == 1) ? "" : "s"); } static CYTHON_INLINE int __Pyx_IterFinish(void) { #if CYTHON_COMPILING_IN_CPYTHON PyThreadState *tstate = PyThreadState_GET(); PyObject* exc_type = tstate->curexc_type; if (unlikely(exc_type)) { if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) { PyObject *exc_value, *exc_tb; exc_value = tstate->curexc_value; exc_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; Py_DECREF(exc_type); Py_XDECREF(exc_value); Py_XDECREF(exc_tb); return 0; } else { return -1; } } return 0; #else if (unlikely(PyErr_Occurred())) { if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) { PyErr_Clear(); return 0; } else { return -1; } } return 0; #endif } static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { if (unlikely(retval)) { Py_DECREF(retval); __Pyx_RaiseTooManyValuesError(expected); return -1; } else { return __Pyx_IterFinish(); } return 0; } static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { PyObject *local_type, *local_value, *local_tb; #if CYTHON_COMPILING_IN_CPYTHON PyObject *tmp_type, *tmp_value, *tmp_tb; PyThreadState *tstate = PyThreadState_GET(); local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; #endif Py_INCREF(local_type); Py_INCREF(local_value); Py_INCREF(local_tb); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_COMPILING_IN_CPYTHON 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; /* Make sure tstate is in a consistent state when we XDECREF these objects (DECREF may run arbitrary code). */ Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (unlikely(!type)) { PyErr_Format(PyExc_SystemError, "Missing type object"); return 0; } if (likely(PyObject_TypeCheck(obj, type))) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", Py_TYPE(obj)->tp_name, type->tp_name); return 0; } static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* defval) { PyObject* next; iternextfunc iternext = Py_TYPE(iterator)->tp_iternext; #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(!iternext)) { #else if (unlikely(!iternext) || unlikely(!PyIter_Check(iterator))) { #endif PyErr_Format(PyExc_TypeError, "%.200s object is not an iterator", Py_TYPE(iterator)->tp_name); return NULL; } next = iternext(iterator); if (likely(next)) return next; #if CYTHON_COMPILING_IN_CPYTHON #if PY_VERSION_HEX >= 0x03010000 || (PY_MAJOR_VERSION < 3 && PY_VERSION_HEX >= 0x02070000) if (unlikely(iternext == &_PyObject_NextNotImplemented)) return NULL; #endif #endif if (defval) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (unlikely(exc_type != PyExc_StopIteration) && !PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) return NULL; PyErr_Clear(); } Py_INCREF(defval); return defval; } if (!PyErr_Occurred()) PyErr_SetNone(PyExc_StopIteration); return NULL; } static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); } static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) { #if CYTHON_COMPILING_IN_CPYTHON PyThreadState *tstate = PyThreadState_GET(); *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); #else PyErr_GetExcInfo(type, value, tb); #endif } static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb) { #if CYTHON_COMPILING_IN_CPYTHON PyObject *tmp_type, *tmp_value, *tmp_tb; PyThreadState *tstate = PyThreadState_GET(); 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; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(type, value, tb); #endif } static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level) { PyObject *py_import = 0; PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; py_import = __Pyx_GetAttrString(__pyx_b, "__import__"); if (!py_import) goto bad; if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; #if PY_VERSION_HEX >= 0x02050000 { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { /* try package relative import first */ 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); if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; /* try absolute import on failure */ } #endif if (!module) { PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, NULL); Py_DECREF(py_level); } } #else if (level>0) { PyErr_SetString(PyExc_RuntimeError, "Relative import is not supported for Python <=2.4."); goto bad; } module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, NULL); #endif bad: Py_XDECREF(empty_list); Py_XDECREF(py_import); Py_XDECREF(empty_dict); return module; } static CYTHON_INLINE void __Pyx_RaiseImportError(PyObject *name) { #if PY_MAJOR_VERSION < 3 PyErr_Format(PyExc_ImportError, "cannot import name %.230s", PyString_AsString(name)); #else PyErr_Format(PyExc_ImportError, "cannot import name %S", name); #endif } static CYTHON_INLINE hid_t __Pyx_PyInt_from_py_hid_t(PyObject* x) { const hid_t neg_one = (hid_t)-1, const_zero = (hid_t)0; const int is_unsigned = const_zero < neg_one; if (sizeof(hid_t) == sizeof(char)) { if (is_unsigned) return (hid_t)__Pyx_PyInt_AsUnsignedChar(x); else return (hid_t)__Pyx_PyInt_AsSignedChar(x); } else if (sizeof(hid_t) == sizeof(short)) { if (is_unsigned) return (hid_t)__Pyx_PyInt_AsUnsignedShort(x); else return (hid_t)__Pyx_PyInt_AsSignedShort(x); } else if (sizeof(hid_t) == sizeof(int)) { if (is_unsigned) return (hid_t)__Pyx_PyInt_AsUnsignedInt(x); else return (hid_t)__Pyx_PyInt_AsSignedInt(x); } else if (sizeof(hid_t) == sizeof(long)) { if (is_unsigned) return (hid_t)__Pyx_PyInt_AsUnsignedLong(x); else return (hid_t)__Pyx_PyInt_AsSignedLong(x); } else if (sizeof(hid_t) == sizeof(PY_LONG_LONG)) { if (is_unsigned) return (hid_t)__Pyx_PyInt_AsUnsignedLongLong(x); else return (hid_t)__Pyx_PyInt_AsSignedLongLong(x); } else { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else hid_t val; PyObject *v = __Pyx_PyNumber_Int(x); #if PY_VERSION_HEX < 0x03000000 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (hid_t)-1; } } static CYTHON_INLINE hsize_t __Pyx_PyInt_from_py_hsize_t(PyObject* x) { const hsize_t neg_one = (hsize_t)-1, const_zero = (hsize_t)0; const int is_unsigned = const_zero < neg_one; if (sizeof(hsize_t) == sizeof(char)) { if (is_unsigned) return (hsize_t)__Pyx_PyInt_AsUnsignedChar(x); else return (hsize_t)__Pyx_PyInt_AsSignedChar(x); } else if (sizeof(hsize_t) == sizeof(short)) { if (is_unsigned) return (hsize_t)__Pyx_PyInt_AsUnsignedShort(x); else return (hsize_t)__Pyx_PyInt_AsSignedShort(x); } else if (sizeof(hsize_t) == sizeof(int)) { if (is_unsigned) return (hsize_t)__Pyx_PyInt_AsUnsignedInt(x); else return (hsize_t)__Pyx_PyInt_AsSignedInt(x); } else if (sizeof(hsize_t) == sizeof(long)) { if (is_unsigned) return (hsize_t)__Pyx_PyInt_AsUnsignedLong(x); else return (hsize_t)__Pyx_PyInt_AsSignedLong(x); } else if (sizeof(hsize_t) == sizeof(PY_LONG_LONG)) { if (is_unsigned) return (hsize_t)__Pyx_PyInt_AsUnsignedLongLong(x); else return (hsize_t)__Pyx_PyInt_AsSignedLongLong(x); } else { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else hsize_t val; PyObject *v = __Pyx_PyNumber_Int(x); #if PY_VERSION_HEX < 0x03000000 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (hsize_t)-1; } } static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t val) { const hid_t neg_one = (hid_t)-1, const_zero = (hid_t)0; const int is_unsigned = const_zero < neg_one; if ((sizeof(hid_t) == sizeof(char)) || (sizeof(hid_t) == sizeof(short))) { return PyInt_FromLong((long)val); } else if ((sizeof(hid_t) == sizeof(int)) || (sizeof(hid_t) == sizeof(long))) { if (is_unsigned) return PyLong_FromUnsignedLong((unsigned long)val); else return PyInt_FromLong((long)val); } else if (sizeof(hid_t) == sizeof(PY_LONG_LONG)) { if (is_unsigned) return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val); else return PyLong_FromLongLong((PY_LONG_LONG)val); } else { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; return _PyLong_FromByteArray(bytes, sizeof(hid_t), little, !is_unsigned); } } static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hssize_t(hssize_t val) { const hssize_t neg_one = (hssize_t)-1, const_zero = (hssize_t)0; const int is_unsigned = const_zero < neg_one; if ((sizeof(hssize_t) == sizeof(char)) || (sizeof(hssize_t) == sizeof(short))) { return PyInt_FromLong((long)val); } else if ((sizeof(hssize_t) == sizeof(int)) || (sizeof(hssize_t) == sizeof(long))) { if (is_unsigned) return PyLong_FromUnsignedLong((unsigned long)val); else return PyInt_FromLong((long)val); } else if (sizeof(hssize_t) == sizeof(PY_LONG_LONG)) { if (is_unsigned) return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val); else return PyLong_FromLongLong((PY_LONG_LONG)val); } else { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; return _PyLong_FromByteArray(bytes, sizeof(hssize_t), little, !is_unsigned); } } #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); } #else static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { return x + y*(__pyx_t_float_complex)_Complex_I; } #endif #else static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) { __pyx_t_float_complex z; z.real = x; z.imag = y; return z; } #endif #if CYTHON_CCOMPLEX #else static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) { return (a.real == b.real) && (a.imag == b.imag); } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real + b.real; z.imag = a.imag + b.imag; return z; } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real - b.real; z.imag = a.imag - b.imag; return z; } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; z.real = a.real * b.real - a.imag * b.imag; z.imag = a.real * b.imag + a.imag * b.real; return z; } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; float denom = b.real * b.real + b.imag * b.imag; z.real = (a.real * b.real + a.imag * b.imag) / denom; z.imag = (a.imag * b.real - a.real * b.imag) / denom; return z; } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) { __pyx_t_float_complex z; z.real = -a.real; z.imag = -a.imag; return z; } static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) { return (a.real == 0) && (a.imag == 0); } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) { __pyx_t_float_complex z; z.real = a.real; z.imag = -a.imag; return z; } #if 1 static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex z) { #if !defined(HAVE_HYPOT) || defined(_MSC_VER) return sqrtf(z.real*z.real + z.imag*z.imag); #else return hypotf(z.real, z.imag); #endif } static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) { __pyx_t_float_complex z; float r, lnr, theta, z_r, z_theta; if (b.imag == 0 && b.real == (int)b.real) { if (b.real < 0) { float denom = a.real * a.real + a.imag * a.imag; a.real = a.real / denom; a.imag = -a.imag / denom; b.real = -b.real; } switch ((int)b.real) { case 0: z.real = 1; z.imag = 0; return z; case 1: return a; case 2: z = __Pyx_c_prodf(a, a); return __Pyx_c_prodf(a, a); case 3: z = __Pyx_c_prodf(a, a); return __Pyx_c_prodf(z, a); case 4: z = __Pyx_c_prodf(a, a); return __Pyx_c_prodf(z, z); } } if (a.imag == 0) { if (a.real == 0) { return a; } r = a.real; theta = 0; } else { r = __Pyx_c_absf(a); theta = atan2f(a.imag, a.real); } lnr = logf(r); z_r = expf(lnr * b.real - theta * b.imag); z_theta = theta * b.real + lnr * b.imag; z.real = z_r * cosf(z_theta); z.imag = z_r * sinf(z_theta); return z; } #endif #endif #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); } #else static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { return x + y*(__pyx_t_double_complex)_Complex_I; } #endif #else static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) { __pyx_t_double_complex z; z.real = x; z.imag = y; return z; } #endif #if CYTHON_CCOMPLEX #else static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) { return (a.real == b.real) && (a.imag == b.imag); } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real + b.real; z.imag = a.imag + b.imag; return z; } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real - b.real; z.imag = a.imag - b.imag; return z; } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; z.real = a.real * b.real - a.imag * b.imag; z.imag = a.real * b.imag + a.imag * b.real; return z; } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; double denom = b.real * b.real + b.imag * b.imag; z.real = (a.real * b.real + a.imag * b.imag) / denom; z.imag = (a.imag * b.real - a.real * b.imag) / denom; return z; } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) { __pyx_t_double_complex z; z.real = -a.real; z.imag = -a.imag; return z; } static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) { return (a.real == 0) && (a.imag == 0); } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) { __pyx_t_double_complex z; z.real = a.real; z.imag = -a.imag; return z; } #if 1 static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex z) { #if !defined(HAVE_HYPOT) || defined(_MSC_VER) return sqrt(z.real*z.real + z.imag*z.imag); #else return hypot(z.real, z.imag); #endif } static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) { __pyx_t_double_complex z; double r, lnr, theta, z_r, z_theta; if (b.imag == 0 && b.real == (int)b.real) { if (b.real < 0) { double denom = a.real * a.real + a.imag * a.imag; a.real = a.real / denom; a.imag = -a.imag / denom; b.real = -b.real; } switch ((int)b.real) { case 0: z.real = 1; z.imag = 0; return z; case 1: return a; case 2: z = __Pyx_c_prod(a, a); return __Pyx_c_prod(a, a); case 3: z = __Pyx_c_prod(a, a); return __Pyx_c_prod(z, a); case 4: z = __Pyx_c_prod(a, a); return __Pyx_c_prod(z, z); } } if (a.imag == 0) { if (a.real == 0) { return a; } r = a.real; theta = 0; } else { r = __Pyx_c_abs(a); theta = atan2(a.imag, a.real); } lnr = log(r); z_r = exp(lnr * b.real - theta * b.imag); z_theta = theta * b.real + lnr * b.imag; z.real = z_r * cos(z_theta); z.imag = z_r * sin(z_theta); return z; } #endif #endif static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) { const unsigned char neg_one = (unsigned char)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(unsigned char) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(unsigned char)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to unsigned char" : "value too large to convert to unsigned char"); } return (unsigned char)-1; } return (unsigned char)val; } return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x); } static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) { const unsigned short neg_one = (unsigned short)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(unsigned short) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(unsigned short)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to unsigned short" : "value too large to convert to unsigned short"); } return (unsigned short)-1; } return (unsigned short)val; } return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x); } static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) { const unsigned int neg_one = (unsigned int)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(unsigned int) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(unsigned int)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to unsigned int" : "value too large to convert to unsigned int"); } return (unsigned int)-1; } return (unsigned int)val; } return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x); } static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) { const char neg_one = (char)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(char) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(char)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to char" : "value too large to convert to char"); } return (char)-1; } return (char)val; } return (char)__Pyx_PyInt_AsLong(x); } static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) { const short neg_one = (short)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(short) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(short)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to short" : "value too large to convert to short"); } return (short)-1; } return (short)val; } return (short)__Pyx_PyInt_AsLong(x); } static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) { const int neg_one = (int)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(int) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(int)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to int" : "value too large to convert to int"); } return (int)-1; } return (int)val; } return (int)__Pyx_PyInt_AsLong(x); } static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) { const signed char neg_one = (signed char)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(signed char) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(signed char)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to signed char" : "value too large to convert to signed char"); } return (signed char)-1; } return (signed char)val; } return (signed char)__Pyx_PyInt_AsSignedLong(x); } static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) { const signed short neg_one = (signed short)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(signed short) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(signed short)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to signed short" : "value too large to convert to signed short"); } return (signed short)-1; } return (signed short)val; } return (signed short)__Pyx_PyInt_AsSignedLong(x); } static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) { const signed int neg_one = (signed int)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(signed int) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(signed int)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to signed int" : "value too large to convert to signed int"); } return (signed int)-1; } return (signed int)val; } return (signed int)__Pyx_PyInt_AsSignedLong(x); } static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) { const int neg_one = (int)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; if (sizeof(int) < sizeof(long)) { long val = __Pyx_PyInt_AsLong(x); if (unlikely(val != (long)(int)val)) { if (!unlikely(val == -1 && PyErr_Occurred())) { PyErr_SetString(PyExc_OverflowError, (is_unsigned && unlikely(val < 0)) ? "can't convert negative value to int" : "value too large to convert to int"); } return (int)-1; } return (int)val; } return (int)__Pyx_PyInt_AsLong(x); } static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) { const unsigned long neg_one = (unsigned long)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; #if PY_VERSION_HEX < 0x03000000 if (likely(PyInt_Check(x))) { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to unsigned long"); return (unsigned long)-1; } return (unsigned long)val; } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { if (unlikely(Py_SIZE(x) < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to unsigned long"); return (unsigned long)-1; } return (unsigned long)PyLong_AsUnsignedLong(x); } else { return (unsigned long)PyLong_AsLong(x); } } else { unsigned long val; PyObject *tmp = __Pyx_PyNumber_Int(x); if (!tmp) return (unsigned long)-1; val = __Pyx_PyInt_AsUnsignedLong(tmp); Py_DECREF(tmp); return val; } } static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) { const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; #if PY_VERSION_HEX < 0x03000000 if (likely(PyInt_Check(x))) { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to unsigned PY_LONG_LONG"); return (unsigned PY_LONG_LONG)-1; } return (unsigned PY_LONG_LONG)val; } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { if (unlikely(Py_SIZE(x) < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to unsigned PY_LONG_LONG"); return (unsigned PY_LONG_LONG)-1; } return (unsigned PY_LONG_LONG)PyLong_AsUnsignedLongLong(x); } else { return (unsigned PY_LONG_LONG)PyLong_AsLongLong(x); } } else { unsigned PY_LONG_LONG val; PyObject *tmp = __Pyx_PyNumber_Int(x); if (!tmp) return (unsigned PY_LONG_LONG)-1; val = __Pyx_PyInt_AsUnsignedLongLong(tmp); Py_DECREF(tmp); return val; } } static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) { const long neg_one = (long)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; #if PY_VERSION_HEX < 0x03000000 if (likely(PyInt_Check(x))) { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long)-1; } return (long)val; } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { if (unlikely(Py_SIZE(x) < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long)-1; } return (long)PyLong_AsUnsignedLong(x); } else { return (long)PyLong_AsLong(x); } } else { long val; PyObject *tmp = __Pyx_PyNumber_Int(x); if (!tmp) return (long)-1; val = __Pyx_PyInt_AsLong(tmp); Py_DECREF(tmp); return val; } } static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) { const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; #if PY_VERSION_HEX < 0x03000000 if (likely(PyInt_Check(x))) { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to PY_LONG_LONG"); return (PY_LONG_LONG)-1; } return (PY_LONG_LONG)val; } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { if (unlikely(Py_SIZE(x) < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to PY_LONG_LONG"); return (PY_LONG_LONG)-1; } return (PY_LONG_LONG)PyLong_AsUnsignedLongLong(x); } else { return (PY_LONG_LONG)PyLong_AsLongLong(x); } } else { PY_LONG_LONG val; PyObject *tmp = __Pyx_PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; val = __Pyx_PyInt_AsLongLong(tmp); Py_DECREF(tmp); return val; } } static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) { const signed long neg_one = (signed long)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; #if PY_VERSION_HEX < 0x03000000 if (likely(PyInt_Check(x))) { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to signed long"); return (signed long)-1; } return (signed long)val; } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { if (unlikely(Py_SIZE(x) < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to signed long"); return (signed long)-1; } return (signed long)PyLong_AsUnsignedLong(x); } else { return (signed long)PyLong_AsLong(x); } } else { signed long val; PyObject *tmp = __Pyx_PyNumber_Int(x); if (!tmp) return (signed long)-1; val = __Pyx_PyInt_AsSignedLong(tmp); Py_DECREF(tmp); return val; } } static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) { const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0; const int is_unsigned = neg_one > const_zero; #if PY_VERSION_HEX < 0x03000000 if (likely(PyInt_Check(x))) { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to signed PY_LONG_LONG"); return (signed PY_LONG_LONG)-1; } return (signed PY_LONG_LONG)val; } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { if (unlikely(Py_SIZE(x) < 0)) { PyErr_SetString(PyExc_OverflowError, "can't convert negative value to signed PY_LONG_LONG"); return (signed PY_LONG_LONG)-1; } return (signed PY_LONG_LONG)PyLong_AsUnsignedLongLong(x); } else { return (signed PY_LONG_LONG)PyLong_AsLongLong(x); } } else { signed PY_LONG_LONG val; PyObject *tmp = __Pyx_PyNumber_Int(x); if (!tmp) return (signed PY_LONG_LONG)-1; val = __Pyx_PyInt_AsSignedLongLong(tmp); Py_DECREF(tmp); return val; } } static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno, CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename) { PyObject *old_exc, *old_val, *old_tb; PyObject *ctx; __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); #if PY_MAJOR_VERSION < 3 ctx = PyString_FromString(name); #else ctx = PyUnicode_FromString(name); #endif __Pyx_ErrRestore(old_exc, old_val, old_tb); if (!ctx) { PyErr_WriteUnraisable(Py_None); } else { PyErr_WriteUnraisable(ctx); Py_DECREF(ctx); } } static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); #if PY_VERSION_HEX < 0x02050000 return PyErr_Warn(NULL, message); #else return PyErr_WarnEx(NULL, message, 1); #endif } return 0; } static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) { PyObject *d = 0; PyObject *cobj = 0; union { void (*fp)(void); void *p; } tmp; d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__"); if (!d) { PyErr_Clear(); d = PyDict_New(); if (!d) goto bad; Py_INCREF(d); if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0) goto bad; } tmp.fp = f; #if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION==3&&PY_MINOR_VERSION==0) cobj = PyCapsule_New(tmp.p, sig, 0); #else cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0); #endif if (!cobj) goto bad; if (PyDict_SetItemString(d, name, cobj) < 0) goto bad; Py_DECREF(cobj); Py_DECREF(d); return 0; bad: Py_XDECREF(cobj); Py_XDECREF(d); return -1; } #ifndef __PYX_HAVE_RT_ImportModule #define __PYX_HAVE_RT_ImportModule static PyObject *__Pyx_ImportModule(const char *name) { PyObject *py_name = 0; PyObject *py_module = 0; py_name = __Pyx_PyIdentifier_FromString(name); if (!py_name) goto bad; py_module = PyImport_Import(py_name); Py_DECREF(py_name); return py_module; bad: Py_XDECREF(py_name); return 0; } #endif #ifndef __PYX_HAVE_RT_ImportType #define __PYX_HAVE_RT_ImportType static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict) { PyObject *py_module = 0; PyObject *result = 0; PyObject *py_name = 0; char warning[200]; py_module = __Pyx_ImportModule(module_name); if (!py_module) goto bad; py_name = __Pyx_PyIdentifier_FromString(class_name); if (!py_name) goto bad; result = PyObject_GetAttr(py_module, py_name); Py_DECREF(py_name); py_name = 0; Py_DECREF(py_module); py_module = 0; if (!result) goto bad; if (!PyType_Check(result)) { PyErr_Format(PyExc_TypeError, "%s.%s is not a type object", module_name, class_name); goto bad; } if (!strict && (size_t)((PyTypeObject *)result)->tp_basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility", module_name, class_name); #if PY_VERSION_HEX < 0x02050000 if (PyErr_Warn(NULL, warning) < 0) goto bad; #else if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; #endif } else if ((size_t)((PyTypeObject *)result)->tp_basicsize != size) { PyErr_Format(PyExc_ValueError, "%s.%s has the wrong size, try recompiling", module_name, class_name); goto bad; } return (PyTypeObject *)result; bad: Py_XDECREF(py_module); Py_XDECREF(result); return NULL; } #endif static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = (start + end) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, /*int argcount,*/ 0, /*int kwonlyargcount,*/ 0, /*int nlocals,*/ 0, /*int stacksize,*/ 0, /*int flags,*/ __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, /*int firstlineno,*/ __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_globals = 0; PyFrameObject *py_frame = 0; py_code = __pyx_find_code_object(c_line ? c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? c_line : py_line, py_code); } py_globals = PyModule_GetDict(__pyx_m); if (!py_globals) goto bad; py_frame = PyFrame_New( PyThreadState_GET(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ py_globals, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; py_frame->f_lineno = py_line; PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else /* Python 3+ has unicode identifiers */ if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; ++t; } return 0; } /* Type Conversion Functions */ static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) { PyNumberMethods *m; const char *name = NULL; PyObject *res = NULL; #if PY_VERSION_HEX < 0x03000000 if (PyInt_Check(x) || PyLong_Check(x)) #else if (PyLong_Check(x)) #endif return Py_INCREF(x), x; m = Py_TYPE(x)->tp_as_number; #if PY_VERSION_HEX < 0x03000000 if (m && m->nb_int) { name = "int"; res = PyNumber_Int(x); } else if (m && m->nb_long) { name = "long"; res = PyNumber_Long(x); } #else if (m && m->nb_int) { name = "int"; res = PyNumber_Long(x); } #endif if (res) { #if PY_VERSION_HEX < 0x03000000 if (!PyInt_Check(res) && !PyLong_Check(res)) { #else if (!PyLong_Check(res)) { #endif PyErr_Format(PyExc_TypeError, "__%s__ returned non-%s (type %.200s)", name, name, Py_TYPE(res)->tp_name); Py_DECREF(res); return NULL; } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject* x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { #if PY_VERSION_HEX < 0x02050000 if (ival <= LONG_MAX) return PyInt_FromLong((long)ival); else { unsigned char *bytes = (unsigned char *) &ival; int one = 1; int little = (int)*(unsigned char*)&one; return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0); } #else return PyInt_FromSize_t(ival); #endif } static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) { unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x); if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) { return (size_t)-1; } else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) { PyErr_SetString(PyExc_OverflowError, "value too large to convert to size_t"); return (size_t)-1; } return (size_t)val; } #endif /* Py_PYTHON_H */