awips2/pythonPackages/h5py/api18/h5p.c
root 9bb8decbcf Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 377dcd10b9 [formerly 3360eb6c5f]
Former-commit-id: 8e80217e59
2012-01-06 08:55:05 -06:00

9809 lines
386 KiB
C
Executable file

/* Generated by Cython 0.12 on Sun Mar 14 21:50:32 2010 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#else
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
#if PY_VERSION_HEX < 0x02040000
#define METH_COEXIST 0
#define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
#define PyDict_Contains(d,o) PySequence_Contains(d,o)
#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 PyInt_FromSsize_t(z) PyInt_FromLong(z)
#define PyInt_AsSsize_t(o) PyInt_AsLong(o)
#define PyNumber_Index(o) PyNumber_Int(o)
#define PyIndex_Check(o) PyNumber_Check(o)
#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)
#endif
#if PY_MAJOR_VERSION < 3
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#else
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#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_MAJOR_VERSION >= 3
#define PyBaseString_Type PyUnicode_Type
#define PyString_Type PyUnicode_Type
#define PyString_CheckExact PyUnicode_CheckExact
#else
#define PyBytes_Type PyString_Type
#define PyBytes_CheckExact PyString_CheckExact
#endif
#if PY_MAJOR_VERSION >= 3
#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
#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
#else
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
#endif
#if PY_MAJOR_VERSION >= 3
#define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall
#define __stdcall
#endif
#ifndef __cdecl
#define __cdecl
#endif
#ifndef __fastcall
#define __fastcall
#endif
#else
#define _USE_MATH_DEFINES
#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
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
#include <math.h>
#define __PYX_HAVE_API__h5py__h5p
#include "stdlib.h"
#include "string.h"
#include "time.h"
#include "unistd.h"
#include "stdint.h"
#include "compat.h"
#include "lzf_filter.h"
#include "hdf5.h"
#include "numpy/arrayobject.h"
#ifdef __GNUC__
#define INLINE __inline__
#elif _WIN32
#define INLINE __inline
#else
#define INLINE
#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 */
#if PY_MAJOR_VERSION < 3
#define __Pyx_PyBytes_FromString PyString_FromString
#define __Pyx_PyBytes_FromStringAndSize PyString_FromStringAndSize
#define __Pyx_PyBytes_AsString PyString_AsString
#else
#define __Pyx_PyBytes_FromString PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
#define __Pyx_PyBytes_AsString PyBytes_AsString
#endif
#define __Pyx_PyBytes_FromUString(s) __Pyx_PyBytes_FromString((char*)s)
#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) __Pyx_PyBytes_AsString(s))
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
#if !defined(T_PYSSIZET)
#if PY_VERSION_HEX < 0x02050000
#define T_PYSSIZET T_INT
#elif !defined(T_LONGLONG)
#define T_PYSSIZET \
((sizeof(Py_ssize_t) == sizeof(int)) ? T_INT : \
((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : -1))
#else
#define T_PYSSIZET \
((sizeof(Py_ssize_t) == sizeof(int)) ? T_INT : \
((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : \
((sizeof(Py_ssize_t) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))
#endif
#endif
#if !defined(T_ULONGLONG)
#define __Pyx_T_UNSIGNED_INT(x) \
((sizeof(x) == sizeof(unsigned char)) ? T_UBYTE : \
((sizeof(x) == sizeof(unsigned short)) ? T_USHORT : \
((sizeof(x) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(x) == sizeof(unsigned long)) ? T_ULONG : -1))))
#else
#define __Pyx_T_UNSIGNED_INT(x) \
((sizeof(x) == sizeof(unsigned char)) ? T_UBYTE : \
((sizeof(x) == sizeof(unsigned short)) ? T_USHORT : \
((sizeof(x) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(x) == sizeof(unsigned long)) ? T_ULONG : \
((sizeof(x) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))))
#endif
#if !defined(T_LONGLONG)
#define __Pyx_T_SIGNED_INT(x) \
((sizeof(x) == sizeof(char)) ? T_BYTE : \
((sizeof(x) == sizeof(short)) ? T_SHORT : \
((sizeof(x) == sizeof(int)) ? T_INT : \
((sizeof(x) == sizeof(long)) ? T_LONG : -1))))
#else
#define __Pyx_T_SIGNED_INT(x) \
((sizeof(x) == sizeof(char)) ? T_BYTE : \
((sizeof(x) == sizeof(short)) ? T_SHORT : \
((sizeof(x) == sizeof(int)) ? T_INT : \
((sizeof(x) == sizeof(long)) ? T_LONG : \
((sizeof(x) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))))
#endif
#define __Pyx_T_FLOATING(x) \
((sizeof(x) == sizeof(float)) ? T_FLOAT : \
((sizeof(x) == sizeof(double)) ? T_DOUBLE : -1))
#if !defined(T_SIZET)
#if !defined(T_ULONGLONG)
#define T_SIZET \
((sizeof(size_t) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : -1))
#else
#define T_SIZET \
((sizeof(size_t) == sizeof(unsigned int)) ? T_UINT : \
((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : \
((sizeof(size_t) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))
#endif
#endif
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : 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;
static const char **__pyx_f;
/* Type declarations */
/* "/home/tachyon/slave/unix-release/build/h5py/utils.pxd":20
* cdef void efree(void* ptr)
*
* cpdef int check_numpy_read(ndarray arr, hid_t space_id=*) except -1 # <<<<<<<<<<<<<<
* cpdef int check_numpy_write(ndarray arr, hid_t space_id=*) except -1
*
*/
struct __pyx_opt_args_4h5py_5utils_check_numpy_read {
int __pyx_n;
hid_t space_id;
};
/* "/home/tachyon/slave/unix-release/build/h5py/utils.pxd":21
*
* cpdef int check_numpy_read(ndarray arr, hid_t space_id=*) except -1
* cpdef int check_numpy_write(ndarray arr, hid_t space_id=*) except -1 # <<<<<<<<<<<<<<
*
* cdef int convert_tuple(object tuple, hsize_t *dims, hsize_t rank) except -1
*/
struct __pyx_opt_args_4h5py_5utils_check_numpy_write {
int __pyx_n;
hid_t space_id;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":72
*
* cdef TypeID typewrap(hid_t id_)
* cpdef TypeID py_create(object dtype, bint logical=*) # <<<<<<<<<<<<<<
*
*
*/
struct __pyx_opt_args_4h5py_3h5t_py_create {
int __pyx_n;
int logical;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":28
* cpdef H5PYConfig get_config()
*
* cdef class ObjectID: # <<<<<<<<<<<<<<
*
* cdef object __weakref__
*/
struct __pyx_obj_4h5py_2h5_ObjectID {
PyObject_HEAD
PyObject *__weakref__;
hid_t id;
int _locked;
PyObject *_hash;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":23
* # --- Base classes ---
*
* cdef class PropID(ObjectID): # <<<<<<<<<<<<<<
* """ Base class for all property lists """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropID {
struct __pyx_obj_4h5py_2h5_ObjectID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":33
* pass
*
* cdef class PropInstanceID(PropID): # <<<<<<<<<<<<<<
* """ Represents an instance of a property list class (i.e. an actual list
* which can be passed on to other API functions).
*/
struct __pyx_obj_4h5py_3h5p_PropInstanceID {
struct __pyx_obj_4h5py_3h5p_PropID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":62
* # --- Object access ---
*
* cdef class PropFAID(PropInstanceID): # <<<<<<<<<<<<<<
* """ File access property list """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropFAID {
struct __pyx_obj_4h5py_3h5p_PropInstanceID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":17
* from h5 cimport class ObjectID
*
* cdef class TypeID(ObjectID): # <<<<<<<<<<<<<<
*
* cdef object py_dtype(self)
*/
struct __pyx_obj_4h5py_3h5t_TypeID {
struct __pyx_obj_4h5py_2h5_ObjectID __pyx_base;
struct __pyx_vtabstruct_4h5py_3h5t_TypeID *__pyx_vtab;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":40
* pass
*
* cdef class TypeBitfieldID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeBitfieldID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":39
* pass
*
* cdef class PropCreateID(PropInstanceID): # <<<<<<<<<<<<<<
* """ Base class for all object creation lists.
*
*/
struct __pyx_obj_4h5py_3h5p_PropCreateID {
struct __pyx_obj_4h5py_3h5p_PropInstanceID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":55
* pass
*
* cdef class PropFCID(PropCreateID): # <<<<<<<<<<<<<<
* """ File creation property list """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropFCID {
struct __pyx_obj_4h5py_3h5p_PropCreateID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":27
* pass
*
* cdef class PropClassID(PropID): # <<<<<<<<<<<<<<
* """ Represents an HDF5 property list class. These can be either (locked)
* library-defined classes or user-created classes.
*/
struct __pyx_obj_4h5py_3h5p_PropClassID {
struct __pyx_obj_4h5py_3h5p_PropID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":59
* # --- Enums & compound types ---
*
* cdef class TypeCompositeID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeCompositeID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":66
* cdef int enum_convert(self, long long *buf, int reverse) except -1
*
* cdef class TypeCompoundID(TypeCompositeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeCompoundID {
struct __pyx_obj_4h5py_3h5t_TypeCompositeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":33
* pass
*
* cdef class TypeVlenID(TypeID): # <<<<<<<<<<<<<<
* # Non-string vlens
* pass
*/
struct __pyx_obj_4h5py_3h5t_TypeVlenID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":75
* IF H5PY_18API:
*
* cdef class PropLCID(PropCreateID): # <<<<<<<<<<<<<<
* """ Link creation property list """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropLCID {
struct __pyx_obj_4h5py_3h5p_PropCreateID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":83
* cdef char* _buf
*
* cdef class PropGCID(PropCreateID): # <<<<<<<<<<<<<<
* """ Group creation property list """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropGCID {
struct __pyx_obj_4h5py_3h5p_PropCreateID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":51
* # --- Object creation ---
*
* cdef class PropDCID(PropCreateID): # <<<<<<<<<<<<<<
* """ Dataset creation property list """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropDCID {
struct __pyx_obj_4h5py_3h5p_PropCreateID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":37
* pass
*
* cdef class TypeTimeID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeTimeID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":23
* # --- Top-level classes ---
*
* cdef class TypeArrayID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeArrayID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":48
* # --- Numeric atomic types ---
*
* cdef class TypeAtomicID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeAtomicID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":54
* pass
*
* cdef class TypeFloatID(TypeAtomicID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeFloatID {
struct __pyx_obj_4h5py_3h5t_TypeAtomicID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":29
* pass
*
* cdef class TypeStringID(TypeID): # <<<<<<<<<<<<<<
* # Both vlen and fixed-len strings
* pass
*/
struct __pyx_obj_4h5py_3h5t_TypeStringID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":26
* pass
*
* cdef class TypeOpaqueID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeOpaqueID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":62
* pass
*
* cdef class TypeEnumID(TypeCompositeID): # <<<<<<<<<<<<<<
*
* cdef int enum_convert(self, long long *buf, int reverse) except -1
*/
struct __pyx_obj_4h5py_3h5t_TypeEnumID {
struct __pyx_obj_4h5py_3h5t_TypeCompositeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":15
* include "defs.pxd"
*
* cdef class H5PYConfig: # <<<<<<<<<<<<<<
*
* cdef object _r_name
*/
struct __pyx_obj_4h5py_2h5_H5PYConfig {
PyObject_HEAD
PyObject *_r_name;
PyObject *_i_name;
PyObject *_f_name;
PyObject *_t_name;
PyObject *API_16;
PyObject *API_18;
PyObject *DEBUG;
PyObject *THREADS;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":46
* pass
*
* cdef class PropCopyID(PropInstanceID): # <<<<<<<<<<<<<<
* """ Property list for copying objects (as in h5o.copy) """
*
*/
struct __pyx_obj_4h5py_3h5p_PropCopyID {
struct __pyx_obj_4h5py_3h5p_PropInstanceID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":51
* pass
*
* cdef class TypeIntegerID(TypeAtomicID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeIntegerID {
struct __pyx_obj_4h5py_3h5t_TypeAtomicID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":43
* pass
*
* cdef class TypeReferenceID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_obj_4h5py_3h5t_TypeReferenceID {
struct __pyx_obj_4h5py_3h5t_TypeID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":66
* pass
*
* cdef class PropDXID(PropInstanceID): # <<<<<<<<<<<<<<
* """ Dataset transfer property list """
* pass
*/
struct __pyx_obj_4h5py_3h5p_PropDXID {
struct __pyx_obj_4h5py_3h5p_PropInstanceID __pyx_base;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":35
* cdef object _hash
*
* cdef class SmartStruct: # <<<<<<<<<<<<<<
* cdef object __weakref__
* cdef object _title
*/
struct __pyx_obj_4h5py_2h5_SmartStruct {
PyObject_HEAD
PyObject *__weakref__;
PyObject *_title;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pxd":79
* pass
*
* cdef class PropLAID(PropInstanceID): # <<<<<<<<<<<<<<
* """ Link access property list """
* cdef char* _buf
*/
struct __pyx_obj_4h5py_3h5p_PropLAID {
struct __pyx_obj_4h5py_3h5p_PropInstanceID __pyx_base;
char *_buf;
};
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":17
* from h5 cimport class ObjectID
*
* cdef class TypeID(ObjectID): # <<<<<<<<<<<<<<
*
* cdef object py_dtype(self)
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeID {
PyObject *(*py_dtype)(struct __pyx_obj_4h5py_3h5t_TypeID *);
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeID *__pyx_vtabptr_4h5py_3h5t_TypeID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":59
* # --- Enums & compound types ---
*
* cdef class TypeCompositeID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeCompositeID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeCompositeID *__pyx_vtabptr_4h5py_3h5t_TypeCompositeID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":66
* cdef int enum_convert(self, long long *buf, int reverse) except -1
*
* cdef class TypeCompoundID(TypeCompositeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeCompoundID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeCompositeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeCompoundID *__pyx_vtabptr_4h5py_3h5t_TypeCompoundID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":26
* pass
*
* cdef class TypeOpaqueID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeOpaqueID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeOpaqueID *__pyx_vtabptr_4h5py_3h5t_TypeOpaqueID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":23
* # --- Top-level classes ---
*
* cdef class TypeArrayID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeArrayID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeArrayID *__pyx_vtabptr_4h5py_3h5t_TypeArrayID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":48
* # --- Numeric atomic types ---
*
* cdef class TypeAtomicID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeAtomicID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeAtomicID *__pyx_vtabptr_4h5py_3h5t_TypeAtomicID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":51
* pass
*
* cdef class TypeIntegerID(TypeAtomicID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeIntegerID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeAtomicID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeIntegerID *__pyx_vtabptr_4h5py_3h5t_TypeIntegerID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":43
* pass
*
* cdef class TypeReferenceID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeReferenceID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeReferenceID *__pyx_vtabptr_4h5py_3h5t_TypeReferenceID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":29
* pass
*
* cdef class TypeStringID(TypeID): # <<<<<<<<<<<<<<
* # Both vlen and fixed-len strings
* pass
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeStringID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeStringID *__pyx_vtabptr_4h5py_3h5t_TypeStringID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":54
* pass
*
* cdef class TypeFloatID(TypeAtomicID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeFloatID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeAtomicID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeFloatID *__pyx_vtabptr_4h5py_3h5t_TypeFloatID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":37
* pass
*
* cdef class TypeTimeID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeTimeID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeTimeID *__pyx_vtabptr_4h5py_3h5t_TypeTimeID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":40
* pass
*
* cdef class TypeBitfieldID(TypeID): # <<<<<<<<<<<<<<
* pass
*
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeBitfieldID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeBitfieldID *__pyx_vtabptr_4h5py_3h5t_TypeBitfieldID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":33
* pass
*
* cdef class TypeVlenID(TypeID): # <<<<<<<<<<<<<<
* # Non-string vlens
* pass
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeVlenID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeID __pyx_base;
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeVlenID *__pyx_vtabptr_4h5py_3h5t_TypeVlenID;
/* "/home/tachyon/slave/unix-release/build/h5py/h5t.pxd":62
* pass
*
* cdef class TypeEnumID(TypeCompositeID): # <<<<<<<<<<<<<<
*
* cdef int enum_convert(self, long long *buf, int reverse) except -1
*/
struct __pyx_vtabstruct_4h5py_3h5t_TypeEnumID {
struct __pyx_vtabstruct_4h5py_3h5t_TypeCompositeID __pyx_base;
int (*enum_convert)(struct __pyx_obj_4h5py_3h5t_TypeEnumID *, PY_LONG_LONG *, int);
};
static struct __pyx_vtabstruct_4h5py_3h5t_TypeEnumID *__pyx_vtabptr_4h5py_3h5t_TypeEnumID;
#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) {
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;
}
#define __Pyx_RefNannySetupContext(name) void *__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#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_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r);} } while(0)
#else
#define __Pyx_RefNannySetupContext(name)
#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_XDECREF(r) Py_XDECREF(r)
#endif /* CYTHON_REFNANNY */
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
static INLINE PyObject* __Pyx_Type(PyObject* o) {
PyObject* type = (PyObject*) Py_TYPE(o);
Py_INCREF(type);
return type;
}
static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_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 int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name); /*proto*/
static 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, size <= sizeof(long)) : \
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
static INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
if (likely(o != Py_None)) {
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, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
}
#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
__Pyx_GetItemInt_Tuple_Fast(o, i, size <= sizeof(long)) : \
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
static INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
if (likely(o != Py_None)) {
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, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
}
#define __Pyx_GetItemInt(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
__Pyx_GetItemInt_Fast(o, i, size <= sizeof(long)) : \
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
static INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
PyObject *r;
if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) {
r = PyList_GET_ITEM(o, i);
Py_INCREF(r);
}
else if (PyTuple_CheckExact(o) && ((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
r = PyTuple_GET_ITEM(o, i);
Py_INCREF(r);
}
else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0))) {
r = PySequence_GetItem(o, i);
}
else {
r = __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
}
return r;
}
static INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict,
const char* function_name, int kw_allowed); /*proto*/
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
const char *name, int exact); /*proto*/
static INLINE hid_t __Pyx_PyInt_from_py_hid_t(PyObject *);
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
static INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t);
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static INLINE PyObject *__Pyx_PyInt_to_py_hsize_t(hsize_t);
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
static INLINE char __Pyx_PyInt_AsChar(PyObject *);
static INLINE short __Pyx_PyInt_AsShort(PyObject *);
static INLINE int __Pyx_PyInt_AsInt(PyObject *);
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
static INLINE long __Pyx_PyInt_AsLong(PyObject *);
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
static INLINE hsize_t __Pyx_PyInt_from_py_hsize_t(PyObject *);
static INLINE hbool_t __Pyx_PyInt_from_py_hbool_t(PyObject *);
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /*proto*/
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size); /*proto*/
static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /*proto*/
static void __Pyx_AddTraceback(const char *funcname); /*proto*/
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
/* Module declarations from h5py.h5 */
static PyTypeObject *__pyx_ptype_4h5py_2h5_H5PYConfig = 0;
static PyTypeObject *__pyx_ptype_4h5py_2h5_ObjectID = 0;
static PyTypeObject *__pyx_ptype_4h5py_2h5_SmartStruct = 0;
static struct __pyx_obj_4h5py_2h5_H5PYConfig *(*__pyx_f_4h5py_2h5_get_config)(int __pyx_skip_dispatch); /*proto*/
static int (*__pyx_f_4h5py_2h5_init_hdf5)(void); /*proto*/
/* Module declarations from numpy */
/* Module declarations from h5py.numpy */
static PyTypeObject *__pyx_ptype_4h5py_5numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_4h5py_5numpy_ndarray = 0;
/* Module declarations from h5py.utils */
static void *(*__pyx_f_4h5py_5utils_emalloc)(size_t); /*proto*/
static void (*__pyx_f_4h5py_5utils_efree)(void *); /*proto*/
static int (*__pyx_f_4h5py_5utils_check_numpy_read)(PyArrayObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_5utils_check_numpy_read *__pyx_optional_args); /*proto*/
static int (*__pyx_f_4h5py_5utils_check_numpy_write)(PyArrayObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_5utils_check_numpy_write *__pyx_optional_args); /*proto*/
static int (*__pyx_f_4h5py_5utils_convert_tuple)(PyObject *, hsize_t *, hsize_t); /*proto*/
static PyObject *(*__pyx_f_4h5py_5utils_convert_dims)(hsize_t *, hsize_t); /*proto*/
static int (*__pyx_f_4h5py_5utils_require_tuple)(PyObject *, int, int, char *); /*proto*/
static PyObject *(*__pyx_f_4h5py_5utils_create_numpy_hsize)(int, hsize_t *); /*proto*/
static PyObject *(*__pyx_f_4h5py_5utils_create_hsize_array)(PyObject *); /*proto*/
/* Module declarations from h5py.h5t */
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeArrayID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeOpaqueID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeStringID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeVlenID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeTimeID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeBitfieldID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeReferenceID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeAtomicID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeIntegerID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeFloatID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeCompositeID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeEnumID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5t_TypeCompoundID = 0;
static struct __pyx_obj_4h5py_3h5t_TypeID *(*__pyx_f_4h5py_3h5t_typewrap)(hid_t); /*proto*/
static struct __pyx_obj_4h5py_3h5t_TypeID *(*__pyx_f_4h5py_3h5t_py_create)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_3h5t_py_create *__pyx_optional_args); /*proto*/
/* Module declarations from h5py.h5p */
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropClassID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropInstanceID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropCreateID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropCopyID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropDCID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropFCID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropFAID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropDXID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropLCID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropLAID = 0;
static PyTypeObject *__pyx_ptype_4h5py_3h5p_PropGCID = 0;
static hid_t __pyx_f_4h5py_3h5p_pdefault(struct __pyx_obj_4h5py_3h5p_PropID *); /*proto*/
static PyObject *__pyx_f_4h5py_3h5p_propwrap(hid_t); /*proto*/
static PyObject *__pyx_f_4h5py_3h5p_lockcls(hid_t); /*proto*/
#define __Pyx_MODULE_NAME "h5py.h5p"
int __pyx_module_is_main_h5py__h5p = 0;
/* Implementation of h5py.h5p */
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_NotImplemented;
static PyObject *__pyx_builtin_TypeError;
static char __pyx_k_1[] = "No class found for ID %d";
static char __pyx_k_2[] = "Property lists are unhashable";
static char __pyx_k_3[] = "Filter index must be a non-negative integer";
static char __pyx_k_4[] = "\n HDF5 property list interface.\n";
static char __pyx_k__id[] = "id";
static char __pyx_k__mdc[] = "mdc";
static char __pyx_k___buf[] = "_buf";
static char __pyx_k__addr[] = "addr";
static char __pyx_k__data[] = "data";
static char __pyx_k__rdcc[] = "rdcc";
static char __pyx_k__size[] = "size";
static char __pyx_k__dtype[] = "dtype";
static char __pyx_k__equal[] = "equal";
static char __pyx_k__flags[] = "flags";
static char __pyx_k__level[] = "level";
static char __pyx_k__values[] = "values";
static char __pyx_k__DEFAULT[] = "DEFAULT";
static char __pyx_k___locked[] = "_locked";
static char __pyx_k__logfile[] = "logfile";
static char __pyx_k__options[] = "options";
static char __pyx_k__rdcc_w0[] = "rdcc_w0";
static char __pyx_k__NO_CLASS[] = "NO_CLASS";
static char __pyx_k____main__[] = "__main__";
static char __pyx_k__buf_size[] = "buf_size";
static char __pyx_k__TypeError[] = "TypeError";
static char __pyx_k__chunksize[] = "chunksize";
static char __pyx_k__memb_fapl[] = "memb_fapl";
static char __pyx_k__memb_size[] = "memb_size";
static char __pyx_k__ValueError[] = "ValueError";
static char __pyx_k__block_size[] = "block_size";
static char __pyx_k__get_filter[] = "get_filter";
static char __pyx_k__FILE_ACCESS[] = "FILE_ACCESS";
static char __pyx_k__FILE_CREATE[] = "FILE_CREATE";
static char __pyx_k__LINK_ACCESS[] = "LINK_ACCESS";
static char __pyx_k__LINK_CREATE[] = "LINK_CREATE";
static char __pyx_k__OBJECT_COPY[] = "OBJECT_COPY";
static char __pyx_k____richcmp__[] = "__richcmp__";
static char __pyx_k___has_filter[] = "_has_filter";
static char __pyx_k__filter_code[] = "filter_code";
static char __pyx_k__rdcc_nbytes[] = "rdcc_nbytes";
static char __pyx_k__DATASET_XFER[] = "DATASET_XFER";
static char __pyx_k__GROUP_CREATE[] = "GROUP_CREATE";
static char __pyx_k__get_nfilters[] = "get_nfilters";
static char __pyx_k__backing_store[] = "backing_store";
static char __pyx_k__DATASET_CREATE[] = "DATASET_CREATE";
static char __pyx_k__NotImplemented[] = "NotImplemented";
static char __pyx_k__pixels_per_block[] = "pixels_per_block";
static PyObject *__pyx_kp_s_1;
static PyObject *__pyx_kp_s_2;
static PyObject *__pyx_kp_s_3;
static PyObject *__pyx_n_s__DATASET_CREATE;
static PyObject *__pyx_n_s__DATASET_XFER;
static PyObject *__pyx_n_s__DEFAULT;
static PyObject *__pyx_n_s__FILE_ACCESS;
static PyObject *__pyx_n_s__FILE_CREATE;
static PyObject *__pyx_n_s__GROUP_CREATE;
static PyObject *__pyx_n_s__LINK_ACCESS;
static PyObject *__pyx_n_s__LINK_CREATE;
static PyObject *__pyx_n_s__NO_CLASS;
static PyObject *__pyx_n_s__NotImplemented;
static PyObject *__pyx_n_s__OBJECT_COPY;
static PyObject *__pyx_n_s__TypeError;
static PyObject *__pyx_n_s__ValueError;
static PyObject *__pyx_n_s____main__;
static PyObject *__pyx_n_s____richcmp__;
static PyObject *__pyx_n_s___buf;
static PyObject *__pyx_n_s___has_filter;
static PyObject *__pyx_n_s___locked;
static PyObject *__pyx_n_s__addr;
static PyObject *__pyx_n_s__backing_store;
static PyObject *__pyx_n_s__block_size;
static PyObject *__pyx_n_s__buf_size;
static PyObject *__pyx_n_s__data;
static PyObject *__pyx_n_s__dtype;
static PyObject *__pyx_n_s__equal;
static PyObject *__pyx_n_s__filter_code;
static PyObject *__pyx_n_s__flags;
static PyObject *__pyx_n_s__get_filter;
static PyObject *__pyx_n_s__get_nfilters;
static PyObject *__pyx_n_s__id;
static PyObject *__pyx_n_s__level;
static PyObject *__pyx_n_s__logfile;
static PyObject *__pyx_n_s__mdc;
static PyObject *__pyx_n_s__memb_fapl;
static PyObject *__pyx_n_s__memb_size;
static PyObject *__pyx_n_s__options;
static PyObject *__pyx_n_s__pixels_per_block;
static PyObject *__pyx_n_s__rdcc;
static PyObject *__pyx_n_s__rdcc_nbytes;
static PyObject *__pyx_n_s__rdcc_w0;
static PyObject *__pyx_n_s__size;
static PyObject *__pyx_n_s__values;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":33
* # === C API ===================================================================
*
* cdef hid_t pdefault(PropID pid): # <<<<<<<<<<<<<<
*
* if pid is None:
*/
static hid_t __pyx_f_4h5py_3h5p_pdefault(struct __pyx_obj_4h5py_3h5p_PropID *__pyx_v_pid) {
hid_t __pyx_r;
int __pyx_t_1;
__Pyx_RefNannySetupContext("pdefault");
__Pyx_INCREF((PyObject *)__pyx_v_pid);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":35
* cdef hid_t pdefault(PropID pid):
*
* if pid is None: # <<<<<<<<<<<<<<
* return <hid_t>H5P_DEFAULT
* return pid.id
*/
__pyx_t_1 = (((PyObject *)__pyx_v_pid) == Py_None);
if (__pyx_t_1) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":36
*
* if pid is None:
* return <hid_t>H5P_DEFAULT # <<<<<<<<<<<<<<
* return pid.id
*
*/
__pyx_r = ((hid_t)H5P_DEFAULT);
goto __pyx_L0;
goto __pyx_L3;
}
__pyx_L3:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":37
* if pid is None:
* return <hid_t>H5P_DEFAULT
* return pid.id # <<<<<<<<<<<<<<
*
* cdef object propwrap(hid_t id_in):
*/
__pyx_r = __pyx_v_pid->__pyx_base.id;
goto __pyx_L0;
__pyx_r = 0;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_pid);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":39
* return pid.id
*
* cdef object propwrap(hid_t id_in): # <<<<<<<<<<<<<<
*
* clsid = H5Pget_class(id_in)
*/
static PyObject *__pyx_f_4h5py_3h5p_propwrap(hid_t __pyx_v_id_in) {
PyObject *__pyx_v_clsid;
PyObject *__pyx_v_pcls;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
hid_t __pyx_t_3;
htri_t __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
herr_t __pyx_t_6;
__Pyx_RefNannySetupContext("propwrap");
__pyx_v_clsid = Py_None; __Pyx_INCREF(Py_None);
__pyx_v_pcls = Py_None; __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":41
* cdef object propwrap(hid_t id_in):
*
* clsid = H5Pget_class(id_in) # <<<<<<<<<<<<<<
* try:
* if H5Pequal(clsid, H5P_FILE_CREATE):
*/
__pyx_t_1 = H5Pget_class(__pyx_v_id_in); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyInt_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_v_clsid);
__pyx_v_clsid = __pyx_t_2;
__pyx_t_2 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":42
*
* clsid = H5Pget_class(id_in)
* try: # <<<<<<<<<<<<<<
* if H5Pequal(clsid, H5P_FILE_CREATE):
* pcls = PropFCID
*/
/*try:*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":43
* clsid = H5Pget_class(id_in)
* try:
* if H5Pequal(clsid, H5P_FILE_CREATE): # <<<<<<<<<<<<<<
* pcls = PropFCID
* elif H5Pequal(clsid, H5P_FILE_ACCESS):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_FILE_CREATE); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":44
* try:
* if H5Pequal(clsid, H5P_FILE_CREATE):
* pcls = PropFCID # <<<<<<<<<<<<<<
* elif H5Pequal(clsid, H5P_FILE_ACCESS):
* pcls = PropFAID
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropFCID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropFCID));
goto __pyx_L6;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":45
* if H5Pequal(clsid, H5P_FILE_CREATE):
* pcls = PropFCID
* elif H5Pequal(clsid, H5P_FILE_ACCESS): # <<<<<<<<<<<<<<
* pcls = PropFAID
* elif H5Pequal(clsid, H5P_DATASET_CREATE):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_FILE_ACCESS); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":46
* pcls = PropFCID
* elif H5Pequal(clsid, H5P_FILE_ACCESS):
* pcls = PropFAID # <<<<<<<<<<<<<<
* elif H5Pequal(clsid, H5P_DATASET_CREATE):
* pcls = PropDCID
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropFAID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropFAID));
goto __pyx_L6;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":47
* elif H5Pequal(clsid, H5P_FILE_ACCESS):
* pcls = PropFAID
* elif H5Pequal(clsid, H5P_DATASET_CREATE): # <<<<<<<<<<<<<<
* pcls = PropDCID
* elif H5Pequal(clsid, H5P_DATASET_XFER):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_DATASET_CREATE); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":48
* pcls = PropFAID
* elif H5Pequal(clsid, H5P_DATASET_CREATE):
* pcls = PropDCID # <<<<<<<<<<<<<<
* elif H5Pequal(clsid, H5P_DATASET_XFER):
* pcls = PropDXID
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropDCID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropDCID));
goto __pyx_L6;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":49
* elif H5Pequal(clsid, H5P_DATASET_CREATE):
* pcls = PropDCID
* elif H5Pequal(clsid, H5P_DATASET_XFER): # <<<<<<<<<<<<<<
* pcls = PropDXID
* else:
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_DATASET_XFER); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":50
* pcls = PropDCID
* elif H5Pequal(clsid, H5P_DATASET_XFER):
* pcls = PropDXID # <<<<<<<<<<<<<<
* else:
* IF H5PY_18API:
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropDXID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropDXID));
goto __pyx_L6;
}
/*else*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":53
* else:
* IF H5PY_18API:
* if H5Pequal(clsid, H5P_OBJECT_COPY): # <<<<<<<<<<<<<<
* pcls = PropCopyID
* elif H5Pequal(clsid, H5P_LINK_CREATE):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_OBJECT_COPY); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":54
* IF H5PY_18API:
* if H5Pequal(clsid, H5P_OBJECT_COPY):
* pcls = PropCopyID # <<<<<<<<<<<<<<
* elif H5Pequal(clsid, H5P_LINK_CREATE):
* pcls = PropLCID
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropCopyID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropCopyID));
goto __pyx_L7;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":55
* if H5Pequal(clsid, H5P_OBJECT_COPY):
* pcls = PropCopyID
* elif H5Pequal(clsid, H5P_LINK_CREATE): # <<<<<<<<<<<<<<
* pcls = PropLCID
* elif H5Pequal(clsid, H5P_LINK_ACCESS):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_LINK_CREATE); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":56
* pcls = PropCopyID
* elif H5Pequal(clsid, H5P_LINK_CREATE):
* pcls = PropLCID # <<<<<<<<<<<<<<
* elif H5Pequal(clsid, H5P_LINK_ACCESS):
* pcls = PropLAID
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropLCID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropLCID));
goto __pyx_L7;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":57
* elif H5Pequal(clsid, H5P_LINK_CREATE):
* pcls = PropLCID
* elif H5Pequal(clsid, H5P_LINK_ACCESS): # <<<<<<<<<<<<<<
* pcls = PropLAID
* elif H5Pequal(clsid, H5P_GROUP_CREATE):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_LINK_ACCESS); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":58
* pcls = PropLCID
* elif H5Pequal(clsid, H5P_LINK_ACCESS):
* pcls = PropLAID # <<<<<<<<<<<<<<
* elif H5Pequal(clsid, H5P_GROUP_CREATE):
* pcls = PropGCID
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropLAID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropLAID));
goto __pyx_L7;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":59
* elif H5Pequal(clsid, H5P_LINK_ACCESS):
* pcls = PropLAID
* elif H5Pequal(clsid, H5P_GROUP_CREATE): # <<<<<<<<<<<<<<
* pcls = PropGCID
* else:
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L4;}
__pyx_t_4 = H5Pequal(__pyx_t_3, H5P_GROUP_CREATE); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L4;}
if (__pyx_t_4) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":60
* pcls = PropLAID
* elif H5Pequal(clsid, H5P_GROUP_CREATE):
* pcls = PropGCID # <<<<<<<<<<<<<<
* else:
* raise ValueError("No class found for ID %d" % id_in)
*/
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropGCID)));
__Pyx_DECREF(__pyx_v_pcls);
__pyx_v_pcls = ((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropGCID));
goto __pyx_L7;
}
/*else*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":62
* pcls = PropGCID
* else:
* raise ValueError("No class found for ID %d" % id_in) # <<<<<<<<<<<<<<
* ELSE:
* raise ValueError("No class found for ID %d" % id_in)
*/
__pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_v_id_in); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_1), __pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_5);
__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 = 62; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_5);
__pyx_t_5 = 0;
__pyx_t_5 = PyObject_Call(__pyx_builtin_ValueError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_Raise(__pyx_t_5, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L4;}
}
__pyx_L7:;
}
__pyx_L6:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":66
* raise ValueError("No class found for ID %d" % id_in)
*
* return pcls(id_in) # <<<<<<<<<<<<<<
* finally:
* H5Pclose_class(clsid)
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_5 = __Pyx_PyInt_to_py_hid_t(__pyx_v_id_in); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_5);
__pyx_t_5 = 0;
__pyx_t_5 = PyObject_Call(__pyx_v_pcls, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L4;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_5;
__pyx_t_5 = 0;
goto __pyx_L3;
}
/*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_5); __pyx_t_5 = 0;
__Pyx_ErrFetch(&__pyx_exc_type, &__pyx_exc_value, &__pyx_exc_tb);
__pyx_exc_lineno = __pyx_lineno;
goto __pyx_L5;
}
__pyx_L5:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":68
* return pcls(id_in)
* finally:
* H5Pclose_class(clsid) # <<<<<<<<<<<<<<
*
* cdef object lockcls(hid_t id_in):
*/
__pyx_t_3 = __Pyx_PyInt_from_py_hid_t(__pyx_v_clsid); if (unlikely((__pyx_t_3 == (hid_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
__pyx_t_6 = H5Pclose_class(__pyx_t_3); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
goto __pyx_L9;
__pyx_L8_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 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_2);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_AddTraceback("h5py.h5p.propwrap");
__pyx_r = 0;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_clsid);
__Pyx_DECREF(__pyx_v_pcls);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":70
* H5Pclose_class(clsid)
*
* cdef object lockcls(hid_t id_in): # <<<<<<<<<<<<<<
* cdef PropClassID pid
* pid = PropClassID(id_in)
*/
static PyObject *__pyx_f_4h5py_3h5p_lockcls(hid_t __pyx_v_id_in) {
struct __pyx_obj_4h5py_3h5p_PropClassID *__pyx_v_pid;
PyObject *__pyx_r = NULL;
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("lockcls");
__pyx_v_pid = ((struct __pyx_obj_4h5py_3h5p_PropClassID *)Py_None); __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":72
* cdef object lockcls(hid_t id_in):
* cdef PropClassID pid
* pid = PropClassID(id_in) # <<<<<<<<<<<<<<
* pid._locked = 1
* return pid
*/
__pyx_t_1 = __Pyx_PyInt_to_py_hid_t(__pyx_v_id_in); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __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 = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__pyx_t_1 = 0;
__pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropClassID)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __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_v_pid));
__pyx_v_pid = ((struct __pyx_obj_4h5py_3h5p_PropClassID *)__pyx_t_1);
__pyx_t_1 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":73
* cdef PropClassID pid
* pid = PropClassID(id_in)
* pid._locked = 1 # <<<<<<<<<<<<<<
* return pid
*
*/
__pyx_v_pid->__pyx_base.__pyx_base._locked = 1;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":74
* pid = PropClassID(id_in)
* pid._locked = 1
* return pid # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(((PyObject *)__pyx_v_pid));
__pyx_r = ((PyObject *)__pyx_v_pid);
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("h5py.h5p.lockcls");
__pyx_r = 0;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_pid);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":103
* IF H5PY_18API:
*
* def create(PropClassID cls not None): # <<<<<<<<<<<<<<
* """(PropClassID cls) => PropID
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_create(PyObject *__pyx_self, PyObject *__pyx_v_cls); /*proto*/
static char __pyx_doc_4h5py_3h5p_create[] = "(PropClassID cls) => PropID\n \n Create a new property list as an instance of a class; classes are:\n\n - FILE_CREATE\n - FILE_ACCESS\n - DATASET_CREATE\n - DATASET_XFER\n - LINK_CREATE\n - LINK_ACCESS\n - GROUP_CREATE\n - OBJECT_COPY\n ";
static PyObject *__pyx_pf_4h5py_3h5p_create(PyObject *__pyx_self, PyObject *__pyx_v_cls) {
hid_t __pyx_v_newid;
PyObject *__pyx_r = NULL;
hid_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("create");
__pyx_self = __pyx_self;
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cls), __pyx_ptype_4h5py_3h5p_PropClassID, 0, "cls", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":118
* """
* cdef hid_t newid
* newid = H5Pcreate(cls.id) # <<<<<<<<<<<<<<
* return propwrap(newid)
* ELSE:
*/
__pyx_t_1 = H5Pcreate(((struct __pyx_obj_4h5py_3h5p_PropClassID *)__pyx_v_cls)->__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_newid = __pyx_t_1;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":119
* cdef hid_t newid
* newid = H5Pcreate(cls.id)
* return propwrap(newid) # <<<<<<<<<<<<<<
* ELSE:
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __pyx_f_4h5py_3h5p_propwrap(__pyx_v_newid); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __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("h5py.h5p.create");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":145
*
*
* def equal(self, PropID plist not None): # <<<<<<<<<<<<<<
* """(PropID plist) => BOOL
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_6PropID_equal(PyObject *__pyx_v_self, PyObject *__pyx_v_plist); /*proto*/
static char __pyx_doc_4h5py_3h5p_6PropID_equal[] = "(PropID plist) => BOOL\n\n Compare this property list (or class) to another for equality.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_6PropID_equal(PyObject *__pyx_v_self, PyObject *__pyx_v_plist) {
PyObject *__pyx_r = NULL;
htri_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("equal");
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_plist), __pyx_ptype_4h5py_3h5p_PropID, 0, "plist", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":150
* Compare this property list (or class) to another for equality.
* """
* return <bint>(H5Pequal(self.id, plist.id)) # <<<<<<<<<<<<<<
*
* def __richcmp__(self, object other, int how):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pequal(((struct __pyx_obj_4h5py_3h5p_PropID *)__pyx_v_self)->__pyx_base.id, ((struct __pyx_obj_4h5py_3h5p_PropID *)__pyx_v_plist)->__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = __Pyx_PyBool_FromLong(((int)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __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("h5py.h5p.PropID.equal");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":152
* return <bint>(H5Pequal(self.id, plist.id))
*
* def __richcmp__(self, object other, int how): # <<<<<<<<<<<<<<
* cdef bint truthval = 0
* if how != 2 and how != 3:
*/
static PyObject *__pyx_pf_4h5py_3h5p_6PropID___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_how); /*proto*/
static PyObject *__pyx_pf_4h5py_3h5p_6PropID___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_how) {
int __pyx_v_truthval;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
int __pyx_t_2;
int __pyx_t_3;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
__Pyx_RefNannySetupContext("__richcmp__");
__Pyx_INCREF(__pyx_v_self);
__Pyx_INCREF(__pyx_v_other);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":153
*
* def __richcmp__(self, object other, int how):
* cdef bint truthval = 0 # <<<<<<<<<<<<<<
* if how != 2 and how != 3:
* return NotImplemented
*/
__pyx_v_truthval = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":154
* def __richcmp__(self, object other, int how):
* cdef bint truthval = 0
* if how != 2 and how != 3: # <<<<<<<<<<<<<<
* return NotImplemented
* if type(self) == type(other):
*/
__pyx_t_1 = (__pyx_v_how != 2);
if (__pyx_t_1) {
__pyx_t_2 = (__pyx_v_how != 3);
__pyx_t_3 = __pyx_t_2;
} else {
__pyx_t_3 = __pyx_t_1;
}
if (__pyx_t_3) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":155
* cdef bint truthval = 0
* if how != 2 and how != 3:
* return NotImplemented # <<<<<<<<<<<<<<
* if type(self) == type(other):
* truthval = self.equal(other)
*/
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_builtin_NotImplemented);
__pyx_r = __pyx_builtin_NotImplemented;
goto __pyx_L0;
goto __pyx_L5;
}
__pyx_L5:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":156
* if how != 2 and how != 3:
* return NotImplemented
* if type(self) == type(other): # <<<<<<<<<<<<<<
* truthval = self.equal(other)
*
*/
__pyx_t_4 = ((PyObject *)__Pyx_Type(__pyx_v_self)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
__pyx_t_5 = ((PyObject *)__Pyx_Type(__pyx_v_other)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_4), ((PyObject *)__pyx_t_5), Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
if (__pyx_t_3) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":157
* return NotImplemented
* if type(self) == type(other):
* truthval = self.equal(other) # <<<<<<<<<<<<<<
*
* if how == 2:
*/
__pyx_t_6 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__equal); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__Pyx_INCREF(__pyx_v_other);
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_other);
__Pyx_GIVEREF(__pyx_v_other);
__pyx_t_4 = PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_truthval = __pyx_t_3;
goto __pyx_L6;
}
__pyx_L6:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":159
* truthval = self.equal(other)
*
* if how == 2: # <<<<<<<<<<<<<<
* return truthval
* return not truthval
*/
__pyx_t_3 = (__pyx_v_how == 2);
if (__pyx_t_3) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":160
*
* if how == 2:
* return truthval # <<<<<<<<<<<<<<
* return not truthval
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_truthval); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
goto __pyx_L7;
}
__pyx_L7:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":161
* if how == 2:
* return truthval
* return not truthval # <<<<<<<<<<<<<<
*
* def __hash__(self):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_4 = __Pyx_PyBool_FromLong((!__pyx_v_truthval)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __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_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_AddTraceback("h5py.h5p.PropID.__richcmp__");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_self);
__Pyx_DECREF(__pyx_v_other);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":163
* return not truthval
*
* def __hash__(self): # <<<<<<<<<<<<<<
* raise TypeError("Property lists are unhashable")
*
*/
static long __pyx_pf_4h5py_3h5p_6PropID___hash__(PyObject *__pyx_v_self); /*proto*/
static long __pyx_pf_4h5py_3h5p_6PropID___hash__(PyObject *__pyx_v_self) {
long __pyx_r;
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("__hash__");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":164
*
* def __hash__(self):
* raise TypeError("Property lists are unhashable") # <<<<<<<<<<<<<<
*
* cdef class PropClassID(PropID):
*/
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_2));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
__pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __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);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("h5py.h5p.PropID.__hash__");
__pyx_r = -1;
__pyx_L0:;
if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":175
* """
*
* def __richcmp__(self, object other, int how): # <<<<<<<<<<<<<<
* return PropID.__richcmp__(self, other, how)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_11PropClassID___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_how); /*proto*/
static PyObject *__pyx_pf_4h5py_3h5p_11PropClassID___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_how) {
PyObject *__pyx_r = NULL;
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
__Pyx_RefNannySetupContext("__richcmp__");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":176
*
* def __richcmp__(self, object other, int how):
* return PropID.__richcmp__(self, other, how) # <<<<<<<<<<<<<<
*
* def __hash__(self):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropID)), __pyx_n_s____richcmp__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyInt_FromLong(__pyx_v_how); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __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 = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_self);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self);
__Pyx_GIVEREF(__pyx_v_self);
__Pyx_INCREF(__pyx_v_other);
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_other);
__Pyx_GIVEREF(__pyx_v_other);
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
__pyx_t_2 = 0;
__pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 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_XDECREF(__pyx_t_3);
__Pyx_AddTraceback("h5py.h5p.PropClassID.__richcmp__");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":178
* return PropID.__richcmp__(self, other, how)
*
* def __hash__(self): # <<<<<<<<<<<<<<
* """ Since classes are library-created and immutable, they are uniquely
* identified by their HDF5 identifiers.
*/
static long __pyx_pf_4h5py_3h5p_11PropClassID___hash__(PyObject *__pyx_v_self); /*proto*/
static char __pyx_doc_4h5py_3h5p_11PropClassID___hash__[] = " Since classes are library-created and immutable, they are uniquely\n identified by their HDF5 identifiers.\n ";
static long __pyx_pf_4h5py_3h5p_11PropClassID___hash__(PyObject *__pyx_v_self) {
long __pyx_r;
PyObject *__pyx_t_1 = NULL;
long __pyx_t_2;
__Pyx_RefNannySetupContext("__hash__");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":182
* identified by their HDF5 identifiers.
* """
* return hash(self.id) # <<<<<<<<<<<<<<
*
* cdef class PropInstanceID(PropID):
*/
__pyx_t_1 = __Pyx_PyInt_to_py_hid_t(((struct __pyx_obj_4h5py_3h5p_PropClassID *)__pyx_v_self)->__pyx_base.__pyx_base.id); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_2;
goto __pyx_L0;
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("h5py.h5p.PropClassID.__hash__");
__pyx_r = -1;
__pyx_L0:;
if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":195
*
*
* def copy(self): # <<<<<<<<<<<<<<
* """() => PropList newid
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_14PropInstanceID_copy(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_14PropInstanceID_copy[] = "() => PropList newid\n\n Create a new copy of an existing property list object.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_14PropInstanceID_copy(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
PyObject *__pyx_t_1 = NULL;
hid_t __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
__Pyx_RefNannySetupContext("copy");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":200
* Create a new copy of an existing property list object.
* """
* return type(self)(H5Pcopy(self.id)) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = ((PyObject *)__Pyx_Type(__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
__pyx_t_2 = H5Pcopy(((struct __pyx_obj_4h5py_3h5p_PropInstanceID *)__pyx_v_self)->__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = __Pyx_PyInt_to_py_hid_t(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __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 = 200; __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 *)__pyx_t_1), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__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_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("h5py.h5p.PropInstanceID.copy");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":203
*
*
* def _close(self): # <<<<<<<<<<<<<<
* """()
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_14PropInstanceID__close(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_14PropInstanceID__close[] = "()\n \n Terminate access through this identifier. You shouldn't have to\n do this manually, as propery lists are automatically deleted when\n their Python wrappers are freed.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_14PropInstanceID__close(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("_close");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":210
* their Python wrappers are freed.
* """
* H5Pclose(self.id) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pclose(((struct __pyx_obj_4h5py_3h5p_PropInstanceID *)__pyx_v_self)->__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropInstanceID._close");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":213
*
*
* def get_class(self): # <<<<<<<<<<<<<<
* """() => PropClassID
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_14PropInstanceID_get_class(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_14PropInstanceID_get_class[] = "() => PropClassID\n\n Determine the class of a property list object.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_14PropInstanceID_get_class(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
__Pyx_RefNannySetupContext("get_class");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":218
* Determine the class of a property list object.
* """
* return PropClassID(H5Pget_class(self.id)) # <<<<<<<<<<<<<<
*
* cdef class PropCreateID(PropInstanceID):
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pget_class(((struct __pyx_obj_4h5py_3h5p_PropInstanceID *)__pyx_v_self)->__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyInt_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __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 = 218; __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(((PyObject *)((PyObject*)__pyx_ptype_4h5py_3h5p_PropClassID)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 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_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_AddTraceback("h5py.h5p.PropInstanceID.get_class");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":242
*
*
* def set_copy_object(self, unsigned int flags): # <<<<<<<<<<<<<<
* """(UINT flags)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_10PropCopyID_set_copy_object(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static char __pyx_doc_4h5py_3h5p_10PropCopyID_set_copy_object[] = "(UINT flags)\n\n Set flags for object copying process. Legal flags are\n from the h5o.COPY* family:\n\n h5o.COPY_SHALLOW_HIERARCHY_FLAG\n Copy only immediate members of a group.\n\n h5o.COPY_EXPAND_SOFT_LINK_FLAG\n Expand soft links into new objects.\n\n h5o.COPY_EXPAND_EXT_LINK_FLAG\n Expand external link into new objects.\n\n h5o.COPY_EXPAND_REFERENCE_FLAG\n Copy objects that are pointed to by references.\n\n h5o.COPY_WITHOUT_ATTR_FLAG\n Copy object without copying attributes.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_10PropCopyID_set_copy_object(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
unsigned int __pyx_v_flags;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_copy_object");
assert(__pyx_arg_flags); {
__pyx_v_flags = __Pyx_PyInt_AsUnsignedInt(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropCopyID.set_copy_object");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":263
* Copy object without copying attributes.
* """
* H5Pset_copy_object(self.id, flags) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_copy_object(((struct __pyx_obj_4h5py_3h5p_PropCopyID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_flags); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropCopyID.set_copy_object");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":266
*
*
* def get_copy_object(self): # <<<<<<<<<<<<<<
* """() => UINT flags
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_10PropCopyID_get_copy_object(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_10PropCopyID_get_copy_object[] = "() => UINT flags\n\n Get copy process flags. Legal flags are h5o.COPY*.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_10PropCopyID_get_copy_object(PyObject *__pyx_v_self, PyObject *unused) {
unsigned int __pyx_v_flags;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_copy_object");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":272
* """
* cdef unsigned int flags
* H5Pget_copy_object(self.id, &flags) # <<<<<<<<<<<<<<
* return flags
*
*/
__pyx_t_1 = H5Pget_copy_object(((struct __pyx_obj_4h5py_3h5p_PropCopyID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_flags)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":273
* cdef unsigned int flags
* H5Pget_copy_object(self.id, &flags)
* return flags # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __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("h5py.h5p.PropCopyID.get_copy_object");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":20
*
*
* def get_version(self): # <<<<<<<<<<<<<<
* """() => TUPLE version_info
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_get_version(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFCID_get_version[] = "() => TUPLE version_info\n\n Determine version information of various file attributes. \n Elements are:\n\n 0. UINT Super block version number\n 1. UINT Freelist version number\n 2. UINT Symbol table version number\n 3. UINT Shared object header version number\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_get_version(PyObject *__pyx_v_self, PyObject *unused) {
unsigned int __pyx_v_super_;
unsigned int __pyx_v_freelist;
unsigned int __pyx_v_stab;
unsigned int __pyx_v_shhdr;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
__Pyx_RefNannySetupContext("get_version");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":37
* cdef unsigned int shhdr
*
* H5Pget_version(self.id, &super_, &freelist, &stab, &shhdr) # <<<<<<<<<<<<<<
*
* return (super_, freelist, stab, shhdr)
*/
__pyx_t_1 = H5Pget_version(((struct __pyx_obj_4h5py_3h5p_PropFCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_super_), (&__pyx_v_freelist), (&__pyx_v_stab), (&__pyx_v_shhdr)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":39
* H5Pget_version(self.id, &super_, &freelist, &stab, &shhdr)
*
* return (super_, freelist, stab, shhdr) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_super_); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_freelist); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyLong_FromUnsignedLong(__pyx_v_stab); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = PyLong_FromUnsignedLong(__pyx_v_shhdr); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __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);
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_5);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__pyx_t_4 = 0;
__pyx_t_5 = 0;
__pyx_r = __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_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_AddTraceback("h5py.h5p.PropFCID.get_version");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":42
*
*
* def set_userblock(self, hsize_t size): # <<<<<<<<<<<<<<
* """(INT/LONG size)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_set_userblock(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFCID_set_userblock[] = "(INT/LONG size)\n\n Set the file user block size, in bytes. \n Must be a power of 2, and at least 512.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_set_userblock(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
hsize_t __pyx_v_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_userblock");
assert(__pyx_arg_size); {
__pyx_v_size = __Pyx_PyInt_from_py_hsize_t(__pyx_arg_size); if (unlikely((__pyx_v_size == (hsize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFCID.set_userblock");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":48
* Must be a power of 2, and at least 512.
* """
* H5Pset_userblock(self.id, size) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_userblock(((struct __pyx_obj_4h5py_3h5p_PropFCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_size); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFCID.set_userblock");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":51
*
*
* def get_userblock(self): # <<<<<<<<<<<<<<
* """() => LONG size
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_get_userblock(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFCID_get_userblock[] = "() => LONG size\n\n Determine the user block size, in bytes.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_get_userblock(PyObject *__pyx_v_self, PyObject *unused) {
hsize_t __pyx_v_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_userblock");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":57
* """
* cdef hsize_t size
* H5Pget_userblock(self.id, &size) # <<<<<<<<<<<<<<
* return size
*
*/
__pyx_t_1 = H5Pget_userblock(((struct __pyx_obj_4h5py_3h5p_PropFCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_size)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":58
* cdef hsize_t size
* H5Pget_userblock(self.id, &size)
* return size # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_to_py_hsize_t(__pyx_v_size); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 58; __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("h5py.h5p.PropFCID.get_userblock");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":61
*
*
* def set_sizes(self, size_t addr, size_t size): # <<<<<<<<<<<<<<
* """(UINT addr, UINT size)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_set_sizes(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFCID_set_sizes[] = "(UINT addr, UINT size)\n\n Set the addressing offsets and lengths for objects \n in an HDF5 file, in bytes.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_set_sizes(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
size_t __pyx_v_addr;
size_t __pyx_v_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__addr,&__pyx_n_s__size,0};
__Pyx_RefNannySetupContext("set_sizes");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[2] = {0,0};
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);
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__addr);
if (likely(values[0])) kw_args--;
else goto __pyx_L5_argtuple_error;
case 1:
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__size);
if (likely(values[1])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_sizes", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_sizes") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
__pyx_v_addr = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v_addr == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_size = __Pyx_PyInt_AsSize_t(values[1]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
} else {
__pyx_v_addr = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_addr == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_size = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_sizes", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFCID.set_sizes");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":67
* in an HDF5 file, in bytes.
* """
* H5Pset_sizes(self.id, addr, size) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_sizes(((struct __pyx_obj_4h5py_3h5p_PropFCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_addr, __pyx_v_size); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFCID.set_sizes");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":70
*
*
* def get_sizes(self): # <<<<<<<<<<<<<<
* """() => TUPLE sizes
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_get_sizes(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFCID_get_sizes[] = "() => TUPLE sizes\n\n Determine addressing offsets and lengths for objects in an \n HDF5 file, in bytes. Return value is a 2-tuple with values:\n\n 0. UINT Address offsets\n 1. UINT Lengths\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFCID_get_sizes(PyObject *__pyx_v_self, PyObject *unused) {
size_t __pyx_v_addr;
size_t __pyx_v_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
__Pyx_RefNannySetupContext("get_sizes");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":81
* cdef size_t addr
* cdef size_t size
* H5Pget_sizes(self.id, &addr, &size) # <<<<<<<<<<<<<<
* return (addr, size)
*
*/
__pyx_t_1 = H5Pget_sizes(((struct __pyx_obj_4h5py_3h5p_PropFCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_addr), (&__pyx_v_size)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_fcid.pxi":82
* cdef size_t size
* H5Pget_sizes(self.id, &addr, &size)
* return (addr, size) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__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_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("h5py.h5p.PropFCID.get_sizes");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":20
*
*
* def set_layout(self, int layout_code): # <<<<<<<<<<<<<<
* """(INT layout_code)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_layout(PyObject *__pyx_v_self, PyObject *__pyx_arg_layout_code); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_layout[] = "(INT layout_code)\n\n Set dataset storage strategy; legal values are:\n\n - h5d.COMPACT\n - h5d.CONTIGUOUS\n - h5d.CHUNKED\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_layout(PyObject *__pyx_v_self, PyObject *__pyx_arg_layout_code) {
int __pyx_v_layout_code;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_layout");
assert(__pyx_arg_layout_code); {
__pyx_v_layout_code = __Pyx_PyInt_AsInt(__pyx_arg_layout_code); if (unlikely((__pyx_v_layout_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_layout");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":29
* - h5d.CHUNKED
* """
* H5Pset_layout(self.id, layout_code) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_layout(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_layout_code); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_layout");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":32
*
*
* def get_layout(self): # <<<<<<<<<<<<<<
* """() => INT layout_code
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_layout(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_layout[] = "() => INT layout_code\n\n Determine the storage strategy of a dataset; legal values are:\n\n - h5d.COMPACT\n - h5d.CONTIGUOUS\n - h5d.CHUNKED\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_layout(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
H5D_layout_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_layout");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":41
* - h5d.CHUNKED
* """
* return <int>H5Pget_layout(self.id) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pget_layout(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyInt_FromLong(((int)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 41; __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("h5py.h5p.PropDCID.get_layout");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":44
*
*
* def set_chunk(self, object chunksize): # <<<<<<<<<<<<<<
* """(TUPLE chunksize)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_chunk(PyObject *__pyx_v_self, PyObject *__pyx_v_chunksize); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_chunk[] = "(TUPLE chunksize)\n\n Set the dataset chunk size. It's up to you to provide \n values which are compatible with your dataset.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_chunk(PyObject *__pyx_v_self, PyObject *__pyx_v_chunksize) {
int __pyx_v_rank;
hsize_t *__pyx_v_dims;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
Py_ssize_t __pyx_t_2;
void *__pyx_t_3;
herr_t __pyx_t_4;
__Pyx_RefNannySetupContext("set_chunk");
__Pyx_INCREF((PyObject *)__pyx_v_self);
__Pyx_INCREF(__pyx_v_chunksize);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":52
* cdef int rank
* cdef hsize_t* dims
* dims = NULL # <<<<<<<<<<<<<<
*
* require_tuple(chunksize, 0, -1, "chunksize")
*/
__pyx_v_dims = NULL;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":54
* dims = NULL
*
* require_tuple(chunksize, 0, -1, "chunksize") # <<<<<<<<<<<<<<
* rank = len(chunksize)
*
*/
__pyx_t_1 = __pyx_f_4h5py_5utils_require_tuple(__pyx_v_chunksize, 0, -1, __pyx_k__chunksize); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":55
*
* require_tuple(chunksize, 0, -1, "chunksize")
* rank = len(chunksize) # <<<<<<<<<<<<<<
*
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank)
*/
__pyx_t_2 = PyObject_Length(__pyx_v_chunksize); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_rank = __pyx_t_2;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":57
* rank = len(chunksize)
*
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank) # <<<<<<<<<<<<<<
* try:
* convert_tuple(chunksize, dims, rank)
*/
__pyx_t_3 = __pyx_f_4h5py_5utils_emalloc(((sizeof(hsize_t)) * __pyx_v_rank)); if (unlikely(__pyx_t_3 == NULL && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_dims = ((hsize_t *)__pyx_t_3);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":58
*
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank)
* try: # <<<<<<<<<<<<<<
* convert_tuple(chunksize, dims, rank)
* H5Pset_chunk(self.id, rank, dims)
*/
/*try:*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":59
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank)
* try:
* convert_tuple(chunksize, dims, rank) # <<<<<<<<<<<<<<
* H5Pset_chunk(self.id, rank, dims)
* finally:
*/
__pyx_t_1 = __pyx_f_4h5py_5utils_convert_tuple(__pyx_v_chunksize, __pyx_v_dims, __pyx_v_rank); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L6;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":60
* try:
* convert_tuple(chunksize, dims, rank)
* H5Pset_chunk(self.id, rank, dims) # <<<<<<<<<<<<<<
* finally:
* efree(dims)
*/
__pyx_t_4 = H5Pset_chunk(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_rank, __pyx_v_dims); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L6;}
}
/*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_L7;
__pyx_L6: {
__pyx_why = 4;
__Pyx_ErrFetch(&__pyx_exc_type, &__pyx_exc_value, &__pyx_exc_tb);
__pyx_exc_lineno = __pyx_lineno;
goto __pyx_L7;
}
__pyx_L7:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":62
* H5Pset_chunk(self.id, rank, dims)
* finally:
* efree(dims) # <<<<<<<<<<<<<<
*
*
*/
__pyx_f_4h5py_5utils_efree(__pyx_v_dims);
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;
}
}
}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_chunk");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_DECREF(__pyx_v_chunksize);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":65
*
*
* def get_chunk(self): # <<<<<<<<<<<<<<
* """() => TUPLE chunk_dimensions
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_chunk(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_chunk[] = "() => TUPLE chunk_dimensions\n\n Obtain the dataset chunk size, as a tuple.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_chunk(PyObject *__pyx_v_self, PyObject *unused) {
int __pyx_v_rank;
hsize_t *__pyx_v_dims;
PyObject *__pyx_v_tpl;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
void *__pyx_t_2;
PyObject *__pyx_t_3 = NULL;
__Pyx_RefNannySetupContext("get_chunk");
__Pyx_INCREF((PyObject *)__pyx_v_self);
__pyx_v_tpl = Py_None; __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":73
* cdef hsize_t *dims
*
* rank = H5Pget_chunk(self.id, 0, NULL) # <<<<<<<<<<<<<<
* assert rank >= 0
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank)
*/
__pyx_t_1 = H5Pget_chunk(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, 0, NULL); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_rank = __pyx_t_1;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":74
*
* rank = H5Pget_chunk(self.id, 0, NULL)
* assert rank >= 0 # <<<<<<<<<<<<<<
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank)
*
*/
#ifndef PYREX_WITHOUT_ASSERTIONS
if (unlikely(!(__pyx_v_rank >= 0))) {
PyErr_SetNone(PyExc_AssertionError);
{__pyx_filename = __pyx_f[2]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
#endif
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":75
* rank = H5Pget_chunk(self.id, 0, NULL)
* assert rank >= 0
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank) # <<<<<<<<<<<<<<
*
* try:
*/
__pyx_t_2 = __pyx_f_4h5py_5utils_emalloc(((sizeof(hsize_t)) * __pyx_v_rank)); if (unlikely(__pyx_t_2 == NULL && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_dims = ((hsize_t *)__pyx_t_2);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":77
* dims = <hsize_t*>emalloc(sizeof(hsize_t)*rank)
*
* try: # <<<<<<<<<<<<<<
* H5Pget_chunk(self.id, rank, dims)
* tpl = convert_dims(dims, rank)
*/
/*try:*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":78
*
* try:
* H5Pget_chunk(self.id, rank, dims) # <<<<<<<<<<<<<<
* tpl = convert_dims(dims, rank)
* return tpl
*/
__pyx_t_1 = H5Pget_chunk(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_rank, __pyx_v_dims); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L6;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":79
* try:
* H5Pget_chunk(self.id, rank, dims)
* tpl = convert_dims(dims, rank) # <<<<<<<<<<<<<<
* return tpl
* finally:
*/
__pyx_t_3 = __pyx_f_4h5py_5utils_convert_dims(__pyx_v_dims, __pyx_v_rank); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L6;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_v_tpl);
__pyx_v_tpl = __pyx_t_3;
__pyx_t_3 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":80
* H5Pget_chunk(self.id, rank, dims)
* tpl = convert_dims(dims, rank)
* return tpl # <<<<<<<<<<<<<<
* finally:
* efree(dims)
*/
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_tpl);
__pyx_r = __pyx_v_tpl;
goto __pyx_L5;
}
/*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_L7;
__pyx_L5: __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; __pyx_exc_lineno = 0;
__pyx_why = 3; goto __pyx_L7;
__pyx_L6: {
__pyx_why = 4;
__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_L7;
}
__pyx_L7:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":82
* return tpl
* finally:
* efree(dims) # <<<<<<<<<<<<<<
*
*
*/
__pyx_f_4h5py_5utils_efree(__pyx_v_dims);
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_3);
__Pyx_AddTraceback("h5py.h5p.PropDCID.get_chunk");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_tpl);
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":85
*
*
* def set_fill_value(self, ndarray value not None): # <<<<<<<<<<<<<<
* """(NDARRAY value)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_fill_value(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_fill_value[] = "(NDARRAY value)\n\n Set the dataset fill value. The object provided should be an\n 0-dimensional NumPy array; otherwise, the value will be read from\n the first element.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_fill_value(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
struct __pyx_obj_4h5py_3h5t_TypeID *__pyx_v_tid;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
struct __pyx_opt_args_4h5py_5utils_check_numpy_read __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
herr_t __pyx_t_5;
__Pyx_RefNannySetupContext("set_fill_value");
__pyx_v_tid = ((struct __pyx_obj_4h5py_3h5t_TypeID *)Py_None); __Pyx_INCREF(Py_None);
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_4h5py_5numpy_ndarray, 0, "value", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":94
* cdef TypeID tid
*
* check_numpy_read(value, -1) # <<<<<<<<<<<<<<
* tid = py_create(value.dtype)
* H5Pset_fill_value(self.id, tid.id, value.data)
*/
__pyx_t_2.__pyx_n = 1;
__pyx_t_2.space_id = -1;
__pyx_t_1 = __pyx_f_4h5py_5utils_check_numpy_read(((PyArrayObject *)__pyx_v_value), 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":95
*
* check_numpy_read(value, -1)
* tid = py_create(value.dtype) # <<<<<<<<<<<<<<
* H5Pset_fill_value(self.id, tid.id, value.data)
*
*/
__pyx_t_3 = PyObject_GetAttr(__pyx_v_value, __pyx_n_s__dtype); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = ((PyObject *)__pyx_f_4h5py_3h5t_py_create(__pyx_t_3, 0, NULL)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(((PyObject *)__pyx_v_tid));
__pyx_v_tid = ((struct __pyx_obj_4h5py_3h5t_TypeID *)__pyx_t_4);
__pyx_t_4 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":96
* check_numpy_read(value, -1)
* tid = py_create(value.dtype)
* H5Pset_fill_value(self.id, tid.id, value.data) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_5 = H5Pset_fill_value(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_tid->__pyx_base.id, ((PyArrayObject *)__pyx_v_value)->data); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_fill_value");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_tid);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":99
*
*
* def get_fill_value(self, ndarray value not None): # <<<<<<<<<<<<<<
* """(NDARRAY value)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_fill_value(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_fill_value[] = "(NDARRAY value)\n\n Read the dataset fill value into a NumPy array. It will be\n converted to match the array dtype. If the array has nonzero\n rank, only the first element will contain the value.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_fill_value(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
struct __pyx_obj_4h5py_3h5t_TypeID *__pyx_v_tid;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
struct __pyx_opt_args_4h5py_5utils_check_numpy_write __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
herr_t __pyx_t_5;
__Pyx_RefNannySetupContext("get_fill_value");
__pyx_v_tid = ((struct __pyx_obj_4h5py_3h5t_TypeID *)Py_None); __Pyx_INCREF(Py_None);
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_4h5py_5numpy_ndarray, 0, "value", 0))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":108
* cdef TypeID tid
*
* check_numpy_write(value, -1) # <<<<<<<<<<<<<<
* tid = py_create(value.dtype)
* H5Pget_fill_value(self.id, tid.id, value.data)
*/
__pyx_t_2.__pyx_n = 1;
__pyx_t_2.space_id = -1;
__pyx_t_1 = __pyx_f_4h5py_5utils_check_numpy_write(((PyArrayObject *)__pyx_v_value), 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":109
*
* check_numpy_write(value, -1)
* tid = py_create(value.dtype) # <<<<<<<<<<<<<<
* H5Pget_fill_value(self.id, tid.id, value.data)
*
*/
__pyx_t_3 = PyObject_GetAttr(__pyx_v_value, __pyx_n_s__dtype); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = ((PyObject *)__pyx_f_4h5py_3h5t_py_create(__pyx_t_3, 0, NULL)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(((PyObject *)__pyx_v_tid));
__pyx_v_tid = ((struct __pyx_obj_4h5py_3h5t_TypeID *)__pyx_t_4);
__pyx_t_4 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":110
* check_numpy_write(value, -1)
* tid = py_create(value.dtype)
* H5Pget_fill_value(self.id, tid.id, value.data) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_5 = H5Pget_fill_value(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_tid->__pyx_base.id, ((PyArrayObject *)__pyx_v_value)->data); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("h5py.h5p.PropDCID.get_fill_value");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_tid);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":113
*
*
* def fill_value_defined(self): # <<<<<<<<<<<<<<
* """() => INT fill_status
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_fill_value_defined(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_fill_value_defined[] = "() => INT fill_status\n\n Determine the status of the dataset fill value. Return values are:\n\n - h5d.FILL_VALUE_UNDEFINED\n - h5d.FILL_VALUE_DEFAULT\n - h5d.FILL_VALUE_USER_DEFINED\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_fill_value_defined(PyObject *__pyx_v_self, PyObject *unused) {
H5D_fill_value_t __pyx_v_val;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("fill_value_defined");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":123
* """
* cdef H5D_fill_value_t val
* H5Pfill_value_defined(self.id, &val) # <<<<<<<<<<<<<<
* return <int>val
*
*/
__pyx_t_1 = H5Pfill_value_defined(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_val)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":124
* cdef H5D_fill_value_t val
* H5Pfill_value_defined(self.id, &val)
* return <int>val # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyInt_FromLong(((int)__pyx_v_val)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 124; __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("h5py.h5p.PropDCID.fill_value_defined");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":127
*
*
* def set_fill_time(self, int fill_time): # <<<<<<<<<<<<<<
* """(INT fill_time)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_fill_time(PyObject *__pyx_v_self, PyObject *__pyx_arg_fill_time); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_fill_time[] = "(INT fill_time)\n\n Define when fill values are written to the dataset. Legal\n values (defined in module h5d) are:\n\n - h5d.FILL_TIME_ALLOC\n - h5d.FILL_TIME_NEVER\n - h5d.FILL_TIME_IFSET\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_fill_time(PyObject *__pyx_v_self, PyObject *__pyx_arg_fill_time) {
int __pyx_v_fill_time;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_fill_time");
assert(__pyx_arg_fill_time); {
__pyx_v_fill_time = __Pyx_PyInt_AsInt(__pyx_arg_fill_time); if (unlikely((__pyx_v_fill_time == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_fill_time");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":137
* - h5d.FILL_TIME_IFSET
* """
* H5Pset_fill_time(self.id, <H5D_fill_time_t>fill_time) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fill_time(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, ((H5D_fill_time_t)__pyx_v_fill_time)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_fill_time");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":140
*
*
* def get_fill_time(self): # <<<<<<<<<<<<<<
* """ () => INT
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_fill_time(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_fill_time[] = " () => INT\n\n Determine when fill values are written to the dataset. Legal\n values (defined in module h5d) are:\n\n - h5d.FILL_TIME_ALLOC\n - h5d.FILL_TIME_NEVER\n - h5d.FILL_TIME_IFSET\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_fill_time(PyObject *__pyx_v_self, PyObject *unused) {
H5D_fill_time_t __pyx_v_fill_time;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_fill_time");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":151
* """
* cdef H5D_fill_time_t fill_time
* H5Pget_fill_time(self.id, &fill_time) # <<<<<<<<<<<<<<
* return <int>fill_time
*
*/
__pyx_t_1 = H5Pget_fill_time(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_fill_time)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":152
* cdef H5D_fill_time_t fill_time
* H5Pget_fill_time(self.id, &fill_time)
* return <int>fill_time # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyInt_FromLong(((int)__pyx_v_fill_time)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 152; __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("h5py.h5p.PropDCID.get_fill_time");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":155
*
*
* def set_alloc_time(self, int alloc_time): # <<<<<<<<<<<<<<
* """(INT alloc_time)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_alloc_time(PyObject *__pyx_v_self, PyObject *__pyx_arg_alloc_time); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_alloc_time[] = "(INT alloc_time)\n\n Set the storage space allocation time. One of h5d.ALLOC_TIME*.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_alloc_time(PyObject *__pyx_v_self, PyObject *__pyx_arg_alloc_time) {
int __pyx_v_alloc_time;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_alloc_time");
assert(__pyx_arg_alloc_time); {
__pyx_v_alloc_time = __Pyx_PyInt_AsInt(__pyx_arg_alloc_time); if (unlikely((__pyx_v_alloc_time == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_alloc_time");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":160
* Set the storage space allocation time. One of h5d.ALLOC_TIME*.
* """
* H5Pset_alloc_time(self.id, <H5D_alloc_time_t>alloc_time) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_alloc_time(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, ((H5D_alloc_time_t)__pyx_v_alloc_time)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_alloc_time");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":163
*
*
* def get_alloc_time(self): # <<<<<<<<<<<<<<
* """() => INT alloc_time
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_alloc_time(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_alloc_time[] = "() => INT alloc_time\n\n Get the storage space allocation time. One of h5d.ALLOC_TIME*.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_alloc_time(PyObject *__pyx_v_self, PyObject *unused) {
H5D_alloc_time_t __pyx_v_alloc_time;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_alloc_time");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":169
* """
* cdef H5D_alloc_time_t alloc_time
* H5Pget_alloc_time(self.id, &alloc_time) # <<<<<<<<<<<<<<
* return <int>alloc_time
*
*/
__pyx_t_1 = H5Pget_alloc_time(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_alloc_time)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":170
* cdef H5D_alloc_time_t alloc_time
* H5Pget_alloc_time(self.id, &alloc_time)
* return <int>alloc_time # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyInt_FromLong(((int)__pyx_v_alloc_time)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 170; __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("h5py.h5p.PropDCID.get_alloc_time");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":176
*
*
* def set_filter(self, int filter_code, unsigned int flags=0, object values=None): # <<<<<<<<<<<<<<
* """(INT filter_code, UINT flags=0, TUPLE values=None)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_filter(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_filter[] = "(INT filter_code, UINT flags=0, TUPLE values=None)\n\n Set a filter in the pipeline. Params are:\n\n filter_code\n One of the following:\n\n - h5z.FILTER_DEFLATE\n - h5z.FILTER_SHUFFLE\n - h5z.FILTER_FLETCHER32\n - h5z.FILTER_SZIP\n\n flags\n Bit flags (h5z.FLAG*) setting filter properties\n\n values\n TUPLE of UINTs giving auxiliary data for the filter\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_filter(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
int __pyx_v_filter_code;
unsigned int __pyx_v_flags;
PyObject *__pyx_v_values = 0;
size_t __pyx_v_nelements;
unsigned int *__pyx_v_cd_values;
int __pyx_v_i;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
int __pyx_t_2;
Py_ssize_t __pyx_t_3;
int __pyx_t_4;
int __pyx_t_5;
void *__pyx_t_6;
size_t __pyx_t_7;
PyObject *__pyx_t_8 = NULL;
PyObject *__pyx_t_9 = NULL;
unsigned int __pyx_t_10;
herr_t __pyx_t_11;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__filter_code,&__pyx_n_s__flags,&__pyx_n_s__values,0};
__Pyx_RefNannySetupContext("set_filter");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[3] = {0,0,0};
values[2] = ((PyObject *)Py_None);
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);
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__filter_code);
if (likely(values[0])) kw_args--;
else goto __pyx_L5_argtuple_error;
case 1:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__flags);
if (unlikely(value)) { values[1] = value; kw_args--; }
}
case 2:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__values);
if (unlikely(value)) { values[2] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_filter") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
__pyx_v_filter_code = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_filter_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
if (values[1]) {
__pyx_v_flags = __Pyx_PyInt_AsUnsignedInt(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else {
__pyx_v_flags = ((unsigned int)0);
}
__pyx_v_values = values[2];
} else {
__pyx_v_flags = ((unsigned int)0);
__pyx_v_values = ((PyObject *)Py_None);
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 3: __pyx_v_values = PyTuple_GET_ITEM(__pyx_args, 2);
case 2: __pyx_v_flags = __Pyx_PyInt_AsUnsignedInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
case 1: __pyx_v_filter_code = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_filter_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
break;
default: goto __pyx_L5_argtuple_error;
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_filter", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_filter");
return NULL;
__pyx_L4_argument_unpacking_done:;
__Pyx_INCREF((PyObject *)__pyx_v_self);
__Pyx_INCREF(__pyx_v_values);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":198
* cdef unsigned int *cd_values
* cdef int i
* cd_values = NULL # <<<<<<<<<<<<<<
*
* require_tuple(values, 1, -1, "values")
*/
__pyx_v_cd_values = NULL;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":200
* cd_values = NULL
*
* require_tuple(values, 1, -1, "values") # <<<<<<<<<<<<<<
*
* try:
*/
__pyx_t_1 = __pyx_f_4h5py_5utils_require_tuple(__pyx_v_values, 1, -1, __pyx_k__values); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":202
* require_tuple(values, 1, -1, "values")
*
* try: # <<<<<<<<<<<<<<
* if values is None or len(values) == 0:
* nelements = 0
*/
/*try:*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":203
*
* try:
* if values is None or len(values) == 0: # <<<<<<<<<<<<<<
* nelements = 0
* cd_values = NULL
*/
__pyx_t_2 = (__pyx_v_values == Py_None);
if (!__pyx_t_2) {
__pyx_t_3 = PyObject_Length(__pyx_v_values); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L7;}
__pyx_t_4 = (__pyx_t_3 == 0);
__pyx_t_5 = __pyx_t_4;
} else {
__pyx_t_5 = __pyx_t_2;
}
if (__pyx_t_5) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":204
* try:
* if values is None or len(values) == 0:
* nelements = 0 # <<<<<<<<<<<<<<
* cd_values = NULL
* else:
*/
__pyx_v_nelements = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":205
* if values is None or len(values) == 0:
* nelements = 0
* cd_values = NULL # <<<<<<<<<<<<<<
* else:
* nelements = len(values)
*/
__pyx_v_cd_values = NULL;
goto __pyx_L9;
}
/*else*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":207
* cd_values = NULL
* else:
* nelements = len(values) # <<<<<<<<<<<<<<
* cd_values = <unsigned int*>emalloc(sizeof(unsigned int)*nelements)
*
*/
__pyx_t_3 = PyObject_Length(__pyx_v_values); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L7;}
__pyx_v_nelements = __pyx_t_3;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":208
* else:
* nelements = len(values)
* cd_values = <unsigned int*>emalloc(sizeof(unsigned int)*nelements) # <<<<<<<<<<<<<<
*
* for i from 0<=i<nelements:
*/
__pyx_t_6 = __pyx_f_4h5py_5utils_emalloc(((sizeof(unsigned int)) * __pyx_v_nelements)); if (unlikely(__pyx_t_6 == NULL && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L7;}
__pyx_v_cd_values = ((unsigned int *)__pyx_t_6);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":210
* cd_values = <unsigned int*>emalloc(sizeof(unsigned int)*nelements)
*
* for i from 0<=i<nelements: # <<<<<<<<<<<<<<
* cd_values[i] = int(values[i])
*
*/
__pyx_t_7 = __pyx_v_nelements;
for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":211
*
* for i from 0<=i<nelements:
* cd_values[i] = int(values[i]) # <<<<<<<<<<<<<<
*
* H5Pset_filter(self.id, <H5Z_filter_t>filter_code, flags, nelements, cd_values)
*/
__pyx_t_8 = __Pyx_GetItemInt(__pyx_v_values, __pyx_v_i, sizeof(int), PyInt_FromLong); if (!__pyx_t_8) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L7;}
__Pyx_GOTREF(__pyx_t_8);
__pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L7;}
__Pyx_GOTREF(__pyx_t_9);
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8);
__Pyx_GIVEREF(__pyx_t_8);
__pyx_t_8 = 0;
__pyx_t_8 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L7;}
__Pyx_GOTREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__pyx_t_10 = __Pyx_PyInt_AsUnsignedInt(__pyx_t_8); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L7;}
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
(__pyx_v_cd_values[__pyx_v_i]) = __pyx_t_10;
}
}
__pyx_L9:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":213
* cd_values[i] = int(values[i])
*
* H5Pset_filter(self.id, <H5Z_filter_t>filter_code, flags, nelements, cd_values) # <<<<<<<<<<<<<<
* finally:
* efree(cd_values)
*/
__pyx_t_11 = H5Pset_filter(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, ((H5Z_filter_t)__pyx_v_filter_code), __pyx_v_flags, __pyx_v_nelements, __pyx_v_cd_values); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L7;}
}
/*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_L8;
__pyx_L7: {
__pyx_why = 4;
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_ErrFetch(&__pyx_exc_type, &__pyx_exc_value, &__pyx_exc_tb);
__pyx_exc_lineno = __pyx_lineno;
goto __pyx_L8;
}
__pyx_L8:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":215
* H5Pset_filter(self.id, <H5Z_filter_t>filter_code, flags, nelements, cd_values)
* finally:
* efree(cd_values) # <<<<<<<<<<<<<<
*
*
*/
__pyx_f_4h5py_5utils_efree(__pyx_v_cd_values);
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;
}
}
}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_8);
__Pyx_XDECREF(__pyx_t_9);
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_filter");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_DECREF(__pyx_v_values);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":218
*
*
* def all_filters_avail(self): # <<<<<<<<<<<<<<
* """() => BOOL
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_all_filters_avail(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_all_filters_avail[] = "() => BOOL\n\n Determine if all the filters in the pipelist are available to\n the library.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_all_filters_avail(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
htri_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("all_filters_avail");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":224
* the library.
* """
* return <bint>(H5Pall_filters_avail(self.id)) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pall_filters_avail(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = __Pyx_PyBool_FromLong(((int)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 224; __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("h5py.h5p.PropDCID.all_filters_avail");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":227
*
*
* def get_nfilters(self): # <<<<<<<<<<<<<<
* """() => INT
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_nfilters(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_nfilters[] = "() => INT\n\n Determine the number of filters in the pipeline.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_nfilters(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_nfilters");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":232
* Determine the number of filters in the pipeline.
* """
* return H5Pget_nfilters(self.id) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pget_nfilters(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyInt_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 232; __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("h5py.h5p.PropDCID.get_nfilters");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":235
*
*
* def get_filter(self, int filter_idx): # <<<<<<<<<<<<<<
* """(UINT filter_idx) => TUPLE filter_info
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_filter(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_idx); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_filter[] = "(UINT filter_idx) => TUPLE filter_info\n\n Get information about a filter, identified by its index. Tuple\n elements are:\n\n 0. INT filter code (h5z.FILTER*)\n 1. UINT flags (h5z.FLAG*)\n 2. TUPLE of UINT values; filter aux data (16 values max)\n 3. STRING name of filter (256 chars max)\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_filter(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_idx) {
int __pyx_v_filter_idx;
PyObject *__pyx_v_vlist;
int __pyx_v_filter_code;
unsigned int __pyx_v_flags;
size_t __pyx_v_nelements;
unsigned int __pyx_v_cd_values[16];
char __pyx_v_name[257];
int __pyx_v_i;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
H5Z_filter_t __pyx_t_4;
size_t __pyx_t_5;
int __pyx_t_6;
PyObject *__pyx_t_7 = NULL;
PyObject *__pyx_t_8 = NULL;
PyObject *__pyx_t_9 = NULL;
__Pyx_RefNannySetupContext("get_filter");
assert(__pyx_arg_filter_idx); {
__pyx_v_filter_idx = __Pyx_PyInt_AsInt(__pyx_arg_filter_idx); if (unlikely((__pyx_v_filter_idx == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.get_filter");
return NULL;
__pyx_L4_argument_unpacking_done:;
__Pyx_INCREF((PyObject *)__pyx_v_self);
__pyx_v_vlist = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":253
* cdef char name[257]
* cdef int i
* nelements = 16 # HDF5 library actually complains if this is too big. # <<<<<<<<<<<<<<
*
* if filter_idx < 0:
*/
__pyx_v_nelements = 16;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":255
* nelements = 16 # HDF5 library actually complains if this is too big.
*
* if filter_idx < 0: # <<<<<<<<<<<<<<
* raise ValueError("Filter index must be a non-negative integer")
*
*/
__pyx_t_1 = (__pyx_v_filter_idx < 0);
if (__pyx_t_1) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":256
*
* if filter_idx < 0:
* raise ValueError("Filter index must be a non-negative integer") # <<<<<<<<<<<<<<
*
* filter_code = <int>H5Pget_filter(self.id, filter_idx, &flags,
*/
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_3));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
__pyx_t_3 = PyObject_Call(__pyx_builtin_ValueError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 256; __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);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[2]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L5;
}
__pyx_L5:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":259
*
* filter_code = <int>H5Pget_filter(self.id, filter_idx, &flags,
* &nelements, cd_values, 256, name) # <<<<<<<<<<<<<<
* name[256] = c'\0' # in case it's > 256 chars
*
*/
__pyx_t_4 = H5Pget_filter(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_filter_idx, (&__pyx_v_flags), (&__pyx_v_nelements), __pyx_v_cd_values, 256, __pyx_v_name); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_filter_code = ((int)__pyx_t_4);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":260
* filter_code = <int>H5Pget_filter(self.id, filter_idx, &flags,
* &nelements, cd_values, 256, name)
* name[256] = c'\0' # in case it's > 256 chars # <<<<<<<<<<<<<<
*
* vlist = []
*/
(__pyx_v_name[256]) = '\x00';
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":262
* name[256] = c'\0' # in case it's > 256 chars
*
* vlist = [] # <<<<<<<<<<<<<<
* for i from 0<=i<nelements:
* vlist.append(cd_values[i])
*/
__pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
__Pyx_DECREF(((PyObject *)__pyx_v_vlist));
__pyx_v_vlist = __pyx_t_3;
__pyx_t_3 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":263
*
* vlist = []
* for i from 0<=i<nelements: # <<<<<<<<<<<<<<
* vlist.append(cd_values[i])
*
*/
__pyx_t_5 = __pyx_v_nelements;
for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_5; __pyx_v_i++) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":264
* vlist = []
* for i from 0<=i<nelements:
* vlist.append(cd_values[i]) # <<<<<<<<<<<<<<
*
* return (filter_code, flags, tuple(vlist), name)
*/
if (unlikely(__pyx_v_vlist == Py_None)) {
PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_t_3 = PyLong_FromUnsignedLong((__pyx_v_cd_values[__pyx_v_i])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_6 = PyList_Append(((PyObject *)__pyx_v_vlist), __pyx_t_3); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":266
* vlist.append(cd_values[i])
*
* return (filter_code, flags, tuple(vlist), name) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_3 = PyInt_FromLong(__pyx_v_filter_code); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
if (unlikely(__pyx_v_vlist == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_t_7 = ((PyObject *)PyList_AsTuple(__pyx_v_vlist)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
__pyx_t_8 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_8);
__pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_9);
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_9, 2, ((PyObject *)__pyx_t_7));
__Pyx_GIVEREF(((PyObject *)__pyx_t_7));
PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_8);
__Pyx_GIVEREF(__pyx_t_8);
__pyx_t_3 = 0;
__pyx_t_2 = 0;
__pyx_t_7 = 0;
__pyx_t_8 = 0;
__pyx_r = __pyx_t_9;
__pyx_t_9 = 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_XDECREF(__pyx_t_8);
__Pyx_XDECREF(__pyx_t_9);
__Pyx_AddTraceback("h5py.h5p.PropDCID.get_filter");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_vlist);
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":269
*
*
* def _has_filter(self, int filter_code): # <<<<<<<<<<<<<<
* """(INT filter_code)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID__has_filter(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_code); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID__has_filter[] = "(INT filter_code)\n\n Slow & stupid method to determine if a filter is used in this\n property list. Used because the HDF5 function H5Pget_filter_by_id\n is broken.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID__has_filter(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_code) {
int __pyx_v_filter_code;
int __pyx_v_nfilters;
PyObject *__pyx_v_i;
PyObject *__pyx_r = NULL;
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
int __pyx_t_3;
long __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
int __pyx_t_6;
__Pyx_RefNannySetupContext("_has_filter");
assert(__pyx_arg_filter_code); {
__pyx_v_filter_code = __Pyx_PyInt_AsInt(__pyx_arg_filter_code); if (unlikely((__pyx_v_filter_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID._has_filter");
return NULL;
__pyx_L4_argument_unpacking_done:;
__Pyx_INCREF((PyObject *)__pyx_v_self);
__pyx_v_i = Py_None; __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":277
* """
* cdef int nfilters
* nfilters = self.get_nfilters() # <<<<<<<<<<<<<<
* for i from 0<=i<nfilters:
* if self.get_filter(i)[0] == filter_code:
*/
__pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__get_nfilters); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 277; __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[2]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_3 = __Pyx_PyInt_AsInt(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_nfilters = __pyx_t_3;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":278
* cdef int nfilters
* nfilters = self.get_nfilters()
* for i from 0<=i<nfilters: # <<<<<<<<<<<<<<
* if self.get_filter(i)[0] == filter_code:
* return True
*/
__pyx_t_3 = __pyx_v_nfilters;
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
__pyx_t_2 = PyInt_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_v_i);
__pyx_v_i = __pyx_t_2;
__pyx_t_2 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":279
* nfilters = self.get_nfilters()
* for i from 0<=i<nfilters:
* if self.get_filter(i)[0] == filter_code: # <<<<<<<<<<<<<<
* return True
* return False
*/
__pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__get_filter); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 279; __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[2]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_i);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i);
__Pyx_GIVEREF(__pyx_v_i);
__pyx_t_5 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 279; __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_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_GetItemInt(__pyx_t_5, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = PyInt_FromLong(__pyx_v_filter_code); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_5, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_6) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":280
* for i from 0<=i<nfilters:
* if self.get_filter(i)[0] == filter_code:
* return True # <<<<<<<<<<<<<<
* return False
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
goto __pyx_L7;
}
__pyx_L7:;
__pyx_t_4 = __Pyx_PyInt_AsLong(__pyx_v_i); if (unlikely((__pyx_t_4 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":278
* cdef int nfilters
* nfilters = self.get_nfilters()
* for i from 0<=i<nfilters: # <<<<<<<<<<<<<<
* if self.get_filter(i)[0] == filter_code:
* return True
*/
__pyx_t_2 = PyInt_FromLong(__pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_v_i);
__pyx_v_i = __pyx_t_2;
__pyx_t_2 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":281
* if self.get_filter(i)[0] == filter_code:
* return True
* return False # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 281; __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_5);
__Pyx_AddTraceback("h5py.h5p.PropDCID._has_filter");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_i);
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":284
*
*
* def get_filter_by_id(self, int filter_code): # <<<<<<<<<<<<<<
* """(INT filter_code) => TUPLE filter_info or None
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_filter_by_id(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_code); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_get_filter_by_id[] = "(INT filter_code) => TUPLE filter_info or None\n\n Get information about a filter, identified by its code (one\n of h5z.FILTER*). If the filter doesn't exist, returns None.\n Tuple elements are:\n\n 0. UINT flags (h5z.FLAG*)\n 1. TUPLE of UINT values; filter aux data (16 values max)\n 2. STRING name of filter (256 chars max)\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_get_filter_by_id(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_code) {
int __pyx_v_filter_code;
PyObject *__pyx_v_vlist;
unsigned int __pyx_v_flags;
size_t __pyx_v_nelements;
unsigned int __pyx_v_cd_values[16];
char __pyx_v_name[257];
herr_t __pyx_v_retval;
int __pyx_v_i;
PyObject *__pyx_r = NULL;
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
int __pyx_t_5;
herr_t __pyx_t_6;
size_t __pyx_t_7;
int __pyx_t_8;
PyObject *__pyx_t_9 = NULL;
__Pyx_RefNannySetupContext("get_filter_by_id");
assert(__pyx_arg_filter_code); {
__pyx_v_filter_code = __Pyx_PyInt_AsInt(__pyx_arg_filter_code); if (unlikely((__pyx_v_filter_code == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.get_filter_by_id");
return NULL;
__pyx_L4_argument_unpacking_done:;
__Pyx_INCREF((PyObject *)__pyx_v_self);
__pyx_v_vlist = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":302
* cdef herr_t retval
* cdef int i
* nelements = 16 # HDF5 library actually complains if this is too big. # <<<<<<<<<<<<<<
*
* if not self._has_filter(filter_code):
*/
__pyx_v_nelements = 16;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":304
* nelements = 16 # HDF5 library actually complains if this is too big.
*
* if not self._has_filter(filter_code): # <<<<<<<<<<<<<<
* # Avoid library segfault
* return None
*/
__pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s___has_filter); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyInt_FromLong(__pyx_v_filter_code); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 304; __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[2]; __pyx_lineno = 304; __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, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_5 = (!__pyx_t_4);
if (__pyx_t_5) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":306
* if not self._has_filter(filter_code):
* # Avoid library segfault
* return None # <<<<<<<<<<<<<<
*
* retval = H5Pget_filter_by_id(self.id, <H5Z_filter_t>filter_code,
*/
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(Py_None);
__pyx_r = Py_None;
goto __pyx_L0;
goto __pyx_L5;
}
__pyx_L5:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":309
*
* retval = H5Pget_filter_by_id(self.id, <H5Z_filter_t>filter_code,
* &flags, &nelements, cd_values, 256, name) # <<<<<<<<<<<<<<
* assert nelements <= 16
*
*/
__pyx_t_6 = H5Pget_filter_by_id(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, ((H5Z_filter_t)__pyx_v_filter_code), (&__pyx_v_flags), (&__pyx_v_nelements), __pyx_v_cd_values, 256, __pyx_v_name); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_retval = __pyx_t_6;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":310
* retval = H5Pget_filter_by_id(self.id, <H5Z_filter_t>filter_code,
* &flags, &nelements, cd_values, 256, name)
* assert nelements <= 16 # <<<<<<<<<<<<<<
*
* name[256] = c'\0' # In case HDF5 doesn't terminate it properly
*/
#ifndef PYREX_WITHOUT_ASSERTIONS
if (unlikely(!(__pyx_v_nelements <= 16))) {
PyErr_SetNone(PyExc_AssertionError);
{__pyx_filename = __pyx_f[2]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
#endif
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":312
* assert nelements <= 16
*
* name[256] = c'\0' # In case HDF5 doesn't terminate it properly # <<<<<<<<<<<<<<
*
* vlist = []
*/
(__pyx_v_name[256]) = '\x00';
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":314
* name[256] = c'\0' # In case HDF5 doesn't terminate it properly
*
* vlist = [] # <<<<<<<<<<<<<<
* for i from 0<=i<nelements:
* vlist.append(cd_values[i])
*/
__pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__Pyx_DECREF(((PyObject *)__pyx_v_vlist));
__pyx_v_vlist = __pyx_t_2;
__pyx_t_2 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":315
*
* vlist = []
* for i from 0<=i<nelements: # <<<<<<<<<<<<<<
* vlist.append(cd_values[i])
*
*/
__pyx_t_7 = __pyx_v_nelements;
for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_7; __pyx_v_i++) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":316
* vlist = []
* for i from 0<=i<nelements:
* vlist.append(cd_values[i]) # <<<<<<<<<<<<<<
*
* return (flags, tuple(vlist), name)
*/
if (unlikely(__pyx_v_vlist == Py_None)) {
PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_t_2 = PyLong_FromUnsignedLong((__pyx_v_cd_values[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_vlist), __pyx_t_2); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":318
* vlist.append(cd_values[i])
*
* return (flags, tuple(vlist), name) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
if (unlikely(__pyx_v_vlist == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
}
__pyx_t_3 = ((PyObject *)PyList_AsTuple(__pyx_v_vlist)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
__pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_9);
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_t_3));
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__pyx_t_1 = 0;
__pyx_r = __pyx_t_9;
__pyx_t_9 = 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_XDECREF(__pyx_t_9);
__Pyx_AddTraceback("h5py.h5p.PropDCID.get_filter_by_id");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_vlist);
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":321
*
*
* def remove_filter(self, int filter_class): # <<<<<<<<<<<<<<
* """(INT filter_class)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_remove_filter(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_class); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_remove_filter[] = "(INT filter_class)\n\n Remove a filter from the pipeline. The class code is one of \n h5z.FILTER*.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_remove_filter(PyObject *__pyx_v_self, PyObject *__pyx_arg_filter_class) {
int __pyx_v_filter_class;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("remove_filter");
assert(__pyx_arg_filter_class); {
__pyx_v_filter_class = __Pyx_PyInt_AsInt(__pyx_arg_filter_class); if (unlikely((__pyx_v_filter_class == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.remove_filter");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":327
* h5z.FILTER*.
* """
* H5Premove_filter(self.id, <H5Z_filter_t>filter_class) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Premove_filter(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, ((H5Z_filter_t)__pyx_v_filter_class)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.remove_filter");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":330
*
*
* def set_deflate(self, unsigned int level=5): # <<<<<<<<<<<<<<
* """(UINT level=5)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_deflate(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_deflate[] = "(UINT level=5)\n\n Enable deflate (gzip) compression, at the given level.\n Valid levels are 0-9, default is 5.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_deflate(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
unsigned int __pyx_v_level;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__level,0};
__Pyx_RefNannySetupContext("set_deflate");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[1] = {0};
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;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__level);
if (unlikely(value)) { values[0] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_deflate") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
if (values[0]) {
__pyx_v_level = __Pyx_PyInt_AsUnsignedInt(values[0]); if (unlikely((__pyx_v_level == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else {
__pyx_v_level = ((unsigned int)5);
}
} else {
__pyx_v_level = ((unsigned int)5);
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 1: __pyx_v_level = __Pyx_PyInt_AsUnsignedInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_level == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_deflate", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_deflate");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":336
* Valid levels are 0-9, default is 5.
* """
* H5Pset_deflate(self.id, level) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_deflate(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_level); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_deflate");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":339
*
*
* def set_fletcher32(self): # <<<<<<<<<<<<<<
* """()
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_fletcher32(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_fletcher32[] = "()\n\n Enable Fletcher32 error correction on this list.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_fletcher32(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_fletcher32");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":344
* Enable Fletcher32 error correction on this list.
* """
* H5Pset_fletcher32(self.id) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fletcher32(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_fletcher32");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":347
*
*
* def set_shuffle(self): # <<<<<<<<<<<<<<
* """()
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_shuffle(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_shuffle[] = "()\n\n Enable to use of the shuffle filter. Use this immediately before \n the deflate filter to increase the compression ratio.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_shuffle(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_shuffle");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":353
* the deflate filter to increase the compression ratio.
* """
* H5Pset_shuffle(self.id) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_shuffle(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_shuffle");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":356
*
*
* def set_szip(self, unsigned int options, unsigned int pixels_per_block): # <<<<<<<<<<<<<<
* """(UINT options, UINT pixels_per_block)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_szip(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropDCID_set_szip[] = "(UINT options, UINT pixels_per_block)\n\n Enable SZIP compression. See the HDF5 docs for argument meanings, \n and general restrictions on use of the SZIP format.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropDCID_set_szip(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
unsigned int __pyx_v_options;
unsigned int __pyx_v_pixels_per_block;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__options,&__pyx_n_s__pixels_per_block,0};
__Pyx_RefNannySetupContext("set_szip");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[2] = {0,0};
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);
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__options);
if (likely(values[0])) kw_args--;
else goto __pyx_L5_argtuple_error;
case 1:
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__pixels_per_block);
if (likely(values[1])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_szip", 1, 2, 2, 1); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_szip") < 0)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
__pyx_v_options = __Pyx_PyInt_AsUnsignedInt(values[0]); if (unlikely((__pyx_v_options == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_pixels_per_block = __Pyx_PyInt_AsUnsignedInt(values[1]); if (unlikely((__pyx_v_pixels_per_block == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
} else {
__pyx_v_options = __Pyx_PyInt_AsUnsignedInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_options == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_pixels_per_block = __Pyx_PyInt_AsUnsignedInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pixels_per_block == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_szip", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_szip");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_dcid.pxi":362
* and general restrictions on use of the SZIP format.
* """
* H5Pset_szip(self.id, options, pixels_per_block) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_szip(((struct __pyx_obj_4h5py_3h5p_PropDCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_options, __pyx_v_pixels_per_block); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropDCID.set_szip");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":20
*
*
* def set_fclose_degree(self, int close_degree): # <<<<<<<<<<<<<<
* """(INT close_degree)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fclose_degree(PyObject *__pyx_v_self, PyObject *__pyx_arg_close_degree); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_fclose_degree[] = "(INT close_degree)\n\n Set the file-close degree, which determines library behavior when\n a file is closed when objects are still open. Legal values:\n\n * h5f.CLOSE_WEAK\n * h5f.CLOSE_SEMI\n * h5f.CLOSE_STRONG\n * h5f.CLOSE_DEFAULT\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fclose_degree(PyObject *__pyx_v_self, PyObject *__pyx_arg_close_degree) {
int __pyx_v_close_degree;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_fclose_degree");
assert(__pyx_arg_close_degree); {
__pyx_v_close_degree = __Pyx_PyInt_AsInt(__pyx_arg_close_degree); if (unlikely((__pyx_v_close_degree == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fclose_degree");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":31
* * h5f.CLOSE_DEFAULT
* """
* H5Pset_fclose_degree(self.id, <H5F_close_degree_t>close_degree) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fclose_degree(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, ((enum H5F_close_degree_t)__pyx_v_close_degree)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fclose_degree");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":34
*
*
* def get_fclose_degree(self): # <<<<<<<<<<<<<<
* """() => INT close_degree
* - h5fd.
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_fclose_degree(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_get_fclose_degree[] = "() => INT close_degree\n - h5fd.\n Get the file-close degree, which determines library behavior when\n a file is closed when objects are still open. Legal values:\n\n * h5f.CLOSE_WEAK\n * h5f.CLOSE_SEMI\n * h5f.CLOSE_STRONG\n * h5f.CLOSE_DEFAULT\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_fclose_degree(PyObject *__pyx_v_self, PyObject *unused) {
enum H5F_close_degree_t __pyx_v_deg;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_fclose_degree");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":46
* """
* cdef H5F_close_degree_t deg
* H5Pget_fclose_degree(self.id, &deg) # <<<<<<<<<<<<<<
* return deg
*
*/
__pyx_t_1 = H5Pget_fclose_degree(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_deg)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":47
* cdef H5F_close_degree_t deg
* H5Pget_fclose_degree(self.id, &deg)
* return deg # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyInt_FromLong(__pyx_v_deg); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 47; __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("h5py.h5p.PropFAID.get_fclose_degree");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":50
*
*
* def set_fapl_core(self, size_t block_size=64*1024, hbool_t backing_store=1): # <<<<<<<<<<<<<<
* """(UINT increment=64k, BOOL backing_store=True)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_core(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_core[] = "(UINT increment=64k, BOOL backing_store=True)\n\n Use the h5fd.CORE (memory-resident) file driver.\n\n increment\n Chunk size for new memory requests (default 1 meg)\n\n backing_store\n If True (default), memory contents are associated with an\n on-disk file, which is updated when the file is closed.\n Set to False for a purely in-memory file.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_core(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
size_t __pyx_v_block_size;
hbool_t __pyx_v_backing_store;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__block_size,&__pyx_n_s__backing_store,0};
__Pyx_RefNannySetupContext("set_fapl_core");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[2] = {0,0};
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);
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__block_size);
if (unlikely(value)) { values[0] = value; kw_args--; }
}
case 1:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__backing_store);
if (unlikely(value)) { values[1] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_fapl_core") < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
if (values[0]) {
__pyx_v_block_size = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v_block_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else {
__pyx_v_block_size = ((size_t)65536);
}
if (values[1]) {
__pyx_v_backing_store = __Pyx_PyInt_from_py_hbool_t(values[1]); if (unlikely((__pyx_v_backing_store == (hbool_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else {
__pyx_v_backing_store = ((hbool_t)1);
}
} else {
__pyx_v_block_size = ((size_t)65536);
__pyx_v_backing_store = ((hbool_t)1);
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 2: __pyx_v_backing_store = __Pyx_PyInt_from_py_hbool_t(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_backing_store == (hbool_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
case 1: __pyx_v_block_size = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_block_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_fapl_core", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_core");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":63
* Set to False for a purely in-memory file.
* """
* H5Pset_fapl_core(self.id, block_size, backing_store) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fapl_core(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_block_size, __pyx_v_backing_store); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_core");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":66
*
*
* def get_fapl_core(self): # <<<<<<<<<<<<<<
* """() => TUPLE core_settings
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_fapl_core(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_get_fapl_core[] = "() => TUPLE core_settings\n\n Determine settings for the h5fd.CORE (memory-resident) file driver.\n Tuple elements are:\n\n 0. UINT \"increment\": Chunk size for new memory requests\n 1. BOOL \"backing_store\": If True, write the memory contents to \n disk when the file is closed.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_fapl_core(PyObject *__pyx_v_self, PyObject *unused) {
size_t __pyx_v_increment;
hbool_t __pyx_v_backing_store;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
__Pyx_RefNannySetupContext("get_fapl_core");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":78
* cdef size_t increment
* cdef hbool_t backing_store
* H5Pget_fapl_core(self.id, &increment, &backing_store) # <<<<<<<<<<<<<<
* return (increment, <bint>(backing_store))
*
*/
__pyx_t_1 = H5Pget_fapl_core(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_increment), (&__pyx_v_backing_store)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":79
* cdef hbool_t backing_store
* H5Pget_fapl_core(self.id, &increment, &backing_store)
* return (increment, <bint>(backing_store)) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_increment); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyBool_FromLong(((int)__pyx_v_backing_store)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__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_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("h5py.h5p.PropFAID.get_fapl_core");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":82
*
*
* def set_fapl_family(self, hsize_t memb_size=2147483647, PropID memb_fapl=None): # <<<<<<<<<<<<<<
* """(UINT memb_size=2**31-1, PropFAID memb_fapl=None)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_family(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_family[] = "(UINT memb_size=2**31-1, PropFAID memb_fapl=None)\n\n Set up the family driver.\n\n memb_size\n Member file size\n\n memb_fapl\n File access property list for each member access\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_family(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
hsize_t __pyx_v_memb_size;
struct __pyx_obj_4h5py_3h5p_PropID *__pyx_v_memb_fapl = 0;
hid_t __pyx_v_plist_id;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__memb_size,&__pyx_n_s__memb_fapl,0};
__Pyx_RefNannySetupContext("set_fapl_family");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[2] = {0,0};
values[1] = (PyObject*)((struct __pyx_obj_4h5py_3h5p_PropID *)Py_None);
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);
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__memb_size);
if (unlikely(value)) { values[0] = value; kw_args--; }
}
case 1:
if (kw_args > 1) {
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__memb_fapl);
if (unlikely(value)) { values[1] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_fapl_family") < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
if (values[0]) {
__pyx_v_memb_size = __Pyx_PyInt_from_py_hsize_t(values[0]); if (unlikely((__pyx_v_memb_size == (hsize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else {
__pyx_v_memb_size = ((hsize_t)2147483647);
}
__pyx_v_memb_fapl = ((struct __pyx_obj_4h5py_3h5p_PropID *)values[1]);
} else {
__pyx_v_memb_size = ((hsize_t)2147483647);
__pyx_v_memb_fapl = ((struct __pyx_obj_4h5py_3h5p_PropID *)Py_None);
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 2: __pyx_v_memb_fapl = ((struct __pyx_obj_4h5py_3h5p_PropID *)PyTuple_GET_ITEM(__pyx_args, 1));
case 1: __pyx_v_memb_size = __Pyx_PyInt_from_py_hsize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_memb_size == (hsize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_fapl_family", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_family");
return NULL;
__pyx_L4_argument_unpacking_done:;
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_memb_fapl), __pyx_ptype_4h5py_3h5p_PropID, 1, "memb_fapl", 0))) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":94
* """
* cdef hid_t plist_id
* plist_id = pdefault(memb_fapl) # <<<<<<<<<<<<<<
* H5Pset_fapl_family(self.id, memb_size, plist_id)
*
*/
__pyx_v_plist_id = __pyx_f_4h5py_3h5p_pdefault(__pyx_v_memb_fapl);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":95
* cdef hid_t plist_id
* plist_id = pdefault(memb_fapl)
* H5Pset_fapl_family(self.id, memb_size, plist_id) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fapl_family(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_memb_size, __pyx_v_plist_id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_family");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":98
*
*
* def get_fapl_family(self): # <<<<<<<<<<<<<<
* """() => TUPLE info
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_fapl_family(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_get_fapl_family[] = "() => TUPLE info\n\n Determine family driver settings. Tuple values are:\n\n 0. UINT memb_size\n 1. PropFAID memb_fapl or None\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_fapl_family(PyObject *__pyx_v_self, PyObject *unused) {
hid_t __pyx_v_mfapl_id;
hsize_t __pyx_v_msize;
struct __pyx_obj_4h5py_3h5p_PropFAID *__pyx_v_plist;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
int __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
__Pyx_RefNannySetupContext("get_fapl_family");
__Pyx_INCREF((PyObject *)__pyx_v_self);
__pyx_v_plist = ((struct __pyx_obj_4h5py_3h5p_PropFAID *)Py_None); __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":109
* cdef hsize_t msize
* cdef PropFAID plist
* plist = None # <<<<<<<<<<<<<<
*
* H5Pget_fapl_family(self.id, &msize, &mfapl_id)
*/
__Pyx_INCREF(Py_None);
__Pyx_DECREF(((PyObject *)__pyx_v_plist));
__pyx_v_plist = ((struct __pyx_obj_4h5py_3h5p_PropFAID *)Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":111
* plist = None
*
* H5Pget_fapl_family(self.id, &msize, &mfapl_id) # <<<<<<<<<<<<<<
*
* if mfapl_id > 0:
*/
__pyx_t_1 = H5Pget_fapl_family(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_msize), (&__pyx_v_mfapl_id)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":113
* H5Pget_fapl_family(self.id, &msize, &mfapl_id)
*
* if mfapl_id > 0: # <<<<<<<<<<<<<<
* plist = PropFAID(mfapl_id)
*
*/
__pyx_t_2 = (__pyx_v_mfapl_id > 0);
if (__pyx_t_2) {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":114
*
* if mfapl_id > 0:
* plist = PropFAID(mfapl_id) # <<<<<<<<<<<<<<
*
* return (msize, plist)
*/
__pyx_t_3 = __Pyx_PyInt_to_py_hid_t(__pyx_v_mfapl_id); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 114; __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[3]; __pyx_lineno = 114; __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*)__pyx_ptype_4h5py_3h5p_PropFAID)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 114; __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_v_plist));
__pyx_v_plist = ((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_t_3);
__pyx_t_3 = 0;
goto __pyx_L5;
}
__pyx_L5:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":116
* plist = PropFAID(mfapl_id)
*
* return (msize, plist) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_3 = __Pyx_PyInt_to_py_hsize_t(__pyx_v_msize); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 116; __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_INCREF(((PyObject *)__pyx_v_plist));
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_plist));
__Pyx_GIVEREF(((PyObject *)__pyx_v_plist));
__pyx_t_3 = 0;
__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_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("h5py.h5p.PropFAID.get_fapl_family");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF((PyObject *)__pyx_v_plist);
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":119
*
*
* def set_fapl_log(self, char* logfile, unsigned int flags, size_t buf_size): # <<<<<<<<<<<<<<
* """(STRING logfile, UINT flags, UINT buf_size)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_log(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_log[] = "(STRING logfile, UINT flags, UINT buf_size)\n\n Enable the use of the logging driver. See the HDF5 documentation\n for details. Flag constants are stored in module h5fd.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_log(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
char *__pyx_v_logfile;
unsigned int __pyx_v_flags;
size_t __pyx_v_buf_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__logfile,&__pyx_n_s__flags,&__pyx_n_s__buf_size,0};
__Pyx_RefNannySetupContext("set_fapl_log");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[3] = {0,0,0};
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);
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__logfile);
if (likely(values[0])) kw_args--;
else goto __pyx_L5_argtuple_error;
case 1:
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__flags);
if (likely(values[1])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_fapl_log", 1, 3, 3, 1); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
case 2:
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__buf_size);
if (likely(values[2])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_fapl_log", 1, 3, 3, 2); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_fapl_log") < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
__pyx_v_logfile = __Pyx_PyBytes_AsString(values[0]); if (unlikely((!__pyx_v_logfile) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_flags = __Pyx_PyInt_AsUnsignedInt(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_buf_size = __Pyx_PyInt_AsSize_t(values[2]); if (unlikely((__pyx_v_buf_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
goto __pyx_L5_argtuple_error;
} else {
__pyx_v_logfile = __Pyx_PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((!__pyx_v_logfile) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_flags = __Pyx_PyInt_AsUnsignedInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_buf_size = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_buf_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_fapl_log", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_log");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":125
* for details. Flag constants are stored in module h5fd.
* """
* H5Pset_fapl_log(self.id, logfile, flags, buf_size) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fapl_log(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_logfile, __pyx_v_flags, __pyx_v_buf_size); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_log");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":128
*
*
* def set_fapl_sec2(self): # <<<<<<<<<<<<<<
* """()
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_sec2(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_sec2[] = "()\n\n Select the \"section-2\" driver (h5fd.SEC2).\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_sec2(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_fapl_sec2");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":133
* Select the "section-2" driver (h5fd.SEC2).
* """
* H5Pset_fapl_sec2(self.id) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fapl_sec2(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_sec2");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":136
*
*
* def set_fapl_stdio(self): # <<<<<<<<<<<<<<
* """()
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_stdio(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_stdio[] = "()\n\n Select the \"stdio\" driver (h5fd.STDIO)\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_stdio(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_fapl_stdio");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":141
* Select the "stdio" driver (h5fd.STDIO)
* """
* H5Pset_fapl_stdio(self.id) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_fapl_stdio(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_fapl_stdio");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":144
*
*
* def get_driver(self): # <<<<<<<<<<<<<<
* """() => INT driver code
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_driver(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_get_driver[] = "() => INT driver code\n\n Return an integer identifier for the driver used by this list.\n Although HDF5 implements these as full-fledged objects, they are\n treated as integers by Python. Built-in drivers identifiers are\n listed in module h5fd; they are:\n\n - h5fd.CORE\n - h5fd.FAMILY\n - h5fd.LOG\n - h5fd.MPIO\n - h5fd.MULTI\n - h5fd.SEC2\n - h5fd.STDIO\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_driver(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
hid_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_driver");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":160
* - h5fd.STDIO
* """
* return H5Pget_driver(self.id) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pget_driver(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = __Pyx_PyInt_to_py_hid_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 160; __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("h5py.h5p.PropFAID.get_driver");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":163
*
*
* def set_cache(self, int mdc, int rdcc, size_t rdcc_nbytes, double rdcc_w0): # <<<<<<<<<<<<<<
* """(INT mdc, INT rdcc, UINT rdcc_nbytes, DOUBLE rdcc_w0)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_cache(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_cache[] = "(INT mdc, INT rdcc, UINT rdcc_nbytes, DOUBLE rdcc_w0)\n\n Set the metadata (mdc) and raw data chunk (rdcc) cache properties.\n See the HDF5 docs for a full explanation.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_cache(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
int __pyx_v_mdc;
int __pyx_v_rdcc;
size_t __pyx_v_rdcc_nbytes;
double __pyx_v_rdcc_w0;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__mdc,&__pyx_n_s__rdcc,&__pyx_n_s__rdcc_nbytes,&__pyx_n_s__rdcc_w0,0};
__Pyx_RefNannySetupContext("set_cache");
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
PyObject* values[4] = {0,0,0,0};
switch (PyTuple_GET_SIZE(__pyx_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;
}
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 0:
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__mdc);
if (likely(values[0])) kw_args--;
else goto __pyx_L5_argtuple_error;
case 1:
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__rdcc);
if (likely(values[1])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_cache", 1, 4, 4, 1); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
case 2:
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__rdcc_nbytes);
if (likely(values[2])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_cache", 1, 4, 4, 2); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
case 3:
values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__rdcc_w0);
if (likely(values[3])) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("set_cache", 1, 4, 4, 3); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_cache") < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
__pyx_v_mdc = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_mdc == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_rdcc = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_rdcc == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_rdcc_nbytes = __Pyx_PyInt_AsSize_t(values[2]); if (unlikely((__pyx_v_rdcc_nbytes == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_rdcc_w0 = __pyx_PyFloat_AsDouble(values[3]); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
goto __pyx_L5_argtuple_error;
} else {
__pyx_v_mdc = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_mdc == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_rdcc = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_rdcc == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_rdcc_nbytes = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_rdcc_nbytes == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_v_rdcc_w0 = __pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(__pyx_args, 3)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("set_cache", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[3]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_cache");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":169
* See the HDF5 docs for a full explanation.
* """
* H5Pset_cache(self.id, mdc, rdcc, rdcc_nbytes, rdcc_w0) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_cache(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_mdc, __pyx_v_rdcc, __pyx_v_rdcc_nbytes, __pyx_v_rdcc_w0); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_cache");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":172
*
*
* def get_cache(self): # <<<<<<<<<<<<<<
* """() => TUPLE cache info
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_cache(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_get_cache[] = "() => TUPLE cache info\n\n Get the metadata and raw data chunk cache settings. See the HDF5\n docs for element definitions. Return is a 4-tuple with entries:\n\n 1. INT mdc: Number of metadata objects\n 2. INT rdcc: Number of raw data chunks\n 3. UINT rdcc_nbytes: Size of raw data cache\n 4. DOUBLE rdcc_w0: Preemption policy for data cache.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_cache(PyObject *__pyx_v_self, PyObject *unused) {
int __pyx_v_mdc;
int __pyx_v_rdcc;
size_t __pyx_v_rdcc_nbytes;
double __pyx_v_w0;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
__Pyx_RefNannySetupContext("get_cache");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":187
* cdef double w0
*
* H5Pget_cache(self.id, &mdc, &rdcc, &rdcc_nbytes, &w0) # <<<<<<<<<<<<<<
* return (mdc, rdcc, rdcc_nbytes, w0)
*
*/
__pyx_t_1 = H5Pget_cache(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_mdc), (&__pyx_v_rdcc), (&__pyx_v_rdcc_nbytes), (&__pyx_v_w0)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":188
*
* H5Pget_cache(self.id, &mdc, &rdcc, &rdcc_nbytes, &w0)
* return (mdc, rdcc, rdcc_nbytes, w0) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = PyInt_FromLong(__pyx_v_mdc); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = PyInt_FromLong(__pyx_v_rdcc); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = __Pyx_PyInt_FromSize_t(__pyx_v_rdcc_nbytes); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = PyFloat_FromDouble(__pyx_v_w0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 188; __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);
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5);
__Pyx_GIVEREF(__pyx_t_5);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__pyx_t_4 = 0;
__pyx_t_5 = 0;
__pyx_r = __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_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_AddTraceback("h5py.h5p.PropFAID.get_cache");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":191
*
*
* def set_sieve_buf_size(self, size_t size): # <<<<<<<<<<<<<<
* """ (UINT size)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_sieve_buf_size(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_set_sieve_buf_size[] = " (UINT size)\n\n Set the maximum size of the data sieve buffer (in bytes). This\n buffer can improve I/O performance for hyperslab I/O, by combining\n reads and writes into blocks of the given size. The default is 64k.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_set_sieve_buf_size(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
size_t __pyx_v_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_sieve_buf_size");
assert(__pyx_arg_size); {
__pyx_v_size = __Pyx_PyInt_AsSize_t(__pyx_arg_size); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_sieve_buf_size");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":198
* reads and writes into blocks of the given size. The default is 64k.
* """
* H5Pset_sieve_buf_size(self.id, size) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_sieve_buf_size(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_size); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropFAID.set_sieve_buf_size");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":201
*
*
* def get_sieve_buf_size(self): # <<<<<<<<<<<<<<
* """ () => UINT size
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_sieve_buf_size(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropFAID_get_sieve_buf_size[] = " () => UINT size\n\n Get the current maximum size of the data sieve buffer (in bytes).\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropFAID_get_sieve_buf_size(PyObject *__pyx_v_self, PyObject *unused) {
size_t __pyx_v_size;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_sieve_buf_size");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":207
* """
* cdef size_t size
* H5Pget_sieve_buf_size(self.id, &size) # <<<<<<<<<<<<<<
* return size
*
*/
__pyx_t_1 = H5Pget_sieve_buf_size(((struct __pyx_obj_4h5py_3h5p_PropFAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_size)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_faid.pxi":208
* cdef size_t size
* H5Pget_sieve_buf_size(self.id, &size)
* return size # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_size); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 208; __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("h5py.h5p.PropFAID.get_sieve_buf_size");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_lcid.pxi":18
*
*
* def set_create_intermediate_group(self, bint create): # <<<<<<<<<<<<<<
* """(BOOL create)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLCID_set_create_intermediate_group(PyObject *__pyx_v_self, PyObject *__pyx_arg_create); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLCID_set_create_intermediate_group[] = "(BOOL create)\n\n Set whether missing intermediate groups are automatically created.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLCID_set_create_intermediate_group(PyObject *__pyx_v_self, PyObject *__pyx_arg_create) {
int __pyx_v_create;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_create_intermediate_group");
assert(__pyx_arg_create); {
__pyx_v_create = __Pyx_PyObject_IsTrue(__pyx_arg_create); if (unlikely((__pyx_v_create == (int)-1))) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropLCID.set_create_intermediate_group");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_lcid.pxi":23
* Set whether missing intermediate groups are automatically created.
* """
* H5Pset_create_intermediate_group(self.id, create) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_create_intermediate_group(((struct __pyx_obj_4h5py_3h5p_PropLCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_create); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropLCID.set_create_intermediate_group");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_lcid.pxi":26
*
*
* def get_create_intermediate_group(self): # <<<<<<<<<<<<<<
* """() => BOOL
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLCID_get_create_intermediate_group(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLCID_get_create_intermediate_group[] = "() => BOOL \n\n Determine if missing intermediate groups are automatically created.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLCID_get_create_intermediate_group(PyObject *__pyx_v_self, PyObject *unused) {
unsigned int __pyx_v_create;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_create_intermediate_group");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_lcid.pxi":32
* """
* cdef unsigned int create
* H5Pget_create_intermediate_group(self.id, &create) # <<<<<<<<<<<<<<
* return <bint>create
*/
__pyx_t_1 = H5Pget_create_intermediate_group(((struct __pyx_obj_4h5py_3h5p_PropLCID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_create)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_lcid.pxi":33
* cdef unsigned int create
* H5Pget_create_intermediate_group(self.id, &create)
* return <bint>create # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyBool_FromLong(((int)__pyx_v_create)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 33; __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("h5py.h5p.PropLCID.get_create_intermediate_group");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":17
* """ Link access property list """
*
* def __cinit__(self, *args): # <<<<<<<<<<<<<<
* self._buf = NULL
*
*/
static int __pyx_pf_4h5py_3h5p_8PropLAID___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4h5py_3h5p_8PropLAID___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
PyObject *__pyx_v_args = 0;
int __pyx_r;
__Pyx_RefNannySetupContext("__cinit__");
if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
__Pyx_INCREF(__pyx_args);
__pyx_v_args = __pyx_args;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":18
*
* def __cinit__(self, *args):
* self._buf = NULL # <<<<<<<<<<<<<<
*
* def __dealloc__(self):
*/
((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->_buf = NULL;
__pyx_r = 0;
__Pyx_DECREF(__pyx_v_args);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":20
* self._buf = NULL
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
* efree(self._buf)
*
*/
static void __pyx_pf_4h5py_3h5p_8PropLAID___dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pf_4h5py_3h5p_8PropLAID___dealloc__(PyObject *__pyx_v_self) {
__Pyx_RefNannySetupContext("__dealloc__");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":21
*
* def __dealloc__(self):
* efree(self._buf) # <<<<<<<<<<<<<<
*
*
*/
__pyx_f_4h5py_5utils_efree(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->_buf);
__Pyx_RefNannyFinishContext();
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":24
*
*
* def set_nlinks(self, size_t nlinks): # <<<<<<<<<<<<<<
* """(UINT nlinks)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_set_nlinks(PyObject *__pyx_v_self, PyObject *__pyx_arg_nlinks); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLAID_set_nlinks[] = "(UINT nlinks)\n\n Set the maximum traversal depth for soft links\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_set_nlinks(PyObject *__pyx_v_self, PyObject *__pyx_arg_nlinks) {
size_t __pyx_v_nlinks;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_nlinks");
assert(__pyx_arg_nlinks); {
__pyx_v_nlinks = __Pyx_PyInt_AsSize_t(__pyx_arg_nlinks); if (unlikely((__pyx_v_nlinks == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropLAID.set_nlinks");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":29
* Set the maximum traversal depth for soft links
* """
* H5Pset_nlinks(self.id, nlinks) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_1 = H5Pset_nlinks(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_nlinks); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropLAID.set_nlinks");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":32
*
*
* def get_nlinks(self): # <<<<<<<<<<<<<<
* """() => UINT
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_get_nlinks(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLAID_get_nlinks[] = "() => UINT\n\n Get the maximum traversal depth for soft links\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_get_nlinks(PyObject *__pyx_v_self, PyObject *unused) {
size_t __pyx_v_nlinks;
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_nlinks");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":38
* """
* cdef size_t nlinks
* H5Pget_nlinks(self.id, &nlinks) # <<<<<<<<<<<<<<
* return nlinks
*
*/
__pyx_t_1 = H5Pget_nlinks(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, (&__pyx_v_nlinks)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":39
* cdef size_t nlinks
* H5Pget_nlinks(self.id, &nlinks)
* return nlinks # <<<<<<<<<<<<<<
*
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_nlinks); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 39; __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("h5py.h5p.PropLAID.get_nlinks");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":42
*
*
* def set_elink_prefix(self, char* prefix): # <<<<<<<<<<<<<<
* """(STRING prefix)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_set_elink_prefix(PyObject *__pyx_v_self, PyObject *__pyx_arg_prefix); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLAID_set_elink_prefix[] = "(STRING prefix)\n\n Set the external link prefix.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_set_elink_prefix(PyObject *__pyx_v_self, PyObject *__pyx_arg_prefix) {
char *__pyx_v_prefix;
size_t __pyx_v_size;
PyObject *__pyx_r = NULL;
void *__pyx_t_1;
herr_t __pyx_t_2;
__Pyx_RefNannySetupContext("set_elink_prefix");
assert(__pyx_arg_prefix); {
__pyx_v_prefix = __Pyx_PyBytes_AsString(__pyx_arg_prefix); if (unlikely((!__pyx_v_prefix) && PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
__Pyx_AddTraceback("h5py.h5p.PropLAID.set_elink_prefix");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":50
*
* # HDF5 requires that we hang on to this buffer
* efree(self._buf) # <<<<<<<<<<<<<<
* size = strlen(prefix)
* self._buf = <char*>emalloc(size+1)
*/
__pyx_f_4h5py_5utils_efree(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->_buf);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":51
* # HDF5 requires that we hang on to this buffer
* efree(self._buf)
* size = strlen(prefix) # <<<<<<<<<<<<<<
* self._buf = <char*>emalloc(size+1)
* strcpy(self._buf, prefix)
*/
__pyx_v_size = strlen(__pyx_v_prefix);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":52
* efree(self._buf)
* size = strlen(prefix)
* self._buf = <char*>emalloc(size+1) # <<<<<<<<<<<<<<
* strcpy(self._buf, prefix)
*
*/
__pyx_t_1 = __pyx_f_4h5py_5utils_emalloc((__pyx_v_size + 1)); if (unlikely(__pyx_t_1 == NULL && PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->_buf = ((char *)__pyx_t_1);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":53
* size = strlen(prefix)
* self._buf = <char*>emalloc(size+1)
* strcpy(self._buf, prefix) # <<<<<<<<<<<<<<
*
* H5Pset_elink_prefix(self.id, self._buf)
*/
strcpy(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->_buf, __pyx_v_prefix);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":55
* strcpy(self._buf, prefix)
*
* H5Pset_elink_prefix(self.id, self._buf) # <<<<<<<<<<<<<<
*
*
*/
__pyx_t_2 = H5Pset_elink_prefix(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, ((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->_buf); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropLAID.set_elink_prefix");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":58
*
*
* def get_elink_prefix(self): # <<<<<<<<<<<<<<
* """() => STRING prefix
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_get_elink_prefix(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLAID_get_elink_prefix[] = "() => STRING prefix\n\n Get the external link prefix\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_get_elink_prefix(PyObject *__pyx_v_self, PyObject *unused) {
char *__pyx_v_buf;
ssize_t __pyx_v_size;
PyObject *__pyx_v_pstr;
PyObject *__pyx_r = NULL;
ssize_t __pyx_t_1;
void *__pyx_t_2;
PyObject *__pyx_t_3 = NULL;
__Pyx_RefNannySetupContext("get_elink_prefix");
__Pyx_INCREF((PyObject *)__pyx_v_self);
__pyx_v_pstr = Py_None; __Pyx_INCREF(Py_None);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":63
* Get the external link prefix
* """
* cdef char* buf = NULL # <<<<<<<<<<<<<<
* cdef ssize_t size
*
*/
__pyx_v_buf = NULL;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":66
* cdef ssize_t size
*
* size = H5Pget_elink_prefix(self.id, NULL, 0) # <<<<<<<<<<<<<<
* buf = <char*>emalloc(size+1)
* try:
*/
__pyx_t_1 = H5Pget_elink_prefix(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, NULL, 0); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_size = __pyx_t_1;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":67
*
* size = H5Pget_elink_prefix(self.id, NULL, 0)
* buf = <char*>emalloc(size+1) # <<<<<<<<<<<<<<
* try:
* H5Pget_elink_prefix(self.id, buf, size+1)
*/
__pyx_t_2 = __pyx_f_4h5py_5utils_emalloc((__pyx_v_size + 1)); if (unlikely(__pyx_t_2 == NULL && PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_v_buf = ((char *)__pyx_t_2);
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":68
* size = H5Pget_elink_prefix(self.id, NULL, 0)
* buf = <char*>emalloc(size+1)
* try: # <<<<<<<<<<<<<<
* H5Pget_elink_prefix(self.id, buf, size+1)
* pstr = buf
*/
/*try:*/ {
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":69
* buf = <char*>emalloc(size+1)
* try:
* H5Pget_elink_prefix(self.id, buf, size+1) # <<<<<<<<<<<<<<
* pstr = buf
* finally:
*/
__pyx_t_1 = H5Pget_elink_prefix(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, __pyx_v_buf, (__pyx_v_size + 1)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L6;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":70
* try:
* H5Pget_elink_prefix(self.id, buf, size+1)
* pstr = buf # <<<<<<<<<<<<<<
* finally:
* efree(buf)
*/
__pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_buf); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L6;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_v_pstr);
__pyx_v_pstr = __pyx_t_3;
__pyx_t_3 = 0;
}
/*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_L7;
__pyx_L6: {
__pyx_why = 4;
__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_L7;
}
__pyx_L7:;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":72
* pstr = buf
* finally:
* efree(buf) # <<<<<<<<<<<<<<
*
* return pstr
*/
__pyx_f_4h5py_5utils_efree(__pyx_v_buf);
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;
}
}
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":74
* efree(buf)
*
* return pstr # <<<<<<<<<<<<<<
*
* def set_elink_fapl(self, PropID fapl not None):
*/
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_pstr);
__pyx_r = __pyx_v_pstr;
goto __pyx_L0;
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_3);
__Pyx_AddTraceback("h5py.h5p.PropLAID.get_elink_prefix");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_DECREF(__pyx_v_pstr);
__Pyx_DECREF((PyObject *)__pyx_v_self);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":76
* return pstr
*
* def set_elink_fapl(self, PropID fapl not None): # <<<<<<<<<<<<<<
* """ (PropFAID fapl)
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_set_elink_fapl(PyObject *__pyx_v_self, PyObject *__pyx_v_fapl); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLAID_set_elink_fapl[] = " (PropFAID fapl)\n\n Set the file access property list used when opening external files.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_set_elink_fapl(PyObject *__pyx_v_self, PyObject *__pyx_v_fapl) {
PyObject *__pyx_r = NULL;
herr_t __pyx_t_1;
__Pyx_RefNannySetupContext("set_elink_fapl");
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fapl), __pyx_ptype_4h5py_3h5p_PropID, 0, "fapl", 0))) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":81
* Set the file access property list used when opening external files.
* """
* H5Pset_elink_fapl(self.id, fapl.id) # <<<<<<<<<<<<<<
*
* def get_elink_fapl(self):
*/
__pyx_t_1 = H5Pset_elink_fapl(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id, ((struct __pyx_obj_4h5py_3h5p_PropID *)__pyx_v_fapl)->__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("h5py.h5p.PropLAID.set_elink_fapl");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":83
* H5Pset_elink_fapl(self.id, fapl.id)
*
* def get_elink_fapl(self): # <<<<<<<<<<<<<<
* """ () => PropFAID fapl
*
*/
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_get_elink_fapl(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static char __pyx_doc_4h5py_3h5p_8PropLAID_get_elink_fapl[] = " () => PropFAID fapl\n\n Get the file access property list used when opening external files.\n ";
static PyObject *__pyx_pf_4h5py_3h5p_8PropLAID_get_elink_fapl(PyObject *__pyx_v_self, PyObject *unused) {
PyObject *__pyx_r = NULL;
hid_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("get_elink_fapl");
/* "/home/tachyon/slave/unix-release/build/h5py/h5p_laid.pxi":88
* Get the file access property list used when opening external files.
* """
* return propwrap(H5Pget_elink_fapl(self.id)) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = H5Pget_elink_fapl(((struct __pyx_obj_4h5py_3h5p_PropLAID *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.id); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = __pyx_f_4h5py_3h5p_propwrap(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 88; __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("h5py.h5p.PropLAID.get_elink_fapl");
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_tp_new_4h5py_3h5p_PropID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_ptype_4h5py_2h5_ObjectID->tp_new(t, a, k);
if (!o) return 0;
return o;
}
static void __pyx_tp_dealloc_4h5py_3h5p_PropID(PyObject *o) {
__pyx_ptype_4h5py_2h5_ObjectID->tp_dealloc(o);
}
static int __pyx_tp_traverse_4h5py_3h5p_PropID(PyObject *o, visitproc v, void *a) {
int e;
if (__pyx_ptype_4h5py_2h5_ObjectID->tp_traverse) {
e = __pyx_ptype_4h5py_2h5_ObjectID->tp_traverse(o, v, a); if (e) return e;
}
return 0;
}
static int __pyx_tp_clear_4h5py_3h5p_PropID(PyObject *o) {
if (__pyx_ptype_4h5py_2h5_ObjectID->tp_clear) {
__pyx_ptype_4h5py_2h5_ObjectID->tp_clear(o);
}
return 0;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropID[] = {
{__Pyx_NAMESTR("equal"), (PyCFunction)__pyx_pf_4h5py_3h5p_6PropID_equal, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_6PropID_equal)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropID, /*tp_as_mapping*/
__pyx_pf_4h5py_3h5p_6PropID___hash__, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n Base class for all property lists and classes\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
__pyx_pf_4h5py_3h5p_6PropID___richcmp__, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropClassID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropClassID[] = {
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropClassID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropClassID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropClassID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropClassID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropClassID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropClassID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropClassID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropClassID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropClassID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropClassID, /*tp_as_mapping*/
__pyx_pf_4h5py_3h5p_11PropClassID___hash__, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropClassID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n An HDF5 property list class.\n\n * Hashable: Yes, by identifier\n * Equality: Logical H5P comparison\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
__pyx_pf_4h5py_3h5p_11PropClassID___richcmp__, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropClassID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropClassID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropInstanceID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropInstanceID[] = {
{__Pyx_NAMESTR("copy"), (PyCFunction)__pyx_pf_4h5py_3h5p_14PropInstanceID_copy, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_14PropInstanceID_copy)},
{__Pyx_NAMESTR("_close"), (PyCFunction)__pyx_pf_4h5py_3h5p_14PropInstanceID__close, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_14PropInstanceID__close)},
{__Pyx_NAMESTR("get_class"), (PyCFunction)__pyx_pf_4h5py_3h5p_14PropInstanceID_get_class, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_14PropInstanceID_get_class)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropInstanceID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropInstanceID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropInstanceID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropInstanceID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropInstanceID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropInstanceID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropInstanceID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropInstanceID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropInstanceID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropInstanceID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropInstanceID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n Base class for property list instance objects. Provides methods which\n are common across all HDF5 property list classes.\n\n * Hashable: No\n * Equality: Logical H5P comparison\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropInstanceID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropInstanceID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropCreateID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropCreateID[] = {
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropCreateID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropCreateID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropCreateID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropCreateID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropCreateID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropCreateID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropCreateID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropCreateID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropCreateID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropCreateID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropCreateID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n Generic object creation property list.\n\n Has no methods unless HDF5 1.8.X is available.\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropCreateID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropCreateID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropCopyID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropCopyID[] = {
{__Pyx_NAMESTR("set_copy_object"), (PyCFunction)__pyx_pf_4h5py_3h5p_10PropCopyID_set_copy_object, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_10PropCopyID_set_copy_object)},
{__Pyx_NAMESTR("get_copy_object"), (PyCFunction)__pyx_pf_4h5py_3h5p_10PropCopyID_get_copy_object, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_10PropCopyID_get_copy_object)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropCopyID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropCopyID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropCopyID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropCopyID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropCopyID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropCopyID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropCopyID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropCopyID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropCopyID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropCopyID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropCopyID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n Generic object copy property list\n\n Has no methods unless HDF5 1.8.X is available\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropCopyID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropCopyID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropDCID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropDCID[] = {
{__Pyx_NAMESTR("set_layout"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_layout, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_layout)},
{__Pyx_NAMESTR("get_layout"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_layout, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_layout)},
{__Pyx_NAMESTR("set_chunk"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_chunk, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_chunk)},
{__Pyx_NAMESTR("get_chunk"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_chunk, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_chunk)},
{__Pyx_NAMESTR("set_fill_value"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_fill_value, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_fill_value)},
{__Pyx_NAMESTR("get_fill_value"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_fill_value, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_fill_value)},
{__Pyx_NAMESTR("fill_value_defined"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_fill_value_defined, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_fill_value_defined)},
{__Pyx_NAMESTR("set_fill_time"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_fill_time, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_fill_time)},
{__Pyx_NAMESTR("get_fill_time"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_fill_time, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_fill_time)},
{__Pyx_NAMESTR("set_alloc_time"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_alloc_time, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_alloc_time)},
{__Pyx_NAMESTR("get_alloc_time"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_alloc_time, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_alloc_time)},
{__Pyx_NAMESTR("set_filter"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_filter, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_filter)},
{__Pyx_NAMESTR("all_filters_avail"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_all_filters_avail, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_all_filters_avail)},
{__Pyx_NAMESTR("get_nfilters"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_nfilters, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_nfilters)},
{__Pyx_NAMESTR("get_filter"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_filter, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_filter)},
{__Pyx_NAMESTR("_has_filter"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID__has_filter, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID__has_filter)},
{__Pyx_NAMESTR("get_filter_by_id"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_get_filter_by_id, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_get_filter_by_id)},
{__Pyx_NAMESTR("remove_filter"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_remove_filter, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_remove_filter)},
{__Pyx_NAMESTR("set_deflate"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_deflate, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_deflate)},
{__Pyx_NAMESTR("set_fletcher32"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_fletcher32, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_fletcher32)},
{__Pyx_NAMESTR("set_shuffle"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_shuffle, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_shuffle)},
{__Pyx_NAMESTR("set_szip"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropDCID_set_szip, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropDCID_set_szip)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropDCID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropDCID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropDCID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropDCID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropDCID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropDCID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropDCID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropDCID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropDCID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropDCID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropDCID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n Dataset creation property list.\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropDCID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropDCID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropFCID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropFCID[] = {
{__Pyx_NAMESTR("get_version"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFCID_get_version, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFCID_get_version)},
{__Pyx_NAMESTR("set_userblock"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFCID_set_userblock, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFCID_set_userblock)},
{__Pyx_NAMESTR("get_userblock"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFCID_get_userblock, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFCID_get_userblock)},
{__Pyx_NAMESTR("set_sizes"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFCID_set_sizes, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFCID_set_sizes)},
{__Pyx_NAMESTR("get_sizes"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFCID_get_sizes, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFCID_get_sizes)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropFCID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropFCID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropFCID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropFCID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropFCID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropFCID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropFCID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropFCID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropFCID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropFCID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropFCID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n File creation property list.\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropFCID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropFCID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropFAID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropFAID[] = {
{__Pyx_NAMESTR("set_fclose_degree"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_fclose_degree, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_fclose_degree)},
{__Pyx_NAMESTR("get_fclose_degree"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_get_fclose_degree, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_get_fclose_degree)},
{__Pyx_NAMESTR("set_fapl_core"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_core, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_core)},
{__Pyx_NAMESTR("get_fapl_core"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_get_fapl_core, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_get_fapl_core)},
{__Pyx_NAMESTR("set_fapl_family"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_family, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_family)},
{__Pyx_NAMESTR("get_fapl_family"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_get_fapl_family, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_get_fapl_family)},
{__Pyx_NAMESTR("set_fapl_log"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_log, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_log)},
{__Pyx_NAMESTR("set_fapl_sec2"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_sec2, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_sec2)},
{__Pyx_NAMESTR("set_fapl_stdio"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_fapl_stdio, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_fapl_stdio)},
{__Pyx_NAMESTR("get_driver"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_get_driver, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_get_driver)},
{__Pyx_NAMESTR("set_cache"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_cache, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_cache)},
{__Pyx_NAMESTR("get_cache"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_get_cache, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_get_cache)},
{__Pyx_NAMESTR("set_sieve_buf_size"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_set_sieve_buf_size, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_set_sieve_buf_size)},
{__Pyx_NAMESTR("get_sieve_buf_size"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropFAID_get_sieve_buf_size, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropFAID_get_sieve_buf_size)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropFAID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropFAID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropFAID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropFAID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropFAID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropFAID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropFAID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropFAID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropFAID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropFAID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropFAID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("\n File access property list\n "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropFAID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropFAID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropDXID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropDXID[] = {
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropDXID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropDXID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropDXID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropDXID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropDXID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropDXID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropDXID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropDXID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropDXID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropDXID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropDXID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR(" Dataset transfer property list "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropDXID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropDXID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropLCID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropLCID[] = {
{__Pyx_NAMESTR("set_create_intermediate_group"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLCID_set_create_intermediate_group, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLCID_set_create_intermediate_group)},
{__Pyx_NAMESTR("get_create_intermediate_group"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLCID_get_create_intermediate_group, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLCID_get_create_intermediate_group)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropLCID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropLCID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropLCID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropLCID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropLCID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropLCID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropLCID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropLCID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropLCID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropLCID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropLCID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR(" Link creation property list "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropLCID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropLCID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropLAID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
if (__pyx_pf_4h5py_3h5p_8PropLAID___cinit__(o, a, k) < 0) {
Py_DECREF(o); o = 0;
}
return o;
}
static void __pyx_tp_dealloc_4h5py_3h5p_PropLAID(PyObject *o) {
{
PyObject *etype, *eval, *etb;
PyErr_Fetch(&etype, &eval, &etb);
++Py_REFCNT(o);
__pyx_pf_4h5py_3h5p_8PropLAID___dealloc__(o);
if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
--Py_REFCNT(o);
PyErr_Restore(etype, eval, etb);
}
__pyx_tp_dealloc_4h5py_3h5p_PropID(o);
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropLAID[] = {
{__Pyx_NAMESTR("set_nlinks"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLAID_set_nlinks, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLAID_set_nlinks)},
{__Pyx_NAMESTR("get_nlinks"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLAID_get_nlinks, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLAID_get_nlinks)},
{__Pyx_NAMESTR("set_elink_prefix"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLAID_set_elink_prefix, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLAID_set_elink_prefix)},
{__Pyx_NAMESTR("get_elink_prefix"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLAID_get_elink_prefix, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLAID_get_elink_prefix)},
{__Pyx_NAMESTR("set_elink_fapl"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLAID_set_elink_fapl, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLAID_set_elink_fapl)},
{__Pyx_NAMESTR("get_elink_fapl"), (PyCFunction)__pyx_pf_4h5py_3h5p_8PropLAID_get_elink_fapl, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_8PropLAID_get_elink_fapl)},
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropLAID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropLAID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropLAID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropLAID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropLAID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropLAID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropLAID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropLAID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropLAID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropLAID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropLAID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropLAID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR(" Link access property list "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropLAID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropLAID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static PyObject *__pyx_tp_new_4h5py_3h5p_PropGCID(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_4h5py_3h5p_PropID(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_4h5py_3h5p_PropGCID[] = {
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_PropGCID = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_divide*/
#endif
0, /*nb_remainder*/
0, /*nb_divmod*/
0, /*nb_power*/
0, /*nb_negative*/
0, /*nb_positive*/
0, /*nb_absolute*/
0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_MAJOR_VERSION < 3
0, /*nb_coerce*/
#endif
0, /*nb_int*/
#if PY_MAJOR_VERSION >= 3
0, /*reserved*/
#else
0, /*nb_long*/
#endif
0, /*nb_float*/
#if PY_MAJOR_VERSION < 3
0, /*nb_oct*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*nb_hex*/
#endif
0, /*nb_inplace_add*/
0, /*nb_inplace_subtract*/
0, /*nb_inplace_multiply*/
#if PY_MAJOR_VERSION < 3
0, /*nb_inplace_divide*/
#endif
0, /*nb_inplace_remainder*/
0, /*nb_inplace_power*/
0, /*nb_inplace_lshift*/
0, /*nb_inplace_rshift*/
0, /*nb_inplace_and*/
0, /*nb_inplace_xor*/
0, /*nb_inplace_or*/
0, /*nb_floor_divide*/
0, /*nb_true_divide*/
0, /*nb_inplace_floor_divide*/
0, /*nb_inplace_true_divide*/
#if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
0, /*nb_index*/
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_PropGCID = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
0, /*sq_item*/
0, /*sq_slice*/
0, /*sq_ass_item*/
0, /*sq_ass_slice*/
0, /*sq_contains*/
0, /*sq_inplace_concat*/
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_PropGCID = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_PropGCID = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getwritebuffer*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getsegcount*/
#endif
#if PY_MAJOR_VERSION < 3
0, /*bf_getcharbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_getbuffer*/
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /*bf_releasebuffer*/
#endif
};
PyTypeObject __pyx_type_4h5py_3h5p_PropGCID = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("h5py.h5p.PropGCID"), /*tp_name*/
sizeof(struct __pyx_obj_4h5py_3h5p_PropGCID), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_4h5py_3h5p_PropID, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_PropGCID, /*tp_as_number*/
&__pyx_tp_as_sequence_PropGCID, /*tp_as_sequence*/
&__pyx_tp_as_mapping_PropGCID, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_PropGCID, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR(" Group creation property list "), /*tp_doc*/
__pyx_tp_traverse_4h5py_3h5p_PropID, /*tp_traverse*/
__pyx_tp_clear_4h5py_3h5p_PropID, /*tp_clear*/
0, /*tp_richcompare*/
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_4h5py_3h5p_PropGCID, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
0, /*tp_dict*/
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
0, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_4h5py_3h5p_PropGCID, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
0, /*tp_mro*/
0, /*tp_cache*/
0, /*tp_subclasses*/
0, /*tp_weaklist*/
0, /*tp_del*/
#if PY_VERSION_HEX >= 0x02060000
0, /*tp_version_tag*/
#endif
};
static struct PyMethodDef __pyx_methods[] = {
{__Pyx_NAMESTR("create"), (PyCFunction)__pyx_pf_4h5py_3h5p_create, METH_O, __Pyx_DOCSTR(__pyx_doc_4h5py_3h5p_create)},
{0, 0, 0, 0}
};
static void __pyx_init_filenames(void); /*proto*/
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
PyModuleDef_HEAD_INIT,
__Pyx_NAMESTR("h5p"),
__Pyx_DOCSTR(__pyx_k_4), /* 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_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
{&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
{&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
{&__pyx_n_s__DATASET_CREATE, __pyx_k__DATASET_CREATE, sizeof(__pyx_k__DATASET_CREATE), 0, 0, 1, 1},
{&__pyx_n_s__DATASET_XFER, __pyx_k__DATASET_XFER, sizeof(__pyx_k__DATASET_XFER), 0, 0, 1, 1},
{&__pyx_n_s__DEFAULT, __pyx_k__DEFAULT, sizeof(__pyx_k__DEFAULT), 0, 0, 1, 1},
{&__pyx_n_s__FILE_ACCESS, __pyx_k__FILE_ACCESS, sizeof(__pyx_k__FILE_ACCESS), 0, 0, 1, 1},
{&__pyx_n_s__FILE_CREATE, __pyx_k__FILE_CREATE, sizeof(__pyx_k__FILE_CREATE), 0, 0, 1, 1},
{&__pyx_n_s__GROUP_CREATE, __pyx_k__GROUP_CREATE, sizeof(__pyx_k__GROUP_CREATE), 0, 0, 1, 1},
{&__pyx_n_s__LINK_ACCESS, __pyx_k__LINK_ACCESS, sizeof(__pyx_k__LINK_ACCESS), 0, 0, 1, 1},
{&__pyx_n_s__LINK_CREATE, __pyx_k__LINK_CREATE, sizeof(__pyx_k__LINK_CREATE), 0, 0, 1, 1},
{&__pyx_n_s__NO_CLASS, __pyx_k__NO_CLASS, sizeof(__pyx_k__NO_CLASS), 0, 0, 1, 1},
{&__pyx_n_s__NotImplemented, __pyx_k__NotImplemented, sizeof(__pyx_k__NotImplemented), 0, 0, 1, 1},
{&__pyx_n_s__OBJECT_COPY, __pyx_k__OBJECT_COPY, sizeof(__pyx_k__OBJECT_COPY), 0, 0, 1, 1},
{&__pyx_n_s__TypeError, __pyx_k__TypeError, sizeof(__pyx_k__TypeError), 0, 0, 1, 1},
{&__pyx_n_s__ValueError, __pyx_k__ValueError, sizeof(__pyx_k__ValueError), 0, 0, 1, 1},
{&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
{&__pyx_n_s____richcmp__, __pyx_k____richcmp__, sizeof(__pyx_k____richcmp__), 0, 0, 1, 1},
{&__pyx_n_s___buf, __pyx_k___buf, sizeof(__pyx_k___buf), 0, 0, 1, 1},
{&__pyx_n_s___has_filter, __pyx_k___has_filter, sizeof(__pyx_k___has_filter), 0, 0, 1, 1},
{&__pyx_n_s___locked, __pyx_k___locked, sizeof(__pyx_k___locked), 0, 0, 1, 1},
{&__pyx_n_s__addr, __pyx_k__addr, sizeof(__pyx_k__addr), 0, 0, 1, 1},
{&__pyx_n_s__backing_store, __pyx_k__backing_store, sizeof(__pyx_k__backing_store), 0, 0, 1, 1},
{&__pyx_n_s__block_size, __pyx_k__block_size, sizeof(__pyx_k__block_size), 0, 0, 1, 1},
{&__pyx_n_s__buf_size, __pyx_k__buf_size, sizeof(__pyx_k__buf_size), 0, 0, 1, 1},
{&__pyx_n_s__data, __pyx_k__data, sizeof(__pyx_k__data), 0, 0, 1, 1},
{&__pyx_n_s__dtype, __pyx_k__dtype, sizeof(__pyx_k__dtype), 0, 0, 1, 1},
{&__pyx_n_s__equal, __pyx_k__equal, sizeof(__pyx_k__equal), 0, 0, 1, 1},
{&__pyx_n_s__filter_code, __pyx_k__filter_code, sizeof(__pyx_k__filter_code), 0, 0, 1, 1},
{&__pyx_n_s__flags, __pyx_k__flags, sizeof(__pyx_k__flags), 0, 0, 1, 1},
{&__pyx_n_s__get_filter, __pyx_k__get_filter, sizeof(__pyx_k__get_filter), 0, 0, 1, 1},
{&__pyx_n_s__get_nfilters, __pyx_k__get_nfilters, sizeof(__pyx_k__get_nfilters), 0, 0, 1, 1},
{&__pyx_n_s__id, __pyx_k__id, sizeof(__pyx_k__id), 0, 0, 1, 1},
{&__pyx_n_s__level, __pyx_k__level, sizeof(__pyx_k__level), 0, 0, 1, 1},
{&__pyx_n_s__logfile, __pyx_k__logfile, sizeof(__pyx_k__logfile), 0, 0, 1, 1},
{&__pyx_n_s__mdc, __pyx_k__mdc, sizeof(__pyx_k__mdc), 0, 0, 1, 1},
{&__pyx_n_s__memb_fapl, __pyx_k__memb_fapl, sizeof(__pyx_k__memb_fapl), 0, 0, 1, 1},
{&__pyx_n_s__memb_size, __pyx_k__memb_size, sizeof(__pyx_k__memb_size), 0, 0, 1, 1},
{&__pyx_n_s__options, __pyx_k__options, sizeof(__pyx_k__options), 0, 0, 1, 1},
{&__pyx_n_s__pixels_per_block, __pyx_k__pixels_per_block, sizeof(__pyx_k__pixels_per_block), 0, 0, 1, 1},
{&__pyx_n_s__rdcc, __pyx_k__rdcc, sizeof(__pyx_k__rdcc), 0, 0, 1, 1},
{&__pyx_n_s__rdcc_nbytes, __pyx_k__rdcc_nbytes, sizeof(__pyx_k__rdcc_nbytes), 0, 0, 1, 1},
{&__pyx_n_s__rdcc_w0, __pyx_k__rdcc_w0, sizeof(__pyx_k__rdcc_w0), 0, 0, 1, 1},
{&__pyx_n_s__size, __pyx_k__size, sizeof(__pyx_k__size), 0, 0, 1, 1},
{&__pyx_n_s__values, __pyx_k__values, sizeof(__pyx_k__values), 0, 0, 1, 1},
{0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
__pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_NotImplemented = __Pyx_GetName(__pyx_b, __pyx_n_s__NotImplemented); if (!__pyx_builtin_NotImplemented) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __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 = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
return 0;
__pyx_L1_error:;
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;};
return 0;
__pyx_L1_error:;
return -1;
}
#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC inith5p(void); /*proto*/
PyMODINIT_FUNC inith5p(void)
#else
PyMODINIT_FUNC PyInit_h5p(void); /*proto*/
PyMODINIT_FUNC PyInit_h5p(void)
#endif
{
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
#if CYTHON_REFNANNY
void* __pyx_refnanny = NULL;
__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");
}
__pyx_refnanny = __Pyx_RefNanny->SetupContext("PyMODINIT_FUNC PyInit_h5p(void)", __LINE__, __FILE__);
#endif
__pyx_init_filenames();
__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;}
#if PY_MAJOR_VERSION < 3
__pyx_empty_bytes = PyString_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
#else
__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;}
#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("h5p"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_4), 0, PYTHON_API_VERSION);
#else
__pyx_m = PyModule_Create(&__pyx_moduledef);
#endif
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
#if PY_MAJOR_VERSION < 3
Py_INCREF(__pyx_m);
#endif
__pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
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_h5py__h5p) {
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;}
/*--- Global init code ---*/
/*--- Function export code ---*/
if (__Pyx_ExportFunction("pdefault", (void (*)(void))__pyx_f_4h5py_3h5p_pdefault, "hid_t (struct __pyx_obj_4h5py_3h5p_PropID *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ExportFunction("propwrap", (void (*)(void))__pyx_f_4h5py_3h5p_propwrap, "PyObject *(hid_t)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Type init code ---*/
__pyx_ptype_4h5py_2h5_ObjectID = __Pyx_ImportType("h5py.h5", "ObjectID", sizeof(struct __pyx_obj_4h5py_2h5_ObjectID)); if (unlikely(!__pyx_ptype_4h5py_2h5_ObjectID)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_type_4h5py_3h5p_PropID.tp_base = __pyx_ptype_4h5py_2h5_ObjectID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropID", (PyObject *)&__pyx_type_4h5py_3h5p_PropID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropID, __pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropID = &__pyx_type_4h5py_3h5p_PropID;
__pyx_type_4h5py_3h5p_PropClassID.tp_base = __pyx_ptype_4h5py_3h5p_PropID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropClassID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropClassID", (PyObject *)&__pyx_type_4h5py_3h5p_PropClassID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropClassID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropClassID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropClassID, __pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropClassID = &__pyx_type_4h5py_3h5p_PropClassID;
__pyx_type_4h5py_3h5p_PropInstanceID.tp_base = __pyx_ptype_4h5py_3h5p_PropID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropInstanceID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropInstanceID", (PyObject *)&__pyx_type_4h5py_3h5p_PropInstanceID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropInstanceID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropInstanceID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropInstanceID, __pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropInstanceID = &__pyx_type_4h5py_3h5p_PropInstanceID;
__pyx_type_4h5py_3h5p_PropCreateID.tp_base = __pyx_ptype_4h5py_3h5p_PropInstanceID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropCreateID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropCreateID", (PyObject *)&__pyx_type_4h5py_3h5p_PropCreateID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropCreateID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropCreateID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropCreateID, __pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropCreateID = &__pyx_type_4h5py_3h5p_PropCreateID;
__pyx_type_4h5py_3h5p_PropCopyID.tp_base = __pyx_ptype_4h5py_3h5p_PropInstanceID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropCopyID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropCopyID", (PyObject *)&__pyx_type_4h5py_3h5p_PropCopyID) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropCopyID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropCopyID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropCopyID, __pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropCopyID = &__pyx_type_4h5py_3h5p_PropCopyID;
__pyx_type_4h5py_3h5p_PropDCID.tp_base = __pyx_ptype_4h5py_3h5p_PropCreateID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropDCID) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropDCID", (PyObject *)&__pyx_type_4h5py_3h5p_PropDCID) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropDCID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropDCID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropDCID, __pyx_base.__pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropDCID = &__pyx_type_4h5py_3h5p_PropDCID;
__pyx_type_4h5py_3h5p_PropFCID.tp_base = __pyx_ptype_4h5py_3h5p_PropCreateID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropFCID) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropFCID", (PyObject *)&__pyx_type_4h5py_3h5p_PropFCID) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropFCID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropFCID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropFCID, __pyx_base.__pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropFCID = &__pyx_type_4h5py_3h5p_PropFCID;
__pyx_type_4h5py_3h5p_PropFAID.tp_base = __pyx_ptype_4h5py_3h5p_PropInstanceID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropFAID) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropFAID", (PyObject *)&__pyx_type_4h5py_3h5p_PropFAID) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropFAID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropFAID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropFAID, __pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropFAID = &__pyx_type_4h5py_3h5p_PropFAID;
__pyx_type_4h5py_3h5p_PropDXID.tp_base = __pyx_ptype_4h5py_3h5p_PropInstanceID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropDXID) < 0) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropDXID", (PyObject *)&__pyx_type_4h5py_3h5p_PropDXID) < 0) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropDXID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropDXID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropDXID, __pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropDXID = &__pyx_type_4h5py_3h5p_PropDXID;
__pyx_type_4h5py_3h5p_PropLCID.tp_base = __pyx_ptype_4h5py_3h5p_PropCreateID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropLCID) < 0) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropLCID", (PyObject *)&__pyx_type_4h5py_3h5p_PropLCID) < 0) {__pyx_filename = __pyx_f[4]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropLCID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropLCID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropLCID, __pyx_base.__pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropLCID = &__pyx_type_4h5py_3h5p_PropLCID;
__pyx_type_4h5py_3h5p_PropLAID.tp_base = __pyx_ptype_4h5py_3h5p_PropInstanceID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropLAID) < 0) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropLAID", (PyObject *)&__pyx_type_4h5py_3h5p_PropLAID) < 0) {__pyx_filename = __pyx_f[5]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropLAID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropLAID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropLAID, __pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropLAID = &__pyx_type_4h5py_3h5p_PropLAID;
__pyx_type_4h5py_3h5p_PropGCID.tp_base = __pyx_ptype_4h5py_3h5p_PropCreateID;
if (PyType_Ready(&__pyx_type_4h5py_3h5p_PropGCID) < 0) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "PropGCID", (PyObject *)&__pyx_type_4h5py_3h5p_PropGCID) < 0) {__pyx_filename = __pyx_f[7]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_type_4h5py_3h5p_PropGCID.tp_weaklistoffset == 0) __pyx_type_4h5py_3h5p_PropGCID.tp_weaklistoffset = offsetof(struct __pyx_obj_4h5py_3h5p_PropGCID, __pyx_base.__pyx_base.__pyx_base.__pyx_base.__weakref__);
__pyx_ptype_4h5py_3h5p_PropGCID = &__pyx_type_4h5py_3h5p_PropGCID;
/*--- Type import code ---*/
__pyx_ptype_4h5py_2h5_H5PYConfig = __Pyx_ImportType("h5py.h5", "H5PYConfig", sizeof(struct __pyx_obj_4h5py_2h5_H5PYConfig)); if (unlikely(!__pyx_ptype_4h5py_2h5_H5PYConfig)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_2h5_SmartStruct = __Pyx_ImportType("h5py.h5", "SmartStruct", sizeof(struct __pyx_obj_4h5py_2h5_SmartStruct)); if (unlikely(!__pyx_ptype_4h5py_2h5_SmartStruct)) {__pyx_filename = __pyx_f[8]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr)); if (unlikely(!__pyx_ptype_4h5py_5numpy_dtype)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject)); if (unlikely(!__pyx_ptype_4h5py_5numpy_ndarray)) {__pyx_filename = __pyx_f[9]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeID = __Pyx_ImportType("h5py.h5t", "TypeID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeArrayID = __Pyx_ImportType("h5py.h5t", "TypeArrayID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeArrayID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeArrayID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeArrayID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeArrayID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeOpaqueID = __Pyx_ImportType("h5py.h5t", "TypeOpaqueID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeOpaqueID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeOpaqueID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeOpaqueID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeOpaqueID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeStringID = __Pyx_ImportType("h5py.h5t", "TypeStringID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeStringID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeStringID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeStringID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeStringID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeVlenID = __Pyx_ImportType("h5py.h5t", "TypeVlenID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeVlenID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeVlenID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeVlenID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeVlenID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeTimeID = __Pyx_ImportType("h5py.h5t", "TypeTimeID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeTimeID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeTimeID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeTimeID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeTimeID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeBitfieldID = __Pyx_ImportType("h5py.h5t", "TypeBitfieldID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeBitfieldID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeBitfieldID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeBitfieldID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeBitfieldID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeReferenceID = __Pyx_ImportType("h5py.h5t", "TypeReferenceID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeReferenceID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeReferenceID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeReferenceID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeReferenceID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeAtomicID = __Pyx_ImportType("h5py.h5t", "TypeAtomicID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeAtomicID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeAtomicID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeAtomicID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeAtomicID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeIntegerID = __Pyx_ImportType("h5py.h5t", "TypeIntegerID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeIntegerID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeIntegerID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeIntegerID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeIntegerID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeFloatID = __Pyx_ImportType("h5py.h5t", "TypeFloatID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeFloatID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeFloatID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeFloatID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeFloatID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeCompositeID = __Pyx_ImportType("h5py.h5t", "TypeCompositeID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeCompositeID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeCompositeID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeCompositeID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeCompositeID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeEnumID = __Pyx_ImportType("h5py.h5t", "TypeEnumID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeEnumID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeEnumID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeEnumID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeEnumID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_4h5py_3h5t_TypeCompoundID = __Pyx_ImportType("h5py.h5t", "TypeCompoundID", sizeof(struct __pyx_obj_4h5py_3h5t_TypeCompoundID)); if (unlikely(!__pyx_ptype_4h5py_3h5t_TypeCompoundID)) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_GetVtable(__pyx_ptype_4h5py_3h5t_TypeCompoundID->tp_dict, &__pyx_vtabptr_4h5py_3h5t_TypeCompoundID) < 0) {__pyx_filename = __pyx_f[10]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/*--- Function import code ---*/
__pyx_t_1 = __Pyx_ImportModule("h5py.h5"); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_1, "get_config", (void (**)(void))&__pyx_f_4h5py_2h5_get_config, "struct __pyx_obj_4h5py_2h5_H5PYConfig *(int __pyx_skip_dispatch)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_1, "init_hdf5", (void (**)(void))&__pyx_f_4h5py_2h5_init_hdf5, "int (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_2 = __Pyx_ImportModule("h5py.utils"); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "emalloc", (void (**)(void))&__pyx_f_4h5py_5utils_emalloc, "void *(size_t)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "efree", (void (**)(void))&__pyx_f_4h5py_5utils_efree, "void (void *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "check_numpy_read", (void (**)(void))&__pyx_f_4h5py_5utils_check_numpy_read, "int (PyArrayObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_5utils_check_numpy_read *__pyx_optional_args)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "check_numpy_write", (void (**)(void))&__pyx_f_4h5py_5utils_check_numpy_write, "int (PyArrayObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_5utils_check_numpy_write *__pyx_optional_args)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "convert_tuple", (void (**)(void))&__pyx_f_4h5py_5utils_convert_tuple, "int (PyObject *, hsize_t *, hsize_t)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "convert_dims", (void (**)(void))&__pyx_f_4h5py_5utils_convert_dims, "PyObject *(hsize_t *, hsize_t)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "require_tuple", (void (**)(void))&__pyx_f_4h5py_5utils_require_tuple, "int (PyObject *, int, int, char *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "create_numpy_hsize", (void (**)(void))&__pyx_f_4h5py_5utils_create_numpy_hsize, "PyObject *(int, hsize_t *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_2, "create_hsize_array", (void (**)(void))&__pyx_f_4h5py_5utils_create_hsize_array, "PyObject *(PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = __Pyx_ImportModule("h5py.h5t"); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_3, "typewrap", (void (**)(void))&__pyx_f_4h5py_3h5t_typewrap, "struct __pyx_obj_4h5py_3h5t_TypeID *(hid_t)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_ImportFunction(__pyx_t_3, "py_create", (void (**)(void))&__pyx_f_4h5py_3h5t_py_create, "struct __pyx_obj_4h5py_3h5t_TypeID *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_4h5py_3h5t_py_create *__pyx_optional_args)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
Py_DECREF(__pyx_t_3); __pyx_t_3 = 0;
/*--- Execution code ---*/
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":28
*
* # Initialization
* init_hdf5() # <<<<<<<<<<<<<<
* import_array()
*
*/
__pyx_t_4 = __pyx_f_4h5py_2h5_init_hdf5(); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":29
* # Initialization
* init_hdf5()
* import_array() # <<<<<<<<<<<<<<
*
* # === C API ===================================================================
*/
import_array();
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":81
* # Property list classes
* # These need to be locked, as the library won't let you close them.
* NO_CLASS = lockcls(H5P_NO_CLASS) # <<<<<<<<<<<<<<
* FILE_CREATE = lockcls(H5P_FILE_CREATE)
* FILE_ACCESS = lockcls(H5P_FILE_ACCESS)
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_NO_CLASS); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__NO_CLASS, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":82
* # These need to be locked, as the library won't let you close them.
* NO_CLASS = lockcls(H5P_NO_CLASS)
* FILE_CREATE = lockcls(H5P_FILE_CREATE) # <<<<<<<<<<<<<<
* FILE_ACCESS = lockcls(H5P_FILE_ACCESS)
* DATASET_CREATE = lockcls(H5P_DATASET_CREATE)
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_FILE_CREATE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FILE_CREATE, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":83
* NO_CLASS = lockcls(H5P_NO_CLASS)
* FILE_CREATE = lockcls(H5P_FILE_CREATE)
* FILE_ACCESS = lockcls(H5P_FILE_ACCESS) # <<<<<<<<<<<<<<
* DATASET_CREATE = lockcls(H5P_DATASET_CREATE)
* DATASET_XFER = lockcls(H5P_DATASET_XFER)
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_FILE_ACCESS); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FILE_ACCESS, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":84
* FILE_CREATE = lockcls(H5P_FILE_CREATE)
* FILE_ACCESS = lockcls(H5P_FILE_ACCESS)
* DATASET_CREATE = lockcls(H5P_DATASET_CREATE) # <<<<<<<<<<<<<<
* DATASET_XFER = lockcls(H5P_DATASET_XFER)
*
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_DATASET_CREATE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DATASET_CREATE, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":85
* FILE_ACCESS = lockcls(H5P_FILE_ACCESS)
* DATASET_CREATE = lockcls(H5P_DATASET_CREATE)
* DATASET_XFER = lockcls(H5P_DATASET_XFER) # <<<<<<<<<<<<<<
*
* IF H5PY_18API:
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_DATASET_XFER); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DATASET_XFER, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":88
*
* IF H5PY_18API:
* OBJECT_COPY = lockcls(H5P_OBJECT_COPY) # <<<<<<<<<<<<<<
* LINK_CREATE = lockcls(H5P_LINK_CREATE)
* LINK_ACCESS = lockcls(H5P_LINK_ACCESS)
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_OBJECT_COPY); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__OBJECT_COPY, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":89
* IF H5PY_18API:
* OBJECT_COPY = lockcls(H5P_OBJECT_COPY)
* LINK_CREATE = lockcls(H5P_LINK_CREATE) # <<<<<<<<<<<<<<
* LINK_ACCESS = lockcls(H5P_LINK_ACCESS)
* GROUP_CREATE = lockcls(H5P_GROUP_CREATE)
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_LINK_CREATE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LINK_CREATE, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":90
* OBJECT_COPY = lockcls(H5P_OBJECT_COPY)
* LINK_CREATE = lockcls(H5P_LINK_CREATE)
* LINK_ACCESS = lockcls(H5P_LINK_ACCESS) # <<<<<<<<<<<<<<
* GROUP_CREATE = lockcls(H5P_GROUP_CREATE)
*
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_LINK_ACCESS); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LINK_ACCESS, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":91
* LINK_CREATE = lockcls(H5P_LINK_CREATE)
* LINK_ACCESS = lockcls(H5P_LINK_ACCESS)
* GROUP_CREATE = lockcls(H5P_GROUP_CREATE) # <<<<<<<<<<<<<<
*
* DEFAULT = None # In the HDF5 header files this is actually 0, which is an
*/
__pyx_t_5 = __pyx_f_4h5py_3h5p_lockcls(H5P_GROUP_CREATE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_5);
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__GROUP_CREATE, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
/* "/home/tachyon/slave/unix-release/build/h5py/h5p.pyx":93
* GROUP_CREATE = lockcls(H5P_GROUP_CREATE)
*
* DEFAULT = None # In the HDF5 header files this is actually 0, which is an # <<<<<<<<<<<<<<
* # invalid identifier. The new strategy for default options
* # is to make them all None, to better match the Python style
*/
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DEFAULT, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":1
* #+ # <<<<<<<<<<<<<<
* #
* # This file is part of h5py, a low-level Python interface to the HDF5 library.
*/
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_5);
if (__pyx_m) {
__Pyx_AddTraceback("init h5py.h5p");
Py_DECREF(__pyx_m); __pyx_m = 0;
} else if (!PyErr_Occurred()) {
PyErr_SetString(PyExc_ImportError, "init h5py.h5p");
}
__pyx_L0:;
__Pyx_RefNannyFinishContext();
#if PY_MAJOR_VERSION < 3
return;
#else
return __pyx_m;
#endif
}
static const char *__pyx_filenames[] = {
"h5p.pyx",
"h5p_fcid.pxi",
"h5p_dcid.pxi",
"h5p_faid.pxi",
"h5p_lcid.pxi",
"h5p_laid.pxi",
"h5p.pxd",
"h5p_gcid.pxi",
"h5.pxd",
"numpy.pxd",
"h5t.pxd",
};
/* Runtime support code */
static void __pyx_init_filenames(void) {
__pyx_f = __pyx_filenames;
}
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
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);
}
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
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;
}
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_AS_STRING(kw_name));
#endif
}
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 *number, *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";
}
number = (num_expected == 1) ? "" : "s";
PyErr_Format(PyExc_TypeError,
#if PY_VERSION_HEX < 0x02050000
"%s() takes %s %d positional argument%s (%d given)",
#else
"%s() takes %s %zd positional argument%s (%zd given)",
#endif
func_name, more_or_less, num_expected, number, num_found);
}
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;
} else {
#if PY_MAJOR_VERSION < 3
if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
#else
if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
#endif
goto invalid_keyword_type;
} else {
for (name = first_kw_arg; *name; name++) {
#if PY_MAJOR_VERSION >= 3
if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
PyUnicode_Compare(**name, key) == 0) break;
#else
if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
_PyString_Eq(**name, key)) break;
#endif
}
if (*name) {
values[name-argnames] = value;
} else {
/* unexpected keyword found */
for (name=argnames; name != first_kw_arg; name++) {
if (**name == key) goto arg_passed_twice;
#if PY_MAJOR_VERSION >= 3
if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
PyUnicode_Compare(**name, key) == 0) goto arg_passed_twice;
#else
if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
_PyString_Eq(**name, key)) goto arg_passed_twice;
#endif
}
if (kwds2) {
if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
} else {
goto invalid_keyword;
}
}
}
}
}
return 0;
arg_passed_twice:
__Pyx_RaiseDoubleKeywordsError(function_name, **name);
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 INLINE int __Pyx_CheckKeywordStrings(
PyObject *kwdict,
const char* function_name,
int kw_allowed)
{
PyObject* key = 0;
Py_ssize_t pos = 0;
while (PyDict_Next(kwdict, &pos, &key, 0)) {
#if PY_MAJOR_VERSION < 3
if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key)))
#else
if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key)))
#endif
goto invalid_keyword_type;
}
if ((!kw_allowed) && unlikely(key))
goto invalid_keyword;
return 1;
invalid_keyword_type:
PyErr_Format(PyExc_TypeError,
"%s() keywords must be strings", function_name);
return 0;
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
return 0;
}
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 INLINE hid_t __Pyx_PyInt_from_py_hid_t(PyObject* x) {
const hid_t neg_one = (hid_t)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
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);
#if 0
} else if (sizeof(hid_t) > sizeof(short) &&
sizeof(hid_t) < sizeof(int)) { /* __int32 ILP64 ? */
if (is_unsigned)
return (hid_t)__Pyx_PyInt_AsUnsignedInt(x);
else
return (hid_t)__Pyx_PyInt_AsSignedInt(x);
#endif
}
PyErr_SetString(PyExc_TypeError, "hid_t");
return (hid_t)-1;
}
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
PyObject *result;
result = PyObject_GetAttr(dict, name);
if (!result)
PyErr_SetObject(PyExc_NameError, name);
return result;
}
static INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t val) {
const hid_t neg_one = (hid_t)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(hid_t) < sizeof(long)) {
return PyInt_FromLong((long)val);
} else if (sizeof(hid_t) == sizeof(long)) {
if (is_unsigned)
return PyLong_FromUnsignedLong((unsigned long)val);
else
return PyInt_FromLong((long)val);
} else { /* (sizeof(hid_t) > sizeof(long)) */
if (is_unsigned)
return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val);
else
return PyLong_FromLongLong((PY_LONG_LONG)val);
}
}
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
Py_XINCREF(type);
Py_XINCREF(value);
Py_XINCREF(tb);
/* First, check the traceback argument, replacing None with NULL. */
if (tb == Py_None) {
Py_DECREF(tb);
tb = 0;
}
else if (tb != NULL && !PyTraceBack_Check(tb)) {
PyErr_SetString(PyExc_TypeError,
"raise: arg 3 must be a traceback or None");
goto raise_error;
}
/* Next, replace a missing value with None */
if (value == NULL) {
value = Py_None;
Py_INCREF(value);
}
#if PY_VERSION_HEX < 0x02050000
if (!PyClass_Check(type))
#else
if (!PyType_Check(type))
#endif
{
/* Raising an instance. The value should be a dummy. */
if (value != Py_None) {
PyErr_SetString(PyExc_TypeError,
"instance exception may not have a separate value");
goto raise_error;
}
/* Normalize to raise <class>, <instance> */
Py_DECREF(value);
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) {
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)) {
PyErr_SetString(PyExc_TypeError,
"raise: exception class must be a subclass of BaseException");
goto bad;
}
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:
return;
}
#endif
static INLINE PyObject *__Pyx_PyInt_to_py_hsize_t(hsize_t val) {
const hsize_t neg_one = (hsize_t)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(hsize_t) < sizeof(long)) {
return PyInt_FromLong((long)val);
} else if (sizeof(hsize_t) == sizeof(long)) {
if (is_unsigned)
return PyLong_FromUnsignedLong((unsigned long)val);
else
return PyInt_FromLong((long)val);
} else { /* (sizeof(hsize_t) > sizeof(long)) */
if (is_unsigned)
return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val);
else
return PyLong_FromLongLong((PY_LONG_LONG)val);
}
}
static 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 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 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 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 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 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 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 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 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 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 PyLong_AsUnsignedLong(x);
} else {
return 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 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 PyLong_AsUnsignedLongLong(x);
} else {
return 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 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 PyLong_AsUnsignedLong(x);
} else {
return 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 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 PyLong_AsUnsignedLongLong(x);
} else {
return 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 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 PyLong_AsUnsignedLong(x);
} else {
return 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 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 PyLong_AsUnsignedLongLong(x);
} else {
return 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 INLINE hsize_t __Pyx_PyInt_from_py_hsize_t(PyObject* x) {
const hsize_t neg_one = (hsize_t)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
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);
#if 0
} else if (sizeof(hsize_t) > sizeof(short) &&
sizeof(hsize_t) < sizeof(int)) { /* __int32 ILP64 ? */
if (is_unsigned)
return (hsize_t)__Pyx_PyInt_AsUnsignedInt(x);
else
return (hsize_t)__Pyx_PyInt_AsSignedInt(x);
#endif
}
PyErr_SetString(PyExc_TypeError, "hsize_t");
return (hsize_t)-1;
}
static INLINE hbool_t __Pyx_PyInt_from_py_hbool_t(PyObject* x) {
const hbool_t neg_one = (hbool_t)-1, const_zero = 0;
const int is_unsigned = neg_one > const_zero;
if (sizeof(hbool_t) == sizeof(char)) {
if (is_unsigned)
return (hbool_t)__Pyx_PyInt_AsUnsignedChar(x);
else
return (hbool_t)__Pyx_PyInt_AsSignedChar(x);
} else if (sizeof(hbool_t) == sizeof(short)) {
if (is_unsigned)
return (hbool_t)__Pyx_PyInt_AsUnsignedShort(x);
else
return (hbool_t)__Pyx_PyInt_AsSignedShort(x);
} else if (sizeof(hbool_t) == sizeof(int)) {
if (is_unsigned)
return (hbool_t)__Pyx_PyInt_AsUnsignedInt(x);
else
return (hbool_t)__Pyx_PyInt_AsSignedInt(x);
} else if (sizeof(hbool_t) == sizeof(long)) {
if (is_unsigned)
return (hbool_t)__Pyx_PyInt_AsUnsignedLong(x);
else
return (hbool_t)__Pyx_PyInt_AsSignedLong(x);
} else if (sizeof(hbool_t) == sizeof(PY_LONG_LONG)) {
if (is_unsigned)
return (hbool_t)__Pyx_PyInt_AsUnsignedLongLong(x);
else
return (hbool_t)__Pyx_PyInt_AsSignedLongLong(x);
#if 0
} else if (sizeof(hbool_t) > sizeof(short) &&
sizeof(hbool_t) < sizeof(int)) { /* __int32 ILP64 ? */
if (is_unsigned)
return (hbool_t)__Pyx_PyInt_AsUnsignedInt(x);
else
return (hbool_t)__Pyx_PyInt_AsSignedInt(x);
#endif
}
PyErr_SetString(PyExc_TypeError, "hbool_t");
return (hbool_t)-1;
}
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 < 0x03010000
cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0);
#else
cobj = PyCapsule_New(tmp.p, 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_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
long size)
{
PyObject *py_module = 0;
PyObject *result = 0;
PyObject *py_name = 0;
py_module = __Pyx_ImportModule(module_name);
if (!py_module)
goto bad;
#if PY_MAJOR_VERSION < 3
py_name = PyString_FromString(class_name);
#else
py_name = PyUnicode_FromString(class_name);
#endif
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 (((PyTypeObject *)result)->tp_basicsize != size) {
PyErr_Format(PyExc_ValueError,
"%s.%s does not appear to be the correct type object",
module_name, class_name);
goto bad;
}
return (PyTypeObject *)result;
bad:
Py_XDECREF(py_module);
Py_XDECREF(result);
return 0;
}
#endif
#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;
#if PY_MAJOR_VERSION < 3
py_name = PyString_FromString(name);
#else
py_name = PyUnicode_FromString(name);
#endif
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
static int __Pyx_GetVtable(PyObject *dict, void *vtabptr) {
PyObject *ob = PyMapping_GetItemString(dict, (char *)"__pyx_vtable__");
if (!ob)
goto bad;
#if PY_VERSION_HEX < 0x03010000
*(void **)vtabptr = PyCObject_AsVoidPtr(ob);
#else
*(void **)vtabptr = PyCapsule_GetPointer(ob, 0);
#endif
if (!*(void **)vtabptr)
goto bad;
Py_DECREF(ob);
return 0;
bad:
Py_XDECREF(ob);
return -1;
}
#ifndef __PYX_HAVE_RT_ImportFunction
#define __PYX_HAVE_RT_ImportFunction
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
union {
void (*fp)(void);
void *p;
} tmp;
#if PY_VERSION_HEX < 0x03010000
const char *desc, *s1, *s2;
#endif
d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
if (!d)
goto bad;
cobj = PyDict_GetItemString(d, funcname);
if (!cobj) {
PyErr_Format(PyExc_ImportError,
"%s does not export expected C function %s",
PyModule_GetName(module), funcname);
goto bad;
}
#if PY_VERSION_HEX < 0x03010000
desc = (const char *)PyCObject_GetDesc(cobj);
if (!desc)
goto bad;
s1 = desc; s2 = sig;
while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
if (*s1 != *s2) {
PyErr_Format(PyExc_TypeError,
"C function %s.%s has wrong signature (expected %s, got %s)",
PyModule_GetName(module), funcname, sig, desc);
goto bad;
}
tmp.p = PyCObject_AsVoidPtr(cobj);
#else
if (!PyCapsule_IsValid(cobj, sig)) {
PyErr_Format(PyExc_TypeError,
"C function %s.%s has wrong signature (expected %s, got %s)",
PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
goto bad;
}
tmp.p = PyCapsule_GetPointer(cobj, sig);
#endif
*f = tmp.fp;
if (!(*f))
goto bad;
Py_DECREF(d);
return 0;
bad:
Py_XDECREF(d);
return -1;
}
#endif
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static void __Pyx_AddTraceback(const char *funcname) {
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
PyObject *py_globals = 0;
PyCodeObject *py_code = 0;
PyFrameObject *py_frame = 0;
#if PY_MAJOR_VERSION < 3
py_srcfile = PyString_FromString(__pyx_filename);
#else
py_srcfile = PyUnicode_FromString(__pyx_filename);
#endif
if (!py_srcfile) goto bad;
if (__pyx_clineno) {
#if PY_MAJOR_VERSION < 3
py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
#else
py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
#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_globals = PyModule_GetDict(__pyx_m);
if (!py_globals) goto bad;
py_code = PyCode_New(
0, /*int argcount,*/
#if PY_MAJOR_VERSION >= 3
0, /*int kwonlyargcount,*/
#endif
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,*/
__pyx_lineno, /*int firstlineno,*/
__pyx_empty_bytes /*PyObject *lnotab*/
);
if (!py_code) 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 = __pyx_lineno;
PyTraceBack_Here(py_frame);
bad:
Py_XDECREF(py_srcfile);
Py_XDECREF(py_funcname);
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 INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
if (x == Py_True) return 1;
else if ((x == Py_False) | (x == Py_None)) return 0;
else return PyObject_IsTrue(x);
}
static 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 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 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 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 */