~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to wrappers/numpy/adios.cpp

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by Cython 0.19.1 on Tue Jul 16 14:56:11 2013 */
 
1
/* Generated by Cython 0.20.1 on Fri May 23 13:00:08 2014 */
2
2
 
3
3
#define PY_SSIZE_T_CLEAN
4
4
#ifndef CYTHON_USE_PYLONG_INTERNALS
19
19
#elif PY_VERSION_HEX < 0x02040000
20
20
    #error Cython requires Python 2.4+.
21
21
#else
 
22
#define CYTHON_ABI "0_20_1"
22
23
#include <stddef.h> /* For offsetof */
23
24
#ifndef offsetof
24
25
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
53
54
#define CYTHON_COMPILING_IN_PYPY 0
54
55
#define CYTHON_COMPILING_IN_CPYTHON 1
55
56
#endif
 
57
#if CYTHON_COMPILING_IN_PYPY
 
58
#define Py_OptimizeFlag 0
 
59
#endif
56
60
#if PY_VERSION_HEX < 0x02050000
57
61
  typedef int Py_ssize_t;
58
62
  #define PY_SSIZE_T_MAX INT_MAX
60
64
  #define PY_FORMAT_SIZE_T ""
61
65
  #define CYTHON_FORMAT_SSIZE_T ""
62
66
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
63
 
  #define PyInt_AsSsize_t(o)   __Pyx_PyInt_AsInt(o)
 
67
  #define PyInt_AsSsize_t(o)   __Pyx_PyInt_As_int(o)
64
68
  #define PyNumber_Index(o)    ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
65
69
                                (PyErr_Format(PyExc_TypeError, \
66
70
                                              "expected index value, got %.200s", Py_TYPE(o)->tp_name), \
112
116
#if PY_MAJOR_VERSION < 3
113
117
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
114
118
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
115
 
          PyCode_New(a, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
 
119
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
 
120
  #define __Pyx_DefaultClassType PyClass_Type
116
121
#else
117
122
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
118
123
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
119
124
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
 
125
  #define __Pyx_DefaultClassType PyType_Type
120
126
#endif
121
 
#if PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION < 6
 
127
#if PY_VERSION_HEX < 0x02060000
122
128
  #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict")
123
129
#endif
124
130
#if PY_MAJOR_VERSION >= 3
131
137
#if PY_VERSION_HEX < 0x02060000
132
138
  #define Py_TPFLAGS_HAVE_VERSION_TAG 0
133
139
#endif
 
140
#if PY_VERSION_HEX < 0x02060000 && !defined(Py_TPFLAGS_IS_ABSTRACT)
 
141
  #define Py_TPFLAGS_IS_ABSTRACT 0
 
142
#endif
 
143
#if PY_VERSION_HEX < 0x030400a1 && !defined(Py_TPFLAGS_HAVE_FINALIZE)
 
144
  #define Py_TPFLAGS_HAVE_FINALIZE 0
 
145
#endif
134
146
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
135
147
  #define CYTHON_PEP393_ENABLED 1
136
148
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ? \
137
149
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
138
150
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
139
151
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
 
152
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
 
153
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
140
154
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
141
155
#else
142
156
  #define CYTHON_PEP393_ENABLED 0
143
157
  #define __Pyx_PyUnicode_READY(op)       (0)
144
158
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
145
159
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
146
 
  #define __Pyx_PyUnicode_READ(k, d, i)   ((k=k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
 
160
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
 
161
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
 
162
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
 
163
#endif
 
164
#if CYTHON_COMPILING_IN_PYPY
 
165
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
 
166
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
 
167
#else
 
168
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
 
169
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ? \
 
170
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
 
171
#endif
 
172
#define __Pyx_PyString_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
 
173
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
 
174
#if PY_MAJOR_VERSION >= 3
 
175
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
 
176
#else
 
177
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
147
178
#endif
148
179
#if PY_MAJOR_VERSION >= 3
149
180
  #define PyBaseString_Type            PyUnicode_Type
176
207
#else
177
208
  #define __Pyx_PyBaseString_Check(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj) || \
178
209
                                         PyString_Check(obj) || PyUnicode_Check(obj))
179
 
  #define __Pyx_PyBaseString_CheckExact(obj) (Py_TYPE(obj) == &PyBaseString_Type)
 
210
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
180
211
#endif
181
212
#if PY_VERSION_HEX < 0x02060000
182
213
  #define PySet_Check(obj)             PyObject_TypeCheck(obj, &PySet_Type)
201
232
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
202
233
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
203
234
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
 
235
  #define PyNumber_Int                 PyNumber_Long
204
236
#endif
205
237
#if PY_MAJOR_VERSION >= 3
206
238
  #define PyBoolObject                 PyLongObject
207
239
#endif
208
 
#if PY_VERSION_HEX < 0x03020000
 
240
#if PY_VERSION_HEX < 0x030200A4
209
241
  typedef long Py_hash_t;
210
242
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
211
243
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
264
296
#ifndef CYTHON_RESTRICT
265
297
  #if defined(__GNUC__)
266
298
    #define CYTHON_RESTRICT __restrict__
267
 
  #elif defined(_MSC_VER)
 
299
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
268
300
    #define CYTHON_RESTRICT __restrict
269
301
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
270
302
    #define CYTHON_RESTRICT restrict
313
345
#include "stdlib.h"
314
346
#include "numpy/arrayobject.h"
315
347
#include "numpy/ufuncobject.h"
316
 
#include "mpi.h"
317
348
#include "stdint.h"
318
349
#include "adios_types.h"
319
350
#include "adios.h"
 
351
#include "adios_selection.h"
320
352
#include "adios_read.h"
321
353
#ifdef _OPENMP
322
354
#include <omp.h>
347
379
#define __PYX_DEFAULT_STRING_ENCODING ""
348
380
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
349
381
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
 
382
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (    \
 
383
    (sizeof(type) < sizeof(Py_ssize_t))  ||             \
 
384
    (sizeof(type) > sizeof(Py_ssize_t) &&               \
 
385
          likely(v < (type)PY_SSIZE_T_MAX ||            \
 
386
                 v == (type)PY_SSIZE_T_MAX)  &&         \
 
387
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||       \
 
388
                                v == (type)PY_SSIZE_T_MIN)))  ||  \
 
389
    (sizeof(type) == sizeof(Py_ssize_t) &&              \
 
390
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||        \
 
391
                               v == (type)PY_SSIZE_T_MAX)))  )
350
392
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
351
393
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
 
394
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
 
395
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
352
396
#define __Pyx_PyBytes_FromString        PyBytes_FromString
353
397
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
354
398
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char*);
359
403
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
360
404
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
361
405
#endif
 
406
#define __Pyx_PyObject_AsSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
362
407
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
363
408
#define __Pyx_PyObject_FromUString(s)  __Pyx_PyObject_FromString((char*)s)
364
409
#define __Pyx_PyBytes_FromUString(s)   __Pyx_PyBytes_FromString((char*)s)
 
410
#define __Pyx_PyByteArray_FromUString(s)   __Pyx_PyByteArray_FromString((char*)s)
365
411
#define __Pyx_PyStr_FromUString(s)     __Pyx_PyStr_FromString((char*)s)
366
412
#define __Pyx_PyUnicode_FromUString(s) __Pyx_PyUnicode_FromString((char*)s)
367
413
#if PY_MAJOR_VERSION < 3
383
429
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
384
430
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
385
431
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
386
 
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
387
432
#if CYTHON_COMPILING_IN_CPYTHON
388
433
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
389
434
#else
392
437
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
393
438
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
394
439
static int __Pyx_sys_getdefaultencoding_not_ascii;
395
 
static int __Pyx_init_sys_getdefaultencoding_params() {
 
440
static int __Pyx_init_sys_getdefaultencoding_params(void) {
396
441
    PyObject* sys = NULL;
397
442
    PyObject* default_encoding = NULL;
398
443
    PyObject* ascii_chars_u = NULL;
417
462
        if (ascii_chars_b == NULL || strncmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
418
463
            PyErr_Format(
419
464
                PyExc_ValueError,
420
 
                "This module compiled with c_string_encoding=ascii, but default encoding '%s' is not a superset of ascii.",
 
465
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
421
466
                default_encoding_c);
422
467
            goto bad;
423
468
        }
441
486
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
442
487
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
443
488
static char* __PYX_DEFAULT_STRING_ENCODING;
444
 
static int __Pyx_init_sys_getdefaultencoding_params() {
 
489
static int __Pyx_init_sys_getdefaultencoding_params(void) {
445
490
    PyObject* sys = NULL;
446
491
    PyObject* default_encoding = NULL;
447
492
    char* default_encoding_c;
512
557
 
513
558
static const char *__pyx_f[] = {
514
559
  "adios.pyx",
515
 
  "numpy.pxd",
 
560
  "__init__.pxd",
516
561
  "type.pxd",
517
 
  "MPI.pxd",
518
562
};
519
563
 
520
 
/* "numpy.pxd":723
 
564
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":723
521
565
 * # in Cython to enable them only on the right systems.
522
566
 * 
523
567
 * ctypedef npy_int8       int8_t             # <<<<<<<<<<<<<<
526
570
 */
527
571
typedef npy_int8 __pyx_t_5numpy_int8_t;
528
572
 
529
 
/* "numpy.pxd":724
 
573
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":724
530
574
 * 
531
575
 * ctypedef npy_int8       int8_t
532
576
 * ctypedef npy_int16      int16_t             # <<<<<<<<<<<<<<
535
579
 */
536
580
typedef npy_int16 __pyx_t_5numpy_int16_t;
537
581
 
538
 
/* "numpy.pxd":725
 
582
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":725
539
583
 * ctypedef npy_int8       int8_t
540
584
 * ctypedef npy_int16      int16_t
541
585
 * ctypedef npy_int32      int32_t             # <<<<<<<<<<<<<<
544
588
 */
545
589
typedef npy_int32 __pyx_t_5numpy_int32_t;
546
590
 
547
 
/* "numpy.pxd":726
 
591
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":726
548
592
 * ctypedef npy_int16      int16_t
549
593
 * ctypedef npy_int32      int32_t
550
594
 * ctypedef npy_int64      int64_t             # <<<<<<<<<<<<<<
553
597
 */
554
598
typedef npy_int64 __pyx_t_5numpy_int64_t;
555
599
 
556
 
/* "numpy.pxd":730
 
600
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":730
557
601
 * #ctypedef npy_int128     int128_t
558
602
 * 
559
603
 * ctypedef npy_uint8      uint8_t             # <<<<<<<<<<<<<<
562
606
 */
563
607
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
564
608
 
565
 
/* "numpy.pxd":731
 
609
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":731
566
610
 * 
567
611
 * ctypedef npy_uint8      uint8_t
568
612
 * ctypedef npy_uint16     uint16_t             # <<<<<<<<<<<<<<
571
615
 */
572
616
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
573
617
 
574
 
/* "numpy.pxd":732
 
618
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":732
575
619
 * ctypedef npy_uint8      uint8_t
576
620
 * ctypedef npy_uint16     uint16_t
577
621
 * ctypedef npy_uint32     uint32_t             # <<<<<<<<<<<<<<
580
624
 */
581
625
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
582
626
 
583
 
/* "numpy.pxd":733
 
627
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":733
584
628
 * ctypedef npy_uint16     uint16_t
585
629
 * ctypedef npy_uint32     uint32_t
586
630
 * ctypedef npy_uint64     uint64_t             # <<<<<<<<<<<<<<
589
633
 */
590
634
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
591
635
 
592
 
/* "numpy.pxd":737
 
636
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":737
593
637
 * #ctypedef npy_uint128    uint128_t
594
638
 * 
595
639
 * ctypedef npy_float32    float32_t             # <<<<<<<<<<<<<<
598
642
 */
599
643
typedef npy_float32 __pyx_t_5numpy_float32_t;
600
644
 
601
 
/* "numpy.pxd":738
 
645
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":738
602
646
 * 
603
647
 * ctypedef npy_float32    float32_t
604
648
 * ctypedef npy_float64    float64_t             # <<<<<<<<<<<<<<
607
651
 */
608
652
typedef npy_float64 __pyx_t_5numpy_float64_t;
609
653
 
610
 
/* "numpy.pxd":747
 
654
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":747
611
655
 * # The int types are mapped a bit surprising --
612
656
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
613
657
 * ctypedef npy_long       int_t             # <<<<<<<<<<<<<<
616
660
 */
617
661
typedef npy_long __pyx_t_5numpy_int_t;
618
662
 
619
 
/* "numpy.pxd":748
 
663
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":748
620
664
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
621
665
 * ctypedef npy_long       int_t
622
666
 * ctypedef npy_longlong   long_t             # <<<<<<<<<<<<<<
625
669
 */
626
670
typedef npy_longlong __pyx_t_5numpy_long_t;
627
671
 
628
 
/* "numpy.pxd":749
 
672
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":749
629
673
 * ctypedef npy_long       int_t
630
674
 * ctypedef npy_longlong   long_t
631
675
 * ctypedef npy_longlong   longlong_t             # <<<<<<<<<<<<<<
634
678
 */
635
679
typedef npy_longlong __pyx_t_5numpy_longlong_t;
636
680
 
637
 
/* "numpy.pxd":751
 
681
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":751
638
682
 * ctypedef npy_longlong   longlong_t
639
683
 * 
640
684
 * ctypedef npy_ulong      uint_t             # <<<<<<<<<<<<<<
643
687
 */
644
688
typedef npy_ulong __pyx_t_5numpy_uint_t;
645
689
 
646
 
/* "numpy.pxd":752
 
690
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":752
647
691
 * 
648
692
 * ctypedef npy_ulong      uint_t
649
693
 * ctypedef npy_ulonglong  ulong_t             # <<<<<<<<<<<<<<
652
696
 */
653
697
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
654
698
 
655
 
/* "numpy.pxd":753
 
699
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":753
656
700
 * ctypedef npy_ulong      uint_t
657
701
 * ctypedef npy_ulonglong  ulong_t
658
702
 * ctypedef npy_ulonglong  ulonglong_t             # <<<<<<<<<<<<<<
661
705
 */
662
706
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
663
707
 
664
 
/* "numpy.pxd":755
 
708
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":755
665
709
 * ctypedef npy_ulonglong  ulonglong_t
666
710
 * 
667
711
 * ctypedef npy_intp       intp_t             # <<<<<<<<<<<<<<
670
714
 */
671
715
typedef npy_intp __pyx_t_5numpy_intp_t;
672
716
 
673
 
/* "numpy.pxd":756
 
717
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":756
674
718
 * 
675
719
 * ctypedef npy_intp       intp_t
676
720
 * ctypedef npy_uintp      uintp_t             # <<<<<<<<<<<<<<
679
723
 */
680
724
typedef npy_uintp __pyx_t_5numpy_uintp_t;
681
725
 
682
 
/* "numpy.pxd":758
 
726
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":758
683
727
 * ctypedef npy_uintp      uintp_t
684
728
 * 
685
729
 * ctypedef npy_double     float_t             # <<<<<<<<<<<<<<
688
732
 */
689
733
typedef npy_double __pyx_t_5numpy_float_t;
690
734
 
691
 
/* "numpy.pxd":759
 
735
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":759
692
736
 * 
693
737
 * ctypedef npy_double     float_t
694
738
 * ctypedef npy_double     double_t             # <<<<<<<<<<<<<<
697
741
 */
698
742
typedef npy_double __pyx_t_5numpy_double_t;
699
743
 
700
 
/* "numpy.pxd":760
 
744
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":760
701
745
 * ctypedef npy_double     float_t
702
746
 * ctypedef npy_double     double_t
703
747
 * ctypedef npy_longdouble longdouble_t             # <<<<<<<<<<<<<<
727
771
 
728
772
 
729
773
/*--- Type declarations ---*/
730
 
struct PyMPIErrhandlerObject;
731
 
struct PyMPIGroupObject;
732
 
struct PyMPICommObject;
733
 
struct PyMPIIntercommObject;
734
 
struct PyMPIIntracommObject;
735
 
struct PyMPIDistgraphcommObject;
736
 
struct __pyx_obj_5adios_AdiosFile;
737
 
struct PyMPIRequestObject;
738
 
struct PyMPIGrequestObject;
739
 
struct PyMPIWinObject;
740
 
struct PyMPIDatatypeObject;
741
 
struct __pyx_obj_5adios_AdiosVariable;
742
 
struct PyMPIFileObject;
743
 
struct PyMPIGraphcommObject;
744
 
struct PyMPIPrequestObject;
745
 
struct PyMPIInfoObject;
746
 
struct __pyx_obj_5adios_AdiosGroup;
747
 
struct PyMPICartcommObject;
748
 
struct PyMPIStatusObject;
749
 
struct PyMPIOpObject;
 
774
struct __pyx_obj_5adios_file;
 
775
struct __pyx_obj_5adios_var;
750
776
 
751
 
/* "numpy.pxd":762
 
777
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":762
752
778
 * ctypedef npy_longdouble longdouble_t
753
779
 * 
754
780
 * ctypedef npy_cfloat      cfloat_t             # <<<<<<<<<<<<<<
757
783
 */
758
784
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
759
785
 
760
 
/* "numpy.pxd":763
 
786
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":763
761
787
 * 
762
788
 * ctypedef npy_cfloat      cfloat_t
763
789
 * ctypedef npy_cdouble     cdouble_t             # <<<<<<<<<<<<<<
766
792
 */
767
793
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
768
794
 
769
 
/* "numpy.pxd":764
 
795
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":764
770
796
 * ctypedef npy_cfloat      cfloat_t
771
797
 * ctypedef npy_cdouble     cdouble_t
772
798
 * ctypedef npy_clongdouble clongdouble_t             # <<<<<<<<<<<<<<
775
801
 */
776
802
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
777
803
 
778
 
/* "numpy.pxd":766
 
804
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":766
779
805
 * ctypedef npy_clongdouble clongdouble_t
780
806
 * 
781
807
 * ctypedef npy_cdouble     complex_t             # <<<<<<<<<<<<<<
787
813
struct __pyx_opt_args_5adios_open;
788
814
struct __pyx_opt_args_5adios_finalize;
789
815
struct __pyx_opt_args_5adios_init_noxml;
790
 
struct __pyx_opt_args_5adios_13AdiosVariable_read;
 
816
struct __pyx_opt_args_5adios_read_init;
 
817
struct __pyx_opt_args_5adios_read_finalize;
 
818
struct __pyx_opt_args_5adios_3var_read;
791
819
 
792
 
/* "adios.pyx":211
793
 
 * ## ==========
 
820
/* "adios.pyx":256
 
821
 * ## ====================
794
822
 * 
795
 
 * cpdef init(char * config, MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
796
 
 *     return adios_init(config, comm.ob_mpi)
 
823
 * cpdef init(char * config, MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
824
 *     return adios_init(config, comm)
797
825
 * 
798
826
 */
799
827
struct __pyx_opt_args_5adios_init {
800
828
  int __pyx_n;
801
 
  struct PyMPICommObject *comm;
 
829
  MPI_Comm comm;
802
830
};
803
831
 
804
 
/* "adios.pyx":214
805
 
 *     return adios_init(config, comm.ob_mpi)
 
832
/* "adios.pyx":259
 
833
 *     return adios_init(config, comm)
806
834
 * 
807
835
 * cpdef int64_t open(char * group_name,             # <<<<<<<<<<<<<<
808
836
 *                    char * name,
810
838
 */
811
839
struct __pyx_opt_args_5adios_open {
812
840
  int __pyx_n;
813
 
  struct PyMPICommObject *comm;
 
841
  MPI_Comm comm;
814
842
};
815
843
 
816
 
/* "adios.pyx":255
 
844
/* "adios.pyx":300
817
845
 *     return adios_close(fd_p)
818
846
 * 
819
847
 * cpdef finalize(int mype = 0):             # <<<<<<<<<<<<<<
825
853
  int mype;
826
854
};
827
855
 
828
 
/* "adios.pyx":261
 
856
/* "adios.pyx":306
829
857
 * ## ADIOS No-XML API
830
 
 * ## ==========
831
 
 * cpdef int init_noxml(MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
832
 
 *     return adios_init_noxml(comm.ob_mpi)
 
858
 * ## ====================
 
859
 * cpdef int init_noxml(MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
860
 *     return adios_init_noxml(comm)
833
861
 * 
834
862
 */
835
863
struct __pyx_opt_args_5adios_init_noxml {
836
864
  int __pyx_n;
837
 
  struct PyMPICommObject *comm;
838
 
};
839
 
 
840
 
/* "adios.pyx":567
 
865
  MPI_Comm comm;
 
866
};
 
867
 
 
868
/* "adios.pyx":422
 
869
 * ## ====================
 
870
 * 
 
871
 * cpdef read_init(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,             # <<<<<<<<<<<<<<
 
872
 *                 MPI_Comm comm = MPI_COMM_WORLD,
 
873
 *                 char * parameters = ""):
 
874
 */
 
875
struct __pyx_opt_args_5adios_read_init {
 
876
  int __pyx_n;
 
877
  ADIOS_READ_METHOD method;
 
878
  MPI_Comm comm;
 
879
  char *parameters;
 
880
};
 
881
 
 
882
/* "adios.pyx":428
 
883
 * 
 
884
 * 
 
885
 * cpdef read_finalize(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP):             # <<<<<<<<<<<<<<
 
886
 *     return adios_read_finalize_method (method)
 
887
 * 
 
888
 */
 
889
struct __pyx_opt_args_5adios_read_finalize {
 
890
  int __pyx_n;
 
891
  ADIOS_READ_METHOD method;
 
892
};
 
893
 
 
894
/* "adios.pyx":520
841
895
 *         self.vp = NULL
842
896
 * 
843
 
 *     cpdef read(self, tuple offset = (), tuple count = ()):             # <<<<<<<<<<<<<<
844
 
 *         cdef type ntype = adios2nptype(self.vp.type)
845
 
 *         assert ntype is not None, 'Data type is not supported yet'
 
897
 *     cpdef read(self, tuple offset = (), tuple count = (), from_steps = 0, nsteps = 1):             # <<<<<<<<<<<<<<
 
898
 *         assert self.type is not None, 'Data type is not supported yet'
 
899
 *         assert from_steps + nsteps <= self.nsteps, 'Step index is out of range'
846
900
 */
847
 
struct __pyx_opt_args_5adios_13AdiosVariable_read {
 
901
struct __pyx_opt_args_5adios_3var_read {
848
902
  int __pyx_n;
849
903
  PyObject *offset;
850
904
  PyObject *count;
851
 
};
852
 
 
853
 
/* "mpi4py/MPI.pxd":106
854
 
 *     cdef int      flags
855
 
 * 
856
 
 * ctypedef public api class Errhandler [             # <<<<<<<<<<<<<<
857
 
 *     type   PyMPIErrhandler_Type,
858
 
 *     object PyMPIErrhandlerObject,
859
 
 */
860
 
struct PyMPIErrhandlerObject {
861
 
  PyObject_HEAD
862
 
  MPI_Errhandler ob_mpi;
863
 
  int flags;
864
 
};
865
 
typedef struct PyMPIErrhandlerObject PyMPIErrhandlerObject;
866
 
 
867
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIErrhandler_Type;
868
 
 
869
 
/* "mpi4py/MPI.pxd":92
870
 
 *     cdef int    ob_usrid
871
 
 * 
872
 
 * ctypedef public api class Group [             # <<<<<<<<<<<<<<
873
 
 *     type   PyMPIGroup_Type,
874
 
 *     object PyMPIGroupObject,
875
 
 */
876
 
struct PyMPIGroupObject {
877
 
  PyObject_HEAD
878
 
  MPI_Group ob_mpi;
879
 
  int flags;
880
 
};
881
 
typedef struct PyMPIGroupObject PyMPIGroupObject;
882
 
 
883
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGroup_Type;
884
 
 
885
 
/* "mpi4py/MPI.pxd":113
886
 
 *     cdef int            flags
887
 
 * 
888
 
 * ctypedef public api class Comm [             # <<<<<<<<<<<<<<
889
 
 *     type   PyMPIComm_Type,
890
 
 *     object PyMPICommObject,
891
 
 */
892
 
struct PyMPICommObject {
893
 
  PyObject_HEAD
894
 
  MPI_Comm ob_mpi;
895
 
  int flags;
896
 
};
897
 
typedef struct PyMPICommObject PyMPICommObject;
898
 
 
899
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIComm_Type;
900
 
 
901
 
/* "mpi4py/MPI.pxd":144
902
 
 *     pass
903
 
 * 
904
 
 * ctypedef public api class Intercomm(Comm) [             # <<<<<<<<<<<<<<
905
 
 *     type   PyMPIIntercomm_Type,
906
 
 *     object PyMPIIntercommObject,
907
 
 */
908
 
struct PyMPIIntercommObject {
909
 
  struct PyMPICommObject __pyx_base;
910
 
};
911
 
typedef struct PyMPIIntercommObject PyMPIIntercommObject;
912
 
 
913
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIIntercomm_Type;
914
 
 
915
 
/* "mpi4py/MPI.pxd":120
916
 
 *     cdef int      flags
917
 
 * 
918
 
 * ctypedef public api class Intracomm(Comm) [             # <<<<<<<<<<<<<<
919
 
 *     type   PyMPIIntracomm_Type,
920
 
 *     object PyMPIIntracommObject,
921
 
 */
922
 
struct PyMPIIntracommObject {
923
 
  struct PyMPICommObject __pyx_base;
924
 
};
925
 
typedef struct PyMPIIntracommObject PyMPIIntracommObject;
926
 
 
927
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIIntracomm_Type;
928
 
 
929
 
/* "mpi4py/MPI.pxd":138
930
 
 *     pass
931
 
 * 
932
 
 * ctypedef public api class Distgraphcomm(Intracomm) [             # <<<<<<<<<<<<<<
933
 
 *     type   PyMPIDistgraphcomm_Type,
934
 
 *     object PyMPIDistgraphcommObject,
935
 
 */
936
 
struct PyMPIDistgraphcommObject {
937
 
  struct PyMPIIntracommObject __pyx_base;
938
 
};
939
 
typedef struct PyMPIDistgraphcommObject PyMPIDistgraphcommObject;
940
 
 
941
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIDistgraphcomm_Type;
942
 
 
943
 
/* "adios.pyx":423
944
 
 * ## ==========
945
 
 * 
946
 
 * cdef class AdiosFile:             # <<<<<<<<<<<<<<
 
905
  PyObject *from_steps;
 
906
  PyObject *nsteps;
 
907
};
 
908
 
 
909
/* "adios.pyx":431
 
910
 *     return adios_read_finalize_method (method)
 
911
 * 
 
912
 * cdef class file:             # <<<<<<<<<<<<<<
947
913
 *     """ Private Memeber """
948
914
 *     cpdef ADIOS_FILE * fp
949
915
 */
950
 
struct __pyx_obj_5adios_AdiosFile {
 
916
struct __pyx_obj_5adios_file {
951
917
  PyObject_HEAD
952
 
  struct __pyx_vtabstruct_5adios_AdiosFile *__pyx_vtab;
 
918
  struct __pyx_vtabstruct_5adios_file *__pyx_vtab;
953
919
  ADIOS_FILE *fp;
954
920
  PyObject *name;
955
 
  int groups_count;
956
 
  int vars_count;
957
 
  int attrs_count;
958
 
  int tidx_start;
959
 
  int ntimesteps;
 
921
  int nvars;
 
922
  int nattrs;
 
923
  int current_step;
 
924
  int last_step;
 
925
  int endianness;
960
926
  int version;
961
927
  int file_size;
962
 
  int endianness;
963
 
  PyObject *group;
964
 
};
965
 
 
966
 
 
967
 
/* "mpi4py/MPI.pxd":63
968
 
 *     cdef int          flags
969
 
 * 
970
 
 * ctypedef public api class Request [             # <<<<<<<<<<<<<<
971
 
 *     type   PyMPIRequest_Type,
972
 
 *     object PyMPIRequestObject,
973
 
 */
974
 
struct PyMPIRequestObject {
975
 
  PyObject_HEAD
976
 
  MPI_Request ob_mpi;
977
 
  int flags;
978
 
  PyObject *ob_buf;
979
 
};
980
 
typedef struct PyMPIRequestObject PyMPIRequestObject;
981
 
 
982
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIRequest_Type;
983
 
 
984
 
/* "mpi4py/MPI.pxd":77
985
 
 *     pass
986
 
 * 
987
 
 * ctypedef public api class Grequest(Request) [             # <<<<<<<<<<<<<<
988
 
 *     type   PyMPIGrequest_Type,
989
 
 *     object PyMPIGrequestObject,
990
 
 */
991
 
struct PyMPIGrequestObject {
992
 
  struct PyMPIRequestObject __pyx_base;
993
 
  MPI_Request ob_grequest;
994
 
};
995
 
typedef struct PyMPIGrequestObject PyMPIGrequestObject;
996
 
 
997
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGrequest_Type;
998
 
 
999
 
/* "mpi4py/MPI.pxd":150
1000
 
 *     pass
1001
 
 * 
1002
 
 * ctypedef public api class Win [             # <<<<<<<<<<<<<<
1003
 
 *     type   PyMPIWin_Type,
1004
 
 *     object PyMPIWinObject,
1005
 
 */
1006
 
struct PyMPIWinObject {
1007
 
  PyObject_HEAD
1008
 
  MPI_Win ob_mpi;
1009
 
  int flags;
1010
 
};
1011
 
typedef struct PyMPIWinObject PyMPIWinObject;
1012
 
 
1013
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIWin_Type;
1014
 
 
1015
 
/* "mpi4py/MPI.pxd":56
1016
 
 *     cdef int        flags
1017
 
 * 
1018
 
 * ctypedef public api class Datatype [             # <<<<<<<<<<<<<<
1019
 
 *     type   PyMPIDatatype_Type,
1020
 
 *     object PyMPIDatatypeObject,
1021
 
 */
1022
 
struct PyMPIDatatypeObject {
1023
 
  PyObject_HEAD
1024
 
  MPI_Datatype ob_mpi;
1025
 
  int flags;
1026
 
};
1027
 
typedef struct PyMPIDatatypeObject PyMPIDatatypeObject;
1028
 
 
1029
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIDatatype_Type;
1030
 
 
1031
 
/* "adios.pyx":529
1032
 
 *         printAdiosGroup(self.gp)
1033
 
 * 
1034
 
 * cdef class AdiosVariable:             # <<<<<<<<<<<<<<
 
928
  PyObject *var;
 
929
  PyObject *attr;
 
930
};
 
931
 
 
932
 
 
933
/* "adios.pyx":484
 
934
 *         printfile(self.fp)
 
935
 * 
 
936
 * cdef class var:             # <<<<<<<<<<<<<<
1035
937
 *     """ Private Memeber """
1036
 
 *     cdef AdiosGroup group
 
938
 *     cdef file file
1037
939
 */
1038
 
struct __pyx_obj_5adios_AdiosVariable {
 
940
struct __pyx_obj_5adios_var {
1039
941
  PyObject_HEAD
1040
 
  struct __pyx_vtabstruct_5adios_AdiosVariable *__pyx_vtab;
1041
 
  struct __pyx_obj_5adios_AdiosGroup *group;
 
942
  struct __pyx_vtabstruct_5adios_var *__pyx_vtab;
 
943
  struct __pyx_obj_5adios_file *file;
1042
944
  ADIOS_VARINFO *vp;
1043
945
  PyObject *name;
1044
946
  int varid;
1045
947
  PyObject *type;
1046
948
  int ndim;
1047
949
  PyObject *dims;
1048
 
  int timedim;
1049
 
  int characteristics_count;
1050
 
};
1051
 
 
1052
 
 
1053
 
/* "mpi4py/MPI.pxd":157
1054
 
 *     cdef int     flags
1055
 
 * 
1056
 
 * ctypedef public api class File [             # <<<<<<<<<<<<<<
1057
 
 *     type   PyMPIFile_Type,
1058
 
 *     object PyMPIFileObject,
1059
 
 */
1060
 
struct PyMPIFileObject {
1061
 
  PyObject_HEAD
1062
 
  MPI_File ob_mpi;
1063
 
  int flags;
1064
 
};
1065
 
typedef struct PyMPIFileObject PyMPIFileObject;
1066
 
 
1067
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIFile_Type;
1068
 
 
1069
 
/* "mpi4py/MPI.pxd":132
1070
 
 *     pass
1071
 
 * 
1072
 
 * ctypedef public api class Graphcomm(Intracomm) [             # <<<<<<<<<<<<<<
1073
 
 *     type   PyMPIGraphcomm_Type,
1074
 
 *     object PyMPIGraphcommObject,
1075
 
 */
1076
 
struct PyMPIGraphcommObject {
1077
 
  struct PyMPIIntracommObject __pyx_base;
1078
 
};
1079
 
typedef struct PyMPIGraphcommObject PyMPIGraphcommObject;
1080
 
 
1081
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGraphcomm_Type;
1082
 
 
1083
 
/* "mpi4py/MPI.pxd":71
1084
 
 *     cdef object      ob_buf
1085
 
 * 
1086
 
 * ctypedef public api class Prequest(Request) [             # <<<<<<<<<<<<<<
1087
 
 *     type   PyMPIPrequest_Type,
1088
 
 *     object PyMPIPrequestObject,
1089
 
 */
1090
 
struct PyMPIPrequestObject {
1091
 
  struct PyMPIRequestObject __pyx_base;
1092
 
};
1093
 
typedef struct PyMPIPrequestObject PyMPIPrequestObject;
1094
 
 
1095
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIPrequest_Type;
1096
 
 
1097
 
/* "mpi4py/MPI.pxd":99
1098
 
 *     cdef int       flags
1099
 
 * 
1100
 
 * ctypedef public api class Info [             # <<<<<<<<<<<<<<
1101
 
 *     type   PyMPIInfo_Type,
1102
 
 *     object PyMPIInfoObject,
1103
 
 */
1104
 
struct PyMPIInfoObject {
1105
 
  PyObject_HEAD
1106
 
  MPI_Info ob_mpi;
1107
 
  int flags;
1108
 
};
1109
 
typedef struct PyMPIInfoObject PyMPIInfoObject;
1110
 
 
1111
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIInfo_Type;
1112
 
 
1113
 
/* "adios.pyx":479
1114
 
 * 
1115
 
 * 
1116
 
 * cdef class AdiosGroup:             # <<<<<<<<<<<<<<
1117
 
 *     """ Private Memeber """
1118
 
 *     cdef AdiosFile file
1119
 
 */
1120
 
struct __pyx_obj_5adios_AdiosGroup {
1121
 
  PyObject_HEAD
1122
 
  struct __pyx_vtabstruct_5adios_AdiosGroup *__pyx_vtab;
1123
 
  struct __pyx_obj_5adios_AdiosFile *file;
1124
 
  ADIOS_GROUP *gp;
1125
 
  PyObject *name;
1126
 
  int grpid;
1127
 
  int vars_count;
1128
 
  int attrs_count;
1129
 
  int timestep;
1130
 
  int lasttimestep;
1131
 
  PyObject *var;
1132
 
};
1133
 
 
1134
 
 
1135
 
/* "mpi4py/MPI.pxd":126
1136
 
 *     pass
1137
 
 * 
1138
 
 * ctypedef public api class Cartcomm(Intracomm) [             # <<<<<<<<<<<<<<
1139
 
 *     type   PyMPICartcomm_Type,
1140
 
 *     object PyMPICartcommObject,
1141
 
 */
1142
 
struct PyMPICartcommObject {
1143
 
  struct PyMPIIntracommObject __pyx_base;
1144
 
};
1145
 
typedef struct PyMPICartcommObject PyMPICartcommObject;
1146
 
 
1147
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPICartcomm_Type;
1148
 
 
1149
 
/* "mpi4py/MPI.pxd":49
1150
 
 *     ctypedef MPI_Offset Offset "MPI_Offset"
1151
 
 * 
1152
 
 * ctypedef public api class Status [             # <<<<<<<<<<<<<<
1153
 
 *     type   PyMPIStatus_Type,
1154
 
 *     object PyMPIStatusObject,
1155
 
 */
1156
 
struct PyMPIStatusObject {
1157
 
  PyObject_HEAD
1158
 
  MPI_Status ob_mpi;
1159
 
  int flags;
1160
 
};
1161
 
typedef struct PyMPIStatusObject PyMPIStatusObject;
1162
 
 
1163
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIStatus_Type;
1164
 
 
1165
 
/* "mpi4py/MPI.pxd":83
1166
 
 *     cdef MPI_Request ob_grequest
1167
 
 * 
1168
 
 * ctypedef public api class Op [             # <<<<<<<<<<<<<<
1169
 
 *     type   PyMPIOp_Type,
1170
 
 *     object PyMPIOpObject,
1171
 
 */
1172
 
struct PyMPIOpObject {
1173
 
  PyObject_HEAD
1174
 
  MPI_Op ob_mpi;
1175
 
  int flags;
1176
 
  PyObject *(*ob_func)(PyObject *, PyObject *);
1177
 
  int ob_usrid;
1178
 
};
1179
 
typedef struct PyMPIOpObject PyMPIOpObject;
1180
 
 
1181
 
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIOp_Type;
1182
 
 
1183
 
 
1184
 
/* "adios.pyx":479
1185
 
 * 
1186
 
 * 
1187
 
 * cdef class AdiosGroup:             # <<<<<<<<<<<<<<
1188
 
 *     """ Private Memeber """
1189
 
 *     cdef AdiosFile file
1190
 
 */
1191
 
 
1192
 
struct __pyx_vtabstruct_5adios_AdiosGroup {
1193
 
  PyObject *(*close)(struct __pyx_obj_5adios_AdiosGroup *, int __pyx_skip_dispatch);
1194
 
  PyObject *(*printself)(struct __pyx_obj_5adios_AdiosGroup *, int __pyx_skip_dispatch);
1195
 
};
1196
 
static struct __pyx_vtabstruct_5adios_AdiosGroup *__pyx_vtabptr_5adios_AdiosGroup;
1197
 
 
1198
 
 
1199
 
/* "adios.pyx":423
1200
 
 * ## ==========
1201
 
 * 
1202
 
 * cdef class AdiosFile:             # <<<<<<<<<<<<<<
 
950
  int nsteps;
 
951
};
 
952
 
 
953
 
 
954
 
 
955
/* "adios.pyx":431
 
956
 *     return adios_read_finalize_method (method)
 
957
 * 
 
958
 * cdef class file:             # <<<<<<<<<<<<<<
1203
959
 *     """ Private Memeber """
1204
960
 *     cpdef ADIOS_FILE * fp
1205
961
 */
1206
962
 
1207
 
struct __pyx_vtabstruct_5adios_AdiosFile {
1208
 
  PyObject *(*close)(struct __pyx_obj_5adios_AdiosFile *, int __pyx_skip_dispatch);
1209
 
  PyObject *(*printself)(struct __pyx_obj_5adios_AdiosFile *, int __pyx_skip_dispatch);
 
963
struct __pyx_vtabstruct_5adios_file {
 
964
  PyObject *(*close)(struct __pyx_obj_5adios_file *, int __pyx_skip_dispatch);
 
965
  PyObject *(*printself)(struct __pyx_obj_5adios_file *, int __pyx_skip_dispatch);
1210
966
};
1211
 
static struct __pyx_vtabstruct_5adios_AdiosFile *__pyx_vtabptr_5adios_AdiosFile;
1212
 
 
1213
 
 
1214
 
/* "adios.pyx":529
1215
 
 *         printAdiosGroup(self.gp)
 
967
static struct __pyx_vtabstruct_5adios_file *__pyx_vtabptr_5adios_file;
 
968
 
 
969
 
 
970
/* "adios.pyx":484
 
971
 *         printfile(self.fp)
1216
972
 * 
1217
 
 * cdef class AdiosVariable:             # <<<<<<<<<<<<<<
 
973
 * cdef class var:             # <<<<<<<<<<<<<<
1218
974
 *     """ Private Memeber """
1219
 
 *     cdef AdiosGroup group
 
975
 *     cdef file file
1220
976
 */
1221
977
 
1222
 
struct __pyx_vtabstruct_5adios_AdiosVariable {
1223
 
  PyObject *(*close)(struct __pyx_obj_5adios_AdiosVariable *, int __pyx_skip_dispatch);
1224
 
  PyObject *(*read)(struct __pyx_obj_5adios_AdiosVariable *, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_13AdiosVariable_read *__pyx_optional_args);
1225
 
  PyObject *(*printself)(struct __pyx_obj_5adios_AdiosVariable *, int __pyx_skip_dispatch);
 
978
struct __pyx_vtabstruct_5adios_var {
 
979
  PyObject *(*close)(struct __pyx_obj_5adios_var *, int __pyx_skip_dispatch);
 
980
  PyObject *(*read)(struct __pyx_obj_5adios_var *, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_3var_read *__pyx_optional_args);
 
981
  PyObject *(*printself)(struct __pyx_obj_5adios_var *, int __pyx_skip_dispatch);
1226
982
};
1227
 
static struct __pyx_vtabstruct_5adios_AdiosVariable *__pyx_vtabptr_5adios_AdiosVariable;
 
983
static struct __pyx_vtabstruct_5adios_var *__pyx_vtabptr_5adios_var;
1228
984
#ifndef CYTHON_REFNANNY
1229
985
  #define CYTHON_REFNANNY 0
1230
986
#endif
1276
1032
  #define __Pyx_XGOTREF(r)
1277
1033
  #define __Pyx_XGIVEREF(r)
1278
1034
#endif /* CYTHON_REFNANNY */
 
1035
#define __Pyx_XDECREF_SET(r, v) do {                            \
 
1036
        PyObject *tmp = (PyObject *) r;                         \
 
1037
        r = v; __Pyx_XDECREF(tmp);                              \
 
1038
    } while (0)
 
1039
#define __Pyx_DECREF_SET(r, v) do {                             \
 
1040
        PyObject *tmp = (PyObject *) r;                         \
 
1041
        r = v; __Pyx_DECREF(tmp);                               \
 
1042
    } while (0)
1279
1043
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1280
1044
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1281
1045
 
1305
1069
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
1306
1070
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
1307
1071
 
1308
 
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
1309
 
    const char *name, int exact); /*proto*/
1310
 
 
1311
1072
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /*proto*/
1312
1073
 
 
1074
#if CYTHON_COMPILING_IN_CPYTHON
 
1075
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); /*proto*/
 
1076
#else
 
1077
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
 
1078
#endif
 
1079
 
1313
1080
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
1314
1081
 
1315
1082
static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
1316
1083
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
1317
1084
 
1318
1085
static void __Pyx_WriteUnraisable(const char *name, int clineno,
1319
 
                                  int lineno, const char *filename); /*proto*/
 
1086
                                  int lineno, const char *filename,
 
1087
                                  int full_traceback); /*proto*/
 
1088
 
 
1089
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
 
1090
    const char *name, int exact); /*proto*/
1320
1091
 
1321
1092
#if CYTHON_COMPILING_IN_CPYTHON
1322
1093
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
1334
1105
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
1335
1106
#endif
1336
1107
 
1337
 
#define __Pyx_GetItemInt(o, i, size, to_py_func, is_list, wraparound, boundscheck) \
1338
 
    (((size) <= sizeof(Py_ssize_t)) ? \
1339
 
    __Pyx_GetItemInt_Fast(o, i, is_list, wraparound, boundscheck) : \
1340
 
    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
1341
 
#define __Pyx_GetItemInt_List(o, i, size, to_py_func, is_list, wraparound, boundscheck) \
1342
 
    (((size) <= sizeof(Py_ssize_t)) ? \
1343
 
    __Pyx_GetItemInt_List_Fast(o, i, wraparound, boundscheck) : \
1344
 
    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
 
1108
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
 
1109
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
 
1110
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) : \
 
1111
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) : \
 
1112
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
 
1113
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
 
1114
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
 
1115
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) : \
 
1116
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1345
1117
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1346
1118
                                                              int wraparound, int boundscheck);
1347
 
#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func, is_list, wraparound, boundscheck) \
1348
 
    (((size) <= sizeof(Py_ssize_t)) ? \
1349
 
    __Pyx_GetItemInt_Tuple_Fast(o, i, wraparound, boundscheck) : \
1350
 
    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
 
1119
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
 
1120
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
 
1121
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) : \
 
1122
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1351
1123
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1352
1124
                                                              int wraparound, int boundscheck);
1353
1125
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1355
1127
                                                     int is_list, int wraparound, int boundscheck);
1356
1128
 
1357
1129
#if PY_MAJOR_VERSION >= 3
1358
 
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d); /*proto*/
 
1130
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
 
1131
    PyObject *value;
 
1132
    value = PyDict_GetItemWithError(d, key);
 
1133
    if (unlikely(!value)) {
 
1134
        if (!PyErr_Occurred()) {
 
1135
            PyObject* args = PyTuple_Pack(1, key);
 
1136
            if (likely(args))
 
1137
                PyErr_SetObject(PyExc_KeyError, args);
 
1138
            Py_XDECREF(args);
 
1139
        }
 
1140
        return NULL;
 
1141
    }
 
1142
    Py_INCREF(value);
 
1143
    return value;
 
1144
}
1359
1145
#else
1360
 
#define __Pyx_PyDict_Values(d) PyDict_Values(d)
 
1146
    #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
1361
1147
#endif
1362
1148
 
1363
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/
 
1149
static CYTHON_INLINE int __Pyx_IterFinish(void); /*proto*/
 
1150
 
 
1151
static PyObject* __Pyx_PyObject_CallMethodTuple(PyObject* obj, PyObject* method_name, PyObject* args) {
 
1152
    PyObject *method, *result = NULL;
 
1153
    if (unlikely(!args)) return NULL;
 
1154
    method = __Pyx_PyObject_GetAttrStr(obj, method_name);
 
1155
    if (unlikely(!method)) goto bad;
 
1156
    result = __Pyx_PyObject_Call(method, args, NULL);
 
1157
    Py_DECREF(method);
 
1158
bad:
 
1159
    Py_DECREF(args);
 
1160
    return result;
 
1161
}
 
1162
#define __Pyx_PyObject_CallMethod3(obj, name, arg1, arg2, arg3) \
 
1163
    __Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(3, arg1, arg2, arg3))
 
1164
#define __Pyx_PyObject_CallMethod2(obj, name, arg1, arg2) \
 
1165
    __Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(2, arg1, arg2))
 
1166
#define __Pyx_PyObject_CallMethod1(obj, name, arg1) \
 
1167
    __Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(1, arg1))
 
1168
#define __Pyx_PyObject_CallMethod0(obj, name) \
 
1169
    __Pyx_PyObject_CallMethodTuple(obj, name, (Py_INCREF(__pyx_empty_tuple), __pyx_empty_tuple))
 
1170
 
 
1171
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
1364
1172
 
1365
1173
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
1366
1174
 
1367
 
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
 
1175
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /*proto*/
1368
1176
 
1369
1177
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);
1370
1178
 
1371
 
static CYTHON_INLINE int __Pyx_IterFinish(void); /*proto*/
1372
 
 
1373
 
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /*proto*/
 
1179
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); /*proto*/
 
1180
 
 
1181
static CYTHON_INLINE int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** value1, PyObject** value2,
 
1182
                                             int is_tuple, int has_known_size, int decref_tuple);
 
1183
 
 
1184
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
 
1185
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
 
1186
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
 
1187
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);
 
1188
 
 
1189
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/
1374
1190
 
1375
1191
static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/
1376
1192
 
 
1193
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);
 
1194
 
 
1195
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
 
1196
                                           PyObject *mkw, PyObject *modname, PyObject *doc); /*proto*/
 
1197
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
 
1198
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /*proto*/
 
1199
 
 
1200
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);
 
1201
 
 
1202
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);
 
1203
 
1377
1204
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /*proto*/
1378
1205
 
1379
 
static PyObject *__Pyx_FindPy2Metaclass(PyObject *bases); /*proto*/
1380
 
 
1381
 
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name,
1382
 
                                   PyObject *qualname, PyObject *modname); /*proto*/
1383
 
 
1384
 
static CYTHON_INLINE int64_t __Pyx_PyInt_from_py_int64_t(PyObject *);
1385
 
 
1386
 
static CYTHON_INLINE uint64_t __Pyx_PyInt_from_py_uint64_t(PyObject *);
1387
 
 
1388
 
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_int64_t(int64_t);
 
1206
static CYTHON_INLINE MPI_Comm __Pyx_PyInt_As_MPI_Comm(PyObject *);
 
1207
 
 
1208
static CYTHON_INLINE int64_t __Pyx_PyInt_As_int64_t(PyObject *);
 
1209
 
 
1210
static CYTHON_INLINE uint64_t __Pyx_PyInt_As_uint64_t(PyObject *);
 
1211
 
 
1212
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
 
1213
 
 
1214
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int64_t(int64_t value);
1389
1215
 
1390
1216
static int __Pyx_Print(PyObject*, PyObject *, int); /*proto*/
1391
1217
#if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
1393
1219
static PyObject* __pyx_print_kwargs = 0;
1394
1220
#endif
1395
1221
 
1396
 
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_uint64_t(uint64_t);
 
1222
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint64_t(uint64_t value);
1397
1223
 
1398
1224
static int __Pyx_PrintOne(PyObject* stream, PyObject *o); /*proto*/
1399
1225
 
 
1226
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);
 
1227
 
 
1228
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_long(unsigned long value);
 
1229
 
1400
1230
#if CYTHON_CCOMPLEX
1401
1231
  #ifdef __cplusplus
1402
1232
    #define __Pyx_CREAL(z) ((z).real())
1409
1239
    #define __Pyx_CREAL(z) ((z).real)
1410
1240
    #define __Pyx_CIMAG(z) ((z).imag)
1411
1241
#endif
1412
 
#if defined(_WIN32) && defined(__cplusplus) && CYTHON_CCOMPLEX
 
1242
#if (defined(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX
1413
1243
    #define __Pyx_SET_CREAL(z,x) ((z).real(x))
1414
1244
    #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
1415
1245
#else
1495
1325
    #endif
1496
1326
#endif
1497
1327
 
1498
 
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
1499
 
 
1500
 
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
1501
 
 
1502
 
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
1503
 
 
1504
 
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
1505
 
 
1506
 
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
1507
 
 
1508
 
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
1509
 
 
1510
 
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
1511
 
 
1512
 
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
1513
 
 
1514
 
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
1515
 
 
1516
 
static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);
1517
 
 
1518
 
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
1519
 
 
1520
 
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
1521
 
 
1522
 
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
1523
 
 
1524
 
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
1525
 
 
1526
 
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
1527
 
 
1528
 
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
1529
 
 
1530
1328
static int __Pyx_check_binary_version(void);
1531
1329
 
1532
1330
#if !defined(__Pyx_PyIdentifier_FromString)
1588
1386
static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
1589
1387
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/
1590
1388
 
1591
 
/* Module declarations from 'mpi4py.MPI' */
1592
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Status = 0;
1593
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Datatype = 0;
1594
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Request = 0;
1595
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Prequest = 0;
1596
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Grequest = 0;
1597
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Op = 0;
1598
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Group = 0;
1599
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Info = 0;
1600
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Errhandler = 0;
1601
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Comm = 0;
1602
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Intracomm = 0;
1603
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Cartcomm = 0;
1604
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Graphcomm = 0;
1605
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Distgraphcomm = 0;
1606
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Intercomm = 0;
1607
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Win = 0;
1608
 
static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_File = 0;
1609
 
 
1610
1389
/* Module declarations from 'cython' */
1611
1390
 
1612
1391
/* Module declarations from 'libc.stdint' */
1613
1392
 
1614
1393
/* Module declarations from 'adios' */
1615
 
static PyTypeObject *__pyx_ptype_5adios_AdiosFile = 0;
1616
 
static PyTypeObject *__pyx_ptype_5adios_AdiosGroup = 0;
1617
 
static PyTypeObject *__pyx_ptype_5adios_AdiosVariable = 0;
 
1394
static PyTypeObject *__pyx_ptype_5adios_file = 0;
 
1395
static PyTypeObject *__pyx_ptype_5adios_var = 0;
1618
1396
static PyObject *__pyx_f_5adios_init(char *, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_init *__pyx_optional_args); /*proto*/
1619
1397
static int64_t __pyx_f_5adios_open(char *, char *, char *, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_open *__pyx_optional_args); /*proto*/
1620
1398
static int64_t __pyx_f_5adios_set_group_size(int64_t, uint64_t, int __pyx_skip_dispatch); /*proto*/
1631
1409
static int __pyx_f_5adios_define_var(int64_t, char *, char *, int, char *, char *, char *, int __pyx_skip_dispatch); /*proto*/
1632
1410
static int __pyx_f_5adios_define_attribute(int64_t, char *, char *, int, char *, char *, int __pyx_skip_dispatch); /*proto*/
1633
1411
static int __pyx_f_5adios_select_method(int64_t, char *, char *, char *, int __pyx_skip_dispatch); /*proto*/
1634
 
static PyObject *__pyx_f_5adios_adios2nptype(ADIOS_DATATYPES, int __pyx_skip_dispatch); /*proto*/
1635
 
static PyObject *__pyx_f_5adios_printAdiosFile(ADIOS_FILE *); /*proto*/
1636
 
static PyObject *__pyx_f_5adios_printAdiosGroup(ADIOS_GROUP *); /*proto*/
1637
 
static PyObject *__pyx_f_5adios_printAdiosVariable(ADIOS_VARINFO *); /*proto*/
 
1412
static PyObject *__pyx_f_5adios_adios2nptype(ADIOS_DATATYPES); /*proto*/
 
1413
static PyObject *__pyx_f_5adios_printfile(ADIOS_FILE *); /*proto*/
 
1414
static PyObject *__pyx_f_5adios_printvar(ADIOS_VARINFO *); /*proto*/
 
1415
static PyObject *__pyx_f_5adios_read_init(int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_read_init *__pyx_optional_args); /*proto*/
 
1416
static PyObject *__pyx_f_5adios_read_finalize(int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_read_finalize *__pyx_optional_args); /*proto*/
1638
1417
#define __Pyx_MODULE_NAME "adios"
1639
1418
int __pyx_module_is_main_adios = 0;
1640
1419
 
1641
1420
/* Implementation of 'adios' */
1642
 
static PyObject *__pyx_builtin_object;
1643
1421
static PyObject *__pyx_builtin_range;
1644
1422
static PyObject *__pyx_builtin_ValueError;
1645
1423
static PyObject *__pyx_builtin_RuntimeError;
1646
 
static PyObject *__pyx_pf_5adios_init(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_config, struct PyMPICommObject *__pyx_v_comm); /* proto */
1647
 
static PyObject *__pyx_pf_5adios_2open(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group_name, char *__pyx_v_name, char *__pyx_v_mode, struct PyMPICommObject *__pyx_v_comm); /* proto */
 
1424
static PyObject *__pyx_pf_5adios_init(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_config, MPI_Comm __pyx_v_comm); /* proto */
 
1425
static PyObject *__pyx_pf_5adios_2open(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group_name, char *__pyx_v_name, char *__pyx_v_mode, MPI_Comm __pyx_v_comm); /* proto */
1648
1426
static PyObject *__pyx_pf_5adios_4set_group_size(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, uint64_t __pyx_v_data_size); /* proto */
1649
1427
static PyObject *__pyx_pf_5adios_6write(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, PyArrayObject *__pyx_v_val); /* proto */
1650
1428
static PyObject *__pyx_pf_5adios_8write_int(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, int __pyx_v_val); /* proto */
1653
1431
static PyObject *__pyx_pf_5adios_14read(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, PyArrayObject *__pyx_v_val); /* proto */
1654
1432
static PyObject *__pyx_pf_5adios_16close(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p); /* proto */
1655
1433
static PyObject *__pyx_pf_5adios_18finalize(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_mype); /* proto */
1656
 
static PyObject *__pyx_pf_5adios_20init_noxml(CYTHON_UNUSED PyObject *__pyx_self, struct PyMPICommObject *__pyx_v_comm); /* proto */
 
1434
static PyObject *__pyx_pf_5adios_20init_noxml(CYTHON_UNUSED PyObject *__pyx_self, MPI_Comm __pyx_v_comm); /* proto */
1657
1435
static PyObject *__pyx_pf_5adios_22allocate_buffer(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_when, uint64_t __pyx_v_buffer_size); /* proto */
1658
1436
static PyObject *__pyx_pf_5adios_24declare_group(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_name, char *__pyx_v_time_index, int __pyx_v_stats); /* proto */
1659
1437
static PyObject *__pyx_pf_5adios_26define_var(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_group_id, char *__pyx_v_name, char *__pyx_v_path, int __pyx_v_type, char *__pyx_v_dimensions, char *__pyx_v_global_dimensions, char *__pyx_v_local_offsets); /* proto */
1660
1438
static PyObject *__pyx_pf_5adios_28define_attribute(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_group, char *__pyx_v_name, char *__pyx_v_path, int __pyx_v_type, char *__pyx_v_value, char *__pyx_v_var); /* proto */
1661
1439
static PyObject *__pyx_pf_5adios_30select_method(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_group, char *__pyx_v_method, char *__pyx_v_parameters, char *__pyx_v_base_path); /* proto */
1662
 
static PyObject *__pyx_pf_5adios_32adios2nptype(CYTHON_UNUSED PyObject *__pyx_self, ADIOS_DATATYPES __pyx_v_t); /* proto */
1663
 
static int __pyx_pf_5adios_9AdiosFile___init__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, char *__pyx_v_fname, struct PyMPICommObject *__pyx_v_comm); /* proto */
1664
 
static PyObject *__pyx_pf_5adios_9AdiosFile_2__del__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1665
 
static PyObject *__pyx_pf_5adios_9AdiosFile_4close(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1666
 
static PyObject *__pyx_pf_5adios_9AdiosFile_6printself(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1667
 
static PyObject *__pyx_pf_5adios_9AdiosFile_4name___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1668
 
static int __pyx_pf_5adios_9AdiosFile_4name_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1669
 
static int __pyx_pf_5adios_9AdiosFile_4name_4__del__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1670
 
static PyObject *__pyx_pf_5adios_9AdiosFile_12groups_count___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1671
 
static int __pyx_pf_5adios_9AdiosFile_12groups_count_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1672
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10vars_count___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1673
 
static int __pyx_pf_5adios_9AdiosFile_10vars_count_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1674
 
static PyObject *__pyx_pf_5adios_9AdiosFile_11attrs_count___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1675
 
static int __pyx_pf_5adios_9AdiosFile_11attrs_count_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1676
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10tidx_start___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1677
 
static int __pyx_pf_5adios_9AdiosFile_10tidx_start_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1678
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10ntimesteps___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1679
 
static int __pyx_pf_5adios_9AdiosFile_10ntimesteps_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1680
 
static PyObject *__pyx_pf_5adios_9AdiosFile_7version___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1681
 
static int __pyx_pf_5adios_9AdiosFile_7version_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1682
 
static PyObject *__pyx_pf_5adios_9AdiosFile_9file_size___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1683
 
static int __pyx_pf_5adios_9AdiosFile_9file_size_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1684
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10endianness___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1685
 
static int __pyx_pf_5adios_9AdiosFile_10endianness_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1686
 
static PyObject *__pyx_pf_5adios_9AdiosFile_5group___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1687
 
static int __pyx_pf_5adios_9AdiosFile_5group_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1688
 
static int __pyx_pf_5adios_9AdiosFile_5group_4__del__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self); /* proto */
1689
 
static int __pyx_pf_5adios_10AdiosGroup___init__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, struct __pyx_obj_5adios_AdiosFile *__pyx_v_file, char *__pyx_v_name); /* proto */
1690
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_2__del__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1691
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_4close(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1692
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_6printself(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1693
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_4name___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1694
 
static int __pyx_pf_5adios_10AdiosGroup_4name_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1695
 
static int __pyx_pf_5adios_10AdiosGroup_4name_4__del__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1696
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_5grpid___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1697
 
static int __pyx_pf_5adios_10AdiosGroup_5grpid_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1698
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_10vars_count___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1699
 
static int __pyx_pf_5adios_10AdiosGroup_10vars_count_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1700
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_11attrs_count___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1701
 
static int __pyx_pf_5adios_10AdiosGroup_11attrs_count_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1702
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_8timestep___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1703
 
static int __pyx_pf_5adios_10AdiosGroup_8timestep_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1704
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_12lasttimestep___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1705
 
static int __pyx_pf_5adios_10AdiosGroup_12lasttimestep_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1706
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_3var___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1707
 
static int __pyx_pf_5adios_10AdiosGroup_3var_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1708
 
static int __pyx_pf_5adios_10AdiosGroup_3var_4__del__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self); /* proto */
1709
 
static int __pyx_pf_5adios_13AdiosVariable___init__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, struct __pyx_obj_5adios_AdiosGroup *__pyx_v_group, char *__pyx_v_name); /* proto */
1710
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_2__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1711
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4close(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1712
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_6read(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_offset, PyObject *__pyx_v_count); /* proto */
1713
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_8printself(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1714
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4name___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1715
 
static int __pyx_pf_5adios_13AdiosVariable_4name_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1716
 
static int __pyx_pf_5adios_13AdiosVariable_4name_4__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1717
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_5varid___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1718
 
static int __pyx_pf_5adios_13AdiosVariable_5varid_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1719
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4type___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1720
 
static int __pyx_pf_5adios_13AdiosVariable_4type_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1721
 
static int __pyx_pf_5adios_13AdiosVariable_4type_4__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1722
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4ndim___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1723
 
static int __pyx_pf_5adios_13AdiosVariable_4ndim_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1724
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4dims___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1725
 
static int __pyx_pf_5adios_13AdiosVariable_4dims_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1726
 
static int __pyx_pf_5adios_13AdiosVariable_4dims_4__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1727
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_7timedim___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1728
 
static int __pyx_pf_5adios_13AdiosVariable_7timedim_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
1729
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_21characteristics_count___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self); /* proto */
1730
 
static int __pyx_pf_5adios_13AdiosVariable_21characteristics_count_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1440
static PyObject *__pyx_pf_5adios_32read_init(CYTHON_UNUSED PyObject *__pyx_self, ADIOS_READ_METHOD __pyx_v_method, MPI_Comm __pyx_v_comm, char *__pyx_v_parameters); /* proto */
 
1441
static PyObject *__pyx_pf_5adios_34read_finalize(CYTHON_UNUSED PyObject *__pyx_self, ADIOS_READ_METHOD __pyx_v_method); /* proto */
 
1442
static int __pyx_pf_5adios_4file___init__(struct __pyx_obj_5adios_file *__pyx_v_self, char *__pyx_v_fname, ADIOS_READ_METHOD __pyx_v_method, MPI_Comm __pyx_v_comm); /* proto */
 
1443
static PyObject *__pyx_pf_5adios_4file_2__del__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1444
static PyObject *__pyx_pf_5adios_4file_4close(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1445
static PyObject *__pyx_pf_5adios_4file_6printself(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1446
static PyObject *__pyx_pf_5adios_4file_4name___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1447
static int __pyx_pf_5adios_4file_4name_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1448
static int __pyx_pf_5adios_4file_4name_4__del__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1449
static PyObject *__pyx_pf_5adios_4file_5nvars___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1450
static int __pyx_pf_5adios_4file_5nvars_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1451
static PyObject *__pyx_pf_5adios_4file_6nattrs___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1452
static int __pyx_pf_5adios_4file_6nattrs_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1453
static PyObject *__pyx_pf_5adios_4file_12current_step___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1454
static int __pyx_pf_5adios_4file_12current_step_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1455
static PyObject *__pyx_pf_5adios_4file_9last_step___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1456
static int __pyx_pf_5adios_4file_9last_step_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1457
static PyObject *__pyx_pf_5adios_4file_10endianness___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1458
static int __pyx_pf_5adios_4file_10endianness_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1459
static PyObject *__pyx_pf_5adios_4file_7version___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1460
static int __pyx_pf_5adios_4file_7version_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1461
static PyObject *__pyx_pf_5adios_4file_9file_size___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1462
static int __pyx_pf_5adios_4file_9file_size_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1463
static PyObject *__pyx_pf_5adios_4file_3var___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1464
static int __pyx_pf_5adios_4file_3var_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1465
static int __pyx_pf_5adios_4file_3var_4__del__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1466
static PyObject *__pyx_pf_5adios_4file_4attr___get__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1467
static int __pyx_pf_5adios_4file_4attr_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1468
static int __pyx_pf_5adios_4file_4attr_4__del__(struct __pyx_obj_5adios_file *__pyx_v_self); /* proto */
 
1469
static int __pyx_pf_5adios_3var___init__(struct __pyx_obj_5adios_var *__pyx_v_self, struct __pyx_obj_5adios_file *__pyx_v_file, char *__pyx_v_name); /* proto */
 
1470
static PyObject *__pyx_pf_5adios_3var_2__del__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1471
static PyObject *__pyx_pf_5adios_3var_4close(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1472
static PyObject *__pyx_pf_5adios_3var_6read(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_offset, PyObject *__pyx_v_count, PyObject *__pyx_v_from_steps, PyObject *__pyx_v_nsteps); /* proto */
 
1473
static PyObject *__pyx_pf_5adios_3var_8printself(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1474
static PyObject *__pyx_pf_5adios_3var_4name___get__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1475
static int __pyx_pf_5adios_3var_4name_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1476
static int __pyx_pf_5adios_3var_4name_4__del__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1477
static PyObject *__pyx_pf_5adios_3var_5varid___get__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1478
static int __pyx_pf_5adios_3var_5varid_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1479
static PyObject *__pyx_pf_5adios_3var_4type___get__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1480
static int __pyx_pf_5adios_3var_4type_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1481
static int __pyx_pf_5adios_3var_4type_4__del__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1482
static PyObject *__pyx_pf_5adios_3var_4ndim___get__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1483
static int __pyx_pf_5adios_3var_4ndim_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1484
static PyObject *__pyx_pf_5adios_3var_4dims___get__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1485
static int __pyx_pf_5adios_3var_4dims_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1486
static int __pyx_pf_5adios_3var_4dims_4__del__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1487
static PyObject *__pyx_pf_5adios_3var_6nsteps___get__(struct __pyx_obj_5adios_var *__pyx_v_self); /* proto */
 
1488
static int __pyx_pf_5adios_3var_6nsteps_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
 
1489
static PyObject *__pyx_pf_5adios_36readvar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fname, PyObject *__pyx_v_varname); /* proto */
 
1490
static PyObject *__pyx_pf_5adios_38bpls(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fname); /* proto */
1731
1491
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
1732
1492
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */
1733
 
static PyObject *__pyx_tp_new_5adios_AdiosFile(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
1734
 
static PyObject *__pyx_tp_new_5adios_AdiosGroup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
1735
 
static PyObject *__pyx_tp_new_5adios_AdiosVariable(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
1736
 
static char __pyx_k_3[] = "Only contiguous arrays are supported.";
1737
 
static char __pyx_k_4[] = "Reading ... ";
1738
 
static char __pyx_k_5[] = "(bytes)";
1739
 
static char __pyx_k_7[] = "%15s : %lu";
1740
 
static char __pyx_k_8[] = "%15s : %d";
1741
 
static char __pyx_k_9[] = "%15s : %s";
1742
 
static char __pyx_k_11[] = "Not an open file";
1743
 
static char __pyx_k_12[] = "/";
1744
 
static char __pyx_k_14[] = "=== AdiosFile ===";
1745
 
static char __pyx_k_15[] = "Not an open group";
1746
 
static char __pyx_k_16[] = "=== AdiosGroup ===";
1747
 
static char __pyx_k_17[] = "Data type is not supported yet";
1748
 
static char __pyx_k_19[] = "Offset dimension mismatch";
1749
 
static char __pyx_k_20[] = "Count dimension mismatch.";
1750
 
static char __pyx_k_21[] = "Count is larger than shape.";
1751
 
static char __pyx_k_22[] = "[WARNING] bytes read :";
1752
 
static char __pyx_k_23[] = "=== AdiosVariable ===";
1753
 
static char __pyx_k_24[] = "ndarray is not C contiguous";
1754
 
static char __pyx_k_26[] = "ndarray is not Fortran contiguous";
1755
 
static char __pyx_k_28[] = "Non-native byte order not supported";
1756
 
static char __pyx_k_30[] = "unknown dtype code in numpy.pxd (%d)";
1757
 
static char __pyx_k_31[] = "Format string allocated too short, see comment in numpy.pxd";
1758
 
static char __pyx_k_34[] = "Format string allocated too short.";
1759
 
static char __pyx_k_36[] = "\n ADIOS is freely available under the terms of the BSD license described\n in the COPYING file in the top level directory of this source distribution.\n\n Copyright (c) 2008 - 2009.  UT-BATTELLE, LLC. All rights reserved.\n";
1760
 
static char __pyx_k_37[] = "mpi4py.MPI";
1761
 
static char __pyx_k_38[] = "*";
1762
 
static char __pyx_k__B[] = "B";
1763
 
static char __pyx_k__H[] = "H";
1764
 
static char __pyx_k__I[] = "I";
1765
 
static char __pyx_k__L[] = "L";
1766
 
static char __pyx_k__O[] = "O";
1767
 
static char __pyx_k__Q[] = "Q";
1768
 
static char __pyx_k__b[] = "b";
1769
 
static char __pyx_k__d[] = "d";
1770
 
static char __pyx_k__f[] = "f";
1771
 
static char __pyx_k__g[] = "g";
1772
 
static char __pyx_k__h[] = "h";
1773
 
static char __pyx_k__i[] = "i";
1774
 
static char __pyx_k__l[] = "l";
1775
 
static char __pyx_k__q[] = "q";
1776
 
static char __pyx_k__NO[] = "NO";
1777
 
static char __pyx_k__Zd[] = "Zd";
1778
 
static char __pyx_k__Zf[] = "Zf";
1779
 
static char __pyx_k__Zg[] = "Zg";
1780
 
static char __pyx_k__fh[] = "fh";
1781
 
static char __pyx_k__fp[] = "fp";
1782
 
static char __pyx_k__gh[] = "gh";
1783
 
static char __pyx_k__gp[] = "gp";
1784
 
static char __pyx_k__np[] = "np";
1785
 
static char __pyx_k__vp[] = "vp";
1786
 
static char __pyx_k__MPI[] = "MPI";
1787
 
static char __pyx_k__NOW[] = "NOW";
1788
 
static char __pyx_k__YES[] = "YES";
1789
 
static char __pyx_k__all[] = "all";
1790
 
static char __pyx_k__end[] = "end";
1791
 
static char __pyx_k__val[] = "val";
1792
 
static char __pyx_k__var[] = "var";
1793
 
static char __pyx_k__FLAG[] = "FLAG";
1794
 
static char __pyx_k__byte[] = "byte";
1795
 
static char __pyx_k__comm[] = "comm";
1796
 
static char __pyx_k__copy[] = "copy";
1797
 
static char __pyx_k__dims[] = "dims";
1798
 
static char __pyx_k__fd_p[] = "fd_p";
1799
 
static char __pyx_k__file[] = "file";
1800
 
static char __pyx_k__fill[] = "fill";
1801
 
static char __pyx_k__int8[] = "int8";
1802
 
static char __pyx_k__long[] = "long";
1803
 
static char __pyx_k__mode[] = "mode";
1804
 
static char __pyx_k__mype[] = "mype";
1805
 
static char __pyx_k__name[] = "name";
1806
 
static char __pyx_k__ndim[] = "ndim";
1807
 
static char __pyx_k__path[] = "path";
1808
 
static char __pyx_k__read[] = "read";
1809
 
static char __pyx_k__real[] = "real";
1810
 
static char __pyx_k__size[] = "size";
1811
 
static char __pyx_k__type[] = "type";
1812
 
static char __pyx_k__when[] = "when";
1813
 
static char __pyx_k__LATER[] = "LATER";
1814
 
static char __pyx_k__adios[] = "adios";
1815
 
static char __pyx_k__array[] = "array";
1816
 
static char __pyx_k__close[] = "close";
1817
 
static char __pyx_k__count[] = "count";
1818
 
static char __pyx_k__dtype[] = "dtype";
1819
 
static char __pyx_k__flags[] = "flags";
1820
 
static char __pyx_k__fname[] = "fname";
1821
 
static char __pyx_k__group[] = "group";
1822
 
static char __pyx_k__grpid[] = "grpid";
1823
 
static char __pyx_k__int16[] = "int16";
1824
 
static char __pyx_k__int32[] = "int32";
1825
 
static char __pyx_k__int64[] = "int64";
1826
 
static char __pyx_k__numpy[] = "numpy";
1827
 
static char __pyx_k__print[] = "print";
1828
 
static char __pyx_k__range[] = "range";
1829
 
static char __pyx_k__short[] = "short";
1830
 
static char __pyx_k__split[] = "split";
1831
 
static char __pyx_k__stats[] = "stats";
1832
 
static char __pyx_k__uint8[] = "uint8";
1833
 
static char __pyx_k__value[] = "value";
1834
 
static char __pyx_k__varid[] = "varid";
1835
 
static char __pyx_k__zeros[] = "zeros";
1836
 
static char __pyx_k__config[] = "config";
1837
 
static char __pyx_k__double[] = "double";
1838
 
static char __pyx_k__method[] = "method";
1839
 
static char __pyx_k__object[] = "object";
1840
 
static char __pyx_k__offset[] = "offset";
1841
 
static char __pyx_k__string[] = "string";
1842
 
static char __pyx_k__uint16[] = "uint16";
1843
 
static char __pyx_k__uint32[] = "uint32";
1844
 
static char __pyx_k__uint64[] = "uint64";
1845
 
static char __pyx_k__values[] = "values";
1846
 
static char __pyx_k__UNKNOWN[] = "UNKNOWN";
1847
 
static char __pyx_k__complex[] = "complex";
1848
 
static char __pyx_k__float32[] = "float32";
1849
 
static char __pyx_k__float64[] = "float64";
1850
 
static char __pyx_k__integer[] = "integer";
1851
 
static char __pyx_k__timedim[] = "timedim";
1852
 
static char __pyx_k__unknown[] = "unknown";
1853
 
static char __pyx_k__version[] = "version";
1854
 
static char __pyx_k__DATATYPE[] = "DATATYPE";
1855
 
static char __pyx_k____main__[] = "__main__";
1856
 
static char __pyx_k____test__[] = "__test__";
1857
 
static char __pyx_k__float128[] = "float128";
1858
 
static char __pyx_k__group_id[] = "group_id";
1859
 
static char __pyx_k__itemsize[] = "itemsize";
1860
 
static char __pyx_k____class__[] = "__class__";
1861
 
static char __pyx_k__base_path[] = "base_path";
1862
 
static char __pyx_k__complex64[] = "complex64";
1863
 
static char __pyx_k__data_size[] = "data_size";
1864
 
static char __pyx_k__file_size[] = "file_size";
1865
 
static char __pyx_k__printself[] = "printself";
1866
 
static char __pyx_k__COMM_WORLD[] = "COMM_WORLD";
1867
 
static char __pyx_k__ValueError[] = "ValueError";
1868
 
static char __pyx_k____import__[] = "__import__";
1869
 
static char __pyx_k____module__[] = "__module__";
1870
 
static char __pyx_k__complex128[] = "complex128";
1871
 
static char __pyx_k__contiguous[] = "contiguous";
1872
 
static char __pyx_k__dimensions[] = "dimensions";
1873
 
static char __pyx_k__endianness[] = "endianness";
1874
 
static char __pyx_k__group_name[] = "group_name";
1875
 
static char __pyx_k__ntimesteps[] = "ntimesteps";
1876
 
static char __pyx_k__parameters[] = "parameters";
1877
 
static char __pyx_k__tidx_start[] = "tidx_start";
1878
 
static char __pyx_k__time_index[] = "time_index";
1879
 
static char __pyx_k__vars_count[] = "vars_count";
1880
 
static char __pyx_k__attrs_count[] = "attrs_count";
1881
 
static char __pyx_k__buffer_size[] = "buffer_size";
1882
 
static char __pyx_k__long_double[] = "long_double";
1883
 
static char __pyx_k__RuntimeError[] = "RuntimeError";
1884
 
static char __pyx_k____qualname__[] = "__qualname__";
1885
 
static char __pyx_k__groups_count[] = "groups_count";
1886
 
static char __pyx_k__var_namelist[] = "var_namelist";
1887
 
static char __pyx_k____metaclass__[] = "__metaclass__";
1888
 
static char __pyx_k__attr_namelist[] = "attr_namelist";
1889
 
static char __pyx_k__local_offsets[] = "local_offsets";
1890
 
static char __pyx_k__unsigned_byte[] = "unsigned_byte";
1891
 
static char __pyx_k__unsigned_long[] = "unsigned_long";
1892
 
static char __pyx_k____pyx_vtable__[] = "__pyx_vtable__";
1893
 
static char __pyx_k__double_complex[] = "double_complex";
1894
 
static char __pyx_k__group_namelist[] = "group_namelist";
1895
 
static char __pyx_k__unsigned_short[] = "unsigned_short";
1896
 
static char __pyx_k__unsigned_integer[] = "unsigned_integer";
1897
 
static char __pyx_k__BUFFER_ALLOC_WHEN[] = "BUFFER_ALLOC_WHEN";
1898
 
static char __pyx_k__global_dimensions[] = "global_dimensions";
1899
 
static PyObject *__pyx_kp_s_11;
1900
 
static PyObject *__pyx_kp_s_12;
1901
 
static PyObject *__pyx_kp_s_14;
1902
 
static PyObject *__pyx_kp_s_15;
1903
 
static PyObject *__pyx_kp_s_16;
1904
 
static PyObject *__pyx_kp_s_17;
1905
 
static PyObject *__pyx_kp_s_19;
1906
 
static PyObject *__pyx_kp_s_20;
1907
 
static PyObject *__pyx_kp_s_21;
1908
 
static PyObject *__pyx_kp_s_22;
1909
 
static PyObject *__pyx_kp_s_23;
1910
 
static PyObject *__pyx_kp_u_24;
1911
 
static PyObject *__pyx_kp_u_26;
1912
 
static PyObject *__pyx_kp_u_28;
1913
 
static PyObject *__pyx_kp_s_3;
1914
 
static PyObject *__pyx_kp_u_30;
1915
 
static PyObject *__pyx_kp_u_31;
1916
 
static PyObject *__pyx_kp_u_34;
1917
 
static PyObject *__pyx_n_s_37;
1918
 
static PyObject *__pyx_n_s_38;
1919
 
static PyObject *__pyx_kp_s_4;
1920
 
static PyObject *__pyx_kp_s_5;
1921
 
static PyObject *__pyx_kp_s_7;
1922
 
static PyObject *__pyx_kp_s_8;
1923
 
static PyObject *__pyx_kp_s_9;
1924
 
static PyObject *__pyx_n_s__BUFFER_ALLOC_WHEN;
1925
 
static PyObject *__pyx_n_s__COMM_WORLD;
1926
 
static PyObject *__pyx_n_s__DATATYPE;
1927
 
static PyObject *__pyx_n_s__FLAG;
1928
 
static PyObject *__pyx_n_s__LATER;
1929
 
static PyObject *__pyx_n_s__MPI;
1930
 
static PyObject *__pyx_n_s__NO;
1931
 
static PyObject *__pyx_n_s__NOW;
1932
 
static PyObject *__pyx_n_s__RuntimeError;
1933
 
static PyObject *__pyx_n_s__UNKNOWN;
1934
 
static PyObject *__pyx_n_s__ValueError;
1935
 
static PyObject *__pyx_n_s__YES;
1936
 
static PyObject *__pyx_n_s____class__;
1937
 
static PyObject *__pyx_n_s____import__;
1938
 
static PyObject *__pyx_n_s____main__;
1939
 
static PyObject *__pyx_n_s____metaclass__;
1940
 
static PyObject *__pyx_n_s____module__;
1941
 
static PyObject *__pyx_n_s____pyx_vtable__;
1942
 
static PyObject *__pyx_n_s____qualname__;
1943
 
static PyObject *__pyx_n_s____test__;
1944
 
static PyObject *__pyx_n_s__adios;
1945
 
static PyObject *__pyx_n_s__all;
1946
 
static PyObject *__pyx_n_s__array;
1947
 
static PyObject *__pyx_n_s__attr_namelist;
1948
 
static PyObject *__pyx_n_s__attrs_count;
1949
 
static PyObject *__pyx_n_s__base_path;
1950
 
static PyObject *__pyx_n_s__buffer_size;
1951
 
static PyObject *__pyx_n_s__byte;
1952
 
static PyObject *__pyx_n_s__close;
1953
 
static PyObject *__pyx_n_s__comm;
1954
 
static PyObject *__pyx_n_s__complex;
1955
 
static PyObject *__pyx_n_s__complex128;
1956
 
static PyObject *__pyx_n_s__complex64;
1957
 
static PyObject *__pyx_n_s__config;
1958
 
static PyObject *__pyx_n_s__contiguous;
1959
 
static PyObject *__pyx_n_s__copy;
1960
 
static PyObject *__pyx_n_s__count;
1961
 
static PyObject *__pyx_n_s__data_size;
1962
 
static PyObject *__pyx_n_s__dimensions;
1963
 
static PyObject *__pyx_n_s__dims;
1964
 
static PyObject *__pyx_n_s__double;
1965
 
static PyObject *__pyx_n_s__double_complex;
1966
 
static PyObject *__pyx_n_s__dtype;
1967
 
static PyObject *__pyx_n_s__end;
1968
 
static PyObject *__pyx_n_s__endianness;
1969
 
static PyObject *__pyx_n_s__fd_p;
1970
 
static PyObject *__pyx_n_s__fh;
1971
 
static PyObject *__pyx_n_s__file;
1972
 
static PyObject *__pyx_n_s__file_size;
1973
 
static PyObject *__pyx_n_s__fill;
1974
 
static PyObject *__pyx_n_s__flags;
1975
 
static PyObject *__pyx_n_s__float128;
1976
 
static PyObject *__pyx_n_s__float32;
1977
 
static PyObject *__pyx_n_s__float64;
1978
 
static PyObject *__pyx_n_s__fname;
1979
 
static PyObject *__pyx_n_s__fp;
1980
 
static PyObject *__pyx_n_s__gh;
1981
 
static PyObject *__pyx_n_s__global_dimensions;
1982
 
static PyObject *__pyx_n_s__gp;
1983
 
static PyObject *__pyx_n_s__group;
1984
 
static PyObject *__pyx_n_s__group_id;
1985
 
static PyObject *__pyx_n_s__group_name;
1986
 
static PyObject *__pyx_n_s__group_namelist;
1987
 
static PyObject *__pyx_n_s__groups_count;
1988
 
static PyObject *__pyx_n_s__grpid;
1989
 
static PyObject *__pyx_n_s__int16;
1990
 
static PyObject *__pyx_n_s__int32;
1991
 
static PyObject *__pyx_n_s__int64;
1992
 
static PyObject *__pyx_n_s__int8;
1993
 
static PyObject *__pyx_n_s__integer;
1994
 
static PyObject *__pyx_n_s__itemsize;
1995
 
static PyObject *__pyx_n_s__local_offsets;
1996
 
static PyObject *__pyx_n_s__long;
1997
 
static PyObject *__pyx_n_s__long_double;
1998
 
static PyObject *__pyx_n_s__method;
1999
 
static PyObject *__pyx_n_s__mode;
2000
 
static PyObject *__pyx_n_s__mype;
2001
 
static PyObject *__pyx_n_s__name;
2002
 
static PyObject *__pyx_n_s__ndim;
2003
 
static PyObject *__pyx_n_s__np;
2004
 
static PyObject *__pyx_n_s__ntimesteps;
2005
 
static PyObject *__pyx_n_s__numpy;
2006
 
static PyObject *__pyx_n_s__object;
2007
 
static PyObject *__pyx_n_s__offset;
2008
 
static PyObject *__pyx_n_s__parameters;
2009
 
static PyObject *__pyx_n_s__path;
2010
 
static PyObject *__pyx_n_s__print;
2011
 
static PyObject *__pyx_n_s__printself;
2012
 
static PyObject *__pyx_n_s__range;
2013
 
static PyObject *__pyx_n_s__read;
2014
 
static PyObject *__pyx_n_s__real;
2015
 
static PyObject *__pyx_n_s__short;
2016
 
static PyObject *__pyx_n_s__size;
2017
 
static PyObject *__pyx_n_s__split;
2018
 
static PyObject *__pyx_n_s__stats;
2019
 
static PyObject *__pyx_n_s__string;
2020
 
static PyObject *__pyx_n_s__tidx_start;
2021
 
static PyObject *__pyx_n_s__time_index;
2022
 
static PyObject *__pyx_n_s__timedim;
2023
 
static PyObject *__pyx_n_s__type;
2024
 
static PyObject *__pyx_n_s__uint16;
2025
 
static PyObject *__pyx_n_s__uint32;
2026
 
static PyObject *__pyx_n_s__uint64;
2027
 
static PyObject *__pyx_n_s__uint8;
2028
 
static PyObject *__pyx_n_s__unknown;
2029
 
static PyObject *__pyx_n_s__unsigned_byte;
2030
 
static PyObject *__pyx_n_s__unsigned_integer;
2031
 
static PyObject *__pyx_n_s__unsigned_long;
2032
 
static PyObject *__pyx_n_s__unsigned_short;
2033
 
static PyObject *__pyx_n_s__val;
2034
 
static PyObject *__pyx_n_s__value;
2035
 
static PyObject *__pyx_n_s__values;
2036
 
static PyObject *__pyx_n_s__var;
2037
 
static PyObject *__pyx_n_s__var_namelist;
2038
 
static PyObject *__pyx_n_s__varid;
2039
 
static PyObject *__pyx_n_s__vars_count;
2040
 
static PyObject *__pyx_n_s__version;
2041
 
static PyObject *__pyx_n_s__vp;
2042
 
static PyObject *__pyx_n_s__when;
2043
 
static PyObject *__pyx_n_s__zeros;
 
1493
static PyObject *__pyx_tp_new_5adios_file(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
 
1494
static PyObject *__pyx_tp_new_5adios_var(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
 
1495
static char __pyx_k_B[] = "B";
 
1496
static char __pyx_k_H[] = "H";
 
1497
static char __pyx_k_I[] = "I";
 
1498
static char __pyx_k_L[] = "L";
 
1499
static char __pyx_k_O[] = "O";
 
1500
static char __pyx_k_Q[] = "Q";
 
1501
static char __pyx_k_b[] = "b";
 
1502
static char __pyx_k_d[] = "d";
 
1503
static char __pyx_k_f[] = "f";
 
1504
static char __pyx_k_g[] = "g";
 
1505
static char __pyx_k_h[] = "h";
 
1506
static char __pyx_k_i[] = "i";
 
1507
static char __pyx_k_k[] = "k";
 
1508
static char __pyx_k_l[] = "l";
 
1509
static char __pyx_k_q[] = "q";
 
1510
static char __pyx_k_v[] = "v";
 
1511
static char __pyx_k_NO[] = "NO";
 
1512
static char __pyx_k_Zd[] = "Zd";
 
1513
static char __pyx_k_Zf[] = "Zf";
 
1514
static char __pyx_k_Zg[] = "Zg";
 
1515
static char __pyx_k__6[] = "";
 
1516
static char __pyx_k_fh[] = "fh";
 
1517
static char __pyx_k_fp[] = "fp";
 
1518
static char __pyx_k_np[] = "np";
 
1519
static char __pyx_k_vp[] = "vp";
 
1520
static char __pyx_k_NOW[] = "NOW";
 
1521
static char __pyx_k_YES[] = "YES";
 
1522
static char __pyx_k__10[] = "/";
 
1523
static char __pyx_k_all[] = "all";
 
1524
static char __pyx_k_doc[] = "__doc__";
 
1525
static char __pyx_k_end[] = "end";
 
1526
static char __pyx_k_val[] = "val";
 
1527
static char __pyx_k_var[] = "var";
 
1528
static char __pyx_k_FLAG[] = "FLAG";
 
1529
static char __pyx_k_bpls[] = "bpls";
 
1530
static char __pyx_k_byte[] = "byte";
 
1531
static char __pyx_k_comm[] = "comm";
 
1532
static char __pyx_k_copy[] = "copy";
 
1533
static char __pyx_k_dims[] = "dims";
 
1534
static char __pyx_k_fd_p[] = "fd_p";
 
1535
static char __pyx_k_file[] = "file";
 
1536
static char __pyx_k_fill[] = "fill";
 
1537
static char __pyx_k_int8[] = "int8";
 
1538
static char __pyx_k_long[] = "long";
 
1539
static char __pyx_k_main[] = "__main__";
 
1540
static char __pyx_k_mode[] = "mode";
 
1541
static char __pyx_k_mype[] = "mype";
 
1542
static char __pyx_k_name[] = "name";
 
1543
static char __pyx_k_ndim[] = "ndim";
 
1544
static char __pyx_k_path[] = "path";
 
1545
static char __pyx_k_read[] = "read";
 
1546
static char __pyx_k_real[] = "real";
 
1547
static char __pyx_k_size[] = "size";
 
1548
static char __pyx_k_test[] = "__test__";
 
1549
static char __pyx_k_type[] = "type";
 
1550
static char __pyx_k_vars[] = "vars";
 
1551
static char __pyx_k_when[] = "when";
 
1552
static char __pyx_k_15s_d[] = "%15s : %d";
 
1553
static char __pyx_k_15s_s[] = "%15s : %s";
 
1554
static char __pyx_k_LATER[] = "LATER";
 
1555
static char __pyx_k_adios[] = "adios";
 
1556
static char __pyx_k_array[] = "array";
 
1557
static char __pyx_k_attrs[] = "attrs";
 
1558
static char __pyx_k_bytes[] = "(bytes)";
 
1559
static char __pyx_k_close[] = "close";
 
1560
static char __pyx_k_count[] = "count";
 
1561
static char __pyx_k_dtype[] = "dtype";
 
1562
static char __pyx_k_flags[] = "flags";
 
1563
static char __pyx_k_fname[] = "fname";
 
1564
static char __pyx_k_group[] = "group";
 
1565
static char __pyx_k_int16[] = "int16";
 
1566
static char __pyx_k_int32[] = "int32";
 
1567
static char __pyx_k_int64[] = "int64";
 
1568
static char __pyx_k_numpy[] = "numpy";
 
1569
static char __pyx_k_nvars[] = "nvars";
 
1570
static char __pyx_k_print[] = "print";
 
1571
static char __pyx_k_range[] = "range";
 
1572
static char __pyx_k_short[] = "short";
 
1573
static char __pyx_k_split[] = "split";
 
1574
static char __pyx_k_stats[] = "stats";
 
1575
static char __pyx_k_uint8[] = "uint8";
 
1576
static char __pyx_k_value[] = "value";
 
1577
static char __pyx_k_varid[] = "varid";
 
1578
static char __pyx_k_zeros[] = "zeros";
 
1579
static char __pyx_k_15s_lu[] = "%15s : %lu";
 
1580
static char __pyx_k_config[] = "config";
 
1581
static char __pyx_k_double[] = "double";
 
1582
static char __pyx_k_import[] = "__import__";
 
1583
static char __pyx_k_method[] = "method";
 
1584
static char __pyx_k_module[] = "__module__";
 
1585
static char __pyx_k_nattrs[] = "nattrs";
 
1586
static char __pyx_k_nsteps[] = "nsteps";
 
1587
static char __pyx_k_offset[] = "offset";
 
1588
static char __pyx_k_string[] = "string";
 
1589
static char __pyx_k_uint16[] = "uint16";
 
1590
static char __pyx_k_uint32[] = "uint32";
 
1591
static char __pyx_k_uint64[] = "uint64";
 
1592
static char __pyx_k_Reading[] = "Reading ... ";
 
1593
static char __pyx_k_UNKNOWN[] = "UNKNOWN";
 
1594
static char __pyx_k_complex[] = "complex";
 
1595
static char __pyx_k_float32[] = "float32";
 
1596
static char __pyx_k_float64[] = "float64";
 
1597
static char __pyx_k_integer[] = "integer";
 
1598
static char __pyx_k_prepare[] = "__prepare__";
 
1599
static char __pyx_k_readvar[] = "readvar";
 
1600
static char __pyx_k_unknown[] = "unknown";
 
1601
static char __pyx_k_varname[] = "varname";
 
1602
static char __pyx_k_version[] = "version";
 
1603
static char __pyx_k_DATATYPE[] = "DATATYPE";
 
1604
static char __pyx_k_float128[] = "float128";
 
1605
static char __pyx_k_group_id[] = "group_id";
 
1606
static char __pyx_k_itemsize[] = "itemsize";
 
1607
static char __pyx_k_iterkeys[] = "iterkeys";
 
1608
static char __pyx_k_qualname[] = "__qualname__";
 
1609
static char __pyx_k_AdiosFile[] = "=== AdiosFile ===";
 
1610
static char __pyx_k_base_path[] = "base_path";
 
1611
static char __pyx_k_complex64[] = "complex64";
 
1612
static char __pyx_k_data_size[] = "data_size";
 
1613
static char __pyx_k_file_size[] = "file_size";
 
1614
static char __pyx_k_last_step[] = "last_step";
 
1615
static char __pyx_k_metaclass[] = "__metaclass__";
 
1616
static char __pyx_k_printself[] = "printself";
 
1617
static char __pyx_k_ValueError[] = "ValueError";
 
1618
static char __pyx_k_complex128[] = "complex128";
 
1619
static char __pyx_k_contiguous[] = "contiguous";
 
1620
static char __pyx_k_dimensions[] = "dimensions";
 
1621
static char __pyx_k_endianness[] = "endianness";
 
1622
static char __pyx_k_from_steps[] = "from_steps";
 
1623
static char __pyx_k_group_name[] = "group_name";
 
1624
static char __pyx_k_parameters[] = "parameters";
 
1625
static char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
 
1626
static char __pyx_k_time_index[] = "time_index";
 
1627
static char __pyx_k_time_steps[] = "time_steps";
 
1628
static char __pyx_k_buffer_size[] = "buffer_size";
 
1629
static char __pyx_k_long_double[] = "long_double";
 
1630
static char __pyx_k_RuntimeError[] = "RuntimeError";
 
1631
static char __pyx_k_current_step[] = "current_step";
 
1632
static char __pyx_k_var_namelist[] = "var_namelist";
 
1633
static char __pyx_k_AdiosVariable[] = "=== AdiosVariable ===";
 
1634
static char __pyx_k_attr_namelist[] = "attr_namelist";
 
1635
static char __pyx_k_local_offsets[] = "local_offsets";
 
1636
static char __pyx_k_unsigned_byte[] = "unsigned_byte";
 
1637
static char __pyx_k_unsigned_long[] = "unsigned_long";
 
1638
static char __pyx_k_double_complex[] = "double_complex";
 
1639
static char __pyx_k_unsigned_short[] = "unsigned_short";
 
1640
static char __pyx_k_Not_a_valid_var[] = "Not a valid var";
 
1641
static char __pyx_k_Not_an_open_var[] = "Not an open var";
 
1642
static char __pyx_k_Not_an_open_file[] = "Not an open file";
 
1643
static char __pyx_k_unsigned_integer[] = "unsigned_integer";
 
1644
static char __pyx_k_BUFFER_ALLOC_WHEN[] = "BUFFER_ALLOC_WHEN";
 
1645
static char __pyx_k_No_valid_variable[] = "No valid variable";
 
1646
static char __pyx_k_global_dimensions[] = "global_dimensions";
 
1647
static char __pyx_k_Not_an_open_variable[] = "Not an open variable";
 
1648
static char __pyx_k_Count_dimension_mismatch[] = "Count dimension mismatch.";
 
1649
static char __pyx_k_Offset_dimension_mismatch[] = "Offset dimension mismatch";
 
1650
static char __pyx_k_Count_is_larger_than_shape[] = "Count is larger than shape.";
 
1651
static char __pyx_k_Step_index_is_out_of_range[] = "Step index is out of range";
 
1652
static char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous";
 
1653
static char __pyx_k_Data_type_is_not_supported_yet[] = "Data type is not supported yet";
 
1654
static char __pyx_k_ADIOS_is_freely_available_under[] = "\n ADIOS is freely available under the terms of the BSD license described\n in the COPYING file in the top level directory of this source distribution.\n\n Copyright (c) 2008 - 2009.  UT-BATTELLE, LLC. All rights reserved.\n";
 
1655
static char __pyx_k_Users_jyc_project_adios_devel_w[] = "/Users/jyc/project/adios-devel/wrappers/numpy/adios.pyx";
 
1656
static char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)";
 
1657
static char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd";
 
1658
static char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported";
 
1659
static char __pyx_k_Only_contiguous_arrays_are_suppo[] = "Only contiguous arrays are supported.";
 
1660
static char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous";
 
1661
static char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short.";
 
1662
static PyObject *__pyx_kp_s_15s_d;
 
1663
static PyObject *__pyx_kp_s_15s_lu;
 
1664
static PyObject *__pyx_kp_s_15s_s;
 
1665
static PyObject *__pyx_kp_s_AdiosFile;
 
1666
static PyObject *__pyx_kp_s_AdiosVariable;
 
1667
static PyObject *__pyx_n_s_BUFFER_ALLOC_WHEN;
 
1668
static PyObject *__pyx_kp_s_Count_dimension_mismatch;
 
1669
static PyObject *__pyx_kp_s_Count_is_larger_than_shape;
 
1670
static PyObject *__pyx_n_s_DATATYPE;
 
1671
static PyObject *__pyx_kp_s_Data_type_is_not_supported_yet;
 
1672
static PyObject *__pyx_n_s_FLAG;
 
1673
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor;
 
1674
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2;
 
1675
static PyObject *__pyx_n_s_LATER;
 
1676
static PyObject *__pyx_n_s_NO;
 
1677
static PyObject *__pyx_n_s_NOW;
 
1678
static PyObject *__pyx_kp_s_No_valid_variable;
 
1679
static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor;
 
1680
static PyObject *__pyx_kp_s_Not_a_valid_var;
 
1681
static PyObject *__pyx_kp_s_Not_an_open_file;
 
1682
static PyObject *__pyx_kp_s_Not_an_open_var;
 
1683
static PyObject *__pyx_kp_s_Not_an_open_variable;
 
1684
static PyObject *__pyx_kp_s_Offset_dimension_mismatch;
 
1685
static PyObject *__pyx_kp_s_Only_contiguous_arrays_are_suppo;
 
1686
static PyObject *__pyx_kp_s_Reading;
 
1687
static PyObject *__pyx_n_s_RuntimeError;
 
1688
static PyObject *__pyx_kp_s_Step_index_is_out_of_range;
 
1689
static PyObject *__pyx_n_s_UNKNOWN;
 
1690
static PyObject *__pyx_kp_s_Users_jyc_project_adios_devel_w;
 
1691
static PyObject *__pyx_n_s_ValueError;
 
1692
static PyObject *__pyx_n_s_YES;
 
1693
static PyObject *__pyx_kp_s__10;
 
1694
static PyObject *__pyx_n_s_adios;
 
1695
static PyObject *__pyx_n_s_all;
 
1696
static PyObject *__pyx_n_s_array;
 
1697
static PyObject *__pyx_n_s_attr_namelist;
 
1698
static PyObject *__pyx_n_s_attrs;
 
1699
static PyObject *__pyx_n_s_base_path;
 
1700
static PyObject *__pyx_n_s_bpls;
 
1701
static PyObject *__pyx_n_s_buffer_size;
 
1702
static PyObject *__pyx_n_s_byte;
 
1703
static PyObject *__pyx_kp_s_bytes;
 
1704
static PyObject *__pyx_n_s_close;
 
1705
static PyObject *__pyx_n_s_comm;
 
1706
static PyObject *__pyx_n_s_complex;
 
1707
static PyObject *__pyx_n_s_complex128;
 
1708
static PyObject *__pyx_n_s_complex64;
 
1709
static PyObject *__pyx_n_s_config;
 
1710
static PyObject *__pyx_n_s_contiguous;
 
1711
static PyObject *__pyx_n_s_copy;
 
1712
static PyObject *__pyx_n_s_count;
 
1713
static PyObject *__pyx_n_s_current_step;
 
1714
static PyObject *__pyx_n_s_data_size;
 
1715
static PyObject *__pyx_n_s_dimensions;
 
1716
static PyObject *__pyx_n_s_dims;
 
1717
static PyObject *__pyx_n_s_doc;
 
1718
static PyObject *__pyx_n_s_double;
 
1719
static PyObject *__pyx_n_s_double_complex;
 
1720
static PyObject *__pyx_n_s_dtype;
 
1721
static PyObject *__pyx_n_s_end;
 
1722
static PyObject *__pyx_n_s_endianness;
 
1723
static PyObject *__pyx_n_s_f;
 
1724
static PyObject *__pyx_n_s_fd_p;
 
1725
static PyObject *__pyx_n_s_fh;
 
1726
static PyObject *__pyx_n_s_file;
 
1727
static PyObject *__pyx_n_s_file_size;
 
1728
static PyObject *__pyx_n_s_fill;
 
1729
static PyObject *__pyx_n_s_flags;
 
1730
static PyObject *__pyx_n_s_float128;
 
1731
static PyObject *__pyx_n_s_float32;
 
1732
static PyObject *__pyx_n_s_float64;
 
1733
static PyObject *__pyx_n_s_fname;
 
1734
static PyObject *__pyx_n_s_fp;
 
1735
static PyObject *__pyx_n_s_from_steps;
 
1736
static PyObject *__pyx_n_s_global_dimensions;
 
1737
static PyObject *__pyx_n_s_group;
 
1738
static PyObject *__pyx_n_s_group_id;
 
1739
static PyObject *__pyx_n_s_group_name;
 
1740
static PyObject *__pyx_n_s_import;
 
1741
static PyObject *__pyx_n_s_int16;
 
1742
static PyObject *__pyx_n_s_int32;
 
1743
static PyObject *__pyx_n_s_int64;
 
1744
static PyObject *__pyx_n_s_int8;
 
1745
static PyObject *__pyx_n_s_integer;
 
1746
static PyObject *__pyx_n_s_itemsize;
 
1747
static PyObject *__pyx_n_s_iterkeys;
 
1748
static PyObject *__pyx_n_s_k;
 
1749
static PyObject *__pyx_n_s_last_step;
 
1750
static PyObject *__pyx_n_s_local_offsets;
 
1751
static PyObject *__pyx_n_s_long;
 
1752
static PyObject *__pyx_n_s_long_double;
 
1753
static PyObject *__pyx_n_s_main;
 
1754
static PyObject *__pyx_n_s_metaclass;
 
1755
static PyObject *__pyx_n_s_method;
 
1756
static PyObject *__pyx_n_s_mode;
 
1757
static PyObject *__pyx_n_s_module;
 
1758
static PyObject *__pyx_n_s_mype;
 
1759
static PyObject *__pyx_n_s_name;
 
1760
static PyObject *__pyx_n_s_nattrs;
 
1761
static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous;
 
1762
static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou;
 
1763
static PyObject *__pyx_n_s_ndim;
 
1764
static PyObject *__pyx_n_s_np;
 
1765
static PyObject *__pyx_n_s_nsteps;
 
1766
static PyObject *__pyx_n_s_numpy;
 
1767
static PyObject *__pyx_n_s_nvars;
 
1768
static PyObject *__pyx_n_s_offset;
 
1769
static PyObject *__pyx_n_s_parameters;
 
1770
static PyObject *__pyx_n_s_path;
 
1771
static PyObject *__pyx_n_s_prepare;
 
1772
static PyObject *__pyx_n_s_print;
 
1773
static PyObject *__pyx_n_s_printself;
 
1774
static PyObject *__pyx_n_s_pyx_vtable;
 
1775
static PyObject *__pyx_n_s_qualname;
 
1776
static PyObject *__pyx_n_s_range;
 
1777
static PyObject *__pyx_n_s_read;
 
1778
static PyObject *__pyx_n_s_readvar;
 
1779
static PyObject *__pyx_n_s_real;
 
1780
static PyObject *__pyx_n_s_short;
 
1781
static PyObject *__pyx_n_s_size;
 
1782
static PyObject *__pyx_n_s_split;
 
1783
static PyObject *__pyx_n_s_stats;
 
1784
static PyObject *__pyx_n_s_string;
 
1785
static PyObject *__pyx_n_s_test;
 
1786
static PyObject *__pyx_n_s_time_index;
 
1787
static PyObject *__pyx_n_s_time_steps;
 
1788
static PyObject *__pyx_n_s_type;
 
1789
static PyObject *__pyx_n_s_uint16;
 
1790
static PyObject *__pyx_n_s_uint32;
 
1791
static PyObject *__pyx_n_s_uint64;
 
1792
static PyObject *__pyx_n_s_uint8;
 
1793
static PyObject *__pyx_n_s_unknown;
 
1794
static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd;
 
1795
static PyObject *__pyx_n_s_unsigned_byte;
 
1796
static PyObject *__pyx_n_s_unsigned_integer;
 
1797
static PyObject *__pyx_n_s_unsigned_long;
 
1798
static PyObject *__pyx_n_s_unsigned_short;
 
1799
static PyObject *__pyx_n_s_v;
 
1800
static PyObject *__pyx_n_s_val;
 
1801
static PyObject *__pyx_n_s_value;
 
1802
static PyObject *__pyx_n_s_var;
 
1803
static PyObject *__pyx_n_s_var_namelist;
 
1804
static PyObject *__pyx_n_s_varid;
 
1805
static PyObject *__pyx_n_s_varname;
 
1806
static PyObject *__pyx_n_s_vars;
 
1807
static PyObject *__pyx_n_s_version;
 
1808
static PyObject *__pyx_n_s_vp;
 
1809
static PyObject *__pyx_n_s_when;
 
1810
static PyObject *__pyx_n_s_zeros;
2044
1811
static PyObject *__pyx_int_0;
2045
1812
static PyObject *__pyx_int_1;
2046
1813
static PyObject *__pyx_int_2;
2049
1816
static PyObject *__pyx_int_6;
2050
1817
static PyObject *__pyx_int_7;
2051
1818
static PyObject *__pyx_int_9;
2052
 
static PyObject *__pyx_int_neg_1;
2053
1819
static PyObject *__pyx_int_10;
2054
1820
static PyObject *__pyx_int_11;
2055
 
static PyObject *__pyx_int_15;
2056
1821
static PyObject *__pyx_int_50;
2057
1822
static PyObject *__pyx_int_51;
2058
1823
static PyObject *__pyx_int_52;
2059
1824
static PyObject *__pyx_int_54;
2060
 
static struct PyMPICommObject *__pyx_k_1;
2061
 
static struct PyMPICommObject *__pyx_k_2;
2062
 
static struct PyMPICommObject *__pyx_k_6;
2063
 
static struct PyMPICommObject *__pyx_k_10;
2064
 
static PyObject *__pyx_k_tuple_13;
2065
 
static PyObject *__pyx_k_tuple_18;
2066
 
static PyObject *__pyx_k_tuple_25;
2067
 
static PyObject *__pyx_k_tuple_27;
2068
 
static PyObject *__pyx_k_tuple_29;
2069
 
static PyObject *__pyx_k_tuple_32;
2070
 
static PyObject *__pyx_k_tuple_33;
2071
 
static PyObject *__pyx_k_tuple_35;
 
1825
static PyObject *__pyx_int_neg_1;
 
1826
static MPI_Comm __pyx_k_;
 
1827
static MPI_Comm __pyx_k__2;
 
1828
static MPI_Comm __pyx_k__3;
 
1829
static ADIOS_READ_METHOD __pyx_k__4;
 
1830
static MPI_Comm __pyx_k__5;
 
1831
static ADIOS_READ_METHOD __pyx_k__7;
 
1832
static ADIOS_READ_METHOD __pyx_k__8;
 
1833
static MPI_Comm __pyx_k__9;
 
1834
static PyObject *__pyx_tuple__11;
 
1835
static PyObject *__pyx_tuple__12;
 
1836
static PyObject *__pyx_tuple__13;
 
1837
static PyObject *__pyx_tuple__14;
 
1838
static PyObject *__pyx_tuple__15;
 
1839
static PyObject *__pyx_tuple__16;
 
1840
static PyObject *__pyx_tuple__17;
 
1841
static PyObject *__pyx_tuple__18;
 
1842
static PyObject *__pyx_tuple__19;
 
1843
static PyObject *__pyx_tuple__21;
 
1844
static PyObject *__pyx_codeobj__20;
 
1845
static PyObject *__pyx_codeobj__22;
2072
1846
 
2073
 
/* "adios.pyx":211
2074
 
 * ## ==========
 
1847
/* "adios.pyx":256
 
1848
 * ## ====================
2075
1849
 * 
2076
 
 * cpdef init(char * config, MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
2077
 
 *     return adios_init(config, comm.ob_mpi)
 
1850
 * cpdef init(char * config, MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
1851
 *     return adios_init(config, comm)
2078
1852
 * 
2079
1853
 */
2080
1854
 
2081
1855
static PyObject *__pyx_pw_5adios_1init(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2082
1856
static PyObject *__pyx_f_5adios_init(char *__pyx_v_config, CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_init *__pyx_optional_args) {
2083
 
  struct PyMPICommObject *__pyx_v_comm = __pyx_k_1;
 
1857
  MPI_Comm __pyx_v_comm = __pyx_k_;
2084
1858
  PyObject *__pyx_r = NULL;
2085
1859
  __Pyx_RefNannyDeclarations
2086
1860
  PyObject *__pyx_t_1 = NULL;
2094
1868
    }
2095
1869
  }
2096
1870
 
2097
 
  /* "adios.pyx":212
 
1871
  /* "adios.pyx":257
2098
1872
 * 
2099
 
 * cpdef init(char * config, MPI.Comm comm = MPI.COMM_WORLD):
2100
 
 *     return adios_init(config, comm.ob_mpi)             # <<<<<<<<<<<<<<
 
1873
 * cpdef init(char * config, MPI_Comm comm = MPI_COMM_WORLD):
 
1874
 *     return adios_init(config, comm)             # <<<<<<<<<<<<<<
2101
1875
 * 
2102
1876
 * cpdef int64_t open(char * group_name,
2103
1877
 */
2104
1878
  __Pyx_XDECREF(__pyx_r);
2105
 
  __pyx_t_1 = PyInt_FromLong(adios_init(__pyx_v_config, __pyx_v_comm->ob_mpi)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1879
  __pyx_t_1 = __Pyx_PyInt_From_int(adios_init(__pyx_v_config, __pyx_v_comm)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2106
1880
  __Pyx_GOTREF(__pyx_t_1);
2107
1881
  __pyx_r = __pyx_t_1;
2108
1882
  __pyx_t_1 = 0;
2109
1883
  goto __pyx_L0;
2110
1884
 
2111
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2112
 
  goto __pyx_L0;
 
1885
  /* "adios.pyx":256
 
1886
 * ## ====================
 
1887
 * 
 
1888
 * cpdef init(char * config, MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
1889
 *     return adios_init(config, comm)
 
1890
 * 
 
1891
 */
 
1892
 
 
1893
  /* function exit code */
2113
1894
  __pyx_L1_error:;
2114
1895
  __Pyx_XDECREF(__pyx_t_1);
2115
1896
  __Pyx_AddTraceback("adios.init", __pyx_clineno, __pyx_lineno, __pyx_filename);
2124
1905
static PyObject *__pyx_pw_5adios_1init(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2125
1906
static PyObject *__pyx_pw_5adios_1init(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2126
1907
  char *__pyx_v_config;
2127
 
  struct PyMPICommObject *__pyx_v_comm = 0;
 
1908
  MPI_Comm __pyx_v_comm;
2128
1909
  int __pyx_lineno = 0;
2129
1910
  const char *__pyx_filename = NULL;
2130
1911
  int __pyx_clineno = 0;
2132
1913
  __Pyx_RefNannyDeclarations
2133
1914
  __Pyx_RefNannySetupContext("init (wrapper)", 0);
2134
1915
  {
2135
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__config,&__pyx_n_s__comm,0};
 
1916
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_config,&__pyx_n_s_comm,0};
2136
1917
    PyObject* values[2] = {0,0};
2137
 
    values[1] = (PyObject *)__pyx_k_1;
2138
1918
    if (unlikely(__pyx_kwds)) {
2139
1919
      Py_ssize_t kw_args;
2140
1920
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2147
1927
      kw_args = PyDict_Size(__pyx_kwds);
2148
1928
      switch (pos_args) {
2149
1929
        case  0:
2150
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__config)) != 0)) kw_args--;
 
1930
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_config)) != 0)) kw_args--;
2151
1931
        else goto __pyx_L5_argtuple_error;
2152
1932
        case  1:
2153
1933
        if (kw_args > 0) {
2154
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__comm);
 
1934
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_comm);
2155
1935
          if (value) { values[1] = value; kw_args--; }
2156
1936
        }
2157
1937
      }
2158
1938
      if (unlikely(kw_args > 0)) {
2159
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "init") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
1939
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "init") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2160
1940
      }
2161
1941
    } else {
2162
1942
      switch (PyTuple_GET_SIZE(__pyx_args)) {
2166
1946
        default: goto __pyx_L5_argtuple_error;
2167
1947
      }
2168
1948
    }
2169
 
    __pyx_v_config = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_config) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2170
 
    __pyx_v_comm = ((struct PyMPICommObject *)values[1]);
 
1949
    __pyx_v_config = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_config) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
1950
    if (values[1]) {
 
1951
      __pyx_v_comm = __Pyx_PyInt_As_MPI_Comm(values[1]); if (unlikely((__pyx_v_comm == (MPI_Comm)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
1952
    } else {
 
1953
      __pyx_v_comm = __pyx_k_;
 
1954
    }
2171
1955
  }
2172
1956
  goto __pyx_L4_argument_unpacking_done;
2173
1957
  __pyx_L5_argtuple_error:;
2174
 
  __Pyx_RaiseArgtupleInvalid("init", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
1958
  __Pyx_RaiseArgtupleInvalid("init", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2175
1959
  __pyx_L3_error:;
2176
1960
  __Pyx_AddTraceback("adios.init", __pyx_clineno, __pyx_lineno, __pyx_filename);
2177
1961
  __Pyx_RefNannyFinishContext();
2178
1962
  return NULL;
2179
1963
  __pyx_L4_argument_unpacking_done:;
2180
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_comm), __pyx_ptype_6mpi4py_3MPI_Comm, 1, "comm", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2181
1964
  __pyx_r = __pyx_pf_5adios_init(__pyx_self, __pyx_v_config, __pyx_v_comm);
2182
 
  goto __pyx_L0;
2183
 
  __pyx_L1_error:;
2184
 
  __pyx_r = NULL;
2185
 
  __pyx_L0:;
 
1965
 
 
1966
  /* function exit code */
2186
1967
  __Pyx_RefNannyFinishContext();
2187
1968
  return __pyx_r;
2188
1969
}
2189
1970
 
2190
 
/* "adios.pyx":211
2191
 
 * ## ==========
2192
 
 * 
2193
 
 * cpdef init(char * config, MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
2194
 
 *     return adios_init(config, comm.ob_mpi)
2195
 
 * 
2196
 
 */
2197
 
 
2198
 
static PyObject *__pyx_pf_5adios_init(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_config, struct PyMPICommObject *__pyx_v_comm) {
 
1971
static PyObject *__pyx_pf_5adios_init(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_config, MPI_Comm __pyx_v_comm) {
2199
1972
  PyObject *__pyx_r = NULL;
2200
1973
  __Pyx_RefNannyDeclarations
2201
1974
  PyObject *__pyx_t_1 = NULL;
2207
1980
  __Pyx_XDECREF(__pyx_r);
2208
1981
  __pyx_t_2.__pyx_n = 1;
2209
1982
  __pyx_t_2.comm = __pyx_v_comm;
2210
 
  __pyx_t_1 = __pyx_f_5adios_init(__pyx_v_config, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1983
  __pyx_t_1 = __pyx_f_5adios_init(__pyx_v_config, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2211
1984
  __Pyx_GOTREF(__pyx_t_1);
2212
1985
  __pyx_r = __pyx_t_1;
2213
1986
  __pyx_t_1 = 0;
2214
1987
  goto __pyx_L0;
2215
1988
 
2216
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2217
 
  goto __pyx_L0;
 
1989
  /* function exit code */
2218
1990
  __pyx_L1_error:;
2219
1991
  __Pyx_XDECREF(__pyx_t_1);
2220
1992
  __Pyx_AddTraceback("adios.init", __pyx_clineno, __pyx_lineno, __pyx_filename);
2225
1997
  return __pyx_r;
2226
1998
}
2227
1999
 
2228
 
/* "adios.pyx":214
2229
 
 *     return adios_init(config, comm.ob_mpi)
 
2000
/* "adios.pyx":259
 
2001
 *     return adios_init(config, comm)
2230
2002
 * 
2231
2003
 * cpdef int64_t open(char * group_name,             # <<<<<<<<<<<<<<
2232
2004
 *                    char * name,
2235
2007
 
2236
2008
static PyObject *__pyx_pw_5adios_3open(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2237
2009
static int64_t __pyx_f_5adios_open(char *__pyx_v_group_name, char *__pyx_v_name, char *__pyx_v_mode, CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_open *__pyx_optional_args) {
2238
 
  struct PyMPICommObject *__pyx_v_comm = __pyx_k_2;
 
2010
  MPI_Comm __pyx_v_comm = __pyx_k__2;
2239
2011
  int64_t __pyx_v_fd;
2240
2012
  CYTHON_UNUSED int __pyx_v_result;
2241
2013
  int64_t __pyx_r;
2247
2019
    }
2248
2020
  }
2249
2021
 
2250
 
  /* "adios.pyx":220
 
2022
  /* "adios.pyx":265
2251
2023
 *     cdef int64_t fd
2252
2024
 *     cdef int result
2253
 
 *     result = adios_open(&fd, group_name, name, mode, comm.ob_mpi)             # <<<<<<<<<<<<<<
 
2025
 *     result = adios_open(&fd, group_name, name, mode, comm)             # <<<<<<<<<<<<<<
2254
2026
 *     return fd
2255
2027
 * 
2256
2028
 */
2257
 
  __pyx_v_result = adios_open((&__pyx_v_fd), __pyx_v_group_name, __pyx_v_name, __pyx_v_mode, __pyx_v_comm->ob_mpi);
 
2029
  __pyx_v_result = adios_open((&__pyx_v_fd), __pyx_v_group_name, __pyx_v_name, __pyx_v_mode, __pyx_v_comm);
2258
2030
 
2259
 
  /* "adios.pyx":221
 
2031
  /* "adios.pyx":266
2260
2032
 *     cdef int result
2261
 
 *     result = adios_open(&fd, group_name, name, mode, comm.ob_mpi)
 
2033
 *     result = adios_open(&fd, group_name, name, mode, comm)
2262
2034
 *     return fd             # <<<<<<<<<<<<<<
2263
2035
 * 
2264
2036
 * cpdef int64_t set_group_size(int64_t fd_p, uint64_t data_size):
2266
2038
  __pyx_r = __pyx_v_fd;
2267
2039
  goto __pyx_L0;
2268
2040
 
2269
 
  __pyx_r = 0;
 
2041
  /* "adios.pyx":259
 
2042
 *     return adios_init(config, comm)
 
2043
 * 
 
2044
 * cpdef int64_t open(char * group_name,             # <<<<<<<<<<<<<<
 
2045
 *                    char * name,
 
2046
 *                    char * mode,
 
2047
 */
 
2048
 
 
2049
  /* function exit code */
2270
2050
  __pyx_L0:;
2271
2051
  __Pyx_RefNannyFinishContext();
2272
2052
  return __pyx_r;
2278
2058
  char *__pyx_v_group_name;
2279
2059
  char *__pyx_v_name;
2280
2060
  char *__pyx_v_mode;
2281
 
  struct PyMPICommObject *__pyx_v_comm = 0;
 
2061
  MPI_Comm __pyx_v_comm;
2282
2062
  int __pyx_lineno = 0;
2283
2063
  const char *__pyx_filename = NULL;
2284
2064
  int __pyx_clineno = 0;
2286
2066
  __Pyx_RefNannyDeclarations
2287
2067
  __Pyx_RefNannySetupContext("open (wrapper)", 0);
2288
2068
  {
2289
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__group_name,&__pyx_n_s__name,&__pyx_n_s__mode,&__pyx_n_s__comm,0};
 
2069
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_group_name,&__pyx_n_s_name,&__pyx_n_s_mode,&__pyx_n_s_comm,0};
2290
2070
    PyObject* values[4] = {0,0,0,0};
2291
 
    values[3] = (PyObject *)__pyx_k_2;
2292
2071
    if (unlikely(__pyx_kwds)) {
2293
2072
      Py_ssize_t kw_args;
2294
2073
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2303
2082
      kw_args = PyDict_Size(__pyx_kwds);
2304
2083
      switch (pos_args) {
2305
2084
        case  0:
2306
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__group_name)) != 0)) kw_args--;
 
2085
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_group_name)) != 0)) kw_args--;
2307
2086
        else goto __pyx_L5_argtuple_error;
2308
2087
        case  1:
2309
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
2088
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
2310
2089
        else {
2311
 
          __Pyx_RaiseArgtupleInvalid("open", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2090
          __Pyx_RaiseArgtupleInvalid("open", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2312
2091
        }
2313
2092
        case  2:
2314
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__mode)) != 0)) kw_args--;
 
2093
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_mode)) != 0)) kw_args--;
2315
2094
        else {
2316
 
          __Pyx_RaiseArgtupleInvalid("open", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2095
          __Pyx_RaiseArgtupleInvalid("open", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2317
2096
        }
2318
2097
        case  3:
2319
2098
        if (kw_args > 0) {
2320
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__comm);
 
2099
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_comm);
2321
2100
          if (value) { values[3] = value; kw_args--; }
2322
2101
        }
2323
2102
      }
2324
2103
      if (unlikely(kw_args > 0)) {
2325
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2104
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2326
2105
      }
2327
2106
    } else {
2328
2107
      switch (PyTuple_GET_SIZE(__pyx_args)) {
2334
2113
        default: goto __pyx_L5_argtuple_error;
2335
2114
      }
2336
2115
    }
2337
 
    __pyx_v_group_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_group_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2338
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2339
 
    __pyx_v_mode = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_mode) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2340
 
    __pyx_v_comm = ((struct PyMPICommObject *)values[3]);
 
2116
    __pyx_v_group_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_group_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2117
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2118
    __pyx_v_mode = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_mode) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2119
    if (values[3]) {
 
2120
      __pyx_v_comm = __Pyx_PyInt_As_MPI_Comm(values[3]); if (unlikely((__pyx_v_comm == (MPI_Comm)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2121
    } else {
 
2122
      __pyx_v_comm = __pyx_k__2;
 
2123
    }
2341
2124
  }
2342
2125
  goto __pyx_L4_argument_unpacking_done;
2343
2126
  __pyx_L5_argtuple_error:;
2344
 
  __Pyx_RaiseArgtupleInvalid("open", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2127
  __Pyx_RaiseArgtupleInvalid("open", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2345
2128
  __pyx_L3_error:;
2346
2129
  __Pyx_AddTraceback("adios.open", __pyx_clineno, __pyx_lineno, __pyx_filename);
2347
2130
  __Pyx_RefNannyFinishContext();
2348
2131
  return NULL;
2349
2132
  __pyx_L4_argument_unpacking_done:;
2350
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_comm), __pyx_ptype_6mpi4py_3MPI_Comm, 1, "comm", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2351
2133
  __pyx_r = __pyx_pf_5adios_2open(__pyx_self, __pyx_v_group_name, __pyx_v_name, __pyx_v_mode, __pyx_v_comm);
2352
 
  goto __pyx_L0;
2353
 
  __pyx_L1_error:;
2354
 
  __pyx_r = NULL;
2355
 
  __pyx_L0:;
 
2134
 
 
2135
  /* function exit code */
2356
2136
  __Pyx_RefNannyFinishContext();
2357
2137
  return __pyx_r;
2358
2138
}
2359
2139
 
2360
 
/* "adios.pyx":214
2361
 
 *     return adios_init(config, comm.ob_mpi)
2362
 
 * 
2363
 
 * cpdef int64_t open(char * group_name,             # <<<<<<<<<<<<<<
2364
 
 *                    char * name,
2365
 
 *                    char * mode,
2366
 
 */
2367
 
 
2368
 
static PyObject *__pyx_pf_5adios_2open(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group_name, char *__pyx_v_name, char *__pyx_v_mode, struct PyMPICommObject *__pyx_v_comm) {
 
2140
static PyObject *__pyx_pf_5adios_2open(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group_name, char *__pyx_v_name, char *__pyx_v_mode, MPI_Comm __pyx_v_comm) {
2369
2141
  PyObject *__pyx_r = NULL;
2370
2142
  __Pyx_RefNannyDeclarations
2371
2143
  int64_t __pyx_t_1;
2379
2151
  __pyx_t_2.__pyx_n = 1;
2380
2152
  __pyx_t_2.comm = __pyx_v_comm;
2381
2153
  __pyx_t_1 = __pyx_f_5adios_open(__pyx_v_group_name, __pyx_v_name, __pyx_v_mode, 0, &__pyx_t_2); 
2382
 
  __pyx_t_3 = __Pyx_PyInt_to_py_int64_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2154
  __pyx_t_3 = __Pyx_PyInt_From_int64_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2383
2155
  __Pyx_GOTREF(__pyx_t_3);
2384
2156
  __pyx_r = __pyx_t_3;
2385
2157
  __pyx_t_3 = 0;
2386
2158
  goto __pyx_L0;
2387
2159
 
2388
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2389
 
  goto __pyx_L0;
 
2160
  /* function exit code */
2390
2161
  __pyx_L1_error:;
2391
2162
  __Pyx_XDECREF(__pyx_t_3);
2392
2163
  __Pyx_AddTraceback("adios.open", __pyx_clineno, __pyx_lineno, __pyx_filename);
2397
2168
  return __pyx_r;
2398
2169
}
2399
2170
 
2400
 
/* "adios.pyx":223
 
2171
/* "adios.pyx":268
2401
2172
 *     return fd
2402
2173
 * 
2403
2174
 * cpdef int64_t set_group_size(int64_t fd_p, uint64_t data_size):             # <<<<<<<<<<<<<<
2413
2184
  __Pyx_RefNannyDeclarations
2414
2185
  __Pyx_RefNannySetupContext("set_group_size", 0);
2415
2186
 
2416
 
  /* "adios.pyx":226
 
2187
  /* "adios.pyx":271
2417
2188
 *     cdef uint64_t total_size
2418
2189
 *     cdef int result
2419
2190
 *     result = adios_group_size(fd_p, data_size, &total_size)             # <<<<<<<<<<<<<<
2422
2193
 */
2423
2194
  __pyx_v_result = adios_group_size(__pyx_v_fd_p, __pyx_v_data_size, (&__pyx_v_total_size));
2424
2195
 
2425
 
  /* "adios.pyx":227
 
2196
  /* "adios.pyx":272
2426
2197
 *     cdef int result
2427
2198
 *     result = adios_group_size(fd_p, data_size, &total_size)
2428
2199
 *     return total_size             # <<<<<<<<<<<<<<
2432
2203
  __pyx_r = __pyx_v_total_size;
2433
2204
  goto __pyx_L0;
2434
2205
 
2435
 
  __pyx_r = 0;
 
2206
  /* "adios.pyx":268
 
2207
 *     return fd
 
2208
 * 
 
2209
 * cpdef int64_t set_group_size(int64_t fd_p, uint64_t data_size):             # <<<<<<<<<<<<<<
 
2210
 *     cdef uint64_t total_size
 
2211
 *     cdef int result
 
2212
 */
 
2213
 
 
2214
  /* function exit code */
2436
2215
  __pyx_L0:;
2437
2216
  __Pyx_RefNannyFinishContext();
2438
2217
  return __pyx_r;
2450
2229
  __Pyx_RefNannyDeclarations
2451
2230
  __Pyx_RefNannySetupContext("set_group_size (wrapper)", 0);
2452
2231
  {
2453
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fd_p,&__pyx_n_s__data_size,0};
 
2232
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fd_p,&__pyx_n_s_data_size,0};
2454
2233
    PyObject* values[2] = {0,0};
2455
2234
    if (unlikely(__pyx_kwds)) {
2456
2235
      Py_ssize_t kw_args;
2464
2243
      kw_args = PyDict_Size(__pyx_kwds);
2465
2244
      switch (pos_args) {
2466
2245
        case  0:
2467
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fd_p)) != 0)) kw_args--;
 
2246
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fd_p)) != 0)) kw_args--;
2468
2247
        else goto __pyx_L5_argtuple_error;
2469
2248
        case  1:
2470
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__data_size)) != 0)) kw_args--;
 
2249
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_data_size)) != 0)) kw_args--;
2471
2250
        else {
2472
 
          __Pyx_RaiseArgtupleInvalid("set_group_size", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2251
          __Pyx_RaiseArgtupleInvalid("set_group_size", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2473
2252
        }
2474
2253
      }
2475
2254
      if (unlikely(kw_args > 0)) {
2476
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_group_size") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2255
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_group_size") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2477
2256
      }
2478
2257
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
2479
2258
      goto __pyx_L5_argtuple_error;
2481
2260
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2482
2261
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2483
2262
    }
2484
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2485
 
    __pyx_v_data_size = __Pyx_PyInt_from_py_uint64_t(values[1]); if (unlikely((__pyx_v_data_size == (uint64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2263
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2264
    __pyx_v_data_size = __Pyx_PyInt_As_uint64_t(values[1]); if (unlikely((__pyx_v_data_size == (uint64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2486
2265
  }
2487
2266
  goto __pyx_L4_argument_unpacking_done;
2488
2267
  __pyx_L5_argtuple_error:;
2489
 
  __Pyx_RaiseArgtupleInvalid("set_group_size", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2268
  __Pyx_RaiseArgtupleInvalid("set_group_size", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2490
2269
  __pyx_L3_error:;
2491
2270
  __Pyx_AddTraceback("adios.set_group_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
2492
2271
  __Pyx_RefNannyFinishContext();
2493
2272
  return NULL;
2494
2273
  __pyx_L4_argument_unpacking_done:;
2495
2274
  __pyx_r = __pyx_pf_5adios_4set_group_size(__pyx_self, __pyx_v_fd_p, __pyx_v_data_size);
 
2275
 
 
2276
  /* function exit code */
2496
2277
  __Pyx_RefNannyFinishContext();
2497
2278
  return __pyx_r;
2498
2279
}
2499
2280
 
2500
 
/* "adios.pyx":223
2501
 
 *     return fd
2502
 
 * 
2503
 
 * cpdef int64_t set_group_size(int64_t fd_p, uint64_t data_size):             # <<<<<<<<<<<<<<
2504
 
 *     cdef uint64_t total_size
2505
 
 *     cdef int result
2506
 
 */
2507
 
 
2508
2281
static PyObject *__pyx_pf_5adios_4set_group_size(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, uint64_t __pyx_v_data_size) {
2509
2282
  PyObject *__pyx_r = NULL;
2510
2283
  __Pyx_RefNannyDeclarations
2514
2287
  int __pyx_clineno = 0;
2515
2288
  __Pyx_RefNannySetupContext("set_group_size", 0);
2516
2289
  __Pyx_XDECREF(__pyx_r);
2517
 
  __pyx_t_1 = __Pyx_PyInt_to_py_int64_t(__pyx_f_5adios_set_group_size(__pyx_v_fd_p, __pyx_v_data_size, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2290
  __pyx_t_1 = __Pyx_PyInt_From_int64_t(__pyx_f_5adios_set_group_size(__pyx_v_fd_p, __pyx_v_data_size, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2518
2291
  __Pyx_GOTREF(__pyx_t_1);
2519
2292
  __pyx_r = __pyx_t_1;
2520
2293
  __pyx_t_1 = 0;
2521
2294
  goto __pyx_L0;
2522
2295
 
2523
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2524
 
  goto __pyx_L0;
 
2296
  /* function exit code */
2525
2297
  __pyx_L1_error:;
2526
2298
  __Pyx_XDECREF(__pyx_t_1);
2527
2299
  __Pyx_AddTraceback("adios.set_group_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
2532
2304
  return __pyx_r;
2533
2305
}
2534
2306
 
2535
 
/* "adios.pyx":229
 
2307
/* "adios.pyx":274
2536
2308
 *     return total_size
2537
2309
 * 
2538
2310
 * cpdef int write (int64_t fd_p, char * name, np.ndarray val):             # <<<<<<<<<<<<<<
2555
2327
  int __pyx_clineno = 0;
2556
2328
  __Pyx_RefNannySetupContext("write", 0);
2557
2329
 
2558
 
  /* "adios.pyx":231
 
2330
  /* "adios.pyx":276
2559
2331
 * cpdef int write (int64_t fd_p, char * name, np.ndarray val):
2560
2332
 *     cdef np.ndarray val_
2561
2333
 *     if val.flags.contiguous:             # <<<<<<<<<<<<<<
2562
2334
 *         val_ = val
2563
2335
 *     else:
2564
2336
 */
2565
 
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s__flags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2337
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_flags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2566
2338
  __Pyx_GOTREF(__pyx_t_1);
2567
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__contiguous); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2339
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_contiguous); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2568
2340
  __Pyx_GOTREF(__pyx_t_2);
2569
2341
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2570
 
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2342
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2571
2343
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2572
2344
  if (__pyx_t_3) {
2573
2345
 
2574
 
    /* "adios.pyx":232
 
2346
    /* "adios.pyx":277
2575
2347
 *     cdef np.ndarray val_
2576
2348
 *     if val.flags.contiguous:
2577
2349
 *         val_ = val             # <<<<<<<<<<<<<<
2584
2356
  }
2585
2357
  /*else*/ {
2586
2358
 
2587
 
    /* "adios.pyx":234
 
2359
    /* "adios.pyx":279
2588
2360
 *         val_ = val
2589
2361
 *     else:
2590
2362
 *         val_ = np.array(val, copy=True)             # <<<<<<<<<<<<<<
2591
2363
 * 
2592
2364
 *     return adios_write (fd_p, name, <void *> val_.data)
2593
2365
 */
2594
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2366
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2595
2367
    __Pyx_GOTREF(__pyx_t_2);
2596
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__array); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2368
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2597
2369
    __Pyx_GOTREF(__pyx_t_1);
2598
2370
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2599
 
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2371
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2600
2372
    __Pyx_GOTREF(__pyx_t_2);
2601
2373
    __Pyx_INCREF(((PyObject *)__pyx_v_val));
2602
2374
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_val));
2603
2375
    __Pyx_GIVEREF(((PyObject *)__pyx_v_val));
2604
 
    __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2605
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
2606
 
    __pyx_t_5 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2607
 
    __Pyx_GOTREF(__pyx_t_5);
2608
 
    if (PyDict_SetItem(__pyx_t_4, ((PyObject *)__pyx_n_s__copy), __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2609
 
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2610
 
    __pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2376
    __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2377
    __Pyx_GOTREF(__pyx_t_4);
 
2378
    if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_copy, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2379
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2611
2380
    __Pyx_GOTREF(__pyx_t_5);
2612
2381
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2613
 
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
2614
 
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
2615
 
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2382
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
2383
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
2384
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2616
2385
    __pyx_v_val_ = ((PyArrayObject *)__pyx_t_5);
2617
2386
    __pyx_t_5 = 0;
2618
2387
  }
2619
2388
  __pyx_L3:;
2620
2389
 
2621
 
  /* "adios.pyx":236
 
2390
  /* "adios.pyx":281
2622
2391
 *         val_ = np.array(val, copy=True)
2623
2392
 * 
2624
2393
 *     return adios_write (fd_p, name, <void *> val_.data)             # <<<<<<<<<<<<<<
2628
2397
  __pyx_r = adios_write(__pyx_v_fd_p, __pyx_v_name, ((void *)__pyx_v_val_->data));
2629
2398
  goto __pyx_L0;
2630
2399
 
2631
 
  __pyx_r = 0;
2632
 
  goto __pyx_L0;
 
2400
  /* "adios.pyx":274
 
2401
 *     return total_size
 
2402
 * 
 
2403
 * cpdef int write (int64_t fd_p, char * name, np.ndarray val):             # <<<<<<<<<<<<<<
 
2404
 *     cdef np.ndarray val_
 
2405
 *     if val.flags.contiguous:
 
2406
 */
 
2407
 
 
2408
  /* function exit code */
2633
2409
  __pyx_L1_error:;
2634
2410
  __Pyx_XDECREF(__pyx_t_1);
2635
2411
  __Pyx_XDECREF(__pyx_t_2);
2636
2412
  __Pyx_XDECREF(__pyx_t_4);
2637
2413
  __Pyx_XDECREF(__pyx_t_5);
2638
 
  __Pyx_WriteUnraisable("adios.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
2414
  __Pyx_WriteUnraisable("adios.write", __pyx_clineno, __pyx_lineno, __pyx_filename, 0);
2639
2415
  __pyx_r = 0;
2640
2416
  __pyx_L0:;
2641
2417
  __Pyx_XDECREF((PyObject *)__pyx_v_val_);
2656
2432
  __Pyx_RefNannyDeclarations
2657
2433
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
2658
2434
  {
2659
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fd_p,&__pyx_n_s__name,&__pyx_n_s__val,0};
 
2435
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fd_p,&__pyx_n_s_name,&__pyx_n_s_val,0};
2660
2436
    PyObject* values[3] = {0,0,0};
2661
2437
    if (unlikely(__pyx_kwds)) {
2662
2438
      Py_ssize_t kw_args;
2671
2447
      kw_args = PyDict_Size(__pyx_kwds);
2672
2448
      switch (pos_args) {
2673
2449
        case  0:
2674
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fd_p)) != 0)) kw_args--;
 
2450
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fd_p)) != 0)) kw_args--;
2675
2451
        else goto __pyx_L5_argtuple_error;
2676
2452
        case  1:
2677
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
2453
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
2678
2454
        else {
2679
 
          __Pyx_RaiseArgtupleInvalid("write", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2455
          __Pyx_RaiseArgtupleInvalid("write", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2680
2456
        }
2681
2457
        case  2:
2682
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__val)) != 0)) kw_args--;
 
2458
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_val)) != 0)) kw_args--;
2683
2459
        else {
2684
 
          __Pyx_RaiseArgtupleInvalid("write", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2460
          __Pyx_RaiseArgtupleInvalid("write", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2685
2461
        }
2686
2462
      }
2687
2463
      if (unlikely(kw_args > 0)) {
2688
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2464
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2689
2465
      }
2690
2466
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
2691
2467
      goto __pyx_L5_argtuple_error;
2694
2470
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2695
2471
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2696
2472
    }
2697
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2698
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2473
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2474
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2699
2475
    __pyx_v_val = ((PyArrayObject *)values[2]);
2700
2476
  }
2701
2477
  goto __pyx_L4_argument_unpacking_done;
2702
2478
  __pyx_L5_argtuple_error:;
2703
 
  __Pyx_RaiseArgtupleInvalid("write", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2479
  __Pyx_RaiseArgtupleInvalid("write", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2704
2480
  __pyx_L3_error:;
2705
2481
  __Pyx_AddTraceback("adios.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
2706
2482
  __Pyx_RefNannyFinishContext();
2707
2483
  return NULL;
2708
2484
  __pyx_L4_argument_unpacking_done:;
2709
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_val), __pyx_ptype_5numpy_ndarray, 1, "val", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2485
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_val), __pyx_ptype_5numpy_ndarray, 1, "val", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2710
2486
  __pyx_r = __pyx_pf_5adios_6write(__pyx_self, __pyx_v_fd_p, __pyx_v_name, __pyx_v_val);
 
2487
 
 
2488
  /* function exit code */
2711
2489
  goto __pyx_L0;
2712
2490
  __pyx_L1_error:;
2713
2491
  __pyx_r = NULL;
2716
2494
  return __pyx_r;
2717
2495
}
2718
2496
 
2719
 
/* "adios.pyx":229
2720
 
 *     return total_size
2721
 
 * 
2722
 
 * cpdef int write (int64_t fd_p, char * name, np.ndarray val):             # <<<<<<<<<<<<<<
2723
 
 *     cdef np.ndarray val_
2724
 
 *     if val.flags.contiguous:
2725
 
 */
2726
 
 
2727
2497
static PyObject *__pyx_pf_5adios_6write(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, PyArrayObject *__pyx_v_val) {
2728
2498
  PyObject *__pyx_r = NULL;
2729
2499
  __Pyx_RefNannyDeclarations
2733
2503
  int __pyx_clineno = 0;
2734
2504
  __Pyx_RefNannySetupContext("write", 0);
2735
2505
  __Pyx_XDECREF(__pyx_r);
2736
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_write(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2506
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_write(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2737
2507
  __Pyx_GOTREF(__pyx_t_1);
2738
2508
  __pyx_r = __pyx_t_1;
2739
2509
  __pyx_t_1 = 0;
2740
2510
  goto __pyx_L0;
2741
2511
 
2742
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2743
 
  goto __pyx_L0;
 
2512
  /* function exit code */
2744
2513
  __pyx_L1_error:;
2745
2514
  __Pyx_XDECREF(__pyx_t_1);
2746
2515
  __Pyx_AddTraceback("adios.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
2751
2520
  return __pyx_r;
2752
2521
}
2753
2522
 
2754
 
/* "adios.pyx":238
 
2523
/* "adios.pyx":283
2755
2524
 *     return adios_write (fd_p, name, <void *> val_.data)
2756
2525
 * 
2757
2526
 * cpdef int write_int (int64_t fd_p, char * name, int val):             # <<<<<<<<<<<<<<
2765
2534
  __Pyx_RefNannyDeclarations
2766
2535
  __Pyx_RefNannySetupContext("write_int", 0);
2767
2536
 
2768
 
  /* "adios.pyx":239
 
2537
  /* "adios.pyx":284
2769
2538
 * 
2770
2539
 * cpdef int write_int (int64_t fd_p, char * name, int val):
2771
2540
 *     return adios_write (fd_p, name, &val)             # <<<<<<<<<<<<<<
2775
2544
  __pyx_r = adios_write(__pyx_v_fd_p, __pyx_v_name, (&__pyx_v_val));
2776
2545
  goto __pyx_L0;
2777
2546
 
2778
 
  __pyx_r = 0;
 
2547
  /* "adios.pyx":283
 
2548
 *     return adios_write (fd_p, name, <void *> val_.data)
 
2549
 * 
 
2550
 * cpdef int write_int (int64_t fd_p, char * name, int val):             # <<<<<<<<<<<<<<
 
2551
 *     return adios_write (fd_p, name, &val)
 
2552
 * 
 
2553
 */
 
2554
 
 
2555
  /* function exit code */
2779
2556
  __pyx_L0:;
2780
2557
  __Pyx_RefNannyFinishContext();
2781
2558
  return __pyx_r;
2794
2571
  __Pyx_RefNannyDeclarations
2795
2572
  __Pyx_RefNannySetupContext("write_int (wrapper)", 0);
2796
2573
  {
2797
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fd_p,&__pyx_n_s__name,&__pyx_n_s__val,0};
 
2574
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fd_p,&__pyx_n_s_name,&__pyx_n_s_val,0};
2798
2575
    PyObject* values[3] = {0,0,0};
2799
2576
    if (unlikely(__pyx_kwds)) {
2800
2577
      Py_ssize_t kw_args;
2809
2586
      kw_args = PyDict_Size(__pyx_kwds);
2810
2587
      switch (pos_args) {
2811
2588
        case  0:
2812
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fd_p)) != 0)) kw_args--;
 
2589
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fd_p)) != 0)) kw_args--;
2813
2590
        else goto __pyx_L5_argtuple_error;
2814
2591
        case  1:
2815
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
2592
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
2816
2593
        else {
2817
 
          __Pyx_RaiseArgtupleInvalid("write_int", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2594
          __Pyx_RaiseArgtupleInvalid("write_int", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2818
2595
        }
2819
2596
        case  2:
2820
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__val)) != 0)) kw_args--;
 
2597
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_val)) != 0)) kw_args--;
2821
2598
        else {
2822
 
          __Pyx_RaiseArgtupleInvalid("write_int", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2599
          __Pyx_RaiseArgtupleInvalid("write_int", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2823
2600
        }
2824
2601
      }
2825
2602
      if (unlikely(kw_args > 0)) {
2826
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_int") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2603
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_int") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2827
2604
      }
2828
2605
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
2829
2606
      goto __pyx_L5_argtuple_error;
2832
2609
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2833
2610
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2834
2611
    }
2835
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2836
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2837
 
    __pyx_v_val = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_val == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2612
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2613
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2614
    __pyx_v_val = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_val == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2838
2615
  }
2839
2616
  goto __pyx_L4_argument_unpacking_done;
2840
2617
  __pyx_L5_argtuple_error:;
2841
 
  __Pyx_RaiseArgtupleInvalid("write_int", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2618
  __Pyx_RaiseArgtupleInvalid("write_int", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2842
2619
  __pyx_L3_error:;
2843
2620
  __Pyx_AddTraceback("adios.write_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
2844
2621
  __Pyx_RefNannyFinishContext();
2845
2622
  return NULL;
2846
2623
  __pyx_L4_argument_unpacking_done:;
2847
2624
  __pyx_r = __pyx_pf_5adios_8write_int(__pyx_self, __pyx_v_fd_p, __pyx_v_name, __pyx_v_val);
 
2625
 
 
2626
  /* function exit code */
2848
2627
  __Pyx_RefNannyFinishContext();
2849
2628
  return __pyx_r;
2850
2629
}
2851
2630
 
2852
 
/* "adios.pyx":238
2853
 
 *     return adios_write (fd_p, name, <void *> val_.data)
2854
 
 * 
2855
 
 * cpdef int write_int (int64_t fd_p, char * name, int val):             # <<<<<<<<<<<<<<
2856
 
 *     return adios_write (fd_p, name, &val)
2857
 
 * 
2858
 
 */
2859
 
 
2860
2631
static PyObject *__pyx_pf_5adios_8write_int(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, int __pyx_v_val) {
2861
2632
  PyObject *__pyx_r = NULL;
2862
2633
  __Pyx_RefNannyDeclarations
2866
2637
  int __pyx_clineno = 0;
2867
2638
  __Pyx_RefNannySetupContext("write_int", 0);
2868
2639
  __Pyx_XDECREF(__pyx_r);
2869
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_write_int(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2640
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_write_int(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2870
2641
  __Pyx_GOTREF(__pyx_t_1);
2871
2642
  __pyx_r = __pyx_t_1;
2872
2643
  __pyx_t_1 = 0;
2873
2644
  goto __pyx_L0;
2874
2645
 
2875
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2876
 
  goto __pyx_L0;
 
2646
  /* function exit code */
2877
2647
  __pyx_L1_error:;
2878
2648
  __Pyx_XDECREF(__pyx_t_1);
2879
2649
  __Pyx_AddTraceback("adios.write_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
2884
2654
  return __pyx_r;
2885
2655
}
2886
2656
 
2887
 
/* "adios.pyx":241
 
2657
/* "adios.pyx":286
2888
2658
 *     return adios_write (fd_p, name, &val)
2889
2659
 * 
2890
2660
 * cpdef int write_long (int64_t fd_p, char * name, long val):             # <<<<<<<<<<<<<<
2898
2668
  __Pyx_RefNannyDeclarations
2899
2669
  __Pyx_RefNannySetupContext("write_long", 0);
2900
2670
 
2901
 
  /* "adios.pyx":242
 
2671
  /* "adios.pyx":287
2902
2672
 * 
2903
2673
 * cpdef int write_long (int64_t fd_p, char * name, long val):
2904
2674
 *     return adios_write (fd_p, name, &val)             # <<<<<<<<<<<<<<
2908
2678
  __pyx_r = adios_write(__pyx_v_fd_p, __pyx_v_name, (&__pyx_v_val));
2909
2679
  goto __pyx_L0;
2910
2680
 
2911
 
  __pyx_r = 0;
 
2681
  /* "adios.pyx":286
 
2682
 *     return adios_write (fd_p, name, &val)
 
2683
 * 
 
2684
 * cpdef int write_long (int64_t fd_p, char * name, long val):             # <<<<<<<<<<<<<<
 
2685
 *     return adios_write (fd_p, name, &val)
 
2686
 * 
 
2687
 */
 
2688
 
 
2689
  /* function exit code */
2912
2690
  __pyx_L0:;
2913
2691
  __Pyx_RefNannyFinishContext();
2914
2692
  return __pyx_r;
2927
2705
  __Pyx_RefNannyDeclarations
2928
2706
  __Pyx_RefNannySetupContext("write_long (wrapper)", 0);
2929
2707
  {
2930
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fd_p,&__pyx_n_s__name,&__pyx_n_s__val,0};
 
2708
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fd_p,&__pyx_n_s_name,&__pyx_n_s_val,0};
2931
2709
    PyObject* values[3] = {0,0,0};
2932
2710
    if (unlikely(__pyx_kwds)) {
2933
2711
      Py_ssize_t kw_args;
2942
2720
      kw_args = PyDict_Size(__pyx_kwds);
2943
2721
      switch (pos_args) {
2944
2722
        case  0:
2945
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fd_p)) != 0)) kw_args--;
 
2723
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fd_p)) != 0)) kw_args--;
2946
2724
        else goto __pyx_L5_argtuple_error;
2947
2725
        case  1:
2948
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
2726
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
2949
2727
        else {
2950
 
          __Pyx_RaiseArgtupleInvalid("write_long", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2728
          __Pyx_RaiseArgtupleInvalid("write_long", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2951
2729
        }
2952
2730
        case  2:
2953
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__val)) != 0)) kw_args--;
 
2731
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_val)) != 0)) kw_args--;
2954
2732
        else {
2955
 
          __Pyx_RaiseArgtupleInvalid("write_long", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2733
          __Pyx_RaiseArgtupleInvalid("write_long", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2956
2734
        }
2957
2735
      }
2958
2736
      if (unlikely(kw_args > 0)) {
2959
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_long") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2737
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_long") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2960
2738
      }
2961
2739
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
2962
2740
      goto __pyx_L5_argtuple_error;
2965
2743
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2966
2744
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2967
2745
    }
2968
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2969
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2970
 
    __pyx_v_val = __Pyx_PyInt_AsLong(values[2]); if (unlikely((__pyx_v_val == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2746
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2747
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2748
    __pyx_v_val = __Pyx_PyInt_As_long(values[2]); if (unlikely((__pyx_v_val == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2971
2749
  }
2972
2750
  goto __pyx_L4_argument_unpacking_done;
2973
2751
  __pyx_L5_argtuple_error:;
2974
 
  __Pyx_RaiseArgtupleInvalid("write_long", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2752
  __Pyx_RaiseArgtupleInvalid("write_long", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2975
2753
  __pyx_L3_error:;
2976
2754
  __Pyx_AddTraceback("adios.write_long", __pyx_clineno, __pyx_lineno, __pyx_filename);
2977
2755
  __Pyx_RefNannyFinishContext();
2978
2756
  return NULL;
2979
2757
  __pyx_L4_argument_unpacking_done:;
2980
2758
  __pyx_r = __pyx_pf_5adios_10write_long(__pyx_self, __pyx_v_fd_p, __pyx_v_name, __pyx_v_val);
 
2759
 
 
2760
  /* function exit code */
2981
2761
  __Pyx_RefNannyFinishContext();
2982
2762
  return __pyx_r;
2983
2763
}
2984
2764
 
2985
 
/* "adios.pyx":241
2986
 
 *     return adios_write (fd_p, name, &val)
2987
 
 * 
2988
 
 * cpdef int write_long (int64_t fd_p, char * name, long val):             # <<<<<<<<<<<<<<
2989
 
 *     return adios_write (fd_p, name, &val)
2990
 
 * 
2991
 
 */
2992
 
 
2993
2765
static PyObject *__pyx_pf_5adios_10write_long(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, long __pyx_v_val) {
2994
2766
  PyObject *__pyx_r = NULL;
2995
2767
  __Pyx_RefNannyDeclarations
2999
2771
  int __pyx_clineno = 0;
3000
2772
  __Pyx_RefNannySetupContext("write_long", 0);
3001
2773
  __Pyx_XDECREF(__pyx_r);
3002
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_write_long(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2774
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_write_long(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3003
2775
  __Pyx_GOTREF(__pyx_t_1);
3004
2776
  __pyx_r = __pyx_t_1;
3005
2777
  __pyx_t_1 = 0;
3006
2778
  goto __pyx_L0;
3007
2779
 
3008
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3009
 
  goto __pyx_L0;
 
2780
  /* function exit code */
3010
2781
  __pyx_L1_error:;
3011
2782
  __Pyx_XDECREF(__pyx_t_1);
3012
2783
  __Pyx_AddTraceback("adios.write_long", __pyx_clineno, __pyx_lineno, __pyx_filename);
3017
2788
  return __pyx_r;
3018
2789
}
3019
2790
 
3020
 
/* "adios.pyx":244
 
2791
/* "adios.pyx":289
3021
2792
 *     return adios_write (fd_p, name, &val)
3022
2793
 * 
3023
2794
 * cpdef int write_float (int64_t fd_p, char * name, float val):             # <<<<<<<<<<<<<<
3031
2802
  __Pyx_RefNannyDeclarations
3032
2803
  __Pyx_RefNannySetupContext("write_float", 0);
3033
2804
 
3034
 
  /* "adios.pyx":245
 
2805
  /* "adios.pyx":290
3035
2806
 * 
3036
2807
 * cpdef int write_float (int64_t fd_p, char * name, float val):
3037
2808
 *     return adios_write (fd_p, name, &val)             # <<<<<<<<<<<<<<
3041
2812
  __pyx_r = adios_write(__pyx_v_fd_p, __pyx_v_name, (&__pyx_v_val));
3042
2813
  goto __pyx_L0;
3043
2814
 
3044
 
  __pyx_r = 0;
 
2815
  /* "adios.pyx":289
 
2816
 *     return adios_write (fd_p, name, &val)
 
2817
 * 
 
2818
 * cpdef int write_float (int64_t fd_p, char * name, float val):             # <<<<<<<<<<<<<<
 
2819
 *     return adios_write (fd_p, name, &val)
 
2820
 * 
 
2821
 */
 
2822
 
 
2823
  /* function exit code */
3045
2824
  __pyx_L0:;
3046
2825
  __Pyx_RefNannyFinishContext();
3047
2826
  return __pyx_r;
3060
2839
  __Pyx_RefNannyDeclarations
3061
2840
  __Pyx_RefNannySetupContext("write_float (wrapper)", 0);
3062
2841
  {
3063
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fd_p,&__pyx_n_s__name,&__pyx_n_s__val,0};
 
2842
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fd_p,&__pyx_n_s_name,&__pyx_n_s_val,0};
3064
2843
    PyObject* values[3] = {0,0,0};
3065
2844
    if (unlikely(__pyx_kwds)) {
3066
2845
      Py_ssize_t kw_args;
3075
2854
      kw_args = PyDict_Size(__pyx_kwds);
3076
2855
      switch (pos_args) {
3077
2856
        case  0:
3078
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fd_p)) != 0)) kw_args--;
 
2857
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fd_p)) != 0)) kw_args--;
3079
2858
        else goto __pyx_L5_argtuple_error;
3080
2859
        case  1:
3081
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
2860
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
3082
2861
        else {
3083
 
          __Pyx_RaiseArgtupleInvalid("write_float", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2862
          __Pyx_RaiseArgtupleInvalid("write_float", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3084
2863
        }
3085
2864
        case  2:
3086
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__val)) != 0)) kw_args--;
 
2865
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_val)) != 0)) kw_args--;
3087
2866
        else {
3088
 
          __Pyx_RaiseArgtupleInvalid("write_float", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2867
          __Pyx_RaiseArgtupleInvalid("write_float", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3089
2868
        }
3090
2869
      }
3091
2870
      if (unlikely(kw_args > 0)) {
3092
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_float") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2871
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_float") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3093
2872
      }
3094
2873
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3095
2874
      goto __pyx_L5_argtuple_error;
3098
2877
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3099
2878
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3100
2879
    }
3101
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3102
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3103
 
    __pyx_v_val = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_val == (float)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2880
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2881
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2882
    __pyx_v_val = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_val == (float)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3104
2883
  }
3105
2884
  goto __pyx_L4_argument_unpacking_done;
3106
2885
  __pyx_L5_argtuple_error:;
3107
 
  __Pyx_RaiseArgtupleInvalid("write_float", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
2886
  __Pyx_RaiseArgtupleInvalid("write_float", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3108
2887
  __pyx_L3_error:;
3109
2888
  __Pyx_AddTraceback("adios.write_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
3110
2889
  __Pyx_RefNannyFinishContext();
3111
2890
  return NULL;
3112
2891
  __pyx_L4_argument_unpacking_done:;
3113
2892
  __pyx_r = __pyx_pf_5adios_12write_float(__pyx_self, __pyx_v_fd_p, __pyx_v_name, __pyx_v_val);
 
2893
 
 
2894
  /* function exit code */
3114
2895
  __Pyx_RefNannyFinishContext();
3115
2896
  return __pyx_r;
3116
2897
}
3117
2898
 
3118
 
/* "adios.pyx":244
3119
 
 *     return adios_write (fd_p, name, &val)
3120
 
 * 
3121
 
 * cpdef int write_float (int64_t fd_p, char * name, float val):             # <<<<<<<<<<<<<<
3122
 
 *     return adios_write (fd_p, name, &val)
3123
 
 * 
3124
 
 */
3125
 
 
3126
2899
static PyObject *__pyx_pf_5adios_12write_float(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, float __pyx_v_val) {
3127
2900
  PyObject *__pyx_r = NULL;
3128
2901
  __Pyx_RefNannyDeclarations
3132
2905
  int __pyx_clineno = 0;
3133
2906
  __Pyx_RefNannySetupContext("write_float", 0);
3134
2907
  __Pyx_XDECREF(__pyx_r);
3135
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_write_float(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2908
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_write_float(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3136
2909
  __Pyx_GOTREF(__pyx_t_1);
3137
2910
  __pyx_r = __pyx_t_1;
3138
2911
  __pyx_t_1 = 0;
3139
2912
  goto __pyx_L0;
3140
2913
 
3141
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3142
 
  goto __pyx_L0;
 
2914
  /* function exit code */
3143
2915
  __pyx_L1_error:;
3144
2916
  __Pyx_XDECREF(__pyx_t_1);
3145
2917
  __Pyx_AddTraceback("adios.write_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
3150
2922
  return __pyx_r;
3151
2923
}
3152
2924
 
3153
 
/* "adios.pyx":247
 
2925
/* "adios.pyx":292
3154
2926
 *     return adios_write (fd_p, name, &val)
3155
2927
 * 
3156
2928
 * cpdef int read(int64_t fd_p, char * name, np.ndarray val):             # <<<<<<<<<<<<<<
3172
2944
  int __pyx_clineno = 0;
3173
2945
  __Pyx_RefNannySetupContext("read", 0);
3174
2946
 
3175
 
  /* "adios.pyx":248
 
2947
  /* "adios.pyx":293
3176
2948
 * 
3177
2949
 * cpdef int read(int64_t fd_p, char * name, np.ndarray val):
3178
2950
 *     assert val.flags.contiguous, 'Only contiguous arrays are supported.'             # <<<<<<<<<<<<<<
3180
2952
 *     return adios_read(fd_p, name, <void *> val.data, val.itemsize * val.size)
3181
2953
 */
3182
2954
  #ifndef CYTHON_WITHOUT_ASSERTIONS
3183
 
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s__flags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3184
 
  __Pyx_GOTREF(__pyx_t_1);
3185
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__contiguous); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3186
 
  __Pyx_GOTREF(__pyx_t_2);
3187
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3188
 
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3189
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3190
 
  if (unlikely(!__pyx_t_3)) {
3191
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_3));
3192
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2955
  if (unlikely(!Py_OptimizeFlag)) {
 
2956
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_flags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2957
    __Pyx_GOTREF(__pyx_t_1);
 
2958
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_contiguous); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2959
    __Pyx_GOTREF(__pyx_t_2);
 
2960
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2961
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2962
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
2963
    if (unlikely(!__pyx_t_3)) {
 
2964
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Only_contiguous_arrays_are_suppo);
 
2965
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2966
    }
3193
2967
  }
3194
2968
  #endif
3195
2969
 
3196
 
  /* "adios.pyx":249
 
2970
  /* "adios.pyx":294
3197
2971
 * cpdef int read(int64_t fd_p, char * name, np.ndarray val):
3198
2972
 *     assert val.flags.contiguous, 'Only contiguous arrays are supported.'
3199
2973
 *     print "Reading ... ", val.itemsize * val.size, "(bytes)"             # <<<<<<<<<<<<<<
3200
2974
 *     return adios_read(fd_p, name, <void *> val.data, val.itemsize * val.size)
3201
2975
 * 
3202
2976
 */
3203
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s__itemsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2977
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_itemsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3204
2978
  __Pyx_GOTREF(__pyx_t_2);
3205
 
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s__size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2979
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3206
2980
  __Pyx_GOTREF(__pyx_t_1);
3207
 
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2981
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3208
2982
  __Pyx_GOTREF(__pyx_t_4);
3209
2983
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3210
2984
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3211
 
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2985
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3212
2986
  __Pyx_GOTREF(__pyx_t_1);
3213
 
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_4));
3214
 
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_4));
3215
 
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_4));
 
2987
  __Pyx_INCREF(__pyx_kp_s_Reading);
 
2988
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_s_Reading);
 
2989
  __Pyx_GIVEREF(__pyx_kp_s_Reading);
3216
2990
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
3217
2991
  __Pyx_GIVEREF(__pyx_t_4);
3218
 
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_5));
3219
 
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_kp_s_5));
3220
 
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_5));
 
2992
  __Pyx_INCREF(__pyx_kp_s_bytes);
 
2993
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_s_bytes);
 
2994
  __Pyx_GIVEREF(__pyx_kp_s_bytes);
3221
2995
  __pyx_t_4 = 0;
3222
 
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_1), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3223
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
2996
  if (__Pyx_Print(0, __pyx_t_1, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2997
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3224
2998
 
3225
 
  /* "adios.pyx":250
 
2999
  /* "adios.pyx":295
3226
3000
 *     assert val.flags.contiguous, 'Only contiguous arrays are supported.'
3227
3001
 *     print "Reading ... ", val.itemsize * val.size, "(bytes)"
3228
3002
 *     return adios_read(fd_p, name, <void *> val.data, val.itemsize * val.size)             # <<<<<<<<<<<<<<
3229
3003
 * 
3230
3004
 * cpdef int close(int64_t fd_p):
3231
3005
 */
3232
 
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s__itemsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3006
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_itemsize); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3233
3007
  __Pyx_GOTREF(__pyx_t_1);
3234
 
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s__size); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3008
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_size); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3235
3009
  __Pyx_GOTREF(__pyx_t_4);
3236
 
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3010
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3237
3011
  __Pyx_GOTREF(__pyx_t_2);
3238
3012
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3239
3013
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3240
 
  __pyx_t_5 = __Pyx_PyInt_from_py_uint64_t(__pyx_t_2); if (unlikely((__pyx_t_5 == (uint64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3014
  __pyx_t_5 = __Pyx_PyInt_As_uint64_t(__pyx_t_2); if (unlikely((__pyx_t_5 == (uint64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3241
3015
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3242
3016
  __pyx_r = adios_read(__pyx_v_fd_p, __pyx_v_name, ((void *)__pyx_v_val->data), __pyx_t_5);
3243
3017
  goto __pyx_L0;
3244
3018
 
3245
 
  __pyx_r = 0;
3246
 
  goto __pyx_L0;
 
3019
  /* "adios.pyx":292
 
3020
 *     return adios_write (fd_p, name, &val)
 
3021
 * 
 
3022
 * cpdef int read(int64_t fd_p, char * name, np.ndarray val):             # <<<<<<<<<<<<<<
 
3023
 *     assert val.flags.contiguous, 'Only contiguous arrays are supported.'
 
3024
 *     print "Reading ... ", val.itemsize * val.size, "(bytes)"
 
3025
 */
 
3026
 
 
3027
  /* function exit code */
3247
3028
  __pyx_L1_error:;
3248
3029
  __Pyx_XDECREF(__pyx_t_1);
3249
3030
  __Pyx_XDECREF(__pyx_t_2);
3250
3031
  __Pyx_XDECREF(__pyx_t_4);
3251
 
  __Pyx_WriteUnraisable("adios.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
3032
  __Pyx_WriteUnraisable("adios.read", __pyx_clineno, __pyx_lineno, __pyx_filename, 0);
3252
3033
  __pyx_r = 0;
3253
3034
  __pyx_L0:;
3254
3035
  __Pyx_RefNannyFinishContext();
3268
3049
  __Pyx_RefNannyDeclarations
3269
3050
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
3270
3051
  {
3271
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fd_p,&__pyx_n_s__name,&__pyx_n_s__val,0};
 
3052
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fd_p,&__pyx_n_s_name,&__pyx_n_s_val,0};
3272
3053
    PyObject* values[3] = {0,0,0};
3273
3054
    if (unlikely(__pyx_kwds)) {
3274
3055
      Py_ssize_t kw_args;
3283
3064
      kw_args = PyDict_Size(__pyx_kwds);
3284
3065
      switch (pos_args) {
3285
3066
        case  0:
3286
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fd_p)) != 0)) kw_args--;
 
3067
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fd_p)) != 0)) kw_args--;
3287
3068
        else goto __pyx_L5_argtuple_error;
3288
3069
        case  1:
3289
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
3070
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
3290
3071
        else {
3291
 
          __Pyx_RaiseArgtupleInvalid("read", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3072
          __Pyx_RaiseArgtupleInvalid("read", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3292
3073
        }
3293
3074
        case  2:
3294
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__val)) != 0)) kw_args--;
 
3075
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_val)) != 0)) kw_args--;
3295
3076
        else {
3296
 
          __Pyx_RaiseArgtupleInvalid("read", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3077
          __Pyx_RaiseArgtupleInvalid("read", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3297
3078
        }
3298
3079
      }
3299
3080
      if (unlikely(kw_args > 0)) {
3300
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3081
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3301
3082
      }
3302
3083
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3303
3084
      goto __pyx_L5_argtuple_error;
3306
3087
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3307
3088
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3308
3089
    }
3309
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3310
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3090
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3091
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3311
3092
    __pyx_v_val = ((PyArrayObject *)values[2]);
3312
3093
  }
3313
3094
  goto __pyx_L4_argument_unpacking_done;
3314
3095
  __pyx_L5_argtuple_error:;
3315
 
  __Pyx_RaiseArgtupleInvalid("read", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3096
  __Pyx_RaiseArgtupleInvalid("read", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3316
3097
  __pyx_L3_error:;
3317
3098
  __Pyx_AddTraceback("adios.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
3318
3099
  __Pyx_RefNannyFinishContext();
3319
3100
  return NULL;
3320
3101
  __pyx_L4_argument_unpacking_done:;
3321
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_val), __pyx_ptype_5numpy_ndarray, 1, "val", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3102
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_val), __pyx_ptype_5numpy_ndarray, 1, "val", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3322
3103
  __pyx_r = __pyx_pf_5adios_14read(__pyx_self, __pyx_v_fd_p, __pyx_v_name, __pyx_v_val);
 
3104
 
 
3105
  /* function exit code */
3323
3106
  goto __pyx_L0;
3324
3107
  __pyx_L1_error:;
3325
3108
  __pyx_r = NULL;
3328
3111
  return __pyx_r;
3329
3112
}
3330
3113
 
3331
 
/* "adios.pyx":247
3332
 
 *     return adios_write (fd_p, name, &val)
3333
 
 * 
3334
 
 * cpdef int read(int64_t fd_p, char * name, np.ndarray val):             # <<<<<<<<<<<<<<
3335
 
 *     assert val.flags.contiguous, 'Only contiguous arrays are supported.'
3336
 
 *     print "Reading ... ", val.itemsize * val.size, "(bytes)"
3337
 
 */
3338
 
 
3339
3114
static PyObject *__pyx_pf_5adios_14read(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p, char *__pyx_v_name, PyArrayObject *__pyx_v_val) {
3340
3115
  PyObject *__pyx_r = NULL;
3341
3116
  __Pyx_RefNannyDeclarations
3345
3120
  int __pyx_clineno = 0;
3346
3121
  __Pyx_RefNannySetupContext("read", 0);
3347
3122
  __Pyx_XDECREF(__pyx_r);
3348
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_read(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3123
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_read(__pyx_v_fd_p, __pyx_v_name, __pyx_v_val, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3349
3124
  __Pyx_GOTREF(__pyx_t_1);
3350
3125
  __pyx_r = __pyx_t_1;
3351
3126
  __pyx_t_1 = 0;
3352
3127
  goto __pyx_L0;
3353
3128
 
3354
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3355
 
  goto __pyx_L0;
 
3129
  /* function exit code */
3356
3130
  __pyx_L1_error:;
3357
3131
  __Pyx_XDECREF(__pyx_t_1);
3358
3132
  __Pyx_AddTraceback("adios.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
3363
3137
  return __pyx_r;
3364
3138
}
3365
3139
 
3366
 
/* "adios.pyx":252
 
3140
/* "adios.pyx":297
3367
3141
 *     return adios_read(fd_p, name, <void *> val.data, val.itemsize * val.size)
3368
3142
 * 
3369
3143
 * cpdef int close(int64_t fd_p):             # <<<<<<<<<<<<<<
3377
3151
  __Pyx_RefNannyDeclarations
3378
3152
  __Pyx_RefNannySetupContext("close", 0);
3379
3153
 
3380
 
  /* "adios.pyx":253
 
3154
  /* "adios.pyx":298
3381
3155
 * 
3382
3156
 * cpdef int close(int64_t fd_p):
3383
3157
 *     return adios_close(fd_p)             # <<<<<<<<<<<<<<
3387
3161
  __pyx_r = adios_close(__pyx_v_fd_p);
3388
3162
  goto __pyx_L0;
3389
3163
 
3390
 
  __pyx_r = 0;
 
3164
  /* "adios.pyx":297
 
3165
 *     return adios_read(fd_p, name, <void *> val.data, val.itemsize * val.size)
 
3166
 * 
 
3167
 * cpdef int close(int64_t fd_p):             # <<<<<<<<<<<<<<
 
3168
 *     return adios_close(fd_p)
 
3169
 * 
 
3170
 */
 
3171
 
 
3172
  /* function exit code */
3391
3173
  __pyx_L0:;
3392
3174
  __Pyx_RefNannyFinishContext();
3393
3175
  return __pyx_r;
3404
3186
  __Pyx_RefNannyDeclarations
3405
3187
  __Pyx_RefNannySetupContext("close (wrapper)", 0);
3406
3188
  assert(__pyx_arg_fd_p); {
3407
 
    __pyx_v_fd_p = __Pyx_PyInt_from_py_int64_t(__pyx_arg_fd_p); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3189
    __pyx_v_fd_p = __Pyx_PyInt_As_int64_t(__pyx_arg_fd_p); if (unlikely((__pyx_v_fd_p == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3408
3190
  }
3409
3191
  goto __pyx_L4_argument_unpacking_done;
3410
3192
  __pyx_L3_error:;
3413
3195
  return NULL;
3414
3196
  __pyx_L4_argument_unpacking_done:;
3415
3197
  __pyx_r = __pyx_pf_5adios_16close(__pyx_self, ((int64_t)__pyx_v_fd_p));
 
3198
 
 
3199
  /* function exit code */
3416
3200
  __Pyx_RefNannyFinishContext();
3417
3201
  return __pyx_r;
3418
3202
}
3419
3203
 
3420
 
/* "adios.pyx":252
3421
 
 *     return adios_read(fd_p, name, <void *> val.data, val.itemsize * val.size)
3422
 
 * 
3423
 
 * cpdef int close(int64_t fd_p):             # <<<<<<<<<<<<<<
3424
 
 *     return adios_close(fd_p)
3425
 
 * 
3426
 
 */
3427
 
 
3428
3204
static PyObject *__pyx_pf_5adios_16close(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_fd_p) {
3429
3205
  PyObject *__pyx_r = NULL;
3430
3206
  __Pyx_RefNannyDeclarations
3434
3210
  int __pyx_clineno = 0;
3435
3211
  __Pyx_RefNannySetupContext("close", 0);
3436
3212
  __Pyx_XDECREF(__pyx_r);
3437
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_close(__pyx_v_fd_p, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3213
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_close(__pyx_v_fd_p, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3438
3214
  __Pyx_GOTREF(__pyx_t_1);
3439
3215
  __pyx_r = __pyx_t_1;
3440
3216
  __pyx_t_1 = 0;
3441
3217
  goto __pyx_L0;
3442
3218
 
3443
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3444
 
  goto __pyx_L0;
 
3219
  /* function exit code */
3445
3220
  __pyx_L1_error:;
3446
3221
  __Pyx_XDECREF(__pyx_t_1);
3447
3222
  __Pyx_AddTraceback("adios.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
3452
3227
  return __pyx_r;
3453
3228
}
3454
3229
 
3455
 
/* "adios.pyx":255
 
3230
/* "adios.pyx":300
3456
3231
 *     return adios_close(fd_p)
3457
3232
 * 
3458
3233
 * cpdef finalize(int mype = 0):             # <<<<<<<<<<<<<<
3476
3251
    }
3477
3252
  }
3478
3253
 
3479
 
  /* "adios.pyx":256
 
3254
  /* "adios.pyx":301
3480
3255
 * 
3481
3256
 * cpdef finalize(int mype = 0):
3482
3257
 *     return adios_finalize(mype)             # <<<<<<<<<<<<<<
3483
3258
 * 
3484
 
 * ## ==========
 
3259
 * ## ====================
3485
3260
 */
3486
3261
  __Pyx_XDECREF(__pyx_r);
3487
 
  __pyx_t_1 = PyInt_FromLong(adios_finalize(__pyx_v_mype)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3262
  __pyx_t_1 = __Pyx_PyInt_From_int(adios_finalize(__pyx_v_mype)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3488
3263
  __Pyx_GOTREF(__pyx_t_1);
3489
3264
  __pyx_r = __pyx_t_1;
3490
3265
  __pyx_t_1 = 0;
3491
3266
  goto __pyx_L0;
3492
3267
 
3493
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3494
 
  goto __pyx_L0;
 
3268
  /* "adios.pyx":300
 
3269
 *     return adios_close(fd_p)
 
3270
 * 
 
3271
 * cpdef finalize(int mype = 0):             # <<<<<<<<<<<<<<
 
3272
 *     return adios_finalize(mype)
 
3273
 * 
 
3274
 */
 
3275
 
 
3276
  /* function exit code */
3495
3277
  __pyx_L1_error:;
3496
3278
  __Pyx_XDECREF(__pyx_t_1);
3497
3279
  __Pyx_AddTraceback("adios.finalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
3513
3295
  __Pyx_RefNannyDeclarations
3514
3296
  __Pyx_RefNannySetupContext("finalize (wrapper)", 0);
3515
3297
  {
3516
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__mype,0};
 
3298
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mype,0};
3517
3299
    PyObject* values[1] = {0};
3518
3300
    if (unlikely(__pyx_kwds)) {
3519
3301
      Py_ssize_t kw_args;
3527
3309
      switch (pos_args) {
3528
3310
        case  0:
3529
3311
        if (kw_args > 0) {
3530
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__mype);
 
3312
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_mype);
3531
3313
          if (value) { values[0] = value; kw_args--; }
3532
3314
        }
3533
3315
      }
3534
3316
      if (unlikely(kw_args > 0)) {
3535
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "finalize") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3317
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "finalize") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3536
3318
      }
3537
3319
    } else {
3538
3320
      switch (PyTuple_GET_SIZE(__pyx_args)) {
3542
3324
      }
3543
3325
    }
3544
3326
    if (values[0]) {
3545
 
      __pyx_v_mype = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_mype == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3327
      __pyx_v_mype = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_mype == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3546
3328
    } else {
3547
3329
      __pyx_v_mype = ((int)0);
3548
3330
    }
3549
3331
  }
3550
3332
  goto __pyx_L4_argument_unpacking_done;
3551
3333
  __pyx_L5_argtuple_error:;
3552
 
  __Pyx_RaiseArgtupleInvalid("finalize", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3334
  __Pyx_RaiseArgtupleInvalid("finalize", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3553
3335
  __pyx_L3_error:;
3554
3336
  __Pyx_AddTraceback("adios.finalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
3555
3337
  __Pyx_RefNannyFinishContext();
3556
3338
  return NULL;
3557
3339
  __pyx_L4_argument_unpacking_done:;
3558
3340
  __pyx_r = __pyx_pf_5adios_18finalize(__pyx_self, __pyx_v_mype);
 
3341
 
 
3342
  /* function exit code */
3559
3343
  __Pyx_RefNannyFinishContext();
3560
3344
  return __pyx_r;
3561
3345
}
3562
3346
 
3563
 
/* "adios.pyx":255
3564
 
 *     return adios_close(fd_p)
3565
 
 * 
3566
 
 * cpdef finalize(int mype = 0):             # <<<<<<<<<<<<<<
3567
 
 *     return adios_finalize(mype)
3568
 
 * 
3569
 
 */
3570
 
 
3571
3347
static PyObject *__pyx_pf_5adios_18finalize(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_mype) {
3572
3348
  PyObject *__pyx_r = NULL;
3573
3349
  __Pyx_RefNannyDeclarations
3580
3356
  __Pyx_XDECREF(__pyx_r);
3581
3357
  __pyx_t_2.__pyx_n = 1;
3582
3358
  __pyx_t_2.mype = __pyx_v_mype;
3583
 
  __pyx_t_1 = __pyx_f_5adios_finalize(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3359
  __pyx_t_1 = __pyx_f_5adios_finalize(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3584
3360
  __Pyx_GOTREF(__pyx_t_1);
3585
3361
  __pyx_r = __pyx_t_1;
3586
3362
  __pyx_t_1 = 0;
3587
3363
  goto __pyx_L0;
3588
3364
 
3589
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3590
 
  goto __pyx_L0;
 
3365
  /* function exit code */
3591
3366
  __pyx_L1_error:;
3592
3367
  __Pyx_XDECREF(__pyx_t_1);
3593
3368
  __Pyx_AddTraceback("adios.finalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
3598
3373
  return __pyx_r;
3599
3374
}
3600
3375
 
3601
 
/* "adios.pyx":261
 
3376
/* "adios.pyx":306
3602
3377
 * ## ADIOS No-XML API
3603
 
 * ## ==========
3604
 
 * cpdef int init_noxml(MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
3605
 
 *     return adios_init_noxml(comm.ob_mpi)
 
3378
 * ## ====================
 
3379
 * cpdef int init_noxml(MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
3380
 *     return adios_init_noxml(comm)
3606
3381
 * 
3607
3382
 */
3608
3383
 
3609
3384
static PyObject *__pyx_pw_5adios_21init_noxml(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
3610
3385
static int __pyx_f_5adios_init_noxml(CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_init_noxml *__pyx_optional_args) {
3611
 
  struct PyMPICommObject *__pyx_v_comm = __pyx_k_6;
 
3386
  MPI_Comm __pyx_v_comm = __pyx_k__3;
3612
3387
  int __pyx_r;
3613
3388
  __Pyx_RefNannyDeclarations
3614
3389
  __Pyx_RefNannySetupContext("init_noxml", 0);
3618
3393
    }
3619
3394
  }
3620
3395
 
3621
 
  /* "adios.pyx":262
3622
 
 * ## ==========
3623
 
 * cpdef int init_noxml(MPI.Comm comm = MPI.COMM_WORLD):
3624
 
 *     return adios_init_noxml(comm.ob_mpi)             # <<<<<<<<<<<<<<
 
3396
  /* "adios.pyx":307
 
3397
 * ## ====================
 
3398
 * cpdef int init_noxml(MPI_Comm comm = MPI_COMM_WORLD):
 
3399
 *     return adios_init_noxml(comm)             # <<<<<<<<<<<<<<
3625
3400
 * 
3626
3401
 * cpdef int allocate_buffer(int when,
3627
3402
 */
3628
 
  __pyx_r = adios_init_noxml(__pyx_v_comm->ob_mpi);
 
3403
  __pyx_r = adios_init_noxml(__pyx_v_comm);
3629
3404
  goto __pyx_L0;
3630
3405
 
3631
 
  __pyx_r = 0;
 
3406
  /* "adios.pyx":306
 
3407
 * ## ADIOS No-XML API
 
3408
 * ## ====================
 
3409
 * cpdef int init_noxml(MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
3410
 *     return adios_init_noxml(comm)
 
3411
 * 
 
3412
 */
 
3413
 
 
3414
  /* function exit code */
3632
3415
  __pyx_L0:;
3633
3416
  __Pyx_RefNannyFinishContext();
3634
3417
  return __pyx_r;
3637
3420
/* Python wrapper */
3638
3421
static PyObject *__pyx_pw_5adios_21init_noxml(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
3639
3422
static PyObject *__pyx_pw_5adios_21init_noxml(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3640
 
  struct PyMPICommObject *__pyx_v_comm = 0;
 
3423
  MPI_Comm __pyx_v_comm;
3641
3424
  int __pyx_lineno = 0;
3642
3425
  const char *__pyx_filename = NULL;
3643
3426
  int __pyx_clineno = 0;
3645
3428
  __Pyx_RefNannyDeclarations
3646
3429
  __Pyx_RefNannySetupContext("init_noxml (wrapper)", 0);
3647
3430
  {
3648
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__comm,0};
 
3431
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_comm,0};
3649
3432
    PyObject* values[1] = {0};
3650
 
    values[0] = (PyObject *)__pyx_k_6;
3651
3433
    if (unlikely(__pyx_kwds)) {
3652
3434
      Py_ssize_t kw_args;
3653
3435
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3660
3442
      switch (pos_args) {
3661
3443
        case  0:
3662
3444
        if (kw_args > 0) {
3663
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__comm);
 
3445
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_comm);
3664
3446
          if (value) { values[0] = value; kw_args--; }
3665
3447
        }
3666
3448
      }
3667
3449
      if (unlikely(kw_args > 0)) {
3668
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "init_noxml") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3450
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "init_noxml") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3669
3451
      }
3670
3452
    } else {
3671
3453
      switch (PyTuple_GET_SIZE(__pyx_args)) {
3674
3456
        default: goto __pyx_L5_argtuple_error;
3675
3457
      }
3676
3458
    }
3677
 
    __pyx_v_comm = ((struct PyMPICommObject *)values[0]);
 
3459
    if (values[0]) {
 
3460
      __pyx_v_comm = __Pyx_PyInt_As_MPI_Comm(values[0]); if (unlikely((__pyx_v_comm == (MPI_Comm)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3461
    } else {
 
3462
      __pyx_v_comm = __pyx_k__3;
 
3463
    }
3678
3464
  }
3679
3465
  goto __pyx_L4_argument_unpacking_done;
3680
3466
  __pyx_L5_argtuple_error:;
3681
 
  __Pyx_RaiseArgtupleInvalid("init_noxml", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3467
  __Pyx_RaiseArgtupleInvalid("init_noxml", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3682
3468
  __pyx_L3_error:;
3683
3469
  __Pyx_AddTraceback("adios.init_noxml", __pyx_clineno, __pyx_lineno, __pyx_filename);
3684
3470
  __Pyx_RefNannyFinishContext();
3685
3471
  return NULL;
3686
3472
  __pyx_L4_argument_unpacking_done:;
3687
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_comm), __pyx_ptype_6mpi4py_3MPI_Comm, 1, "comm", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3688
3473
  __pyx_r = __pyx_pf_5adios_20init_noxml(__pyx_self, __pyx_v_comm);
3689
 
  goto __pyx_L0;
3690
 
  __pyx_L1_error:;
3691
 
  __pyx_r = NULL;
3692
 
  __pyx_L0:;
 
3474
 
 
3475
  /* function exit code */
3693
3476
  __Pyx_RefNannyFinishContext();
3694
3477
  return __pyx_r;
3695
3478
}
3696
3479
 
3697
 
/* "adios.pyx":261
3698
 
 * ## ADIOS No-XML API
3699
 
 * ## ==========
3700
 
 * cpdef int init_noxml(MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
3701
 
 *     return adios_init_noxml(comm.ob_mpi)
3702
 
 * 
3703
 
 */
3704
 
 
3705
 
static PyObject *__pyx_pf_5adios_20init_noxml(CYTHON_UNUSED PyObject *__pyx_self, struct PyMPICommObject *__pyx_v_comm) {
 
3480
static PyObject *__pyx_pf_5adios_20init_noxml(CYTHON_UNUSED PyObject *__pyx_self, MPI_Comm __pyx_v_comm) {
3706
3481
  PyObject *__pyx_r = NULL;
3707
3482
  __Pyx_RefNannyDeclarations
3708
3483
  int __pyx_t_1;
3716
3491
  __pyx_t_2.__pyx_n = 1;
3717
3492
  __pyx_t_2.comm = __pyx_v_comm;
3718
3493
  __pyx_t_1 = __pyx_f_5adios_init_noxml(0, &__pyx_t_2); 
3719
 
  __pyx_t_3 = PyInt_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3494
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3720
3495
  __Pyx_GOTREF(__pyx_t_3);
3721
3496
  __pyx_r = __pyx_t_3;
3722
3497
  __pyx_t_3 = 0;
3723
3498
  goto __pyx_L0;
3724
3499
 
3725
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3726
 
  goto __pyx_L0;
 
3500
  /* function exit code */
3727
3501
  __pyx_L1_error:;
3728
3502
  __Pyx_XDECREF(__pyx_t_3);
3729
3503
  __Pyx_AddTraceback("adios.init_noxml", __pyx_clineno, __pyx_lineno, __pyx_filename);
3734
3508
  return __pyx_r;
3735
3509
}
3736
3510
 
3737
 
/* "adios.pyx":264
3738
 
 *     return adios_init_noxml(comm.ob_mpi)
 
3511
/* "adios.pyx":309
 
3512
 *     return adios_init_noxml(comm)
3739
3513
 * 
3740
3514
 * cpdef int allocate_buffer(int when,             # <<<<<<<<<<<<<<
3741
3515
 *                           uint64_t buffer_size):
3748
3522
  __Pyx_RefNannyDeclarations
3749
3523
  __Pyx_RefNannySetupContext("allocate_buffer", 0);
3750
3524
 
3751
 
  /* "adios.pyx":267
 
3525
  /* "adios.pyx":311
 
3526
 * cpdef int allocate_buffer(int when,
3752
3527
 *                           uint64_t buffer_size):
3753
 
 *     return adios_allocate_buffer(<ADIOS_BUFFER_ALLOC_WHEN> when,
3754
 
 *                                  buffer_size)             # <<<<<<<<<<<<<<
 
3528
 *     return adios_allocate_buffer(<ADIOS_BUFFER_ALLOC_WHEN> when,             # <<<<<<<<<<<<<<
 
3529
 *                                  buffer_size)
3755
3530
 * 
3756
 
 * cpdef int64_t declare_group(char * name,
3757
3531
 */
3758
3532
  __pyx_r = adios_allocate_buffer(((ADIOS_BUFFER_ALLOC_WHEN)__pyx_v_when), __pyx_v_buffer_size);
3759
3533
  goto __pyx_L0;
3760
3534
 
3761
 
  __pyx_r = 0;
 
3535
  /* "adios.pyx":309
 
3536
 *     return adios_init_noxml(comm)
 
3537
 * 
 
3538
 * cpdef int allocate_buffer(int when,             # <<<<<<<<<<<<<<
 
3539
 *                           uint64_t buffer_size):
 
3540
 *     return adios_allocate_buffer(<ADIOS_BUFFER_ALLOC_WHEN> when,
 
3541
 */
 
3542
 
 
3543
  /* function exit code */
3762
3544
  __pyx_L0:;
3763
3545
  __Pyx_RefNannyFinishContext();
3764
3546
  return __pyx_r;
3776
3558
  __Pyx_RefNannyDeclarations
3777
3559
  __Pyx_RefNannySetupContext("allocate_buffer (wrapper)", 0);
3778
3560
  {
3779
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__when,&__pyx_n_s__buffer_size,0};
 
3561
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_when,&__pyx_n_s_buffer_size,0};
3780
3562
    PyObject* values[2] = {0,0};
3781
3563
    if (unlikely(__pyx_kwds)) {
3782
3564
      Py_ssize_t kw_args;
3790
3572
      kw_args = PyDict_Size(__pyx_kwds);
3791
3573
      switch (pos_args) {
3792
3574
        case  0:
3793
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__when)) != 0)) kw_args--;
 
3575
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_when)) != 0)) kw_args--;
3794
3576
        else goto __pyx_L5_argtuple_error;
3795
3577
        case  1:
3796
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__buffer_size)) != 0)) kw_args--;
 
3578
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_buffer_size)) != 0)) kw_args--;
3797
3579
        else {
3798
 
          __Pyx_RaiseArgtupleInvalid("allocate_buffer", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3580
          __Pyx_RaiseArgtupleInvalid("allocate_buffer", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3799
3581
        }
3800
3582
      }
3801
3583
      if (unlikely(kw_args > 0)) {
3802
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "allocate_buffer") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3584
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "allocate_buffer") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3803
3585
      }
3804
3586
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
3805
3587
      goto __pyx_L5_argtuple_error;
3807
3589
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3808
3590
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3809
3591
    }
3810
 
    __pyx_v_when = __Pyx_PyInt_AsInt(values[0]); if (unlikely((__pyx_v_when == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3811
 
    __pyx_v_buffer_size = __Pyx_PyInt_from_py_uint64_t(values[1]); if (unlikely((__pyx_v_buffer_size == (uint64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3592
    __pyx_v_when = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_when == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3593
    __pyx_v_buffer_size = __Pyx_PyInt_As_uint64_t(values[1]); if (unlikely((__pyx_v_buffer_size == (uint64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3812
3594
  }
3813
3595
  goto __pyx_L4_argument_unpacking_done;
3814
3596
  __pyx_L5_argtuple_error:;
3815
 
  __Pyx_RaiseArgtupleInvalid("allocate_buffer", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3597
  __Pyx_RaiseArgtupleInvalid("allocate_buffer", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3816
3598
  __pyx_L3_error:;
3817
3599
  __Pyx_AddTraceback("adios.allocate_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
3818
3600
  __Pyx_RefNannyFinishContext();
3819
3601
  return NULL;
3820
3602
  __pyx_L4_argument_unpacking_done:;
3821
3603
  __pyx_r = __pyx_pf_5adios_22allocate_buffer(__pyx_self, __pyx_v_when, __pyx_v_buffer_size);
 
3604
 
 
3605
  /* function exit code */
3822
3606
  __Pyx_RefNannyFinishContext();
3823
3607
  return __pyx_r;
3824
3608
}
3825
3609
 
3826
 
/* "adios.pyx":264
3827
 
 *     return adios_init_noxml(comm.ob_mpi)
3828
 
 * 
3829
 
 * cpdef int allocate_buffer(int when,             # <<<<<<<<<<<<<<
3830
 
 *                           uint64_t buffer_size):
3831
 
 *     return adios_allocate_buffer(<ADIOS_BUFFER_ALLOC_WHEN> when,
3832
 
 */
3833
 
 
3834
3610
static PyObject *__pyx_pf_5adios_22allocate_buffer(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_when, uint64_t __pyx_v_buffer_size) {
3835
3611
  PyObject *__pyx_r = NULL;
3836
3612
  __Pyx_RefNannyDeclarations
3840
3616
  int __pyx_clineno = 0;
3841
3617
  __Pyx_RefNannySetupContext("allocate_buffer", 0);
3842
3618
  __Pyx_XDECREF(__pyx_r);
3843
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_allocate_buffer(__pyx_v_when, __pyx_v_buffer_size, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3619
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_allocate_buffer(__pyx_v_when, __pyx_v_buffer_size, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3844
3620
  __Pyx_GOTREF(__pyx_t_1);
3845
3621
  __pyx_r = __pyx_t_1;
3846
3622
  __pyx_t_1 = 0;
3847
3623
  goto __pyx_L0;
3848
3624
 
3849
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3850
 
  goto __pyx_L0;
 
3625
  /* function exit code */
3851
3626
  __pyx_L1_error:;
3852
3627
  __Pyx_XDECREF(__pyx_t_1);
3853
3628
  __Pyx_AddTraceback("adios.allocate_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
3858
3633
  return __pyx_r;
3859
3634
}
3860
3635
 
3861
 
/* "adios.pyx":269
 
3636
/* "adios.pyx":314
3862
3637
 *                                  buffer_size)
3863
3638
 * 
3864
3639
 * cpdef int64_t declare_group(char * name,             # <<<<<<<<<<<<<<
3873
3648
  __Pyx_RefNannyDeclarations
3874
3649
  __Pyx_RefNannySetupContext("declare_group", 0);
3875
3650
 
3876
 
  /* "adios.pyx":272
 
3651
  /* "adios.pyx":317
3877
3652
 *                             char * time_index,
3878
3653
 *                             int stats):
3879
3654
 *     cdef int64_t id = 0             # <<<<<<<<<<<<<<
3882
3657
 */
3883
3658
  __pyx_v_id = 0;
3884
3659
 
3885
 
  /* "adios.pyx":276
 
3660
  /* "adios.pyx":318
 
3661
 *                             int stats):
 
3662
 *     cdef int64_t id = 0
 
3663
 *     adios_declare_group (&id,             # <<<<<<<<<<<<<<
3886
3664
 *                          name,
3887
3665
 *                          time_index,
3888
 
 *                          <ADIOS_FLAG> stats)             # <<<<<<<<<<<<<<
3889
 
 *     return id
3890
 
 * 
3891
3666
 */
3892
3667
  adios_declare_group((&__pyx_v_id), __pyx_v_name, __pyx_v_time_index, ((ADIOS_FLAG)__pyx_v_stats));
3893
3668
 
3894
 
  /* "adios.pyx":277
 
3669
  /* "adios.pyx":322
3895
3670
 *                          time_index,
3896
3671
 *                          <ADIOS_FLAG> stats)
3897
3672
 *     return id             # <<<<<<<<<<<<<<
3901
3676
  __pyx_r = __pyx_v_id;
3902
3677
  goto __pyx_L0;
3903
3678
 
3904
 
  __pyx_r = 0;
 
3679
  /* "adios.pyx":314
 
3680
 *                                  buffer_size)
 
3681
 * 
 
3682
 * cpdef int64_t declare_group(char * name,             # <<<<<<<<<<<<<<
 
3683
 *                             char * time_index,
 
3684
 *                             int stats):
 
3685
 */
 
3686
 
 
3687
  /* function exit code */
3905
3688
  __pyx_L0:;
3906
3689
  __Pyx_RefNannyFinishContext();
3907
3690
  return __pyx_r;
3920
3703
  __Pyx_RefNannyDeclarations
3921
3704
  __Pyx_RefNannySetupContext("declare_group (wrapper)", 0);
3922
3705
  {
3923
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__name,&__pyx_n_s__time_index,&__pyx_n_s__stats,0};
 
3706
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_time_index,&__pyx_n_s_stats,0};
3924
3707
    PyObject* values[3] = {0,0,0};
3925
3708
    if (unlikely(__pyx_kwds)) {
3926
3709
      Py_ssize_t kw_args;
3935
3718
      kw_args = PyDict_Size(__pyx_kwds);
3936
3719
      switch (pos_args) {
3937
3720
        case  0:
3938
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
3721
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
3939
3722
        else goto __pyx_L5_argtuple_error;
3940
3723
        case  1:
3941
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__time_index)) != 0)) kw_args--;
 
3724
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_time_index)) != 0)) kw_args--;
3942
3725
        else {
3943
 
          __Pyx_RaiseArgtupleInvalid("declare_group", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3726
          __Pyx_RaiseArgtupleInvalid("declare_group", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3944
3727
        }
3945
3728
        case  2:
3946
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__stats)) != 0)) kw_args--;
 
3729
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_stats)) != 0)) kw_args--;
3947
3730
        else {
3948
 
          __Pyx_RaiseArgtupleInvalid("declare_group", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3731
          __Pyx_RaiseArgtupleInvalid("declare_group", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3949
3732
        }
3950
3733
      }
3951
3734
      if (unlikely(kw_args > 0)) {
3952
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "declare_group") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3735
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "declare_group") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3953
3736
      }
3954
3737
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3955
3738
      goto __pyx_L5_argtuple_error;
3958
3741
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3959
3742
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3960
3743
    }
3961
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3962
 
    __pyx_v_time_index = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_time_index) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3963
 
    __pyx_v_stats = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_stats == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3744
    __pyx_v_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3745
    __pyx_v_time_index = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_time_index) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3746
    __pyx_v_stats = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_stats == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3964
3747
  }
3965
3748
  goto __pyx_L4_argument_unpacking_done;
3966
3749
  __pyx_L5_argtuple_error:;
3967
 
  __Pyx_RaiseArgtupleInvalid("declare_group", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3750
  __Pyx_RaiseArgtupleInvalid("declare_group", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3968
3751
  __pyx_L3_error:;
3969
3752
  __Pyx_AddTraceback("adios.declare_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
3970
3753
  __Pyx_RefNannyFinishContext();
3971
3754
  return NULL;
3972
3755
  __pyx_L4_argument_unpacking_done:;
3973
3756
  __pyx_r = __pyx_pf_5adios_24declare_group(__pyx_self, __pyx_v_name, __pyx_v_time_index, __pyx_v_stats);
 
3757
 
 
3758
  /* function exit code */
3974
3759
  __Pyx_RefNannyFinishContext();
3975
3760
  return __pyx_r;
3976
3761
}
3977
3762
 
3978
 
/* "adios.pyx":269
3979
 
 *                                  buffer_size)
3980
 
 * 
3981
 
 * cpdef int64_t declare_group(char * name,             # <<<<<<<<<<<<<<
3982
 
 *                             char * time_index,
3983
 
 *                             int stats):
3984
 
 */
3985
 
 
3986
3763
static PyObject *__pyx_pf_5adios_24declare_group(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_name, char *__pyx_v_time_index, int __pyx_v_stats) {
3987
3764
  PyObject *__pyx_r = NULL;
3988
3765
  __Pyx_RefNannyDeclarations
3992
3769
  int __pyx_clineno = 0;
3993
3770
  __Pyx_RefNannySetupContext("declare_group", 0);
3994
3771
  __Pyx_XDECREF(__pyx_r);
3995
 
  __pyx_t_1 = __Pyx_PyInt_to_py_int64_t(__pyx_f_5adios_declare_group(__pyx_v_name, __pyx_v_time_index, __pyx_v_stats, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3772
  __pyx_t_1 = __Pyx_PyInt_From_int64_t(__pyx_f_5adios_declare_group(__pyx_v_name, __pyx_v_time_index, __pyx_v_stats, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3996
3773
  __Pyx_GOTREF(__pyx_t_1);
3997
3774
  __pyx_r = __pyx_t_1;
3998
3775
  __pyx_t_1 = 0;
3999
3776
  goto __pyx_L0;
4000
3777
 
4001
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4002
 
  goto __pyx_L0;
 
3778
  /* function exit code */
4003
3779
  __pyx_L1_error:;
4004
3780
  __Pyx_XDECREF(__pyx_t_1);
4005
3781
  __Pyx_AddTraceback("adios.declare_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
4010
3786
  return __pyx_r;
4011
3787
}
4012
3788
 
4013
 
/* "adios.pyx":279
 
3789
/* "adios.pyx":324
4014
3790
 *     return id
4015
3791
 * 
4016
3792
 * cpdef int define_var(int64_t group_id,             # <<<<<<<<<<<<<<
4024
3800
  __Pyx_RefNannyDeclarations
4025
3801
  __Pyx_RefNannySetupContext("define_var", 0);
4026
3802
 
4027
 
  /* "adios.pyx":291
4028
 
 *                             dimensions,
4029
 
 *                             global_dimensions,
4030
 
 *                             local_offsets)             # <<<<<<<<<<<<<<
4031
 
 * 
4032
 
 * cpdef int define_attribute (int64_t group,
 
3803
  /* "adios.pyx":331
 
3804
 *                      char * global_dimensions,
 
3805
 *                      char * local_offsets):
 
3806
 *     return adios_define_var(group_id,             # <<<<<<<<<<<<<<
 
3807
 *                             name, path,
 
3808
 *                             <ADIOS_DATATYPES> type,
4033
3809
 */
4034
3810
  __pyx_r = adios_define_var(__pyx_v_group_id, __pyx_v_name, __pyx_v_path, ((ADIOS_DATATYPES)__pyx_v_type), __pyx_v_dimensions, __pyx_v_global_dimensions, __pyx_v_local_offsets);
4035
3811
  goto __pyx_L0;
4036
3812
 
4037
 
  __pyx_r = 0;
 
3813
  /* "adios.pyx":324
 
3814
 *     return id
 
3815
 * 
 
3816
 * cpdef int define_var(int64_t group_id,             # <<<<<<<<<<<<<<
 
3817
 *                      char * name,
 
3818
 *                      char * path,
 
3819
 */
 
3820
 
 
3821
  /* function exit code */
4038
3822
  __pyx_L0:;
4039
3823
  __Pyx_RefNannyFinishContext();
4040
3824
  return __pyx_r;
4057
3841
  __Pyx_RefNannyDeclarations
4058
3842
  __Pyx_RefNannySetupContext("define_var (wrapper)", 0);
4059
3843
  {
4060
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__group_id,&__pyx_n_s__name,&__pyx_n_s__path,&__pyx_n_s__type,&__pyx_n_s__dimensions,&__pyx_n_s__global_dimensions,&__pyx_n_s__local_offsets,0};
 
3844
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_group_id,&__pyx_n_s_name,&__pyx_n_s_path,&__pyx_n_s_type,&__pyx_n_s_dimensions,&__pyx_n_s_global_dimensions,&__pyx_n_s_local_offsets,0};
4061
3845
    PyObject* values[7] = {0,0,0,0,0,0,0};
4062
3846
    if (unlikely(__pyx_kwds)) {
4063
3847
      Py_ssize_t kw_args;
4076
3860
      kw_args = PyDict_Size(__pyx_kwds);
4077
3861
      switch (pos_args) {
4078
3862
        case  0:
4079
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__group_id)) != 0)) kw_args--;
 
3863
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_group_id)) != 0)) kw_args--;
4080
3864
        else goto __pyx_L5_argtuple_error;
4081
3865
        case  1:
4082
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
3866
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
4083
3867
        else {
4084
 
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3868
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4085
3869
        }
4086
3870
        case  2:
4087
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__path)) != 0)) kw_args--;
 
3871
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_path)) != 0)) kw_args--;
4088
3872
        else {
4089
 
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3873
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4090
3874
        }
4091
3875
        case  3:
4092
 
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__type)) != 0)) kw_args--;
 
3876
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
4093
3877
        else {
4094
 
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3878
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4095
3879
        }
4096
3880
        case  4:
4097
 
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__dimensions)) != 0)) kw_args--;
 
3881
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_dimensions)) != 0)) kw_args--;
4098
3882
        else {
4099
 
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3883
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4100
3884
        }
4101
3885
        case  5:
4102
 
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__global_dimensions)) != 0)) kw_args--;
 
3886
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_global_dimensions)) != 0)) kw_args--;
4103
3887
        else {
4104
 
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3888
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4105
3889
        }
4106
3890
        case  6:
4107
 
        if (likely((values[6] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__local_offsets)) != 0)) kw_args--;
 
3891
        if (likely((values[6] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_local_offsets)) != 0)) kw_args--;
4108
3892
        else {
4109
 
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 6); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3893
          __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, 6); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4110
3894
        }
4111
3895
      }
4112
3896
      if (unlikely(kw_args > 0)) {
4113
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "define_var") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3897
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "define_var") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4114
3898
      }
4115
3899
    } else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
4116
3900
      goto __pyx_L5_argtuple_error;
4123
3907
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4124
3908
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4125
3909
    }
4126
 
    __pyx_v_group_id = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_group_id == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4127
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4128
 
    __pyx_v_path = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_path) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4129
 
    __pyx_v_type = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4130
 
    __pyx_v_dimensions = __Pyx_PyObject_AsString(values[4]); if (unlikely((!__pyx_v_dimensions) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4131
 
    __pyx_v_global_dimensions = __Pyx_PyObject_AsString(values[5]); if (unlikely((!__pyx_v_global_dimensions) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4132
 
    __pyx_v_local_offsets = __Pyx_PyObject_AsString(values[6]); if (unlikely((!__pyx_v_local_offsets) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3910
    __pyx_v_group_id = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_group_id == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3911
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3912
    __pyx_v_path = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_path) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3913
    __pyx_v_type = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3914
    __pyx_v_dimensions = __Pyx_PyObject_AsString(values[4]); if (unlikely((!__pyx_v_dimensions) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3915
    __pyx_v_global_dimensions = __Pyx_PyObject_AsString(values[5]); if (unlikely((!__pyx_v_global_dimensions) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3916
    __pyx_v_local_offsets = __Pyx_PyObject_AsString(values[6]); if (unlikely((!__pyx_v_local_offsets) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4133
3917
  }
4134
3918
  goto __pyx_L4_argument_unpacking_done;
4135
3919
  __pyx_L5_argtuple_error:;
4136
 
  __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3920
  __Pyx_RaiseArgtupleInvalid("define_var", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4137
3921
  __pyx_L3_error:;
4138
3922
  __Pyx_AddTraceback("adios.define_var", __pyx_clineno, __pyx_lineno, __pyx_filename);
4139
3923
  __Pyx_RefNannyFinishContext();
4140
3924
  return NULL;
4141
3925
  __pyx_L4_argument_unpacking_done:;
4142
3926
  __pyx_r = __pyx_pf_5adios_26define_var(__pyx_self, __pyx_v_group_id, __pyx_v_name, __pyx_v_path, __pyx_v_type, __pyx_v_dimensions, __pyx_v_global_dimensions, __pyx_v_local_offsets);
 
3927
 
 
3928
  /* function exit code */
4143
3929
  __Pyx_RefNannyFinishContext();
4144
3930
  return __pyx_r;
4145
3931
}
4146
3932
 
4147
 
/* "adios.pyx":279
4148
 
 *     return id
4149
 
 * 
4150
 
 * cpdef int define_var(int64_t group_id,             # <<<<<<<<<<<<<<
4151
 
 *                      char * name,
4152
 
 *                      char * path,
4153
 
 */
4154
 
 
4155
3933
static PyObject *__pyx_pf_5adios_26define_var(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_group_id, char *__pyx_v_name, char *__pyx_v_path, int __pyx_v_type, char *__pyx_v_dimensions, char *__pyx_v_global_dimensions, char *__pyx_v_local_offsets) {
4156
3934
  PyObject *__pyx_r = NULL;
4157
3935
  __Pyx_RefNannyDeclarations
4161
3939
  int __pyx_clineno = 0;
4162
3940
  __Pyx_RefNannySetupContext("define_var", 0);
4163
3941
  __Pyx_XDECREF(__pyx_r);
4164
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_define_var(__pyx_v_group_id, __pyx_v_name, __pyx_v_path, __pyx_v_type, __pyx_v_dimensions, __pyx_v_global_dimensions, __pyx_v_local_offsets, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3942
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_define_var(__pyx_v_group_id, __pyx_v_name, __pyx_v_path, __pyx_v_type, __pyx_v_dimensions, __pyx_v_global_dimensions, __pyx_v_local_offsets, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4165
3943
  __Pyx_GOTREF(__pyx_t_1);
4166
3944
  __pyx_r = __pyx_t_1;
4167
3945
  __pyx_t_1 = 0;
4168
3946
  goto __pyx_L0;
4169
3947
 
4170
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4171
 
  goto __pyx_L0;
 
3948
  /* function exit code */
4172
3949
  __pyx_L1_error:;
4173
3950
  __Pyx_XDECREF(__pyx_t_1);
4174
3951
  __Pyx_AddTraceback("adios.define_var", __pyx_clineno, __pyx_lineno, __pyx_filename);
4179
3956
  return __pyx_r;
4180
3957
}
4181
3958
 
4182
 
/* "adios.pyx":293
 
3959
/* "adios.pyx":338
4183
3960
 *                             local_offsets)
4184
3961
 * 
4185
3962
 * cpdef int define_attribute (int64_t group,             # <<<<<<<<<<<<<<
4193
3970
  __Pyx_RefNannyDeclarations
4194
3971
  __Pyx_RefNannySetupContext("define_attribute", 0);
4195
3972
 
4196
 
  /* "adios.pyx":304
4197
 
 *                                    <ADIOS_DATATYPES> type,
4198
 
 *                                    value,
4199
 
 *                                    var)             # <<<<<<<<<<<<<<
4200
 
 * 
4201
 
 * cpdef int select_method (int64_t group,
 
3973
  /* "adios.pyx":344
 
3974
 *                             char * value,
 
3975
 *                             char * var):
 
3976
 *     return adios_define_attribute (group,             # <<<<<<<<<<<<<<
 
3977
 *                                    name,
 
3978
 *                                    path,
4202
3979
 */
4203
3980
  __pyx_r = adios_define_attribute(__pyx_v_group, __pyx_v_name, __pyx_v_path, ((ADIOS_DATATYPES)__pyx_v_type), __pyx_v_value, __pyx_v_var);
4204
3981
  goto __pyx_L0;
4205
3982
 
4206
 
  __pyx_r = 0;
 
3983
  /* "adios.pyx":338
 
3984
 *                             local_offsets)
 
3985
 * 
 
3986
 * cpdef int define_attribute (int64_t group,             # <<<<<<<<<<<<<<
 
3987
 *                             char * name,
 
3988
 *                             char * path,
 
3989
 */
 
3990
 
 
3991
  /* function exit code */
4207
3992
  __pyx_L0:;
4208
3993
  __Pyx_RefNannyFinishContext();
4209
3994
  return __pyx_r;
4225
4010
  __Pyx_RefNannyDeclarations
4226
4011
  __Pyx_RefNannySetupContext("define_attribute (wrapper)", 0);
4227
4012
  {
4228
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__group,&__pyx_n_s__name,&__pyx_n_s__path,&__pyx_n_s__type,&__pyx_n_s__value,&__pyx_n_s__var,0};
 
4013
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_group,&__pyx_n_s_name,&__pyx_n_s_path,&__pyx_n_s_type,&__pyx_n_s_value,&__pyx_n_s_var,0};
4229
4014
    PyObject* values[6] = {0,0,0,0,0,0};
4230
4015
    if (unlikely(__pyx_kwds)) {
4231
4016
      Py_ssize_t kw_args;
4243
4028
      kw_args = PyDict_Size(__pyx_kwds);
4244
4029
      switch (pos_args) {
4245
4030
        case  0:
4246
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__group)) != 0)) kw_args--;
 
4031
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_group)) != 0)) kw_args--;
4247
4032
        else goto __pyx_L5_argtuple_error;
4248
4033
        case  1:
4249
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
4034
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
4250
4035
        else {
4251
 
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4036
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4252
4037
        }
4253
4038
        case  2:
4254
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__path)) != 0)) kw_args--;
 
4039
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_path)) != 0)) kw_args--;
4255
4040
        else {
4256
 
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4041
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4257
4042
        }
4258
4043
        case  3:
4259
 
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__type)) != 0)) kw_args--;
 
4044
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
4260
4045
        else {
4261
 
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4046
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4262
4047
        }
4263
4048
        case  4:
4264
 
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value)) != 0)) kw_args--;
 
4049
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
4265
4050
        else {
4266
 
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4051
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4267
4052
        }
4268
4053
        case  5:
4269
 
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__var)) != 0)) kw_args--;
 
4054
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_var)) != 0)) kw_args--;
4270
4055
        else {
4271
 
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4056
          __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4272
4057
        }
4273
4058
      }
4274
4059
      if (unlikely(kw_args > 0)) {
4275
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "define_attribute") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4060
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "define_attribute") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4276
4061
      }
4277
4062
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
4278
4063
      goto __pyx_L5_argtuple_error;
4284
4069
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4285
4070
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4286
4071
    }
4287
 
    __pyx_v_group = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_group == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4288
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4289
 
    __pyx_v_path = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_path) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4290
 
    __pyx_v_type = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4291
 
    __pyx_v_value = __Pyx_PyObject_AsString(values[4]); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4292
 
    __pyx_v_var = __Pyx_PyObject_AsString(values[5]); if (unlikely((!__pyx_v_var) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4072
    __pyx_v_group = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_group == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4073
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4074
    __pyx_v_path = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_path) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4075
    __pyx_v_type = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4076
    __pyx_v_value = __Pyx_PyObject_AsString(values[4]); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4077
    __pyx_v_var = __Pyx_PyObject_AsString(values[5]); if (unlikely((!__pyx_v_var) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4293
4078
  }
4294
4079
  goto __pyx_L4_argument_unpacking_done;
4295
4080
  __pyx_L5_argtuple_error:;
4296
 
  __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4081
  __Pyx_RaiseArgtupleInvalid("define_attribute", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4297
4082
  __pyx_L3_error:;
4298
4083
  __Pyx_AddTraceback("adios.define_attribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
4299
4084
  __Pyx_RefNannyFinishContext();
4300
4085
  return NULL;
4301
4086
  __pyx_L4_argument_unpacking_done:;
4302
4087
  __pyx_r = __pyx_pf_5adios_28define_attribute(__pyx_self, __pyx_v_group, __pyx_v_name, __pyx_v_path, __pyx_v_type, __pyx_v_value, __pyx_v_var);
 
4088
 
 
4089
  /* function exit code */
4303
4090
  __Pyx_RefNannyFinishContext();
4304
4091
  return __pyx_r;
4305
4092
}
4306
4093
 
4307
 
/* "adios.pyx":293
4308
 
 *                             local_offsets)
4309
 
 * 
4310
 
 * cpdef int define_attribute (int64_t group,             # <<<<<<<<<<<<<<
4311
 
 *                             char * name,
4312
 
 *                             char * path,
4313
 
 */
4314
 
 
4315
4094
static PyObject *__pyx_pf_5adios_28define_attribute(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_group, char *__pyx_v_name, char *__pyx_v_path, int __pyx_v_type, char *__pyx_v_value, char *__pyx_v_var) {
4316
4095
  PyObject *__pyx_r = NULL;
4317
4096
  __Pyx_RefNannyDeclarations
4321
4100
  int __pyx_clineno = 0;
4322
4101
  __Pyx_RefNannySetupContext("define_attribute", 0);
4323
4102
  __Pyx_XDECREF(__pyx_r);
4324
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_define_attribute(__pyx_v_group, __pyx_v_name, __pyx_v_path, __pyx_v_type, __pyx_v_value, __pyx_v_var, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4103
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_define_attribute(__pyx_v_group, __pyx_v_name, __pyx_v_path, __pyx_v_type, __pyx_v_value, __pyx_v_var, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4325
4104
  __Pyx_GOTREF(__pyx_t_1);
4326
4105
  __pyx_r = __pyx_t_1;
4327
4106
  __pyx_t_1 = 0;
4328
4107
  goto __pyx_L0;
4329
4108
 
4330
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4331
 
  goto __pyx_L0;
 
4109
  /* function exit code */
4332
4110
  __pyx_L1_error:;
4333
4111
  __Pyx_XDECREF(__pyx_t_1);
4334
4112
  __Pyx_AddTraceback("adios.define_attribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
4339
4117
  return __pyx_r;
4340
4118
}
4341
4119
 
4342
 
/* "adios.pyx":306
 
4120
/* "adios.pyx":351
4343
4121
 *                                    var)
4344
4122
 * 
4345
4123
 * cpdef int select_method (int64_t group,             # <<<<<<<<<<<<<<
4353
4131
  __Pyx_RefNannyDeclarations
4354
4132
  __Pyx_RefNannySetupContext("select_method", 0);
4355
4133
 
4356
 
  /* "adios.pyx":313
 
4134
  /* "adios.pyx":355
 
4135
 *                          char * parameters,
 
4136
 *                          char * base_path):
 
4137
 *     return adios_select_method (group,             # <<<<<<<<<<<<<<
4357
4138
 *                                 method,
4358
4139
 *                                 parameters,
4359
 
 *                                 base_path)             # <<<<<<<<<<<<<<
4360
 
 * 
4361
 
 * 
4362
4140
 */
4363
4141
  __pyx_r = adios_select_method(__pyx_v_group, __pyx_v_method, __pyx_v_parameters, __pyx_v_base_path);
4364
4142
  goto __pyx_L0;
4365
4143
 
4366
 
  __pyx_r = 0;
 
4144
  /* "adios.pyx":351
 
4145
 *                                    var)
 
4146
 * 
 
4147
 * cpdef int select_method (int64_t group,             # <<<<<<<<<<<<<<
 
4148
 *                          char * method,
 
4149
 *                          char * parameters,
 
4150
 */
 
4151
 
 
4152
  /* function exit code */
4367
4153
  __pyx_L0:;
4368
4154
  __Pyx_RefNannyFinishContext();
4369
4155
  return __pyx_r;
4383
4169
  __Pyx_RefNannyDeclarations
4384
4170
  __Pyx_RefNannySetupContext("select_method (wrapper)", 0);
4385
4171
  {
4386
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__group,&__pyx_n_s__method,&__pyx_n_s__parameters,&__pyx_n_s__base_path,0};
 
4172
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_group,&__pyx_n_s_method,&__pyx_n_s_parameters,&__pyx_n_s_base_path,0};
4387
4173
    PyObject* values[4] = {0,0,0,0};
4388
4174
    if (unlikely(__pyx_kwds)) {
4389
4175
      Py_ssize_t kw_args;
4399
4185
      kw_args = PyDict_Size(__pyx_kwds);
4400
4186
      switch (pos_args) {
4401
4187
        case  0:
4402
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__group)) != 0)) kw_args--;
 
4188
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_group)) != 0)) kw_args--;
4403
4189
        else goto __pyx_L5_argtuple_error;
4404
4190
        case  1:
4405
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__method)) != 0)) kw_args--;
 
4191
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method)) != 0)) kw_args--;
4406
4192
        else {
4407
 
          __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4193
          __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4408
4194
        }
4409
4195
        case  2:
4410
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__parameters)) != 0)) kw_args--;
 
4196
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parameters)) != 0)) kw_args--;
4411
4197
        else {
4412
 
          __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4198
          __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4413
4199
        }
4414
4200
        case  3:
4415
 
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__base_path)) != 0)) kw_args--;
 
4201
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_base_path)) != 0)) kw_args--;
4416
4202
        else {
4417
 
          __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4203
          __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4418
4204
        }
4419
4205
      }
4420
4206
      if (unlikely(kw_args > 0)) {
4421
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "select_method") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4207
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "select_method") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4422
4208
      }
4423
4209
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
4424
4210
      goto __pyx_L5_argtuple_error;
4428
4214
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4429
4215
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4430
4216
    }
4431
 
    __pyx_v_group = __Pyx_PyInt_from_py_int64_t(values[0]); if (unlikely((__pyx_v_group == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4432
 
    __pyx_v_method = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_method) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4433
 
    __pyx_v_parameters = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_parameters) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4434
 
    __pyx_v_base_path = __Pyx_PyObject_AsString(values[3]); if (unlikely((!__pyx_v_base_path) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4217
    __pyx_v_group = __Pyx_PyInt_As_int64_t(values[0]); if (unlikely((__pyx_v_group == (int64_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4218
    __pyx_v_method = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_method) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4219
    __pyx_v_parameters = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_parameters) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4220
    __pyx_v_base_path = __Pyx_PyObject_AsString(values[3]); if (unlikely((!__pyx_v_base_path) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4435
4221
  }
4436
4222
  goto __pyx_L4_argument_unpacking_done;
4437
4223
  __pyx_L5_argtuple_error:;
4438
 
  __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4224
  __Pyx_RaiseArgtupleInvalid("select_method", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4439
4225
  __pyx_L3_error:;
4440
4226
  __Pyx_AddTraceback("adios.select_method", __pyx_clineno, __pyx_lineno, __pyx_filename);
4441
4227
  __Pyx_RefNannyFinishContext();
4442
4228
  return NULL;
4443
4229
  __pyx_L4_argument_unpacking_done:;
4444
4230
  __pyx_r = __pyx_pf_5adios_30select_method(__pyx_self, __pyx_v_group, __pyx_v_method, __pyx_v_parameters, __pyx_v_base_path);
 
4231
 
 
4232
  /* function exit code */
4445
4233
  __Pyx_RefNannyFinishContext();
4446
4234
  return __pyx_r;
4447
4235
}
4448
4236
 
4449
 
/* "adios.pyx":306
4450
 
 *                                    var)
4451
 
 * 
4452
 
 * cpdef int select_method (int64_t group,             # <<<<<<<<<<<<<<
4453
 
 *                          char * method,
4454
 
 *                          char * parameters,
4455
 
 */
4456
 
 
4457
4237
static PyObject *__pyx_pf_5adios_30select_method(CYTHON_UNUSED PyObject *__pyx_self, int64_t __pyx_v_group, char *__pyx_v_method, char *__pyx_v_parameters, char *__pyx_v_base_path) {
4458
4238
  PyObject *__pyx_r = NULL;
4459
4239
  __Pyx_RefNannyDeclarations
4463
4243
  int __pyx_clineno = 0;
4464
4244
  __Pyx_RefNannySetupContext("select_method", 0);
4465
4245
  __Pyx_XDECREF(__pyx_r);
4466
 
  __pyx_t_1 = PyInt_FromLong(__pyx_f_5adios_select_method(__pyx_v_group, __pyx_v_method, __pyx_v_parameters, __pyx_v_base_path, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4246
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_f_5adios_select_method(__pyx_v_group, __pyx_v_method, __pyx_v_parameters, __pyx_v_base_path, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4467
4247
  __Pyx_GOTREF(__pyx_t_1);
4468
4248
  __pyx_r = __pyx_t_1;
4469
4249
  __pyx_t_1 = 0;
4470
4250
  goto __pyx_L0;
4471
4251
 
4472
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4473
 
  goto __pyx_L0;
 
4252
  /* function exit code */
4474
4253
  __pyx_L1_error:;
4475
4254
  __Pyx_XDECREF(__pyx_t_1);
4476
4255
  __Pyx_AddTraceback("adios.select_method", __pyx_clineno, __pyx_lineno, __pyx_filename);
4481
4260
  return __pyx_r;
4482
4261
}
4483
4262
 
4484
 
/* "adios.pyx":320
4485
 
 * ## ==========
 
4263
/* "adios.pyx":365
 
4264
 * ## ====================
4486
4265
 * 
4487
 
 * cpdef type adios2nptype(ADIOS_DATATYPES t):             # <<<<<<<<<<<<<<
 
4266
 * cdef type adios2nptype(ADIOS_DATATYPES t):             # <<<<<<<<<<<<<<
4488
4267
 *     cdef type ntype = None
4489
4268
 *     if t == adios_byte:
4490
4269
 */
4491
4270
 
4492
 
static PyObject *__pyx_pw_5adios_33adios2nptype(PyObject *__pyx_self, PyObject *__pyx_arg_t); /*proto*/
4493
 
static PyObject *__pyx_f_5adios_adios2nptype(ADIOS_DATATYPES __pyx_v_t, CYTHON_UNUSED int __pyx_skip_dispatch) {
 
4271
static PyObject *__pyx_f_5adios_adios2nptype(ADIOS_DATATYPES __pyx_v_t) {
4494
4272
  PyObject *__pyx_v_ntype = 0;
4495
4273
  PyObject *__pyx_r = NULL;
4496
4274
  __Pyx_RefNannyDeclarations
4501
4279
  int __pyx_clineno = 0;
4502
4280
  __Pyx_RefNannySetupContext("adios2nptype", 0);
4503
4281
 
4504
 
  /* "adios.pyx":321
 
4282
  /* "adios.pyx":366
4505
4283
 * 
4506
 
 * cpdef type adios2nptype(ADIOS_DATATYPES t):
 
4284
 * cdef type adios2nptype(ADIOS_DATATYPES t):
4507
4285
 *     cdef type ntype = None             # <<<<<<<<<<<<<<
4508
4286
 *     if t == adios_byte:
4509
4287
 *         ntype = np.int8
4511
4289
  __Pyx_INCREF(Py_None);
4512
4290
  __pyx_v_ntype = ((PyObject*)Py_None);
4513
4291
 
4514
 
  /* "adios.pyx":346
 
4292
  /* "adios.pyx":391
4515
4293
 *     elif t == adios_complex:
4516
4294
 *         ntype = np.complex64
4517
4295
 *     elif t == adios_double_complex:             # <<<<<<<<<<<<<<
4520
4298
 */
4521
4299
  switch (__pyx_v_t) {
4522
4300
 
4523
 
    /* "adios.pyx":322
4524
 
 * cpdef type adios2nptype(ADIOS_DATATYPES t):
 
4301
    /* "adios.pyx":367
 
4302
 * cdef type adios2nptype(ADIOS_DATATYPES t):
4525
4303
 *     cdef type ntype = None
4526
4304
 *     if t == adios_byte:             # <<<<<<<<<<<<<<
4527
4305
 *         ntype = np.int8
4529
4307
 */
4530
4308
    case adios_byte:
4531
4309
 
4532
 
    /* "adios.pyx":323
 
4310
    /* "adios.pyx":368
4533
4311
 *     cdef type ntype = None
4534
4312
 *     if t == adios_byte:
4535
4313
 *         ntype = np.int8             # <<<<<<<<<<<<<<
4536
4314
 *     elif t == adios_short:
4537
4315
 *         ntype = np.int16
4538
4316
 */
4539
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4317
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4540
4318
    __Pyx_GOTREF(__pyx_t_1);
4541
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__int8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4319
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4542
4320
    __Pyx_GOTREF(__pyx_t_2);
4543
4321
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4544
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4545
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4546
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4322
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4323
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4547
4324
    __pyx_t_2 = 0;
4548
4325
    break;
4549
4326
 
4550
 
    /* "adios.pyx":324
 
4327
    /* "adios.pyx":369
4551
4328
 *     if t == adios_byte:
4552
4329
 *         ntype = np.int8
4553
4330
 *     elif t == adios_short:             # <<<<<<<<<<<<<<
4556
4333
 */
4557
4334
    case adios_short:
4558
4335
 
4559
 
    /* "adios.pyx":325
 
4336
    /* "adios.pyx":370
4560
4337
 *         ntype = np.int8
4561
4338
 *     elif t == adios_short:
4562
4339
 *         ntype = np.int16             # <<<<<<<<<<<<<<
4563
4340
 *     elif t == adios_integer:
4564
4341
 *         ntype = np.int32
4565
4342
 */
4566
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4343
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4567
4344
    __Pyx_GOTREF(__pyx_t_2);
4568
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__int16); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4345
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_int16); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4569
4346
    __Pyx_GOTREF(__pyx_t_1);
4570
4347
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4571
 
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4572
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4573
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_1);
 
4348
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4349
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_1));
4574
4350
    __pyx_t_1 = 0;
4575
4351
    break;
4576
4352
 
4577
 
    /* "adios.pyx":326
 
4353
    /* "adios.pyx":371
4578
4354
 *     elif t == adios_short:
4579
4355
 *         ntype = np.int16
4580
4356
 *     elif t == adios_integer:             # <<<<<<<<<<<<<<
4583
4359
 */
4584
4360
    case adios_integer:
4585
4361
 
4586
 
    /* "adios.pyx":327
 
4362
    /* "adios.pyx":372
4587
4363
 *         ntype = np.int16
4588
4364
 *     elif t == adios_integer:
4589
4365
 *         ntype = np.int32             # <<<<<<<<<<<<<<
4590
4366
 *     elif t == adios_long:
4591
4367
 *         ntype = np.int64
4592
4368
 */
4593
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4369
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4594
4370
    __Pyx_GOTREF(__pyx_t_1);
4595
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__int32); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4371
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int32); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4596
4372
    __Pyx_GOTREF(__pyx_t_2);
4597
4373
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4598
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4599
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4600
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4374
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4375
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4601
4376
    __pyx_t_2 = 0;
4602
4377
    break;
4603
4378
 
4604
 
    /* "adios.pyx":328
 
4379
    /* "adios.pyx":373
4605
4380
 *     elif t == adios_integer:
4606
4381
 *         ntype = np.int32
4607
4382
 *     elif t == adios_long:             # <<<<<<<<<<<<<<
4610
4385
 */
4611
4386
    case adios_long:
4612
4387
 
4613
 
    /* "adios.pyx":329
 
4388
    /* "adios.pyx":374
4614
4389
 *         ntype = np.int32
4615
4390
 *     elif t == adios_long:
4616
4391
 *         ntype = np.int64             # <<<<<<<<<<<<<<
4617
4392
 *     elif t == adios_unsigned_byte:
4618
4393
 *         ntype = np.uint8
4619
4394
 */
4620
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4395
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4621
4396
    __Pyx_GOTREF(__pyx_t_2);
4622
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__int64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4397
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_int64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4623
4398
    __Pyx_GOTREF(__pyx_t_1);
4624
4399
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4625
 
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4626
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4627
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_1);
 
4400
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4401
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_1));
4628
4402
    __pyx_t_1 = 0;
4629
4403
    break;
4630
4404
 
4631
 
    /* "adios.pyx":330
 
4405
    /* "adios.pyx":375
4632
4406
 *     elif t == adios_long:
4633
4407
 *         ntype = np.int64
4634
4408
 *     elif t == adios_unsigned_byte:             # <<<<<<<<<<<<<<
4637
4411
 */
4638
4412
    case adios_unsigned_byte:
4639
4413
 
4640
 
    /* "adios.pyx":331
 
4414
    /* "adios.pyx":376
4641
4415
 *         ntype = np.int64
4642
4416
 *     elif t == adios_unsigned_byte:
4643
4417
 *         ntype = np.uint8             # <<<<<<<<<<<<<<
4644
4418
 *     elif t == adios_unsigned_short:
4645
4419
 *         ntype = np.uint16
4646
4420
 */
4647
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4421
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4648
4422
    __Pyx_GOTREF(__pyx_t_1);
4649
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__uint8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4423
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_uint8); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4650
4424
    __Pyx_GOTREF(__pyx_t_2);
4651
4425
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4652
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4653
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4654
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4426
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4427
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4655
4428
    __pyx_t_2 = 0;
4656
4429
    break;
4657
4430
 
4658
 
    /* "adios.pyx":332
 
4431
    /* "adios.pyx":377
4659
4432
 *     elif t == adios_unsigned_byte:
4660
4433
 *         ntype = np.uint8
4661
4434
 *     elif t == adios_unsigned_short:             # <<<<<<<<<<<<<<
4664
4437
 */
4665
4438
    case adios_unsigned_short:
4666
4439
 
4667
 
    /* "adios.pyx":333
 
4440
    /* "adios.pyx":378
4668
4441
 *         ntype = np.uint8
4669
4442
 *     elif t == adios_unsigned_short:
4670
4443
 *         ntype = np.uint16             # <<<<<<<<<<<<<<
4671
4444
 *     elif t == adios_unsigned_integer:
4672
4445
 *         ntype = np.uint32
4673
4446
 */
4674
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4447
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4675
4448
    __Pyx_GOTREF(__pyx_t_2);
4676
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__uint16); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4449
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_uint16); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4677
4450
    __Pyx_GOTREF(__pyx_t_1);
4678
4451
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4679
 
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4680
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4681
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_1);
 
4452
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4453
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_1));
4682
4454
    __pyx_t_1 = 0;
4683
4455
    break;
4684
4456
 
4685
 
    /* "adios.pyx":334
 
4457
    /* "adios.pyx":379
4686
4458
 *     elif t == adios_unsigned_short:
4687
4459
 *         ntype = np.uint16
4688
4460
 *     elif t == adios_unsigned_integer:             # <<<<<<<<<<<<<<
4691
4463
 */
4692
4464
    case adios_unsigned_integer:
4693
4465
 
4694
 
    /* "adios.pyx":335
 
4466
    /* "adios.pyx":380
4695
4467
 *         ntype = np.uint16
4696
4468
 *     elif t == adios_unsigned_integer:
4697
4469
 *         ntype = np.uint32             # <<<<<<<<<<<<<<
4698
4470
 *     elif t == adios_unsigned_long:
4699
4471
 *         ntype = np.uint64
4700
4472
 */
4701
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4473
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4702
4474
    __Pyx_GOTREF(__pyx_t_1);
4703
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__uint32); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4475
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_uint32); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4704
4476
    __Pyx_GOTREF(__pyx_t_2);
4705
4477
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4706
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4707
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4708
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4478
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4479
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4709
4480
    __pyx_t_2 = 0;
4710
4481
    break;
4711
4482
 
4712
 
    /* "adios.pyx":336
 
4483
    /* "adios.pyx":381
4713
4484
 *     elif t == adios_unsigned_integer:
4714
4485
 *         ntype = np.uint32
4715
4486
 *     elif t == adios_unsigned_long:             # <<<<<<<<<<<<<<
4718
4489
 */
4719
4490
    case adios_unsigned_long:
4720
4491
 
4721
 
    /* "adios.pyx":337
 
4492
    /* "adios.pyx":382
4722
4493
 *         ntype = np.uint32
4723
4494
 *     elif t == adios_unsigned_long:
4724
4495
 *         ntype = np.uint64             # <<<<<<<<<<<<<<
4725
4496
 *     elif t == adios_real:
4726
4497
 *         ntype = np.float32
4727
4498
 */
4728
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4499
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4729
4500
    __Pyx_GOTREF(__pyx_t_2);
4730
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__uint64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4501
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_uint64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4731
4502
    __Pyx_GOTREF(__pyx_t_1);
4732
4503
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4733
 
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4734
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4735
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_1);
 
4504
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4505
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_1));
4736
4506
    __pyx_t_1 = 0;
4737
4507
    break;
4738
4508
 
4739
 
    /* "adios.pyx":338
 
4509
    /* "adios.pyx":383
4740
4510
 *     elif t == adios_unsigned_long:
4741
4511
 *         ntype = np.uint64
4742
4512
 *     elif t == adios_real:             # <<<<<<<<<<<<<<
4745
4515
 */
4746
4516
    case adios_real:
4747
4517
 
4748
 
    /* "adios.pyx":339
 
4518
    /* "adios.pyx":384
4749
4519
 *         ntype = np.uint64
4750
4520
 *     elif t == adios_real:
4751
4521
 *         ntype = np.float32             # <<<<<<<<<<<<<<
4752
4522
 *     elif t == adios_double:
4753
4523
 *         ntype = np.float64
4754
4524
 */
4755
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4525
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4756
4526
    __Pyx_GOTREF(__pyx_t_1);
4757
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__float32); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4527
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float32); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4758
4528
    __Pyx_GOTREF(__pyx_t_2);
4759
4529
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4760
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4761
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4762
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4530
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4531
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4763
4532
    __pyx_t_2 = 0;
4764
4533
    break;
4765
4534
 
4766
 
    /* "adios.pyx":340
 
4535
    /* "adios.pyx":385
4767
4536
 *     elif t == adios_real:
4768
4537
 *         ntype = np.float32
4769
4538
 *     elif t == adios_double:             # <<<<<<<<<<<<<<
4772
4541
 */
4773
4542
    case adios_double:
4774
4543
 
4775
 
    /* "adios.pyx":341
 
4544
    /* "adios.pyx":386
4776
4545
 *         ntype = np.float32
4777
4546
 *     elif t == adios_double:
4778
4547
 *         ntype = np.float64             # <<<<<<<<<<<<<<
4779
4548
 *     elif t == adios_long_double:
4780
4549
 *         ntype = np.float128
4781
4550
 */
4782
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4551
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4783
4552
    __Pyx_GOTREF(__pyx_t_2);
4784
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__float64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4553
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_float64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4785
4554
    __Pyx_GOTREF(__pyx_t_1);
4786
4555
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4787
 
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4788
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4789
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_1);
 
4556
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4557
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_1));
4790
4558
    __pyx_t_1 = 0;
4791
4559
    break;
4792
4560
 
4793
 
    /* "adios.pyx":342
 
4561
    /* "adios.pyx":387
4794
4562
 *     elif t == adios_double:
4795
4563
 *         ntype = np.float64
4796
4564
 *     elif t == adios_long_double:             # <<<<<<<<<<<<<<
4799
4567
 */
4800
4568
    case adios_long_double:
4801
4569
 
4802
 
    /* "adios.pyx":343
 
4570
    /* "adios.pyx":388
4803
4571
 *         ntype = np.float64
4804
4572
 *     elif t == adios_long_double:
4805
4573
 *         ntype = np.float128             # <<<<<<<<<<<<<<
4806
4574
 *     elif t == adios_complex:
4807
4575
 *         ntype = np.complex64
4808
4576
 */
4809
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4577
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4810
4578
    __Pyx_GOTREF(__pyx_t_1);
4811
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__float128); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4579
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float128); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4812
4580
    __Pyx_GOTREF(__pyx_t_2);
4813
4581
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4814
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4815
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4816
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4582
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4583
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4817
4584
    __pyx_t_2 = 0;
4818
4585
    break;
4819
4586
 
4820
 
    /* "adios.pyx":344
 
4587
    /* "adios.pyx":389
4821
4588
 *     elif t == adios_long_double:
4822
4589
 *         ntype = np.float128
4823
4590
 *     elif t == adios_complex:             # <<<<<<<<<<<<<<
4826
4593
 */
4827
4594
    case adios_complex:
4828
4595
 
4829
 
    /* "adios.pyx":345
 
4596
    /* "adios.pyx":390
4830
4597
 *         ntype = np.float128
4831
4598
 *     elif t == adios_complex:
4832
4599
 *         ntype = np.complex64             # <<<<<<<<<<<<<<
4833
4600
 *     elif t == adios_double_complex:
4834
4601
 *         ntype = np.complex128
4835
4602
 */
4836
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4603
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4837
4604
    __Pyx_GOTREF(__pyx_t_2);
4838
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__complex64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4605
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_complex64); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4839
4606
    __Pyx_GOTREF(__pyx_t_1);
4840
4607
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4841
 
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4842
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4843
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_1);
 
4608
    if (!(likely(PyType_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_1)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4609
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_1));
4844
4610
    __pyx_t_1 = 0;
4845
4611
    break;
4846
4612
 
4847
 
    /* "adios.pyx":346
 
4613
    /* "adios.pyx":391
4848
4614
 *     elif t == adios_complex:
4849
4615
 *         ntype = np.complex64
4850
4616
 *     elif t == adios_double_complex:             # <<<<<<<<<<<<<<
4853
4619
 */
4854
4620
    case adios_double_complex:
4855
4621
 
4856
 
    /* "adios.pyx":347
 
4622
    /* "adios.pyx":392
4857
4623
 *         ntype = np.complex64
4858
4624
 *     elif t == adios_double_complex:
4859
4625
 *         ntype = np.complex128             # <<<<<<<<<<<<<<
4860
4626
 *     else:
4861
4627
 *         ntype = None
4862
4628
 */
4863
 
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4629
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4864
4630
    __Pyx_GOTREF(__pyx_t_1);
4865
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__complex128); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4631
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_complex128); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4866
4632
    __Pyx_GOTREF(__pyx_t_2);
4867
4633
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4868
 
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4869
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4870
 
    __pyx_v_ntype = ((PyObject*)__pyx_t_2);
 
4634
    if (!(likely(PyType_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4635
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)__pyx_t_2));
4871
4636
    __pyx_t_2 = 0;
4872
4637
    break;
4873
4638
    default:
4874
4639
 
4875
 
    /* "adios.pyx":349
 
4640
    /* "adios.pyx":394
4876
4641
 *         ntype = np.complex128
4877
4642
 *     else:
4878
4643
 *         ntype = None             # <<<<<<<<<<<<<<
4880
4645
 *     return ntype
4881
4646
 */
4882
4647
    __Pyx_INCREF(Py_None);
4883
 
    __Pyx_DECREF(((PyObject *)__pyx_v_ntype));
4884
 
    __pyx_v_ntype = ((PyObject*)Py_None);
 
4648
    __Pyx_DECREF_SET(__pyx_v_ntype, ((PyObject*)Py_None));
4885
4649
    break;
4886
4650
  }
4887
4651
 
4888
 
  /* "adios.pyx":351
 
4652
  /* "adios.pyx":396
4889
4653
 *         ntype = None
4890
4654
 * 
4891
4655
 *     return ntype             # <<<<<<<<<<<<<<
4892
4656
 * 
4893
 
 * """
 
4657
 * cdef printfile(ADIOS_FILE * f):
4894
4658
 */
4895
4659
  __Pyx_XDECREF(((PyObject *)__pyx_r));
4896
4660
  __Pyx_INCREF(((PyObject *)__pyx_v_ntype));
4897
4661
  __pyx_r = __pyx_v_ntype;
4898
4662
  goto __pyx_L0;
4899
4663
 
4900
 
  __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
4901
 
  goto __pyx_L0;
4902
 
  __pyx_L1_error:;
4903
 
  __Pyx_XDECREF(__pyx_t_1);
4904
 
  __Pyx_XDECREF(__pyx_t_2);
4905
 
  __Pyx_AddTraceback("adios.adios2nptype", __pyx_clineno, __pyx_lineno, __pyx_filename);
4906
 
  __pyx_r = 0;
4907
 
  __pyx_L0:;
4908
 
  __Pyx_XDECREF(__pyx_v_ntype);
4909
 
  __Pyx_XGIVEREF(__pyx_r);
4910
 
  __Pyx_RefNannyFinishContext();
4911
 
  return __pyx_r;
4912
 
}
4913
 
 
4914
 
/* Python wrapper */
4915
 
static PyObject *__pyx_pw_5adios_33adios2nptype(PyObject *__pyx_self, PyObject *__pyx_arg_t); /*proto*/
4916
 
static PyObject *__pyx_pw_5adios_33adios2nptype(PyObject *__pyx_self, PyObject *__pyx_arg_t) {
4917
 
  ADIOS_DATATYPES __pyx_v_t;
4918
 
  int __pyx_lineno = 0;
4919
 
  const char *__pyx_filename = NULL;
4920
 
  int __pyx_clineno = 0;
4921
 
  PyObject *__pyx_r = 0;
4922
 
  __Pyx_RefNannyDeclarations
4923
 
  __Pyx_RefNannySetupContext("adios2nptype (wrapper)", 0);
4924
 
  assert(__pyx_arg_t); {
4925
 
    __pyx_v_t = ((ADIOS_DATATYPES)PyInt_AsLong(__pyx_arg_t)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
4926
 
  }
4927
 
  goto __pyx_L4_argument_unpacking_done;
4928
 
  __pyx_L3_error:;
4929
 
  __Pyx_AddTraceback("adios.adios2nptype", __pyx_clineno, __pyx_lineno, __pyx_filename);
4930
 
  __Pyx_RefNannyFinishContext();
4931
 
  return NULL;
4932
 
  __pyx_L4_argument_unpacking_done:;
4933
 
  __pyx_r = __pyx_pf_5adios_32adios2nptype(__pyx_self, ((ADIOS_DATATYPES)__pyx_v_t));
4934
 
  __Pyx_RefNannyFinishContext();
4935
 
  return __pyx_r;
4936
 
}
4937
 
 
4938
 
/* "adios.pyx":320
4939
 
 * ## ==========
4940
 
 * 
4941
 
 * cpdef type adios2nptype(ADIOS_DATATYPES t):             # <<<<<<<<<<<<<<
4942
 
 *     cdef type ntype = None
4943
 
 *     if t == adios_byte:
4944
 
 */
4945
 
 
4946
 
static PyObject *__pyx_pf_5adios_32adios2nptype(CYTHON_UNUSED PyObject *__pyx_self, ADIOS_DATATYPES __pyx_v_t) {
4947
 
  PyObject *__pyx_r = NULL;
4948
 
  __Pyx_RefNannyDeclarations
4949
 
  PyObject *__pyx_t_1 = NULL;
4950
 
  int __pyx_lineno = 0;
4951
 
  const char *__pyx_filename = NULL;
4952
 
  int __pyx_clineno = 0;
4953
 
  __Pyx_RefNannySetupContext("adios2nptype", 0);
4954
 
  __Pyx_XDECREF(__pyx_r);
4955
 
  __pyx_t_1 = ((PyObject *)__pyx_f_5adios_adios2nptype(__pyx_v_t, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4956
 
  __Pyx_GOTREF(__pyx_t_1);
4957
 
  __pyx_r = __pyx_t_1;
4958
 
  __pyx_t_1 = 0;
4959
 
  goto __pyx_L0;
4960
 
 
4961
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4962
 
  goto __pyx_L0;
4963
 
  __pyx_L1_error:;
4964
 
  __Pyx_XDECREF(__pyx_t_1);
4965
 
  __Pyx_AddTraceback("adios.adios2nptype", __pyx_clineno, __pyx_lineno, __pyx_filename);
4966
 
  __pyx_r = NULL;
4967
 
  __pyx_L0:;
4968
 
  __Pyx_XGIVEREF(__pyx_r);
4969
 
  __Pyx_RefNannyFinishContext();
4970
 
  return __pyx_r;
4971
 
}
4972
 
 
4973
 
/* "adios.pyx":364
4974
 
 * """
4975
 
 * 
4976
 
 * cdef printAdiosFile(ADIOS_FILE * f):             # <<<<<<<<<<<<<<
4977
 
 *     print '%15s : %lu' % ('fh', f.fh)
4978
 
 *     print '%15s : %d' % ('groups_count', f.groups_count)
4979
 
 */
4980
 
 
4981
 
static PyObject *__pyx_f_5adios_printAdiosFile(ADIOS_FILE *__pyx_v_f) {
4982
 
  int __pyx_v_i;
4983
 
  PyObject *__pyx_r = NULL;
4984
 
  __Pyx_RefNannyDeclarations
4985
 
  PyObject *__pyx_t_1 = NULL;
4986
 
  PyObject *__pyx_t_2 = NULL;
4987
 
  int __pyx_t_3;
4988
 
  int __pyx_t_4;
4989
 
  int __pyx_lineno = 0;
4990
 
  const char *__pyx_filename = NULL;
4991
 
  int __pyx_clineno = 0;
4992
 
  __Pyx_RefNannySetupContext("printAdiosFile", 0);
4993
 
 
4994
4664
  /* "adios.pyx":365
4995
 
 * 
4996
 
 * cdef printAdiosFile(ADIOS_FILE * f):
 
4665
 * ## ====================
 
4666
 * 
 
4667
 * cdef type adios2nptype(ADIOS_DATATYPES t):             # <<<<<<<<<<<<<<
 
4668
 *     cdef type ntype = None
 
4669
 *     if t == adios_byte:
 
4670
 */
 
4671
 
 
4672
  /* function exit code */
 
4673
  __pyx_L1_error:;
 
4674
  __Pyx_XDECREF(__pyx_t_1);
 
4675
  __Pyx_XDECREF(__pyx_t_2);
 
4676
  __Pyx_AddTraceback("adios.adios2nptype", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
4677
  __pyx_r = 0;
 
4678
  __pyx_L0:;
 
4679
  __Pyx_XDECREF(__pyx_v_ntype);
 
4680
  __Pyx_XGIVEREF(__pyx_r);
 
4681
  __Pyx_RefNannyFinishContext();
 
4682
  return __pyx_r;
 
4683
}
 
4684
 
 
4685
/* "adios.pyx":398
 
4686
 *     return ntype
 
4687
 * 
 
4688
 * cdef printfile(ADIOS_FILE * f):             # <<<<<<<<<<<<<<
 
4689
 *     print '%15s : %lu' % ('fh', f.fh)
 
4690
 *     print '%15s : %d' % ('nvars', f.nvars)
 
4691
 */
 
4692
 
 
4693
static PyObject *__pyx_f_5adios_printfile(ADIOS_FILE *__pyx_v_f) {
 
4694
  int __pyx_v_i;
 
4695
  PyObject *__pyx_r = NULL;
 
4696
  __Pyx_RefNannyDeclarations
 
4697
  PyObject *__pyx_t_1 = NULL;
 
4698
  PyObject *__pyx_t_2 = NULL;
 
4699
  int __pyx_t_3;
 
4700
  int __pyx_t_4;
 
4701
  int __pyx_lineno = 0;
 
4702
  const char *__pyx_filename = NULL;
 
4703
  int __pyx_clineno = 0;
 
4704
  __Pyx_RefNannySetupContext("printfile", 0);
 
4705
 
 
4706
  /* "adios.pyx":399
 
4707
 * 
 
4708
 * cdef printfile(ADIOS_FILE * f):
4997
4709
 *     print '%15s : %lu' % ('fh', f.fh)             # <<<<<<<<<<<<<<
4998
 
 *     print '%15s : %d' % ('groups_count', f.groups_count)
4999
 
 *     print '%15s : %d' % ('vars_count', f.vars_count)
5000
 
 */
5001
 
  __pyx_t_1 = __Pyx_PyInt_to_py_uint64_t(__pyx_v_f->fh); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5002
 
  __Pyx_GOTREF(__pyx_t_1);
5003
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5004
 
  __Pyx_GOTREF(__pyx_t_2);
5005
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__fh));
5006
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__fh));
5007
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fh));
5008
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5009
 
  __Pyx_GIVEREF(__pyx_t_1);
5010
 
  __pyx_t_1 = 0;
5011
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5012
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5013
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5014
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5015
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5016
 
 
5017
 
  /* "adios.pyx":366
5018
 
 * cdef printAdiosFile(ADIOS_FILE * f):
5019
 
 *     print '%15s : %lu' % ('fh', f.fh)
5020
 
 *     print '%15s : %d' % ('groups_count', f.groups_count)             # <<<<<<<<<<<<<<
5021
 
 *     print '%15s : %d' % ('vars_count', f.vars_count)
5022
 
 *     print '%15s : %d' % ('attrs_count', f.attrs_count)
5023
 
 */
5024
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->groups_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5025
 
  __Pyx_GOTREF(__pyx_t_1);
5026
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5027
 
  __Pyx_GOTREF(__pyx_t_2);
5028
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__groups_count));
5029
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__groups_count));
5030
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__groups_count));
5031
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5032
 
  __Pyx_GIVEREF(__pyx_t_1);
5033
 
  __pyx_t_1 = 0;
5034
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5035
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5036
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5037
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5038
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5039
 
 
5040
 
  /* "adios.pyx":367
5041
 
 *     print '%15s : %lu' % ('fh', f.fh)
5042
 
 *     print '%15s : %d' % ('groups_count', f.groups_count)
5043
 
 *     print '%15s : %d' % ('vars_count', f.vars_count)             # <<<<<<<<<<<<<<
5044
 
 *     print '%15s : %d' % ('attrs_count', f.attrs_count)
5045
 
 *     print '%15s : %d' % ('tidx_start', f.tidx_start)
5046
 
 */
5047
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->vars_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5048
 
  __Pyx_GOTREF(__pyx_t_1);
5049
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5050
 
  __Pyx_GOTREF(__pyx_t_2);
5051
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__vars_count));
5052
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__vars_count));
5053
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__vars_count));
5054
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5055
 
  __Pyx_GIVEREF(__pyx_t_1);
5056
 
  __pyx_t_1 = 0;
5057
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5058
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5059
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5060
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5061
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5062
 
 
5063
 
  /* "adios.pyx":368
5064
 
 *     print '%15s : %d' % ('groups_count', f.groups_count)
5065
 
 *     print '%15s : %d' % ('vars_count', f.vars_count)
5066
 
 *     print '%15s : %d' % ('attrs_count', f.attrs_count)             # <<<<<<<<<<<<<<
5067
 
 *     print '%15s : %d' % ('tidx_start', f.tidx_start)
5068
 
 *     print '%15s : %d' % ('ntimesteps', f.ntimesteps)
5069
 
 */
5070
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->attrs_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5071
 
  __Pyx_GOTREF(__pyx_t_1);
5072
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5073
 
  __Pyx_GOTREF(__pyx_t_2);
5074
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__attrs_count));
5075
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__attrs_count));
5076
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__attrs_count));
5077
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5078
 
  __Pyx_GIVEREF(__pyx_t_1);
5079
 
  __pyx_t_1 = 0;
5080
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5081
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5082
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5083
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5084
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5085
 
 
5086
 
  /* "adios.pyx":369
5087
 
 *     print '%15s : %d' % ('vars_count', f.vars_count)
5088
 
 *     print '%15s : %d' % ('attrs_count', f.attrs_count)
5089
 
 *     print '%15s : %d' % ('tidx_start', f.tidx_start)             # <<<<<<<<<<<<<<
5090
 
 *     print '%15s : %d' % ('ntimesteps', f.ntimesteps)
 
4710
 *     print '%15s : %d' % ('nvars', f.nvars)
 
4711
 *     print '%15s : %s' % ('var_namelist', [f.var_namelist[i] for i in range(f.nvars)])
 
4712
 */
 
4713
  __pyx_t_1 = __Pyx_PyInt_From_uint64_t(__pyx_v_f->fh); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4714
  __Pyx_GOTREF(__pyx_t_1);
 
4715
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4716
  __Pyx_GOTREF(__pyx_t_2);
 
4717
  __Pyx_INCREF(__pyx_n_s_fh);
 
4718
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_fh);
 
4719
  __Pyx_GIVEREF(__pyx_n_s_fh);
 
4720
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4721
  __Pyx_GIVEREF(__pyx_t_1);
 
4722
  __pyx_t_1 = 0;
 
4723
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_lu, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4724
  __Pyx_GOTREF(__pyx_t_1);
 
4725
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4726
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4727
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4728
 
 
4729
  /* "adios.pyx":400
 
4730
 * cdef printfile(ADIOS_FILE * f):
 
4731
 *     print '%15s : %lu' % ('fh', f.fh)
 
4732
 *     print '%15s : %d' % ('nvars', f.nvars)             # <<<<<<<<<<<<<<
 
4733
 *     print '%15s : %s' % ('var_namelist', [f.var_namelist[i] for i in range(f.nvars)])
 
4734
 *     print '%15s : %d' % ('nattrs', f.nattrs)
 
4735
 */
 
4736
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->nvars); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4737
  __Pyx_GOTREF(__pyx_t_1);
 
4738
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4739
  __Pyx_GOTREF(__pyx_t_2);
 
4740
  __Pyx_INCREF(__pyx_n_s_nvars);
 
4741
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_nvars);
 
4742
  __Pyx_GIVEREF(__pyx_n_s_nvars);
 
4743
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4744
  __Pyx_GIVEREF(__pyx_t_1);
 
4745
  __pyx_t_1 = 0;
 
4746
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4747
  __Pyx_GOTREF(__pyx_t_1);
 
4748
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4749
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4750
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4751
 
 
4752
  /* "adios.pyx":401
 
4753
 *     print '%15s : %lu' % ('fh', f.fh)
 
4754
 *     print '%15s : %d' % ('nvars', f.nvars)
 
4755
 *     print '%15s : %s' % ('var_namelist', [f.var_namelist[i] for i in range(f.nvars)])             # <<<<<<<<<<<<<<
 
4756
 *     print '%15s : %d' % ('nattrs', f.nattrs)
 
4757
 *     print '%15s : %s' % ('attr_namelist', [f.attr_namelist[i] for i in range(f.nattrs)])
 
4758
 */
 
4759
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4760
  __Pyx_GOTREF(__pyx_t_1);
 
4761
  __pyx_t_3 = __pyx_v_f->nvars;
 
4762
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
 
4763
    __pyx_v_i = __pyx_t_4;
 
4764
    __pyx_t_2 = __Pyx_PyBytes_FromString((__pyx_v_f->var_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4765
    __Pyx_GOTREF(__pyx_t_2);
 
4766
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4767
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4768
  }
 
4769
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4770
  __Pyx_GOTREF(__pyx_t_2);
 
4771
  __Pyx_INCREF(__pyx_n_s_var_namelist);
 
4772
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_var_namelist);
 
4773
  __Pyx_GIVEREF(__pyx_n_s_var_namelist);
 
4774
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4775
  __Pyx_GIVEREF(__pyx_t_1);
 
4776
  __pyx_t_1 = 0;
 
4777
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4778
  __Pyx_GOTREF(__pyx_t_1);
 
4779
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4780
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4781
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4782
 
 
4783
  /* "adios.pyx":402
 
4784
 *     print '%15s : %d' % ('nvars', f.nvars)
 
4785
 *     print '%15s : %s' % ('var_namelist', [f.var_namelist[i] for i in range(f.nvars)])
 
4786
 *     print '%15s : %d' % ('nattrs', f.nattrs)             # <<<<<<<<<<<<<<
 
4787
 *     print '%15s : %s' % ('attr_namelist', [f.attr_namelist[i] for i in range(f.nattrs)])
 
4788
 *     print '%15s : %d' % ('current_step', f.current_step)
 
4789
 */
 
4790
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->nattrs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4791
  __Pyx_GOTREF(__pyx_t_1);
 
4792
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4793
  __Pyx_GOTREF(__pyx_t_2);
 
4794
  __Pyx_INCREF(__pyx_n_s_nattrs);
 
4795
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_nattrs);
 
4796
  __Pyx_GIVEREF(__pyx_n_s_nattrs);
 
4797
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4798
  __Pyx_GIVEREF(__pyx_t_1);
 
4799
  __pyx_t_1 = 0;
 
4800
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4801
  __Pyx_GOTREF(__pyx_t_1);
 
4802
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4803
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4804
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4805
 
 
4806
  /* "adios.pyx":403
 
4807
 *     print '%15s : %s' % ('var_namelist', [f.var_namelist[i] for i in range(f.nvars)])
 
4808
 *     print '%15s : %d' % ('nattrs', f.nattrs)
 
4809
 *     print '%15s : %s' % ('attr_namelist', [f.attr_namelist[i] for i in range(f.nattrs)])             # <<<<<<<<<<<<<<
 
4810
 *     print '%15s : %d' % ('current_step', f.current_step)
 
4811
 *     print '%15s : %d' % ('last_step', f.last_step)
 
4812
 */
 
4813
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4814
  __Pyx_GOTREF(__pyx_t_1);
 
4815
  __pyx_t_3 = __pyx_v_f->nattrs;
 
4816
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
 
4817
    __pyx_v_i = __pyx_t_4;
 
4818
    __pyx_t_2 = __Pyx_PyBytes_FromString((__pyx_v_f->attr_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4819
    __Pyx_GOTREF(__pyx_t_2);
 
4820
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4821
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4822
  }
 
4823
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4824
  __Pyx_GOTREF(__pyx_t_2);
 
4825
  __Pyx_INCREF(__pyx_n_s_attr_namelist);
 
4826
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_attr_namelist);
 
4827
  __Pyx_GIVEREF(__pyx_n_s_attr_namelist);
 
4828
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4829
  __Pyx_GIVEREF(__pyx_t_1);
 
4830
  __pyx_t_1 = 0;
 
4831
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4832
  __Pyx_GOTREF(__pyx_t_1);
 
4833
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4834
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4835
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4836
 
 
4837
  /* "adios.pyx":404
 
4838
 *     print '%15s : %d' % ('nattrs', f.nattrs)
 
4839
 *     print '%15s : %s' % ('attr_namelist', [f.attr_namelist[i] for i in range(f.nattrs)])
 
4840
 *     print '%15s : %d' % ('current_step', f.current_step)             # <<<<<<<<<<<<<<
 
4841
 *     print '%15s : %d' % ('last_step', f.last_step)
 
4842
 *     print '%15s : %s' % ('path', f.path)
 
4843
 */
 
4844
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->current_step); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4845
  __Pyx_GOTREF(__pyx_t_1);
 
4846
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4847
  __Pyx_GOTREF(__pyx_t_2);
 
4848
  __Pyx_INCREF(__pyx_n_s_current_step);
 
4849
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_current_step);
 
4850
  __Pyx_GIVEREF(__pyx_n_s_current_step);
 
4851
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4852
  __Pyx_GIVEREF(__pyx_t_1);
 
4853
  __pyx_t_1 = 0;
 
4854
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4855
  __Pyx_GOTREF(__pyx_t_1);
 
4856
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4857
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4858
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4859
 
 
4860
  /* "adios.pyx":405
 
4861
 *     print '%15s : %s' % ('attr_namelist', [f.attr_namelist[i] for i in range(f.nattrs)])
 
4862
 *     print '%15s : %d' % ('current_step', f.current_step)
 
4863
 *     print '%15s : %d' % ('last_step', f.last_step)             # <<<<<<<<<<<<<<
 
4864
 *     print '%15s : %s' % ('path', f.path)
 
4865
 *     print '%15s : %d' % ('endianness', f.endianness)
 
4866
 */
 
4867
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->last_step); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4868
  __Pyx_GOTREF(__pyx_t_1);
 
4869
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4870
  __Pyx_GOTREF(__pyx_t_2);
 
4871
  __Pyx_INCREF(__pyx_n_s_last_step);
 
4872
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_last_step);
 
4873
  __Pyx_GIVEREF(__pyx_n_s_last_step);
 
4874
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4875
  __Pyx_GIVEREF(__pyx_t_1);
 
4876
  __pyx_t_1 = 0;
 
4877
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4878
  __Pyx_GOTREF(__pyx_t_1);
 
4879
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4880
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4881
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4882
 
 
4883
  /* "adios.pyx":406
 
4884
 *     print '%15s : %d' % ('current_step', f.current_step)
 
4885
 *     print '%15s : %d' % ('last_step', f.last_step)
 
4886
 *     print '%15s : %s' % ('path', f.path)             # <<<<<<<<<<<<<<
 
4887
 *     print '%15s : %d' % ('endianness', f.endianness)
5091
4888
 *     print '%15s : %d' % ('version', f.version)
5092
4889
 */
5093
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->tidx_start); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4890
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_f->path); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5094
4891
  __Pyx_GOTREF(__pyx_t_1);
5095
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4892
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5096
4893
  __Pyx_GOTREF(__pyx_t_2);
5097
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__tidx_start));
5098
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__tidx_start));
5099
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__tidx_start));
 
4894
  __Pyx_INCREF(__pyx_n_s_path);
 
4895
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_path);
 
4896
  __Pyx_GIVEREF(__pyx_n_s_path);
5100
4897
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5101
4898
  __Pyx_GIVEREF(__pyx_t_1);
5102
4899
  __pyx_t_1 = 0;
5103
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5104
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5105
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5106
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5107
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
4900
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4901
  __Pyx_GOTREF(__pyx_t_1);
 
4902
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4903
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4904
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5108
4905
 
5109
 
  /* "adios.pyx":370
5110
 
 *     print '%15s : %d' % ('attrs_count', f.attrs_count)
5111
 
 *     print '%15s : %d' % ('tidx_start', f.tidx_start)
5112
 
 *     print '%15s : %d' % ('ntimesteps', f.ntimesteps)             # <<<<<<<<<<<<<<
 
4906
  /* "adios.pyx":407
 
4907
 *     print '%15s : %d' % ('last_step', f.last_step)
 
4908
 *     print '%15s : %s' % ('path', f.path)
 
4909
 *     print '%15s : %d' % ('endianness', f.endianness)             # <<<<<<<<<<<<<<
5113
4910
 *     print '%15s : %d' % ('version', f.version)
5114
4911
 *     print '%15s : %lu' % ('file_size', f.file_size)
5115
4912
 */
5116
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->ntimesteps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4913
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->endianness); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5117
4914
  __Pyx_GOTREF(__pyx_t_1);
5118
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4915
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5119
4916
  __Pyx_GOTREF(__pyx_t_2);
5120
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__ntimesteps));
5121
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__ntimesteps));
5122
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ntimesteps));
 
4917
  __Pyx_INCREF(__pyx_n_s_endianness);
 
4918
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_endianness);
 
4919
  __Pyx_GIVEREF(__pyx_n_s_endianness);
5123
4920
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5124
4921
  __Pyx_GIVEREF(__pyx_t_1);
5125
4922
  __pyx_t_1 = 0;
5126
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5127
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5128
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5129
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5130
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
4923
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4924
  __Pyx_GOTREF(__pyx_t_1);
 
4925
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4926
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4927
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5131
4928
 
5132
 
  /* "adios.pyx":371
5133
 
 *     print '%15s : %d' % ('tidx_start', f.tidx_start)
5134
 
 *     print '%15s : %d' % ('ntimesteps', f.ntimesteps)
 
4929
  /* "adios.pyx":408
 
4930
 *     print '%15s : %s' % ('path', f.path)
 
4931
 *     print '%15s : %d' % ('endianness', f.endianness)
5135
4932
 *     print '%15s : %d' % ('version', f.version)             # <<<<<<<<<<<<<<
5136
4933
 *     print '%15s : %lu' % ('file_size', f.file_size)
5137
 
 *     print '%15s : %d' % ('endianness', f.endianness)
 
4934
 * 
5138
4935
 */
5139
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4936
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5140
4937
  __Pyx_GOTREF(__pyx_t_1);
5141
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4938
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5142
4939
  __Pyx_GOTREF(__pyx_t_2);
5143
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__version));
5144
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__version));
5145
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__version));
 
4940
  __Pyx_INCREF(__pyx_n_s_version);
 
4941
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_version);
 
4942
  __Pyx_GIVEREF(__pyx_n_s_version);
5146
4943
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5147
4944
  __Pyx_GIVEREF(__pyx_t_1);
5148
4945
  __pyx_t_1 = 0;
5149
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5150
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5151
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5152
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5153
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
4946
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4947
  __Pyx_GOTREF(__pyx_t_1);
 
4948
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4949
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4950
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5154
4951
 
5155
 
  /* "adios.pyx":372
5156
 
 *     print '%15s : %d' % ('ntimesteps', f.ntimesteps)
 
4952
  /* "adios.pyx":409
 
4953
 *     print '%15s : %d' % ('endianness', f.endianness)
5157
4954
 *     print '%15s : %d' % ('version', f.version)
5158
4955
 *     print '%15s : %lu' % ('file_size', f.file_size)             # <<<<<<<<<<<<<<
5159
 
 *     print '%15s : %d' % ('endianness', f.endianness)
5160
 
 *     print '%15s : %s' % ('group_namelist', [f.group_namelist[i] for i in range(f.groups_count)])
5161
 
 */
5162
 
  __pyx_t_1 = __Pyx_PyInt_to_py_uint64_t(__pyx_v_f->file_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5163
 
  __Pyx_GOTREF(__pyx_t_1);
5164
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5165
 
  __Pyx_GOTREF(__pyx_t_2);
5166
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__file_size));
5167
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__file_size));
5168
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__file_size));
5169
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5170
 
  __Pyx_GIVEREF(__pyx_t_1);
5171
 
  __pyx_t_1 = 0;
5172
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5173
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5174
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5175
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5176
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5177
 
 
5178
 
  /* "adios.pyx":373
5179
 
 *     print '%15s : %d' % ('version', f.version)
5180
 
 *     print '%15s : %lu' % ('file_size', f.file_size)
5181
 
 *     print '%15s : %d' % ('endianness', f.endianness)             # <<<<<<<<<<<<<<
5182
 
 *     print '%15s : %s' % ('group_namelist', [f.group_namelist[i] for i in range(f.groups_count)])
5183
 
 * 
5184
 
 */
5185
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_f->endianness); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5186
 
  __Pyx_GOTREF(__pyx_t_1);
5187
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5188
 
  __Pyx_GOTREF(__pyx_t_2);
5189
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__endianness));
5190
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__endianness));
5191
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__endianness));
5192
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5193
 
  __Pyx_GIVEREF(__pyx_t_1);
5194
 
  __pyx_t_1 = 0;
5195
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5196
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5197
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5198
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5199
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5200
 
 
5201
 
  /* "adios.pyx":374
5202
 
 *     print '%15s : %lu' % ('file_size', f.file_size)
5203
 
 *     print '%15s : %d' % ('endianness', f.endianness)
5204
 
 *     print '%15s : %s' % ('group_namelist', [f.group_namelist[i] for i in range(f.groups_count)])             # <<<<<<<<<<<<<<
5205
 
 * 
5206
 
 * cdef printAdiosGroup(ADIOS_GROUP * g):
5207
 
 */
5208
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5209
 
  __Pyx_GOTREF(__pyx_t_1);
5210
 
  __pyx_t_3 = __pyx_v_f->groups_count;
5211
 
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
5212
 
    __pyx_v_i = __pyx_t_4;
5213
 
    __pyx_t_2 = __Pyx_PyBytes_FromString((__pyx_v_f->group_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5214
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
5215
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5216
 
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5217
 
  }
5218
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5219
 
  __Pyx_GOTREF(__pyx_t_2);
5220
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__group_namelist));
5221
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__group_namelist));
5222
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__group_namelist));
5223
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_1));
5224
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
5225
 
  __pyx_t_1 = 0;
5226
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_9), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5227
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5228
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5229
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5230
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5231
 
 
5232
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5233
 
  goto __pyx_L0;
5234
 
  __pyx_L1_error:;
5235
 
  __Pyx_XDECREF(__pyx_t_1);
5236
 
  __Pyx_XDECREF(__pyx_t_2);
5237
 
  __Pyx_AddTraceback("adios.printAdiosFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
5238
 
  __pyx_r = 0;
5239
 
  __pyx_L0:;
5240
 
  __Pyx_XGIVEREF(__pyx_r);
5241
 
  __Pyx_RefNannyFinishContext();
5242
 
  return __pyx_r;
5243
 
}
5244
 
 
5245
 
/* "adios.pyx":376
5246
 
 *     print '%15s : %s' % ('group_namelist', [f.group_namelist[i] for i in range(f.groups_count)])
5247
 
 * 
5248
 
 * cdef printAdiosGroup(ADIOS_GROUP * g):             # <<<<<<<<<<<<<<
5249
 
 *     print '%15s : %lu' % ('gh', g.gh)
5250
 
 *     print '%15s : %d' % ('grpid', g.grpid)
5251
 
 */
5252
 
 
5253
 
static PyObject *__pyx_f_5adios_printAdiosGroup(ADIOS_GROUP *__pyx_v_g) {
5254
 
  int __pyx_v_i;
5255
 
  PyObject *__pyx_r = NULL;
5256
 
  __Pyx_RefNannyDeclarations
5257
 
  PyObject *__pyx_t_1 = NULL;
5258
 
  PyObject *__pyx_t_2 = NULL;
5259
 
  int __pyx_t_3;
5260
 
  int __pyx_t_4;
5261
 
  int __pyx_lineno = 0;
5262
 
  const char *__pyx_filename = NULL;
5263
 
  int __pyx_clineno = 0;
5264
 
  __Pyx_RefNannySetupContext("printAdiosGroup", 0);
5265
 
 
5266
 
  /* "adios.pyx":377
5267
 
 * 
5268
 
 * cdef printAdiosGroup(ADIOS_GROUP * g):
5269
 
 *     print '%15s : %lu' % ('gh', g.gh)             # <<<<<<<<<<<<<<
5270
 
 *     print '%15s : %d' % ('grpid', g.grpid)
5271
 
 *     print '%15s : %d' % ('vars_count', g.vars_count)
5272
 
 */
5273
 
  __pyx_t_1 = __Pyx_PyInt_to_py_uint64_t(__pyx_v_g->gh); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5274
 
  __Pyx_GOTREF(__pyx_t_1);
5275
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5276
 
  __Pyx_GOTREF(__pyx_t_2);
5277
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__gh));
5278
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__gh));
5279
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__gh));
5280
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5281
 
  __Pyx_GIVEREF(__pyx_t_1);
5282
 
  __pyx_t_1 = 0;
5283
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5284
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5285
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5286
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5287
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5288
 
 
5289
 
  /* "adios.pyx":378
5290
 
 * cdef printAdiosGroup(ADIOS_GROUP * g):
5291
 
 *     print '%15s : %lu' % ('gh', g.gh)
5292
 
 *     print '%15s : %d' % ('grpid', g.grpid)             # <<<<<<<<<<<<<<
5293
 
 *     print '%15s : %d' % ('vars_count', g.vars_count)
5294
 
 *     print '%15s : %s' % ('var_namelist', [g.var_namelist[i] for i in range(g.vars_count)])
5295
 
 */
5296
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_g->grpid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5297
 
  __Pyx_GOTREF(__pyx_t_1);
5298
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5299
 
  __Pyx_GOTREF(__pyx_t_2);
5300
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__grpid));
5301
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__grpid));
5302
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__grpid));
5303
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5304
 
  __Pyx_GIVEREF(__pyx_t_1);
5305
 
  __pyx_t_1 = 0;
5306
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5307
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5308
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5309
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5310
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5311
 
 
5312
 
  /* "adios.pyx":379
5313
 
 *     print '%15s : %lu' % ('gh', g.gh)
5314
 
 *     print '%15s : %d' % ('grpid', g.grpid)
5315
 
 *     print '%15s : %d' % ('vars_count', g.vars_count)             # <<<<<<<<<<<<<<
5316
 
 *     print '%15s : %s' % ('var_namelist', [g.var_namelist[i] for i in range(g.vars_count)])
5317
 
 *     print '%15s : %d' % ('attrs_count', g.attrs_count)
5318
 
 */
5319
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_g->vars_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5320
 
  __Pyx_GOTREF(__pyx_t_1);
5321
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5322
 
  __Pyx_GOTREF(__pyx_t_2);
5323
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__vars_count));
5324
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__vars_count));
5325
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__vars_count));
5326
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5327
 
  __Pyx_GIVEREF(__pyx_t_1);
5328
 
  __pyx_t_1 = 0;
5329
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5330
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5331
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5332
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5333
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5334
 
 
5335
 
  /* "adios.pyx":380
5336
 
 *     print '%15s : %d' % ('grpid', g.grpid)
5337
 
 *     print '%15s : %d' % ('vars_count', g.vars_count)
5338
 
 *     print '%15s : %s' % ('var_namelist', [g.var_namelist[i] for i in range(g.vars_count)])             # <<<<<<<<<<<<<<
5339
 
 *     print '%15s : %d' % ('attrs_count', g.attrs_count)
5340
 
 *     print '%15s : %s' % ('attr_namelist', [g.attr_namelist[i] for i in range(g.attrs_count)])
5341
 
 */
5342
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5343
 
  __Pyx_GOTREF(__pyx_t_1);
5344
 
  __pyx_t_3 = __pyx_v_g->vars_count;
5345
 
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
5346
 
    __pyx_v_i = __pyx_t_4;
5347
 
    __pyx_t_2 = __Pyx_PyBytes_FromString((__pyx_v_g->var_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5348
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
5349
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5350
 
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5351
 
  }
5352
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5353
 
  __Pyx_GOTREF(__pyx_t_2);
5354
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__var_namelist));
5355
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__var_namelist));
5356
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__var_namelist));
5357
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_1));
5358
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
5359
 
  __pyx_t_1 = 0;
5360
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_9), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5361
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5362
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5363
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5364
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5365
 
 
5366
 
  /* "adios.pyx":381
5367
 
 *     print '%15s : %d' % ('vars_count', g.vars_count)
5368
 
 *     print '%15s : %s' % ('var_namelist', [g.var_namelist[i] for i in range(g.vars_count)])
5369
 
 *     print '%15s : %d' % ('attrs_count', g.attrs_count)             # <<<<<<<<<<<<<<
5370
 
 *     print '%15s : %s' % ('attr_namelist', [g.attr_namelist[i] for i in range(g.attrs_count)])
5371
 
 *     print '%15s : %lu' % ('fp', <unsigned long> g.fp)
5372
 
 */
5373
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_g->attrs_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5374
 
  __Pyx_GOTREF(__pyx_t_1);
5375
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5376
 
  __Pyx_GOTREF(__pyx_t_2);
5377
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__attrs_count));
5378
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__attrs_count));
5379
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__attrs_count));
5380
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5381
 
  __Pyx_GIVEREF(__pyx_t_1);
5382
 
  __pyx_t_1 = 0;
5383
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5384
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5385
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5386
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5387
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5388
 
 
5389
 
  /* "adios.pyx":382
5390
 
 *     print '%15s : %s' % ('var_namelist', [g.var_namelist[i] for i in range(g.vars_count)])
5391
 
 *     print '%15s : %d' % ('attrs_count', g.attrs_count)
5392
 
 *     print '%15s : %s' % ('attr_namelist', [g.attr_namelist[i] for i in range(g.attrs_count)])             # <<<<<<<<<<<<<<
5393
 
 *     print '%15s : %lu' % ('fp', <unsigned long> g.fp)
5394
 
 * 
5395
 
 */
5396
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5397
 
  __Pyx_GOTREF(__pyx_t_1);
5398
 
  __pyx_t_3 = __pyx_v_g->attrs_count;
5399
 
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
5400
 
    __pyx_v_i = __pyx_t_4;
5401
 
    __pyx_t_2 = __Pyx_PyBytes_FromString((__pyx_v_g->attr_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5402
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
5403
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5404
 
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5405
 
  }
5406
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5407
 
  __Pyx_GOTREF(__pyx_t_2);
5408
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__attr_namelist));
5409
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__attr_namelist));
5410
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__attr_namelist));
5411
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_1));
5412
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
5413
 
  __pyx_t_1 = 0;
5414
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_9), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5415
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5416
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5417
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5418
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5419
 
 
5420
 
  /* "adios.pyx":383
5421
 
 *     print '%15s : %d' % ('attrs_count', g.attrs_count)
5422
 
 *     print '%15s : %s' % ('attr_namelist', [g.attr_namelist[i] for i in range(g.attrs_count)])
5423
 
 *     print '%15s : %lu' % ('fp', <unsigned long> g.fp)             # <<<<<<<<<<<<<<
5424
 
 * 
5425
 
 * cdef printAdiosVariable(ADIOS_VARINFO * v):
5426
 
 */
5427
 
  __pyx_t_1 = PyLong_FromUnsignedLong(((unsigned long)__pyx_v_g->fp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5428
 
  __Pyx_GOTREF(__pyx_t_1);
5429
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5430
 
  __Pyx_GOTREF(__pyx_t_2);
5431
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__fp));
5432
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__fp));
5433
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fp));
5434
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5435
 
  __Pyx_GIVEREF(__pyx_t_1);
5436
 
  __pyx_t_1 = 0;
5437
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5438
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5439
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5440
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5441
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5442
 
 
5443
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5444
 
  goto __pyx_L0;
5445
 
  __pyx_L1_error:;
5446
 
  __Pyx_XDECREF(__pyx_t_1);
5447
 
  __Pyx_XDECREF(__pyx_t_2);
5448
 
  __Pyx_AddTraceback("adios.printAdiosGroup", __pyx_clineno, __pyx_lineno, __pyx_filename);
5449
 
  __pyx_r = 0;
5450
 
  __pyx_L0:;
5451
 
  __Pyx_XGIVEREF(__pyx_r);
5452
 
  __Pyx_RefNannyFinishContext();
5453
 
  return __pyx_r;
5454
 
}
5455
 
 
5456
 
/* "adios.pyx":385
5457
 
 *     print '%15s : %lu' % ('fp', <unsigned long> g.fp)
5458
 
 * 
5459
 
 * cdef printAdiosVariable(ADIOS_VARINFO * v):             # <<<<<<<<<<<<<<
5460
 
 *     print '%15s : %d' % ('grpid', v.grpid)
5461
 
 *     print '%15s : %d' % ('varid', v.varid)
5462
 
 */
5463
 
 
5464
 
static PyObject *__pyx_f_5adios_printAdiosVariable(ADIOS_VARINFO *__pyx_v_v) {
5465
 
  int __pyx_v_i;
5466
 
  PyObject *__pyx_r = NULL;
5467
 
  __Pyx_RefNannyDeclarations
5468
 
  PyObject *__pyx_t_1 = NULL;
5469
 
  PyObject *__pyx_t_2 = NULL;
5470
 
  int __pyx_t_3;
5471
 
  int __pyx_t_4;
5472
 
  int __pyx_lineno = 0;
5473
 
  const char *__pyx_filename = NULL;
5474
 
  int __pyx_clineno = 0;
5475
 
  __Pyx_RefNannySetupContext("printAdiosVariable", 0);
5476
 
 
5477
 
  /* "adios.pyx":386
5478
 
 * 
5479
 
 * cdef printAdiosVariable(ADIOS_VARINFO * v):
5480
 
 *     print '%15s : %d' % ('grpid', v.grpid)             # <<<<<<<<<<<<<<
 
4956
 * 
 
4957
 * cdef printvar(ADIOS_VARINFO * v):
 
4958
 */
 
4959
  __pyx_t_1 = __Pyx_PyInt_From_uint64_t(__pyx_v_f->file_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4960
  __Pyx_GOTREF(__pyx_t_1);
 
4961
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4962
  __Pyx_GOTREF(__pyx_t_2);
 
4963
  __Pyx_INCREF(__pyx_n_s_file_size);
 
4964
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_file_size);
 
4965
  __Pyx_GIVEREF(__pyx_n_s_file_size);
 
4966
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
4967
  __Pyx_GIVEREF(__pyx_t_1);
 
4968
  __pyx_t_1 = 0;
 
4969
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_lu, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4970
  __Pyx_GOTREF(__pyx_t_1);
 
4971
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4972
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4973
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4974
 
 
4975
  /* "adios.pyx":398
 
4976
 *     return ntype
 
4977
 * 
 
4978
 * cdef printfile(ADIOS_FILE * f):             # <<<<<<<<<<<<<<
 
4979
 *     print '%15s : %lu' % ('fh', f.fh)
 
4980
 *     print '%15s : %d' % ('nvars', f.nvars)
 
4981
 */
 
4982
 
 
4983
  /* function exit code */
 
4984
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
4985
  goto __pyx_L0;
 
4986
  __pyx_L1_error:;
 
4987
  __Pyx_XDECREF(__pyx_t_1);
 
4988
  __Pyx_XDECREF(__pyx_t_2);
 
4989
  __Pyx_AddTraceback("adios.printfile", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
4990
  __pyx_r = 0;
 
4991
  __pyx_L0:;
 
4992
  __Pyx_XGIVEREF(__pyx_r);
 
4993
  __Pyx_RefNannyFinishContext();
 
4994
  return __pyx_r;
 
4995
}
 
4996
 
 
4997
/* "adios.pyx":411
 
4998
 *     print '%15s : %lu' % ('file_size', f.file_size)
 
4999
 * 
 
5000
 * cdef printvar(ADIOS_VARINFO * v):             # <<<<<<<<<<<<<<
5481
5001
 *     print '%15s : %d' % ('varid', v.varid)
5482
5002
 *     print '%15s : %s' % ('type', adios2nptype(v.type))
5483
5003
 */
5484
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_v->grpid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5485
 
  __Pyx_GOTREF(__pyx_t_1);
5486
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5487
 
  __Pyx_GOTREF(__pyx_t_2);
5488
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__grpid));
5489
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__grpid));
5490
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__grpid));
5491
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5492
 
  __Pyx_GIVEREF(__pyx_t_1);
5493
 
  __pyx_t_1 = 0;
5494
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5495
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5496
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5497
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5498
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5499
 
 
5500
 
  /* "adios.pyx":387
5501
 
 * cdef printAdiosVariable(ADIOS_VARINFO * v):
5502
 
 *     print '%15s : %d' % ('grpid', v.grpid)
 
5004
 
 
5005
static PyObject *__pyx_f_5adios_printvar(ADIOS_VARINFO *__pyx_v_v) {
 
5006
  int __pyx_v_i;
 
5007
  PyObject *__pyx_r = NULL;
 
5008
  __Pyx_RefNannyDeclarations
 
5009
  PyObject *__pyx_t_1 = NULL;
 
5010
  PyObject *__pyx_t_2 = NULL;
 
5011
  int __pyx_t_3;
 
5012
  int __pyx_t_4;
 
5013
  int __pyx_lineno = 0;
 
5014
  const char *__pyx_filename = NULL;
 
5015
  int __pyx_clineno = 0;
 
5016
  __Pyx_RefNannySetupContext("printvar", 0);
 
5017
 
 
5018
  /* "adios.pyx":412
 
5019
 * 
 
5020
 * cdef printvar(ADIOS_VARINFO * v):
5503
5021
 *     print '%15s : %d' % ('varid', v.varid)             # <<<<<<<<<<<<<<
5504
5022
 *     print '%15s : %s' % ('type', adios2nptype(v.type))
5505
5023
 *     print '%15s : %d' % ('ndim', v.ndim)
5506
5024
 */
5507
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_v->varid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5025
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_v->varid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5508
5026
  __Pyx_GOTREF(__pyx_t_1);
5509
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5027
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5510
5028
  __Pyx_GOTREF(__pyx_t_2);
5511
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__varid));
5512
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__varid));
5513
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__varid));
 
5029
  __Pyx_INCREF(__pyx_n_s_varid);
 
5030
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_varid);
 
5031
  __Pyx_GIVEREF(__pyx_n_s_varid);
5514
5032
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5515
5033
  __Pyx_GIVEREF(__pyx_t_1);
5516
5034
  __pyx_t_1 = 0;
5517
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5518
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5519
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5520
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5521
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
5035
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5036
  __Pyx_GOTREF(__pyx_t_1);
 
5037
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5038
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5039
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5522
5040
 
5523
 
  /* "adios.pyx":388
5524
 
 *     print '%15s : %d' % ('grpid', v.grpid)
 
5041
  /* "adios.pyx":413
 
5042
 * cdef printvar(ADIOS_VARINFO * v):
5525
5043
 *     print '%15s : %d' % ('varid', v.varid)
5526
5044
 *     print '%15s : %s' % ('type', adios2nptype(v.type))             # <<<<<<<<<<<<<<
5527
5045
 *     print '%15s : %d' % ('ndim', v.ndim)
5528
5046
 *     print '%15s : %s' % ('dims', [v.dims[i] for i in range(v.ndim)])
5529
5047
 */
5530
 
  __pyx_t_1 = ((PyObject *)__pyx_f_5adios_adios2nptype(__pyx_v_v->type, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5048
  __pyx_t_1 = ((PyObject *)__pyx_f_5adios_adios2nptype(__pyx_v_v->type)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5531
5049
  __Pyx_GOTREF(__pyx_t_1);
5532
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5050
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5533
5051
  __Pyx_GOTREF(__pyx_t_2);
5534
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__type));
5535
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__type));
5536
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__type));
 
5052
  __Pyx_INCREF(__pyx_n_s_type);
 
5053
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_type);
 
5054
  __Pyx_GIVEREF(__pyx_n_s_type);
5537
5055
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5538
5056
  __Pyx_GIVEREF(__pyx_t_1);
5539
5057
  __pyx_t_1 = 0;
5540
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_9), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5541
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5542
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5543
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5544
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
5058
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5059
  __Pyx_GOTREF(__pyx_t_1);
 
5060
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5061
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5062
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5545
5063
 
5546
 
  /* "adios.pyx":389
 
5064
  /* "adios.pyx":414
5547
5065
 *     print '%15s : %d' % ('varid', v.varid)
5548
5066
 *     print '%15s : %s' % ('type', adios2nptype(v.type))
5549
5067
 *     print '%15s : %d' % ('ndim', v.ndim)             # <<<<<<<<<<<<<<
5550
5068
 *     print '%15s : %s' % ('dims', [v.dims[i] for i in range(v.ndim)])
5551
 
 *     print '%15s : %d' % ('timedim', v.timedim)
 
5069
 *     print '%15s : %d' % ('nsteps', v.nsteps)
5552
5070
 */
5553
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_v->ndim); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5071
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_v->ndim); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5554
5072
  __Pyx_GOTREF(__pyx_t_1);
5555
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5073
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5556
5074
  __Pyx_GOTREF(__pyx_t_2);
5557
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__ndim));
5558
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__ndim));
5559
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ndim));
 
5075
  __Pyx_INCREF(__pyx_n_s_ndim);
 
5076
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_ndim);
 
5077
  __Pyx_GIVEREF(__pyx_n_s_ndim);
5560
5078
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5561
5079
  __Pyx_GIVEREF(__pyx_t_1);
5562
5080
  __pyx_t_1 = 0;
5563
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5564
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5565
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5566
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5567
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
5081
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5082
  __Pyx_GOTREF(__pyx_t_1);
 
5083
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5084
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5085
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5568
5086
 
5569
 
  /* "adios.pyx":390
 
5087
  /* "adios.pyx":415
5570
5088
 *     print '%15s : %s' % ('type', adios2nptype(v.type))
5571
5089
 *     print '%15s : %d' % ('ndim', v.ndim)
5572
5090
 *     print '%15s : %s' % ('dims', [v.dims[i] for i in range(v.ndim)])             # <<<<<<<<<<<<<<
5573
 
 *     print '%15s : %d' % ('timedim', v.timedim)
 
5091
 *     print '%15s : %d' % ('nsteps', v.nsteps)
5574
5092
 * 
5575
5093
 */
5576
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5094
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5577
5095
  __Pyx_GOTREF(__pyx_t_1);
5578
5096
  __pyx_t_3 = __pyx_v_v->ndim;
5579
5097
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
5580
5098
    __pyx_v_i = __pyx_t_4;
5581
 
    __pyx_t_2 = __Pyx_PyInt_to_py_uint64_t((__pyx_v_v->dims[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5099
    __pyx_t_2 = __Pyx_PyInt_From_uint64_t((__pyx_v_v->dims[__pyx_v_i])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5582
5100
    __Pyx_GOTREF(__pyx_t_2);
5583
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5101
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5584
5102
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5585
5103
  }
5586
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5104
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5587
5105
  __Pyx_GOTREF(__pyx_t_2);
5588
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__dims));
5589
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__dims));
5590
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__dims));
5591
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_1));
5592
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
 
5106
  __Pyx_INCREF(__pyx_n_s_dims);
 
5107
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_dims);
 
5108
  __Pyx_GIVEREF(__pyx_n_s_dims);
 
5109
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
5110
  __Pyx_GIVEREF(__pyx_t_1);
5593
5111
  __pyx_t_1 = 0;
5594
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_9), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5595
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5596
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5597
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5598
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
5112
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5113
  __Pyx_GOTREF(__pyx_t_1);
 
5114
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5115
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5116
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5599
5117
 
5600
 
  /* "adios.pyx":391
 
5118
  /* "adios.pyx":416
5601
5119
 *     print '%15s : %d' % ('ndim', v.ndim)
5602
5120
 *     print '%15s : %s' % ('dims', [v.dims[i] for i in range(v.ndim)])
5603
 
 *     print '%15s : %d' % ('timedim', v.timedim)             # <<<<<<<<<<<<<<
 
5121
 *     print '%15s : %d' % ('nsteps', v.nsteps)             # <<<<<<<<<<<<<<
5604
5122
 * 
5605
 
 * cdef adios2scalar(ADIOS_DATATYPES t, void * val):
 
5123
 * ## ====================
5606
5124
 */
5607
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_v->timedim); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5125
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_v->nsteps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5608
5126
  __Pyx_GOTREF(__pyx_t_1);
5609
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5127
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5610
5128
  __Pyx_GOTREF(__pyx_t_2);
5611
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__timedim));
5612
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__timedim));
5613
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__timedim));
 
5129
  __Pyx_INCREF(__pyx_n_s_nsteps);
 
5130
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_nsteps);
 
5131
  __Pyx_GIVEREF(__pyx_n_s_nsteps);
5614
5132
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
5615
5133
  __Pyx_GIVEREF(__pyx_t_1);
5616
5134
  __pyx_t_1 = 0;
5617
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_8), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5618
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
5619
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
5620
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5621
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
5622
 
 
 
5135
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_d, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5136
  __Pyx_GOTREF(__pyx_t_1);
 
5137
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5138
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5139
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5140
 
 
5141
  /* "adios.pyx":411
 
5142
 *     print '%15s : %lu' % ('file_size', f.file_size)
 
5143
 * 
 
5144
 * cdef printvar(ADIOS_VARINFO * v):             # <<<<<<<<<<<<<<
 
5145
 *     print '%15s : %d' % ('varid', v.varid)
 
5146
 *     print '%15s : %s' % ('type', adios2nptype(v.type))
 
5147
 */
 
5148
 
 
5149
  /* function exit code */
5623
5150
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5624
5151
  goto __pyx_L0;
5625
5152
  __pyx_L1_error:;
5626
5153
  __Pyx_XDECREF(__pyx_t_1);
5627
5154
  __Pyx_XDECREF(__pyx_t_2);
5628
 
  __Pyx_AddTraceback("adios.printAdiosVariable", __pyx_clineno, __pyx_lineno, __pyx_filename);
5629
 
  __pyx_r = 0;
5630
 
  __pyx_L0:;
5631
 
  __Pyx_XGIVEREF(__pyx_r);
5632
 
  __Pyx_RefNannyFinishContext();
5633
 
  return __pyx_r;
5634
 
}
5635
 
 
5636
 
/* "adios.pyx":393
5637
 
 *     print '%15s : %d' % ('timedim', v.timedim)
5638
 
 * 
5639
 
 * cdef adios2scalar(ADIOS_DATATYPES t, void * val):             # <<<<<<<<<<<<<<
5640
 
 *     if t == adios_byte :
5641
 
 *         return (<char *> val)[0]
5642
 
 */
5643
 
 
5644
 
static PyObject *__pyx_f_5adios_adios2scalar(ADIOS_DATATYPES __pyx_v_t, void *__pyx_v_val) {
5645
 
  PyObject *__pyx_r = NULL;
5646
 
  __Pyx_RefNannyDeclarations
5647
 
  PyObject *__pyx_t_1 = NULL;
5648
 
  int __pyx_lineno = 0;
5649
 
  const char *__pyx_filename = NULL;
5650
 
  int __pyx_clineno = 0;
5651
 
  __Pyx_RefNannySetupContext("adios2scalar", 0);
5652
 
 
5653
 
  /* "adios.pyx":414
5654
 
 *     elif t == adios_double:
5655
 
 *         return (<double *> val)[0]
5656
 
 *     elif t == adios_long_double:             # <<<<<<<<<<<<<<
5657
 
 *         return (<long double *> val)[0]
5658
 
 *     else:
5659
 
 */
5660
 
  switch (__pyx_v_t) {
5661
 
 
5662
 
    /* "adios.pyx":394
5663
 
 * 
5664
 
 * cdef adios2scalar(ADIOS_DATATYPES t, void * val):
5665
 
 *     if t == adios_byte :             # <<<<<<<<<<<<<<
5666
 
 *         return (<char *> val)[0]
5667
 
 *     elif t == adios_short:
5668
 
 */
5669
 
    case adios_byte:
5670
 
 
5671
 
    /* "adios.pyx":395
5672
 
 * cdef adios2scalar(ADIOS_DATATYPES t, void * val):
5673
 
 *     if t == adios_byte :
5674
 
 *         return (<char *> val)[0]             # <<<<<<<<<<<<<<
5675
 
 *     elif t == adios_short:
5676
 
 *         return (<short *> val)[0]
5677
 
 */
5678
 
    __Pyx_XDECREF(__pyx_r);
5679
 
    __pyx_t_1 = PyInt_FromLong((((char *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5680
 
    __Pyx_GOTREF(__pyx_t_1);
5681
 
    __pyx_r = __pyx_t_1;
5682
 
    __pyx_t_1 = 0;
5683
 
    goto __pyx_L0;
5684
 
    break;
5685
 
 
5686
 
    /* "adios.pyx":396
5687
 
 *     if t == adios_byte :
5688
 
 *         return (<char *> val)[0]
5689
 
 *     elif t == adios_short:             # <<<<<<<<<<<<<<
5690
 
 *         return (<short *> val)[0]
5691
 
 *     elif t == adios_integer:
5692
 
 */
5693
 
    case adios_short:
5694
 
 
5695
 
    /* "adios.pyx":397
5696
 
 *         return (<char *> val)[0]
5697
 
 *     elif t == adios_short:
5698
 
 *         return (<short *> val)[0]             # <<<<<<<<<<<<<<
5699
 
 *     elif t == adios_integer:
5700
 
 *         return (<int *> val)[0]
5701
 
 */
5702
 
    __Pyx_XDECREF(__pyx_r);
5703
 
    __pyx_t_1 = PyInt_FromLong((((short *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5704
 
    __Pyx_GOTREF(__pyx_t_1);
5705
 
    __pyx_r = __pyx_t_1;
5706
 
    __pyx_t_1 = 0;
5707
 
    goto __pyx_L0;
5708
 
    break;
5709
 
 
5710
 
    /* "adios.pyx":398
5711
 
 *     elif t == adios_short:
5712
 
 *         return (<short *> val)[0]
5713
 
 *     elif t == adios_integer:             # <<<<<<<<<<<<<<
5714
 
 *         return (<int *> val)[0]
5715
 
 *     elif t == adios_long:
5716
 
 */
5717
 
    case adios_integer:
5718
 
 
5719
 
    /* "adios.pyx":399
5720
 
 *         return (<short *> val)[0]
5721
 
 *     elif t == adios_integer:
5722
 
 *         return (<int *> val)[0]             # <<<<<<<<<<<<<<
5723
 
 *     elif t == adios_long:
5724
 
 *         return (<long *> val)[0]
5725
 
 */
5726
 
    __Pyx_XDECREF(__pyx_r);
5727
 
    __pyx_t_1 = PyInt_FromLong((((int *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5728
 
    __Pyx_GOTREF(__pyx_t_1);
5729
 
    __pyx_r = __pyx_t_1;
5730
 
    __pyx_t_1 = 0;
5731
 
    goto __pyx_L0;
5732
 
    break;
5733
 
 
5734
 
    /* "adios.pyx":400
5735
 
 *     elif t == adios_integer:
5736
 
 *         return (<int *> val)[0]
5737
 
 *     elif t == adios_long:             # <<<<<<<<<<<<<<
5738
 
 *         return (<long *> val)[0]
5739
 
 *     elif t == adios_unsigned_byte:
5740
 
 */
5741
 
    case adios_long:
5742
 
 
5743
 
    /* "adios.pyx":401
5744
 
 *         return (<int *> val)[0]
5745
 
 *     elif t == adios_long:
5746
 
 *         return (<long *> val)[0]             # <<<<<<<<<<<<<<
5747
 
 *     elif t == adios_unsigned_byte:
5748
 
 *         return (<unsigned char *> val)[0]
5749
 
 */
5750
 
    __Pyx_XDECREF(__pyx_r);
5751
 
    __pyx_t_1 = PyInt_FromLong((((long *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5752
 
    __Pyx_GOTREF(__pyx_t_1);
5753
 
    __pyx_r = __pyx_t_1;
5754
 
    __pyx_t_1 = 0;
5755
 
    goto __pyx_L0;
5756
 
    break;
5757
 
 
5758
 
    /* "adios.pyx":402
5759
 
 *     elif t == adios_long:
5760
 
 *         return (<long *> val)[0]
5761
 
 *     elif t == adios_unsigned_byte:             # <<<<<<<<<<<<<<
5762
 
 *         return (<unsigned char *> val)[0]
5763
 
 *     elif t == adios_unsigned_short:
5764
 
 */
5765
 
    case adios_unsigned_byte:
5766
 
 
5767
 
    /* "adios.pyx":403
5768
 
 *         return (<long *> val)[0]
5769
 
 *     elif t == adios_unsigned_byte:
5770
 
 *         return (<unsigned char *> val)[0]             # <<<<<<<<<<<<<<
5771
 
 *     elif t == adios_unsigned_short:
5772
 
 *         return (<unsigned short *> val)[0]
5773
 
 */
5774
 
    __Pyx_XDECREF(__pyx_r);
5775
 
    __pyx_t_1 = PyInt_FromLong((((unsigned char *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5776
 
    __Pyx_GOTREF(__pyx_t_1);
5777
 
    __pyx_r = __pyx_t_1;
5778
 
    __pyx_t_1 = 0;
5779
 
    goto __pyx_L0;
5780
 
    break;
5781
 
 
5782
 
    /* "adios.pyx":404
5783
 
 *     elif t == adios_unsigned_byte:
5784
 
 *         return (<unsigned char *> val)[0]
5785
 
 *     elif t == adios_unsigned_short:             # <<<<<<<<<<<<<<
5786
 
 *         return (<unsigned short *> val)[0]
5787
 
 *     elif t == adios_unsigned_integer:
5788
 
 */
5789
 
    case adios_unsigned_short:
5790
 
 
5791
 
    /* "adios.pyx":405
5792
 
 *         return (<unsigned char *> val)[0]
5793
 
 *     elif t == adios_unsigned_short:
5794
 
 *         return (<unsigned short *> val)[0]             # <<<<<<<<<<<<<<
5795
 
 *     elif t == adios_unsigned_integer:
5796
 
 *         return (<unsigned int *> val)[0]
5797
 
 */
5798
 
    __Pyx_XDECREF(__pyx_r);
5799
 
    __pyx_t_1 = PyInt_FromLong((((unsigned short *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5800
 
    __Pyx_GOTREF(__pyx_t_1);
5801
 
    __pyx_r = __pyx_t_1;
5802
 
    __pyx_t_1 = 0;
5803
 
    goto __pyx_L0;
5804
 
    break;
5805
 
 
5806
 
    /* "adios.pyx":406
5807
 
 *     elif t == adios_unsigned_short:
5808
 
 *         return (<unsigned short *> val)[0]
5809
 
 *     elif t == adios_unsigned_integer:             # <<<<<<<<<<<<<<
5810
 
 *         return (<unsigned int *> val)[0]
5811
 
 *     elif t == adios_unsigned_long:
5812
 
 */
5813
 
    case adios_unsigned_integer:
5814
 
 
5815
 
    /* "adios.pyx":407
5816
 
 *         return (<unsigned short *> val)[0]
5817
 
 *     elif t == adios_unsigned_integer:
5818
 
 *         return (<unsigned int *> val)[0]             # <<<<<<<<<<<<<<
5819
 
 *     elif t == adios_unsigned_long:
5820
 
 *         return (<unsigned long *> val)[0]
5821
 
 */
5822
 
    __Pyx_XDECREF(__pyx_r);
5823
 
    __pyx_t_1 = PyLong_FromUnsignedLong((((unsigned int *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5824
 
    __Pyx_GOTREF(__pyx_t_1);
5825
 
    __pyx_r = __pyx_t_1;
5826
 
    __pyx_t_1 = 0;
5827
 
    goto __pyx_L0;
5828
 
    break;
5829
 
 
5830
 
    /* "adios.pyx":408
5831
 
 *     elif t == adios_unsigned_integer:
5832
 
 *         return (<unsigned int *> val)[0]
5833
 
 *     elif t == adios_unsigned_long:             # <<<<<<<<<<<<<<
5834
 
 *         return (<unsigned long *> val)[0]
5835
 
 *     elif t == adios_real:
5836
 
 */
5837
 
    case adios_unsigned_long:
5838
 
 
5839
 
    /* "adios.pyx":409
5840
 
 *         return (<unsigned int *> val)[0]
5841
 
 *     elif t == adios_unsigned_long:
5842
 
 *         return (<unsigned long *> val)[0]             # <<<<<<<<<<<<<<
5843
 
 *     elif t == adios_real:
5844
 
 *         return (<float *> val)[0]
5845
 
 */
5846
 
    __Pyx_XDECREF(__pyx_r);
5847
 
    __pyx_t_1 = PyLong_FromUnsignedLong((((unsigned long *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5848
 
    __Pyx_GOTREF(__pyx_t_1);
5849
 
    __pyx_r = __pyx_t_1;
5850
 
    __pyx_t_1 = 0;
5851
 
    goto __pyx_L0;
5852
 
    break;
5853
 
 
5854
 
    /* "adios.pyx":410
5855
 
 *     elif t == adios_unsigned_long:
5856
 
 *         return (<unsigned long *> val)[0]
5857
 
 *     elif t == adios_real:             # <<<<<<<<<<<<<<
5858
 
 *         return (<float *> val)[0]
5859
 
 *     elif t == adios_double:
5860
 
 */
5861
 
    case adios_real:
5862
 
 
5863
 
    /* "adios.pyx":411
5864
 
 *         return (<unsigned long *> val)[0]
5865
 
 *     elif t == adios_real:
5866
 
 *         return (<float *> val)[0]             # <<<<<<<<<<<<<<
5867
 
 *     elif t == adios_double:
5868
 
 *         return (<double *> val)[0]
5869
 
 */
5870
 
    __Pyx_XDECREF(__pyx_r);
5871
 
    __pyx_t_1 = PyFloat_FromDouble((((float *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5872
 
    __Pyx_GOTREF(__pyx_t_1);
5873
 
    __pyx_r = __pyx_t_1;
5874
 
    __pyx_t_1 = 0;
5875
 
    goto __pyx_L0;
5876
 
    break;
5877
 
 
5878
 
    /* "adios.pyx":412
5879
 
 *     elif t == adios_real:
5880
 
 *         return (<float *> val)[0]
5881
 
 *     elif t == adios_double:             # <<<<<<<<<<<<<<
5882
 
 *         return (<double *> val)[0]
5883
 
 *     elif t == adios_long_double:
5884
 
 */
5885
 
    case adios_double:
5886
 
 
5887
 
    /* "adios.pyx":413
5888
 
 *         return (<float *> val)[0]
5889
 
 *     elif t == adios_double:
5890
 
 *         return (<double *> val)[0]             # <<<<<<<<<<<<<<
5891
 
 *     elif t == adios_long_double:
5892
 
 *         return (<long double *> val)[0]
5893
 
 */
5894
 
    __Pyx_XDECREF(__pyx_r);
5895
 
    __pyx_t_1 = PyFloat_FromDouble((((double *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5896
 
    __Pyx_GOTREF(__pyx_t_1);
5897
 
    __pyx_r = __pyx_t_1;
5898
 
    __pyx_t_1 = 0;
5899
 
    goto __pyx_L0;
5900
 
    break;
5901
 
 
5902
 
    /* "adios.pyx":414
5903
 
 *     elif t == adios_double:
5904
 
 *         return (<double *> val)[0]
5905
 
 *     elif t == adios_long_double:             # <<<<<<<<<<<<<<
5906
 
 *         return (<long double *> val)[0]
5907
 
 *     else:
5908
 
 */
5909
 
    case adios_long_double:
5910
 
 
5911
 
    /* "adios.pyx":415
5912
 
 *         return (<double *> val)[0]
5913
 
 *     elif t == adios_long_double:
5914
 
 *         return (<long double *> val)[0]             # <<<<<<<<<<<<<<
5915
 
 *     else:
5916
 
 *         return None
5917
 
 */
5918
 
    __Pyx_XDECREF(__pyx_r);
5919
 
    __pyx_t_1 = PyFloat_FromDouble((((long double *)__pyx_v_val)[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5920
 
    __Pyx_GOTREF(__pyx_t_1);
5921
 
    __pyx_r = __pyx_t_1;
5922
 
    __pyx_t_1 = 0;
5923
 
    goto __pyx_L0;
5924
 
    break;
5925
 
    default:
5926
 
 
5927
 
    /* "adios.pyx":417
5928
 
 *         return (<long double *> val)[0]
5929
 
 *     else:
5930
 
 *         return None             # <<<<<<<<<<<<<<
5931
 
 * 
5932
 
 * ## ==========
5933
 
 */
5934
 
    __Pyx_XDECREF(__pyx_r);
5935
 
    __Pyx_INCREF(Py_None);
5936
 
    __pyx_r = Py_None;
5937
 
    goto __pyx_L0;
5938
 
    break;
5939
 
  }
5940
 
 
5941
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5942
 
  goto __pyx_L0;
5943
 
  __pyx_L1_error:;
5944
 
  __Pyx_XDECREF(__pyx_t_1);
5945
 
  __Pyx_AddTraceback("adios.adios2scalar", __pyx_clineno, __pyx_lineno, __pyx_filename);
5946
 
  __pyx_r = 0;
5947
 
  __pyx_L0:;
5948
 
  __Pyx_XGIVEREF(__pyx_r);
5949
 
  __Pyx_RefNannyFinishContext();
5950
 
  return __pyx_r;
5951
 
}
5952
 
 
5953
 
/* Python wrapper */
5954
 
static int __pyx_pw_5adios_9AdiosFile_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
5955
 
static int __pyx_pw_5adios_9AdiosFile_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 
5155
  __Pyx_AddTraceback("adios.printvar", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5156
  __pyx_r = 0;
 
5157
  __pyx_L0:;
 
5158
  __Pyx_XGIVEREF(__pyx_r);
 
5159
  __Pyx_RefNannyFinishContext();
 
5160
  return __pyx_r;
 
5161
}
 
5162
 
 
5163
/* "adios.pyx":422
 
5164
 * ## ====================
 
5165
 * 
 
5166
 * cpdef read_init(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,             # <<<<<<<<<<<<<<
 
5167
 *                 MPI_Comm comm = MPI_COMM_WORLD,
 
5168
 *                 char * parameters = ""):
 
5169
 */
 
5170
 
 
5171
static PyObject *__pyx_pw_5adios_33read_init(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
5172
static PyObject *__pyx_f_5adios_read_init(CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_read_init *__pyx_optional_args) {
 
5173
  ADIOS_READ_METHOD __pyx_v_method = __pyx_k__4;
 
5174
  MPI_Comm __pyx_v_comm = __pyx_k__5;
 
5175
  char *__pyx_v_parameters = ((char *)__pyx_k__6);
 
5176
  PyObject *__pyx_r = NULL;
 
5177
  __Pyx_RefNannyDeclarations
 
5178
  PyObject *__pyx_t_1 = NULL;
 
5179
  int __pyx_lineno = 0;
 
5180
  const char *__pyx_filename = NULL;
 
5181
  int __pyx_clineno = 0;
 
5182
  __Pyx_RefNannySetupContext("read_init", 0);
 
5183
  if (__pyx_optional_args) {
 
5184
    if (__pyx_optional_args->__pyx_n > 0) {
 
5185
      __pyx_v_method = __pyx_optional_args->method;
 
5186
      if (__pyx_optional_args->__pyx_n > 1) {
 
5187
        __pyx_v_comm = __pyx_optional_args->comm;
 
5188
        if (__pyx_optional_args->__pyx_n > 2) {
 
5189
          __pyx_v_parameters = __pyx_optional_args->parameters;
 
5190
        }
 
5191
      }
 
5192
    }
 
5193
  }
 
5194
 
 
5195
  /* "adios.pyx":425
 
5196
 *                 MPI_Comm comm = MPI_COMM_WORLD,
 
5197
 *                 char * parameters = ""):
 
5198
 *     return adios_read_init_method (method, comm, parameters)             # <<<<<<<<<<<<<<
 
5199
 * 
 
5200
 * 
 
5201
 */
 
5202
  __Pyx_XDECREF(__pyx_r);
 
5203
  __pyx_t_1 = __Pyx_PyInt_From_int(adios_read_init_method(__pyx_v_method, __pyx_v_comm, __pyx_v_parameters)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5204
  __Pyx_GOTREF(__pyx_t_1);
 
5205
  __pyx_r = __pyx_t_1;
 
5206
  __pyx_t_1 = 0;
 
5207
  goto __pyx_L0;
 
5208
 
 
5209
  /* "adios.pyx":422
 
5210
 * ## ====================
 
5211
 * 
 
5212
 * cpdef read_init(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,             # <<<<<<<<<<<<<<
 
5213
 *                 MPI_Comm comm = MPI_COMM_WORLD,
 
5214
 *                 char * parameters = ""):
 
5215
 */
 
5216
 
 
5217
  /* function exit code */
 
5218
  __pyx_L1_error:;
 
5219
  __Pyx_XDECREF(__pyx_t_1);
 
5220
  __Pyx_AddTraceback("adios.read_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5221
  __pyx_r = 0;
 
5222
  __pyx_L0:;
 
5223
  __Pyx_XGIVEREF(__pyx_r);
 
5224
  __Pyx_RefNannyFinishContext();
 
5225
  return __pyx_r;
 
5226
}
 
5227
 
 
5228
/* Python wrapper */
 
5229
static PyObject *__pyx_pw_5adios_33read_init(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
5230
static PyObject *__pyx_pw_5adios_33read_init(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 
5231
  ADIOS_READ_METHOD __pyx_v_method;
 
5232
  MPI_Comm __pyx_v_comm;
 
5233
  char *__pyx_v_parameters;
 
5234
  int __pyx_lineno = 0;
 
5235
  const char *__pyx_filename = NULL;
 
5236
  int __pyx_clineno = 0;
 
5237
  PyObject *__pyx_r = 0;
 
5238
  __Pyx_RefNannyDeclarations
 
5239
  __Pyx_RefNannySetupContext("read_init (wrapper)", 0);
 
5240
  {
 
5241
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,&__pyx_n_s_comm,&__pyx_n_s_parameters,0};
 
5242
    PyObject* values[3] = {0,0,0};
 
5243
    if (unlikely(__pyx_kwds)) {
 
5244
      Py_ssize_t kw_args;
 
5245
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
 
5246
      switch (pos_args) {
 
5247
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
 
5248
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
 
5249
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 
5250
        case  0: break;
 
5251
        default: goto __pyx_L5_argtuple_error;
 
5252
      }
 
5253
      kw_args = PyDict_Size(__pyx_kwds);
 
5254
      switch (pos_args) {
 
5255
        case  0:
 
5256
        if (kw_args > 0) {
 
5257
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method);
 
5258
          if (value) { values[0] = value; kw_args--; }
 
5259
        }
 
5260
        case  1:
 
5261
        if (kw_args > 0) {
 
5262
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_comm);
 
5263
          if (value) { values[1] = value; kw_args--; }
 
5264
        }
 
5265
        case  2:
 
5266
        if (kw_args > 0) {
 
5267
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parameters);
 
5268
          if (value) { values[2] = value; kw_args--; }
 
5269
        }
 
5270
      }
 
5271
      if (unlikely(kw_args > 0)) {
 
5272
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read_init") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5273
      }
 
5274
    } else {
 
5275
      switch (PyTuple_GET_SIZE(__pyx_args)) {
 
5276
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
 
5277
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
 
5278
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 
5279
        case  0: break;
 
5280
        default: goto __pyx_L5_argtuple_error;
 
5281
      }
 
5282
    }
 
5283
    if (values[0]) {
 
5284
      __pyx_v_method = ((ADIOS_READ_METHOD)PyInt_AsLong(values[0])); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5285
    } else {
 
5286
      __pyx_v_method = __pyx_k__4;
 
5287
    }
 
5288
    if (values[1]) {
 
5289
      __pyx_v_comm = __Pyx_PyInt_As_MPI_Comm(values[1]); if (unlikely((__pyx_v_comm == (MPI_Comm)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5290
    } else {
 
5291
      __pyx_v_comm = __pyx_k__5;
 
5292
    }
 
5293
    if (values[2]) {
 
5294
      __pyx_v_parameters = __Pyx_PyObject_AsString(values[2]); if (unlikely((!__pyx_v_parameters) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5295
    } else {
 
5296
      __pyx_v_parameters = ((char *)__pyx_k__6);
 
5297
    }
 
5298
  }
 
5299
  goto __pyx_L4_argument_unpacking_done;
 
5300
  __pyx_L5_argtuple_error:;
 
5301
  __Pyx_RaiseArgtupleInvalid("read_init", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5302
  __pyx_L3_error:;
 
5303
  __Pyx_AddTraceback("adios.read_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5304
  __Pyx_RefNannyFinishContext();
 
5305
  return NULL;
 
5306
  __pyx_L4_argument_unpacking_done:;
 
5307
  __pyx_r = __pyx_pf_5adios_32read_init(__pyx_self, __pyx_v_method, __pyx_v_comm, __pyx_v_parameters);
 
5308
 
 
5309
  /* function exit code */
 
5310
  __Pyx_RefNannyFinishContext();
 
5311
  return __pyx_r;
 
5312
}
 
5313
 
 
5314
static PyObject *__pyx_pf_5adios_32read_init(CYTHON_UNUSED PyObject *__pyx_self, ADIOS_READ_METHOD __pyx_v_method, MPI_Comm __pyx_v_comm, char *__pyx_v_parameters) {
 
5315
  PyObject *__pyx_r = NULL;
 
5316
  __Pyx_RefNannyDeclarations
 
5317
  PyObject *__pyx_t_1 = NULL;
 
5318
  struct __pyx_opt_args_5adios_read_init __pyx_t_2;
 
5319
  int __pyx_lineno = 0;
 
5320
  const char *__pyx_filename = NULL;
 
5321
  int __pyx_clineno = 0;
 
5322
  __Pyx_RefNannySetupContext("read_init", 0);
 
5323
  __Pyx_XDECREF(__pyx_r);
 
5324
  __pyx_t_2.__pyx_n = 3;
 
5325
  __pyx_t_2.method = __pyx_v_method;
 
5326
  __pyx_t_2.comm = __pyx_v_comm;
 
5327
  __pyx_t_2.parameters = __pyx_v_parameters;
 
5328
  __pyx_t_1 = __pyx_f_5adios_read_init(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5329
  __Pyx_GOTREF(__pyx_t_1);
 
5330
  __pyx_r = __pyx_t_1;
 
5331
  __pyx_t_1 = 0;
 
5332
  goto __pyx_L0;
 
5333
 
 
5334
  /* function exit code */
 
5335
  __pyx_L1_error:;
 
5336
  __Pyx_XDECREF(__pyx_t_1);
 
5337
  __Pyx_AddTraceback("adios.read_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5338
  __pyx_r = NULL;
 
5339
  __pyx_L0:;
 
5340
  __Pyx_XGIVEREF(__pyx_r);
 
5341
  __Pyx_RefNannyFinishContext();
 
5342
  return __pyx_r;
 
5343
}
 
5344
 
 
5345
/* "adios.pyx":428
 
5346
 * 
 
5347
 * 
 
5348
 * cpdef read_finalize(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP):             # <<<<<<<<<<<<<<
 
5349
 *     return adios_read_finalize_method (method)
 
5350
 * 
 
5351
 */
 
5352
 
 
5353
static PyObject *__pyx_pw_5adios_35read_finalize(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
5354
static PyObject *__pyx_f_5adios_read_finalize(CYTHON_UNUSED int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_read_finalize *__pyx_optional_args) {
 
5355
  ADIOS_READ_METHOD __pyx_v_method = __pyx_k__7;
 
5356
  PyObject *__pyx_r = NULL;
 
5357
  __Pyx_RefNannyDeclarations
 
5358
  PyObject *__pyx_t_1 = NULL;
 
5359
  int __pyx_lineno = 0;
 
5360
  const char *__pyx_filename = NULL;
 
5361
  int __pyx_clineno = 0;
 
5362
  __Pyx_RefNannySetupContext("read_finalize", 0);
 
5363
  if (__pyx_optional_args) {
 
5364
    if (__pyx_optional_args->__pyx_n > 0) {
 
5365
      __pyx_v_method = __pyx_optional_args->method;
 
5366
    }
 
5367
  }
 
5368
 
 
5369
  /* "adios.pyx":429
 
5370
 * 
 
5371
 * cpdef read_finalize(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP):
 
5372
 *     return adios_read_finalize_method (method)             # <<<<<<<<<<<<<<
 
5373
 * 
 
5374
 * cdef class file:
 
5375
 */
 
5376
  __Pyx_XDECREF(__pyx_r);
 
5377
  __pyx_t_1 = __Pyx_PyInt_From_int(adios_read_finalize_method(__pyx_v_method)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5378
  __Pyx_GOTREF(__pyx_t_1);
 
5379
  __pyx_r = __pyx_t_1;
 
5380
  __pyx_t_1 = 0;
 
5381
  goto __pyx_L0;
 
5382
 
 
5383
  /* "adios.pyx":428
 
5384
 * 
 
5385
 * 
 
5386
 * cpdef read_finalize(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP):             # <<<<<<<<<<<<<<
 
5387
 *     return adios_read_finalize_method (method)
 
5388
 * 
 
5389
 */
 
5390
 
 
5391
  /* function exit code */
 
5392
  __pyx_L1_error:;
 
5393
  __Pyx_XDECREF(__pyx_t_1);
 
5394
  __Pyx_AddTraceback("adios.read_finalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5395
  __pyx_r = 0;
 
5396
  __pyx_L0:;
 
5397
  __Pyx_XGIVEREF(__pyx_r);
 
5398
  __Pyx_RefNannyFinishContext();
 
5399
  return __pyx_r;
 
5400
}
 
5401
 
 
5402
/* Python wrapper */
 
5403
static PyObject *__pyx_pw_5adios_35read_finalize(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
5404
static PyObject *__pyx_pw_5adios_35read_finalize(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 
5405
  ADIOS_READ_METHOD __pyx_v_method;
 
5406
  int __pyx_lineno = 0;
 
5407
  const char *__pyx_filename = NULL;
 
5408
  int __pyx_clineno = 0;
 
5409
  PyObject *__pyx_r = 0;
 
5410
  __Pyx_RefNannyDeclarations
 
5411
  __Pyx_RefNannySetupContext("read_finalize (wrapper)", 0);
 
5412
  {
 
5413
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_method,0};
 
5414
    PyObject* values[1] = {0};
 
5415
    if (unlikely(__pyx_kwds)) {
 
5416
      Py_ssize_t kw_args;
 
5417
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
 
5418
      switch (pos_args) {
 
5419
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 
5420
        case  0: break;
 
5421
        default: goto __pyx_L5_argtuple_error;
 
5422
      }
 
5423
      kw_args = PyDict_Size(__pyx_kwds);
 
5424
      switch (pos_args) {
 
5425
        case  0:
 
5426
        if (kw_args > 0) {
 
5427
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method);
 
5428
          if (value) { values[0] = value; kw_args--; }
 
5429
        }
 
5430
      }
 
5431
      if (unlikely(kw_args > 0)) {
 
5432
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read_finalize") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5433
      }
 
5434
    } else {
 
5435
      switch (PyTuple_GET_SIZE(__pyx_args)) {
 
5436
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 
5437
        case  0: break;
 
5438
        default: goto __pyx_L5_argtuple_error;
 
5439
      }
 
5440
    }
 
5441
    if (values[0]) {
 
5442
      __pyx_v_method = ((ADIOS_READ_METHOD)PyInt_AsLong(values[0])); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5443
    } else {
 
5444
      __pyx_v_method = __pyx_k__7;
 
5445
    }
 
5446
  }
 
5447
  goto __pyx_L4_argument_unpacking_done;
 
5448
  __pyx_L5_argtuple_error:;
 
5449
  __Pyx_RaiseArgtupleInvalid("read_finalize", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5450
  __pyx_L3_error:;
 
5451
  __Pyx_AddTraceback("adios.read_finalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5452
  __Pyx_RefNannyFinishContext();
 
5453
  return NULL;
 
5454
  __pyx_L4_argument_unpacking_done:;
 
5455
  __pyx_r = __pyx_pf_5adios_34read_finalize(__pyx_self, __pyx_v_method);
 
5456
 
 
5457
  /* function exit code */
 
5458
  __Pyx_RefNannyFinishContext();
 
5459
  return __pyx_r;
 
5460
}
 
5461
 
 
5462
static PyObject *__pyx_pf_5adios_34read_finalize(CYTHON_UNUSED PyObject *__pyx_self, ADIOS_READ_METHOD __pyx_v_method) {
 
5463
  PyObject *__pyx_r = NULL;
 
5464
  __Pyx_RefNannyDeclarations
 
5465
  PyObject *__pyx_t_1 = NULL;
 
5466
  struct __pyx_opt_args_5adios_read_finalize __pyx_t_2;
 
5467
  int __pyx_lineno = 0;
 
5468
  const char *__pyx_filename = NULL;
 
5469
  int __pyx_clineno = 0;
 
5470
  __Pyx_RefNannySetupContext("read_finalize", 0);
 
5471
  __Pyx_XDECREF(__pyx_r);
 
5472
  __pyx_t_2.__pyx_n = 1;
 
5473
  __pyx_t_2.method = __pyx_v_method;
 
5474
  __pyx_t_1 = __pyx_f_5adios_read_finalize(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5475
  __Pyx_GOTREF(__pyx_t_1);
 
5476
  __pyx_r = __pyx_t_1;
 
5477
  __pyx_t_1 = 0;
 
5478
  goto __pyx_L0;
 
5479
 
 
5480
  /* function exit code */
 
5481
  __pyx_L1_error:;
 
5482
  __Pyx_XDECREF(__pyx_t_1);
 
5483
  __Pyx_AddTraceback("adios.read_finalize", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5484
  __pyx_r = NULL;
 
5485
  __pyx_L0:;
 
5486
  __Pyx_XGIVEREF(__pyx_r);
 
5487
  __Pyx_RefNannyFinishContext();
 
5488
  return __pyx_r;
 
5489
}
 
5490
 
 
5491
/* "adios.pyx":448
 
5492
 *     cpdef public dict attr
 
5493
 * 
 
5494
 *     def __init__(self, char * fname,             # <<<<<<<<<<<<<<
 
5495
 *                  ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,
 
5496
 *                  MPI_Comm comm = MPI_COMM_WORLD):
 
5497
 */
 
5498
 
 
5499
/* Python wrapper */
 
5500
static int __pyx_pw_5adios_4file_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
5501
static int __pyx_pw_5adios_4file_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5956
5502
  char *__pyx_v_fname;
5957
 
  struct PyMPICommObject *__pyx_v_comm = 0;
 
5503
  ADIOS_READ_METHOD __pyx_v_method;
 
5504
  MPI_Comm __pyx_v_comm;
5958
5505
  int __pyx_lineno = 0;
5959
5506
  const char *__pyx_filename = NULL;
5960
5507
  int __pyx_clineno = 0;
5962
5509
  __Pyx_RefNannyDeclarations
5963
5510
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
5964
5511
  {
5965
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__fname,&__pyx_n_s__comm,0};
5966
 
    PyObject* values[2] = {0,0};
5967
 
    values[1] = (PyObject *)__pyx_k_10;
 
5512
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fname,&__pyx_n_s_method,&__pyx_n_s_comm,0};
 
5513
    PyObject* values[3] = {0,0,0};
5968
5514
    if (unlikely(__pyx_kwds)) {
5969
5515
      Py_ssize_t kw_args;
5970
5516
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5971
5517
      switch (pos_args) {
 
5518
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5972
5519
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5973
5520
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5974
5521
        case  0: break;
5977
5524
      kw_args = PyDict_Size(__pyx_kwds);
5978
5525
      switch (pos_args) {
5979
5526
        case  0:
5980
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__fname)) != 0)) kw_args--;
 
5527
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--;
5981
5528
        else goto __pyx_L5_argtuple_error;
5982
5529
        case  1:
5983
5530
        if (kw_args > 0) {
5984
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__comm);
 
5531
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_method);
5985
5532
          if (value) { values[1] = value; kw_args--; }
5986
5533
        }
 
5534
        case  2:
 
5535
        if (kw_args > 0) {
 
5536
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_comm);
 
5537
          if (value) { values[2] = value; kw_args--; }
 
5538
        }
5987
5539
      }
5988
5540
      if (unlikely(kw_args > 0)) {
5989
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5541
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
5990
5542
      }
5991
5543
    } else {
5992
5544
      switch (PyTuple_GET_SIZE(__pyx_args)) {
 
5545
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5993
5546
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5994
5547
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5995
5548
        break;
5996
5549
        default: goto __pyx_L5_argtuple_error;
5997
5550
      }
5998
5551
    }
5999
 
    __pyx_v_fname = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_fname) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
6000
 
    __pyx_v_comm = ((struct PyMPICommObject *)values[1]);
 
5552
    __pyx_v_fname = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_fname) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5553
    if (values[1]) {
 
5554
      __pyx_v_method = ((ADIOS_READ_METHOD)PyInt_AsLong(values[1])); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5555
    } else {
 
5556
      __pyx_v_method = __pyx_k__8;
 
5557
    }
 
5558
    if (values[2]) {
 
5559
      __pyx_v_comm = __Pyx_PyInt_As_MPI_Comm(values[2]); if (unlikely((__pyx_v_comm == (MPI_Comm)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5560
    } else {
 
5561
      __pyx_v_comm = __pyx_k__9;
 
5562
    }
6001
5563
  }
6002
5564
  goto __pyx_L4_argument_unpacking_done;
6003
5565
  __pyx_L5_argtuple_error:;
6004
 
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
5566
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
6005
5567
  __pyx_L3_error:;
6006
 
  __Pyx_AddTraceback("adios.AdiosFile.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5568
  __Pyx_AddTraceback("adios.file.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6007
5569
  __Pyx_RefNannyFinishContext();
6008
5570
  return -1;
6009
5571
  __pyx_L4_argument_unpacking_done:;
6010
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_comm), __pyx_ptype_6mpi4py_3MPI_Comm, 1, "comm", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6011
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile___init__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), __pyx_v_fname, __pyx_v_comm);
6012
 
  goto __pyx_L0;
6013
 
  __pyx_L1_error:;
6014
 
  __pyx_r = -1;
6015
 
  __pyx_L0:;
 
5572
  __pyx_r = __pyx_pf_5adios_4file___init__(((struct __pyx_obj_5adios_file *)__pyx_v_self), __pyx_v_fname, __pyx_v_method, __pyx_v_comm);
 
5573
 
 
5574
  /* function exit code */
6016
5575
  __Pyx_RefNannyFinishContext();
6017
5576
  return __pyx_r;
6018
5577
}
6019
5578
 
6020
 
/* "adios.pyx":440
6021
 
 *     cpdef public dict group
6022
 
 * 
6023
 
 *     def __init__(self, char * fname, MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
6024
 
 *         self.fp = NULL
6025
 
 *         self.group = {}
6026
 
 */
6027
 
 
6028
 
static int __pyx_pf_5adios_9AdiosFile___init__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, char *__pyx_v_fname, struct PyMPICommObject *__pyx_v_comm) {
6029
 
  struct __pyx_obj_5adios_AdiosGroup *__pyx_v_g = 0;
6030
 
  PyObject *__pyx_v_grpname = NULL;
 
5579
static int __pyx_pf_5adios_4file___init__(struct __pyx_obj_5adios_file *__pyx_v_self, char *__pyx_v_fname, ADIOS_READ_METHOD __pyx_v_method, MPI_Comm __pyx_v_comm) {
 
5580
  PyObject *__pyx_v_varname = NULL;
6031
5581
  int __pyx_v_i;
6032
5582
  int __pyx_r;
6033
5583
  __Pyx_RefNannyDeclarations
6043
5593
  int __pyx_clineno = 0;
6044
5594
  __Pyx_RefNannySetupContext("__init__", 0);
6045
5595
 
6046
 
  /* "adios.pyx":441
6047
 
 * 
6048
 
 *     def __init__(self, char * fname, MPI.Comm comm = MPI.COMM_WORLD):
6049
 
 *         self.fp = NULL             # <<<<<<<<<<<<<<
6050
 
 *         self.group = {}
6051
 
 * 
6052
 
 */
6053
 
  __pyx_v_self->fp = NULL;
6054
 
 
6055
 
  /* "adios.pyx":442
6056
 
 *     def __init__(self, char * fname, MPI.Comm comm = MPI.COMM_WORLD):
6057
 
 *         self.fp = NULL
6058
 
 *         self.group = {}             # <<<<<<<<<<<<<<
6059
 
 * 
6060
 
 *         self.fp = adios_fopen(fname, comm.ob_mpi)
6061
 
 */
6062
 
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6063
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
6064
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
6065
 
  __Pyx_GOTREF(__pyx_v_self->group);
6066
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->group));
6067
 
  __pyx_v_self->group = ((PyObject*)__pyx_t_1);
6068
 
  __pyx_t_1 = 0;
6069
 
 
6070
 
  /* "adios.pyx":444
6071
 
 *         self.group = {}
6072
 
 * 
6073
 
 *         self.fp = adios_fopen(fname, comm.ob_mpi)             # <<<<<<<<<<<<<<
6074
 
 *         assert self.fp != NULL, 'Not an open file'
6075
 
 * 
6076
 
 */
6077
 
  __pyx_v_self->fp = adios_fopen(__pyx_v_fname, __pyx_v_comm->ob_mpi);
6078
 
 
6079
 
  /* "adios.pyx":445
6080
 
 * 
6081
 
 *         self.fp = adios_fopen(fname, comm.ob_mpi)
6082
 
 *         assert self.fp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
6083
 
 * 
6084
 
 *         self.name         = fname.split('/')[-1]  ## basename
6085
 
 */
6086
 
  #ifndef CYTHON_WITHOUT_ASSERTIONS
6087
 
  if (unlikely(!((__pyx_v_self->fp != NULL) != 0))) {
6088
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
6089
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6090
 
  }
6091
 
  #endif
6092
 
 
6093
 
  /* "adios.pyx":447
6094
 
 *         assert self.fp != NULL, 'Not an open file'
6095
 
 * 
6096
 
 *         self.name         = fname.split('/')[-1]  ## basename             # <<<<<<<<<<<<<<
6097
 
 *         self.groups_count = self.fp.groups_count
6098
 
 *         self.vars_count   = self.fp.vars_count
6099
 
 */
6100
 
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_fname); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6101
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
6102
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_t_1), __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6103
 
  __Pyx_GOTREF(__pyx_t_2);
6104
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
6105
 
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_13), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6106
 
  __Pyx_GOTREF(__pyx_t_1);
6107
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6108
 
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, -1, sizeof(long), PyInt_FromLong, 0, 1, 1); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6109
 
  __Pyx_GOTREF(__pyx_t_2);
6110
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6111
 
  if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6112
 
  __Pyx_GIVEREF(__pyx_t_2);
6113
 
  __Pyx_GOTREF(__pyx_v_self->name);
6114
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
6115
 
  __pyx_v_self->name = ((PyObject*)__pyx_t_2);
6116
 
  __pyx_t_2 = 0;
6117
 
 
6118
 
  /* "adios.pyx":448
6119
 
 * 
6120
 
 *         self.name         = fname.split('/')[-1]  ## basename
6121
 
 *         self.groups_count = self.fp.groups_count             # <<<<<<<<<<<<<<
6122
 
 *         self.vars_count   = self.fp.vars_count
6123
 
 *         self.attrs_count  = self.fp.attrs_count
6124
 
 */
6125
 
  __pyx_t_3 = __pyx_v_self->fp->groups_count;
6126
 
  __pyx_v_self->groups_count = __pyx_t_3;
6127
 
 
6128
 
  /* "adios.pyx":449
6129
 
 *         self.name         = fname.split('/')[-1]  ## basename
6130
 
 *         self.groups_count = self.fp.groups_count
6131
 
 *         self.vars_count   = self.fp.vars_count             # <<<<<<<<<<<<<<
6132
 
 *         self.attrs_count  = self.fp.attrs_count
6133
 
 *         self.tidx_start   = self.fp.tidx_start
6134
 
 */
6135
 
  __pyx_t_3 = __pyx_v_self->fp->vars_count;
6136
 
  __pyx_v_self->vars_count = __pyx_t_3;
6137
 
 
6138
 
  /* "adios.pyx":450
6139
 
 *         self.groups_count = self.fp.groups_count
6140
 
 *         self.vars_count   = self.fp.vars_count
6141
 
 *         self.attrs_count  = self.fp.attrs_count             # <<<<<<<<<<<<<<
6142
 
 *         self.tidx_start   = self.fp.tidx_start
6143
 
 *         self.ntimesteps   = self.fp.ntimesteps
6144
 
 */
6145
 
  __pyx_t_3 = __pyx_v_self->fp->attrs_count;
6146
 
  __pyx_v_self->attrs_count = __pyx_t_3;
6147
 
 
6148
5596
  /* "adios.pyx":451
6149
 
 *         self.vars_count   = self.fp.vars_count
6150
 
 *         self.attrs_count  = self.fp.attrs_count
6151
 
 *         self.tidx_start   = self.fp.tidx_start             # <<<<<<<<<<<<<<
6152
 
 *         self.ntimesteps   = self.fp.ntimesteps
6153
 
 *         self.version      = self.fp.version
 
5597
 *                  ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,
 
5598
 *                  MPI_Comm comm = MPI_COMM_WORLD):
 
5599
 *         self.fp = NULL             # <<<<<<<<<<<<<<
 
5600
 *         self.var = {}
 
5601
 *         self.attr = {}
6154
5602
 */
6155
 
  __pyx_t_3 = __pyx_v_self->fp->tidx_start;
6156
 
  __pyx_v_self->tidx_start = __pyx_t_3;
 
5603
  __pyx_v_self->fp = NULL;
6157
5604
 
6158
5605
  /* "adios.pyx":452
6159
 
 *         self.attrs_count  = self.fp.attrs_count
6160
 
 *         self.tidx_start   = self.fp.tidx_start
6161
 
 *         self.ntimesteps   = self.fp.ntimesteps             # <<<<<<<<<<<<<<
6162
 
 *         self.version      = self.fp.version
6163
 
 *         self.file_size    = self.fp.file_size
 
5606
 *                  MPI_Comm comm = MPI_COMM_WORLD):
 
5607
 *         self.fp = NULL
 
5608
 *         self.var = {}             # <<<<<<<<<<<<<<
 
5609
 *         self.attr = {}
 
5610
 * 
6164
5611
 */
6165
 
  __pyx_t_3 = __pyx_v_self->fp->ntimesteps;
6166
 
  __pyx_v_self->ntimesteps = __pyx_t_3;
 
5612
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5613
  __Pyx_GOTREF(__pyx_t_1);
 
5614
  __Pyx_GIVEREF(__pyx_t_1);
 
5615
  __Pyx_GOTREF(__pyx_v_self->var);
 
5616
  __Pyx_DECREF(__pyx_v_self->var);
 
5617
  __pyx_v_self->var = ((PyObject*)__pyx_t_1);
 
5618
  __pyx_t_1 = 0;
6167
5619
 
6168
5620
  /* "adios.pyx":453
6169
 
 *         self.tidx_start   = self.fp.tidx_start
6170
 
 *         self.ntimesteps   = self.fp.ntimesteps
6171
 
 *         self.version      = self.fp.version             # <<<<<<<<<<<<<<
6172
 
 *         self.file_size    = self.fp.file_size
6173
 
 *         self.endianness   = self.fp.endianness
 
5621
 *         self.fp = NULL
 
5622
 *         self.var = {}
 
5623
 *         self.attr = {}             # <<<<<<<<<<<<<<
 
5624
 * 
 
5625
 *         self.fp = adios_read_open_file(fname, method, comm)
 
5626
 */
 
5627
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5628
  __Pyx_GOTREF(__pyx_t_1);
 
5629
  __Pyx_GIVEREF(__pyx_t_1);
 
5630
  __Pyx_GOTREF(__pyx_v_self->attr);
 
5631
  __Pyx_DECREF(__pyx_v_self->attr);
 
5632
  __pyx_v_self->attr = ((PyObject*)__pyx_t_1);
 
5633
  __pyx_t_1 = 0;
 
5634
 
 
5635
  /* "adios.pyx":455
 
5636
 *         self.attr = {}
 
5637
 * 
 
5638
 *         self.fp = adios_read_open_file(fname, method, comm)             # <<<<<<<<<<<<<<
 
5639
 *         assert self.fp != NULL, 'Not an open file'
 
5640
 * 
 
5641
 */
 
5642
  __pyx_v_self->fp = adios_read_open_file(__pyx_v_fname, __pyx_v_method, __pyx_v_comm);
 
5643
 
 
5644
  /* "adios.pyx":456
 
5645
 * 
 
5646
 *         self.fp = adios_read_open_file(fname, method, comm)
 
5647
 *         assert self.fp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
 
5648
 * 
 
5649
 *         self.name = fname.split('/')[-1]  ## basename
 
5650
 */
 
5651
  #ifndef CYTHON_WITHOUT_ASSERTIONS
 
5652
  if (unlikely(!Py_OptimizeFlag)) {
 
5653
    if (unlikely(!((__pyx_v_self->fp != NULL) != 0))) {
 
5654
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_an_open_file);
 
5655
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5656
    }
 
5657
  }
 
5658
  #endif
 
5659
 
 
5660
  /* "adios.pyx":458
 
5661
 *         assert self.fp != NULL, 'Not an open file'
 
5662
 * 
 
5663
 *         self.name = fname.split('/')[-1]  ## basename             # <<<<<<<<<<<<<<
 
5664
 *         self.nvars = self.fp.nvars
 
5665
 *         self.nattrs = self.fp.nattrs
 
5666
 */
 
5667
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_fname); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5668
  __Pyx_GOTREF(__pyx_t_1);
 
5669
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5670
  __Pyx_GOTREF(__pyx_t_2);
 
5671
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5672
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5673
  __Pyx_GOTREF(__pyx_t_1);
 
5674
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5675
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, -1, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
5676
  __Pyx_GOTREF(__pyx_t_2);
 
5677
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5678
  if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5679
  __Pyx_GIVEREF(__pyx_t_2);
 
5680
  __Pyx_GOTREF(__pyx_v_self->name);
 
5681
  __Pyx_DECREF(__pyx_v_self->name);
 
5682
  __pyx_v_self->name = ((PyObject*)__pyx_t_2);
 
5683
  __pyx_t_2 = 0;
 
5684
 
 
5685
  /* "adios.pyx":459
 
5686
 * 
 
5687
 *         self.name = fname.split('/')[-1]  ## basename
 
5688
 *         self.nvars = self.fp.nvars             # <<<<<<<<<<<<<<
 
5689
 *         self.nattrs = self.fp.nattrs
 
5690
 *         self.current_step = self.fp.current_step
 
5691
 */
 
5692
  __pyx_t_3 = __pyx_v_self->fp->nvars;
 
5693
  __pyx_v_self->nvars = __pyx_t_3;
 
5694
 
 
5695
  /* "adios.pyx":460
 
5696
 *         self.name = fname.split('/')[-1]  ## basename
 
5697
 *         self.nvars = self.fp.nvars
 
5698
 *         self.nattrs = self.fp.nattrs             # <<<<<<<<<<<<<<
 
5699
 *         self.current_step = self.fp.current_step
 
5700
 *         self.last_step = self.fp.last_step
 
5701
 */
 
5702
  __pyx_t_3 = __pyx_v_self->fp->nattrs;
 
5703
  __pyx_v_self->nattrs = __pyx_t_3;
 
5704
 
 
5705
  /* "adios.pyx":461
 
5706
 *         self.nvars = self.fp.nvars
 
5707
 *         self.nattrs = self.fp.nattrs
 
5708
 *         self.current_step = self.fp.current_step             # <<<<<<<<<<<<<<
 
5709
 *         self.last_step = self.fp.last_step
 
5710
 *         self.endianness = self.fp.endianness
 
5711
 */
 
5712
  __pyx_t_3 = __pyx_v_self->fp->current_step;
 
5713
  __pyx_v_self->current_step = __pyx_t_3;
 
5714
 
 
5715
  /* "adios.pyx":462
 
5716
 *         self.nattrs = self.fp.nattrs
 
5717
 *         self.current_step = self.fp.current_step
 
5718
 *         self.last_step = self.fp.last_step             # <<<<<<<<<<<<<<
 
5719
 *         self.endianness = self.fp.endianness
 
5720
 *         self.version = self.fp.version
 
5721
 */
 
5722
  __pyx_t_3 = __pyx_v_self->fp->last_step;
 
5723
  __pyx_v_self->last_step = __pyx_t_3;
 
5724
 
 
5725
  /* "adios.pyx":463
 
5726
 *         self.current_step = self.fp.current_step
 
5727
 *         self.last_step = self.fp.last_step
 
5728
 *         self.endianness = self.fp.endianness             # <<<<<<<<<<<<<<
 
5729
 *         self.version = self.fp.version
 
5730
 *         self.file_size = self.fp.file_size
 
5731
 */
 
5732
  __pyx_t_3 = __pyx_v_self->fp->endianness;
 
5733
  __pyx_v_self->endianness = __pyx_t_3;
 
5734
 
 
5735
  /* "adios.pyx":464
 
5736
 *         self.last_step = self.fp.last_step
 
5737
 *         self.endianness = self.fp.endianness
 
5738
 *         self.version = self.fp.version             # <<<<<<<<<<<<<<
 
5739
 *         self.file_size = self.fp.file_size
 
5740
 * 
6174
5741
 */
6175
5742
  __pyx_t_3 = __pyx_v_self->fp->version;
6176
5743
  __pyx_v_self->version = __pyx_t_3;
6177
5744
 
6178
 
  /* "adios.pyx":454
6179
 
 *         self.ntimesteps   = self.fp.ntimesteps
6180
 
 *         self.version      = self.fp.version
6181
 
 *         self.file_size    = self.fp.file_size             # <<<<<<<<<<<<<<
6182
 
 *         self.endianness   = self.fp.endianness
 
5745
  /* "adios.pyx":465
 
5746
 *         self.endianness = self.fp.endianness
 
5747
 *         self.version = self.fp.version
 
5748
 *         self.file_size = self.fp.file_size             # <<<<<<<<<<<<<<
6183
5749
 * 
 
5750
 *         for varname in [self.fp.var_namelist[i] for i in range(self.nvars)]:
6184
5751
 */
6185
5752
  __pyx_t_4 = __pyx_v_self->fp->file_size;
6186
5753
  __pyx_v_self->file_size = __pyx_t_4;
6187
5754
 
6188
 
  /* "adios.pyx":455
6189
 
 *         self.version      = self.fp.version
6190
 
 *         self.file_size    = self.fp.file_size
6191
 
 *         self.endianness   = self.fp.endianness             # <<<<<<<<<<<<<<
6192
 
 * 
6193
 
 *         cdef AdiosGroup g
6194
 
 */
6195
 
  __pyx_t_3 = __pyx_v_self->fp->endianness;
6196
 
  __pyx_v_self->endianness = __pyx_t_3;
6197
 
 
6198
 
  /* "adios.pyx":458
6199
 
 * 
6200
 
 *         cdef AdiosGroup g
6201
 
 *         for grpname in [self.fp.group_namelist[i] for i in range(self.groups_count)]:             # <<<<<<<<<<<<<<
6202
 
 *             g = AdiosGroup(self, grpname)
6203
 
 *             self.group[grpname] = g
6204
 
 */
6205
 
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5755
  /* "adios.pyx":467
 
5756
 *         self.file_size = self.fp.file_size
 
5757
 * 
 
5758
 *         for varname in [self.fp.var_namelist[i] for i in range(self.nvars)]:             # <<<<<<<<<<<<<<
 
5759
 *             self.var[varname] = var(self, varname)
 
5760
 * 
 
5761
 */
 
5762
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6206
5763
  __Pyx_GOTREF(__pyx_t_2);
6207
 
  __pyx_t_3 = __pyx_v_self->groups_count;
 
5764
  __pyx_t_3 = __pyx_v_self->nvars;
6208
5765
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_3; __pyx_t_5+=1) {
6209
5766
    __pyx_v_i = __pyx_t_5;
6210
 
    __pyx_t_1 = __Pyx_PyBytes_FromString((__pyx_v_self->fp->group_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6211
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
6212
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6213
 
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
5767
    __pyx_t_1 = __Pyx_PyBytes_FromString((__pyx_v_self->fp->var_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5768
    __Pyx_GOTREF(__pyx_t_1);
 
5769
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5770
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6214
5771
  }
6215
 
  __pyx_t_1 = ((PyObject *)__pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_6 = 0;
6216
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
5772
  __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_6 = 0;
 
5773
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6217
5774
  for (;;) {
6218
5775
    if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)) break;
6219
5776
    #if CYTHON_COMPILING_IN_CPYTHON
6220
 
    __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5777
    __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6221
5778
    #else
6222
 
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5779
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6223
5780
    #endif
6224
 
    __Pyx_XDECREF(__pyx_v_grpname);
6225
 
    __pyx_v_grpname = __pyx_t_2;
 
5781
    __Pyx_XDECREF_SET(__pyx_v_varname, __pyx_t_2);
6226
5782
    __pyx_t_2 = 0;
6227
5783
 
6228
 
    /* "adios.pyx":459
6229
 
 *         cdef AdiosGroup g
6230
 
 *         for grpname in [self.fp.group_namelist[i] for i in range(self.groups_count)]:
6231
 
 *             g = AdiosGroup(self, grpname)             # <<<<<<<<<<<<<<
6232
 
 *             self.group[grpname] = g
6233
 
 * 
 
5784
    /* "adios.pyx":468
 
5785
 * 
 
5786
 *         for varname in [self.fp.var_namelist[i] for i in range(self.nvars)]:
 
5787
 *             self.var[varname] = var(self, varname)             # <<<<<<<<<<<<<<
 
5788
 * 
 
5789
 *     def __del__(self):
6234
5790
 */
6235
 
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5791
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6236
5792
    __Pyx_GOTREF(__pyx_t_2);
6237
5793
    __Pyx_INCREF(((PyObject *)__pyx_v_self));
6238
5794
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self));
6239
5795
    __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
6240
 
    __Pyx_INCREF(__pyx_v_grpname);
6241
 
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_grpname);
6242
 
    __Pyx_GIVEREF(__pyx_v_grpname);
6243
 
    __pyx_t_7 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5adios_AdiosGroup)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5796
    __Pyx_INCREF(__pyx_v_varname);
 
5797
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_varname);
 
5798
    __Pyx_GIVEREF(__pyx_v_varname);
 
5799
    __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5adios_var)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6244
5800
    __Pyx_GOTREF(__pyx_t_7);
6245
 
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
6246
 
    __Pyx_XDECREF(((PyObject *)__pyx_v_g));
6247
 
    __pyx_v_g = ((struct __pyx_obj_5adios_AdiosGroup *)__pyx_t_7);
6248
 
    __pyx_t_7 = 0;
6249
 
 
6250
 
    /* "adios.pyx":460
6251
 
 *         for grpname in [self.fp.group_namelist[i] for i in range(self.groups_count)]:
6252
 
 *             g = AdiosGroup(self, grpname)
6253
 
 *             self.group[grpname] = g             # <<<<<<<<<<<<<<
6254
 
 * 
6255
 
 *     def __del__(self):
6256
 
 */
6257
 
    if (unlikely(((PyObject *)__pyx_v_self->group) == Py_None)) {
 
5801
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5802
    if (unlikely(__pyx_v_self->var == Py_None)) {
6258
5803
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
6259
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5804
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6260
5805
    }
6261
 
    if (PyDict_SetItem(((PyObject *)__pyx_v_self->group), __pyx_v_grpname, ((PyObject *)__pyx_v_g)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5806
    if (unlikely(PyDict_SetItem(__pyx_v_self->var, __pyx_v_varname, __pyx_t_7) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5807
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6262
5808
  }
6263
5809
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6264
5810
 
 
5811
  /* "adios.pyx":448
 
5812
 *     cpdef public dict attr
 
5813
 * 
 
5814
 *     def __init__(self, char * fname,             # <<<<<<<<<<<<<<
 
5815
 *                  ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,
 
5816
 *                  MPI_Comm comm = MPI_COMM_WORLD):
 
5817
 */
 
5818
 
 
5819
  /* function exit code */
6265
5820
  __pyx_r = 0;
6266
5821
  goto __pyx_L0;
6267
5822
  __pyx_L1_error:;
6268
5823
  __Pyx_XDECREF(__pyx_t_1);
6269
5824
  __Pyx_XDECREF(__pyx_t_2);
6270
5825
  __Pyx_XDECREF(__pyx_t_7);
6271
 
  __Pyx_AddTraceback("adios.AdiosFile.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5826
  __Pyx_AddTraceback("adios.file.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6272
5827
  __pyx_r = -1;
6273
5828
  __pyx_L0:;
6274
 
  __Pyx_XDECREF((PyObject *)__pyx_v_g);
6275
 
  __Pyx_XDECREF(__pyx_v_grpname);
 
5829
  __Pyx_XDECREF(__pyx_v_varname);
6276
5830
  __Pyx_RefNannyFinishContext();
6277
5831
  return __pyx_r;
6278
5832
}
6279
5833
 
 
5834
/* "adios.pyx":470
 
5835
 *             self.var[varname] = var(self, varname)
 
5836
 * 
 
5837
 *     def __del__(self):             # <<<<<<<<<<<<<<
 
5838
 *             self.close()
 
5839
 * 
 
5840
 */
 
5841
 
6280
5842
/* Python wrapper */
6281
 
static PyObject *__pyx_pw_5adios_9AdiosFile_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
6282
 
static PyObject *__pyx_pw_5adios_9AdiosFile_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
 
5843
static PyObject *__pyx_pw_5adios_4file_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
5844
static PyObject *__pyx_pw_5adios_4file_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
6283
5845
  PyObject *__pyx_r = 0;
6284
5846
  __Pyx_RefNannyDeclarations
6285
5847
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
6286
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_2__del__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
 
5848
  __pyx_r = __pyx_pf_5adios_4file_2__del__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
5849
 
 
5850
  /* function exit code */
6287
5851
  __Pyx_RefNannyFinishContext();
6288
5852
  return __pyx_r;
6289
5853
}
6290
5854
 
6291
 
/* "adios.pyx":462
6292
 
 *             self.group[grpname] = g
6293
 
 * 
6294
 
 *     def __del__(self):             # <<<<<<<<<<<<<<
6295
 
 *         self.close()
6296
 
 * 
6297
 
 */
6298
 
 
6299
 
static PyObject *__pyx_pf_5adios_9AdiosFile_2__del__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
5855
static PyObject *__pyx_pf_5adios_4file_2__del__(struct __pyx_obj_5adios_file *__pyx_v_self) {
6300
5856
  PyObject *__pyx_r = NULL;
6301
5857
  __Pyx_RefNannyDeclarations
6302
5858
  PyObject *__pyx_t_1 = NULL;
6305
5861
  int __pyx_clineno = 0;
6306
5862
  __Pyx_RefNannySetupContext("__del__", 0);
6307
5863
 
6308
 
  /* "adios.pyx":463
 
5864
  /* "adios.pyx":471
6309
5865
 * 
6310
5866
 *     def __del__(self):
6311
 
 *         self.close()             # <<<<<<<<<<<<<<
6312
 
 * 
6313
 
 *     cpdef close(self):
6314
 
 */
6315
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosFile *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6316
 
  __Pyx_GOTREF(__pyx_t_1);
6317
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6318
 
 
6319
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6320
 
  goto __pyx_L0;
6321
 
  __pyx_L1_error:;
6322
 
  __Pyx_XDECREF(__pyx_t_1);
6323
 
  __Pyx_AddTraceback("adios.AdiosFile.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6324
 
  __pyx_r = NULL;
6325
 
  __pyx_L0:;
6326
 
  __Pyx_XGIVEREF(__pyx_r);
6327
 
  __Pyx_RefNannyFinishContext();
6328
 
  return __pyx_r;
6329
 
}
6330
 
 
6331
 
/* "adios.pyx":465
6332
 
 *         self.close()
6333
 
 * 
6334
 
 *     cpdef close(self):             # <<<<<<<<<<<<<<
6335
 
 *         assert self.fp != NULL, 'Not an open file'
6336
 
 *         for g in self.group.values():
6337
 
 */
6338
 
 
6339
 
static PyObject *__pyx_pw_5adios_9AdiosFile_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
6340
 
static PyObject *__pyx_f_5adios_9AdiosFile_close(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, int __pyx_skip_dispatch) {
6341
 
  PyObject *__pyx_v_g = NULL;
6342
 
  PyObject *__pyx_r = NULL;
6343
 
  __Pyx_RefNannyDeclarations
6344
 
  PyObject *__pyx_t_1 = NULL;
6345
 
  PyObject *__pyx_t_2 = NULL;
6346
 
  Py_ssize_t __pyx_t_3;
6347
 
  PyObject *(*__pyx_t_4)(PyObject *);
6348
 
  PyObject *__pyx_t_5 = NULL;
6349
 
  int __pyx_lineno = 0;
6350
 
  const char *__pyx_filename = NULL;
6351
 
  int __pyx_clineno = 0;
6352
 
  __Pyx_RefNannySetupContext("close", 0);
6353
 
  /* Check if called by wrapper */
6354
 
  if (unlikely(__pyx_skip_dispatch)) ;
6355
 
  /* Check if overridden in Python */
6356
 
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
6357
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6358
 
    __Pyx_GOTREF(__pyx_t_1);
6359
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_9AdiosFile_5close)) {
6360
 
      __Pyx_XDECREF(__pyx_r);
6361
 
      __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6362
 
      __Pyx_GOTREF(__pyx_t_2);
6363
 
      __pyx_r = __pyx_t_2;
6364
 
      __pyx_t_2 = 0;
6365
 
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6366
 
      goto __pyx_L0;
6367
 
    }
6368
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6369
 
  }
6370
 
 
6371
 
  /* "adios.pyx":466
6372
 
 * 
6373
 
 *     cpdef close(self):
6374
 
 *         assert self.fp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
6375
 
 *         for g in self.group.values():
6376
 
 *             g.close()
6377
 
 */
6378
 
  #ifndef CYTHON_WITHOUT_ASSERTIONS
6379
 
  if (unlikely(!((__pyx_v_self->fp != NULL) != 0))) {
6380
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
6381
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6382
 
  }
6383
 
  #endif
6384
 
 
6385
 
  /* "adios.pyx":467
6386
 
 *     cpdef close(self):
6387
 
 *         assert self.fp != NULL, 'Not an open file'
6388
 
 *         for g in self.group.values():             # <<<<<<<<<<<<<<
6389
 
 *             g.close()
6390
 
 *         adios_fclose(self.fp)
6391
 
 */
6392
 
  if (unlikely(((PyObject *)__pyx_v_self->group) == Py_None)) {
6393
 
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "values");
6394
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6395
 
  }
6396
 
  __pyx_t_1 = __Pyx_PyDict_Values(__pyx_v_self->group); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6397
 
  __Pyx_GOTREF(__pyx_t_1);
6398
 
  if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) {
6399
 
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
6400
 
    __pyx_t_4 = NULL;
6401
 
  } else {
6402
 
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6403
 
    __Pyx_GOTREF(__pyx_t_2);
6404
 
    __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext;
6405
 
  }
6406
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6407
 
  for (;;) {
6408
 
    if (!__pyx_t_4 && PyList_CheckExact(__pyx_t_2)) {
6409
 
      if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
6410
 
      #if CYTHON_COMPILING_IN_CPYTHON
6411
 
      __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6412
 
      #else
6413
 
      __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6414
 
      #endif
6415
 
    } else if (!__pyx_t_4 && PyTuple_CheckExact(__pyx_t_2)) {
6416
 
      if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
6417
 
      #if CYTHON_COMPILING_IN_CPYTHON
6418
 
      __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6419
 
      #else
6420
 
      __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6421
 
      #endif
6422
 
    } else {
6423
 
      __pyx_t_1 = __pyx_t_4(__pyx_t_2);
6424
 
      if (unlikely(!__pyx_t_1)) {
6425
 
        if (PyErr_Occurred()) {
6426
 
          if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
6427
 
          else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6428
 
        }
6429
 
        break;
6430
 
      }
6431
 
      __Pyx_GOTREF(__pyx_t_1);
6432
 
    }
6433
 
    __Pyx_XDECREF(__pyx_v_g);
6434
 
    __pyx_v_g = __pyx_t_1;
6435
 
    __pyx_t_1 = 0;
6436
 
 
6437
 
    /* "adios.pyx":468
6438
 
 *         assert self.fp != NULL, 'Not an open file'
6439
 
 *         for g in self.group.values():
6440
 
 *             g.close()             # <<<<<<<<<<<<<<
6441
 
 *         adios_fclose(self.fp)
6442
 
 *         self.fp = NULL
6443
 
 */
6444
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_g, __pyx_n_s__close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6445
 
    __Pyx_GOTREF(__pyx_t_1);
6446
 
    __pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6447
 
    __Pyx_GOTREF(__pyx_t_5);
6448
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6449
 
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
6450
 
  }
6451
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6452
 
 
6453
 
  /* "adios.pyx":469
6454
 
 *         for g in self.group.values():
6455
 
 *             g.close()
6456
 
 *         adios_fclose(self.fp)             # <<<<<<<<<<<<<<
6457
 
 *         self.fp = NULL
6458
 
 * 
6459
 
 */
6460
 
  adios_fclose(__pyx_v_self->fp);
 
5867
 *             self.close()             # <<<<<<<<<<<<<<
 
5868
 * 
 
5869
 *     cpdef close(self):
 
5870
 */
 
5871
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_file *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5872
  __Pyx_GOTREF(__pyx_t_1);
 
5873
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6461
5874
 
6462
5875
  /* "adios.pyx":470
6463
 
 *             g.close()
6464
 
 *         adios_fclose(self.fp)
6465
 
 *         self.fp = NULL             # <<<<<<<<<<<<<<
6466
 
 * 
6467
 
 *     cpdef printself(self):
 
5876
 *             self.var[varname] = var(self, varname)
 
5877
 * 
 
5878
 *     def __del__(self):             # <<<<<<<<<<<<<<
 
5879
 *             self.close()
 
5880
 * 
6468
5881
 */
6469
 
  __pyx_v_self->fp = NULL;
6470
5882
 
 
5883
  /* function exit code */
6471
5884
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6472
5885
  goto __pyx_L0;
6473
5886
  __pyx_L1_error:;
6474
5887
  __Pyx_XDECREF(__pyx_t_1);
6475
 
  __Pyx_XDECREF(__pyx_t_2);
6476
 
  __Pyx_XDECREF(__pyx_t_5);
6477
 
  __Pyx_AddTraceback("adios.AdiosFile.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
6478
 
  __pyx_r = 0;
 
5888
  __Pyx_AddTraceback("adios.file.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5889
  __pyx_r = NULL;
6479
5890
  __pyx_L0:;
6480
 
  __Pyx_XDECREF(__pyx_v_g);
6481
5891
  __Pyx_XGIVEREF(__pyx_r);
6482
5892
  __Pyx_RefNannyFinishContext();
6483
5893
  return __pyx_r;
6484
5894
}
6485
5895
 
6486
 
/* Python wrapper */
6487
 
static PyObject *__pyx_pw_5adios_9AdiosFile_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
6488
 
static PyObject *__pyx_pw_5adios_9AdiosFile_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
6489
 
  PyObject *__pyx_r = 0;
6490
 
  __Pyx_RefNannyDeclarations
6491
 
  __Pyx_RefNannySetupContext("close (wrapper)", 0);
6492
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_4close(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
6493
 
  __Pyx_RefNannyFinishContext();
6494
 
  return __pyx_r;
6495
 
}
6496
 
 
6497
 
/* "adios.pyx":465
6498
 
 *         self.close()
 
5896
/* "adios.pyx":473
 
5897
 *             self.close()
6499
5898
 * 
6500
5899
 *     cpdef close(self):             # <<<<<<<<<<<<<<
6501
5900
 *         assert self.fp != NULL, 'Not an open file'
6502
 
 *         for g in self.group.values():
 
5901
 *         adios_read_close(self.fp)
6503
5902
 */
6504
5903
 
6505
 
static PyObject *__pyx_pf_5adios_9AdiosFile_4close(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
5904
static PyObject *__pyx_pw_5adios_4file_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
5905
static PyObject *__pyx_f_5adios_4file_close(struct __pyx_obj_5adios_file *__pyx_v_self, int __pyx_skip_dispatch) {
6506
5906
  PyObject *__pyx_r = NULL;
6507
5907
  __Pyx_RefNannyDeclarations
6508
5908
  PyObject *__pyx_t_1 = NULL;
 
5909
  PyObject *__pyx_t_2 = NULL;
6509
5910
  int __pyx_lineno = 0;
6510
5911
  const char *__pyx_filename = NULL;
6511
5912
  int __pyx_clineno = 0;
6512
5913
  __Pyx_RefNannySetupContext("close", 0);
6513
 
  __Pyx_XDECREF(__pyx_r);
6514
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosFile *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6515
 
  __Pyx_GOTREF(__pyx_t_1);
6516
 
  __pyx_r = __pyx_t_1;
6517
 
  __pyx_t_1 = 0;
6518
 
  goto __pyx_L0;
6519
 
 
6520
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6521
 
  goto __pyx_L0;
6522
 
  __pyx_L1_error:;
6523
 
  __Pyx_XDECREF(__pyx_t_1);
6524
 
  __Pyx_AddTraceback("adios.AdiosFile.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
6525
 
  __pyx_r = NULL;
6526
 
  __pyx_L0:;
6527
 
  __Pyx_XGIVEREF(__pyx_r);
6528
 
  __Pyx_RefNannyFinishContext();
6529
 
  return __pyx_r;
6530
 
}
6531
 
 
6532
 
/* "adios.pyx":472
6533
 
 *         self.fp = NULL
6534
 
 * 
6535
 
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
6536
 
 *         assert self.fp != NULL, 'Not an open file'
6537
 
 *         print '=== AdiosFile ==='
6538
 
 */
6539
 
 
6540
 
static PyObject *__pyx_pw_5adios_9AdiosFile_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
6541
 
static PyObject *__pyx_f_5adios_9AdiosFile_printself(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, int __pyx_skip_dispatch) {
6542
 
  PyObject *__pyx_r = NULL;
6543
 
  __Pyx_RefNannyDeclarations
6544
 
  PyObject *__pyx_t_1 = NULL;
6545
 
  PyObject *__pyx_t_2 = NULL;
6546
 
  int __pyx_lineno = 0;
6547
 
  const char *__pyx_filename = NULL;
6548
 
  int __pyx_clineno = 0;
6549
 
  __Pyx_RefNannySetupContext("printself", 0);
6550
5914
  /* Check if called by wrapper */
6551
5915
  if (unlikely(__pyx_skip_dispatch)) ;
6552
5916
  /* Check if overridden in Python */
6553
5917
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
6554
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__printself); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5918
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6555
5919
    __Pyx_GOTREF(__pyx_t_1);
6556
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_9AdiosFile_7printself)) {
 
5920
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_4file_5close)) {
6557
5921
      __Pyx_XDECREF(__pyx_r);
6558
 
      __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5922
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6559
5923
      __Pyx_GOTREF(__pyx_t_2);
6560
5924
      __pyx_r = __pyx_t_2;
6561
5925
      __pyx_t_2 = 0;
6565
5929
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6566
5930
  }
6567
5931
 
 
5932
  /* "adios.pyx":474
 
5933
 * 
 
5934
 *     cpdef close(self):
 
5935
 *         assert self.fp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
 
5936
 *         adios_read_close(self.fp)
 
5937
 *         self.fp = NULL
 
5938
 */
 
5939
  #ifndef CYTHON_WITHOUT_ASSERTIONS
 
5940
  if (unlikely(!Py_OptimizeFlag)) {
 
5941
    if (unlikely(!((__pyx_v_self->fp != NULL) != 0))) {
 
5942
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_an_open_file);
 
5943
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5944
    }
 
5945
  }
 
5946
  #endif
 
5947
 
 
5948
  /* "adios.pyx":475
 
5949
 *     cpdef close(self):
 
5950
 *         assert self.fp != NULL, 'Not an open file'
 
5951
 *         adios_read_close(self.fp)             # <<<<<<<<<<<<<<
 
5952
 *         self.fp = NULL
 
5953
 * 
 
5954
 */
 
5955
  adios_read_close(__pyx_v_self->fp);
 
5956
 
 
5957
  /* "adios.pyx":476
 
5958
 *         assert self.fp != NULL, 'Not an open file'
 
5959
 *         adios_read_close(self.fp)
 
5960
 *         self.fp = NULL             # <<<<<<<<<<<<<<
 
5961
 * 
 
5962
 *     cpdef printself(self):
 
5963
 */
 
5964
  __pyx_v_self->fp = NULL;
 
5965
 
6568
5966
  /* "adios.pyx":473
 
5967
 *             self.close()
 
5968
 * 
 
5969
 *     cpdef close(self):             # <<<<<<<<<<<<<<
 
5970
 *         assert self.fp != NULL, 'Not an open file'
 
5971
 *         adios_read_close(self.fp)
 
5972
 */
 
5973
 
 
5974
  /* function exit code */
 
5975
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
5976
  goto __pyx_L0;
 
5977
  __pyx_L1_error:;
 
5978
  __Pyx_XDECREF(__pyx_t_1);
 
5979
  __Pyx_XDECREF(__pyx_t_2);
 
5980
  __Pyx_AddTraceback("adios.file.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
5981
  __pyx_r = 0;
 
5982
  __pyx_L0:;
 
5983
  __Pyx_XGIVEREF(__pyx_r);
 
5984
  __Pyx_RefNannyFinishContext();
 
5985
  return __pyx_r;
 
5986
}
 
5987
 
 
5988
/* Python wrapper */
 
5989
static PyObject *__pyx_pw_5adios_4file_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
5990
static PyObject *__pyx_pw_5adios_4file_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
 
5991
  PyObject *__pyx_r = 0;
 
5992
  __Pyx_RefNannyDeclarations
 
5993
  __Pyx_RefNannySetupContext("close (wrapper)", 0);
 
5994
  __pyx_r = __pyx_pf_5adios_4file_4close(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
5995
 
 
5996
  /* function exit code */
 
5997
  __Pyx_RefNannyFinishContext();
 
5998
  return __pyx_r;
 
5999
}
 
6000
 
 
6001
static PyObject *__pyx_pf_5adios_4file_4close(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
6002
  PyObject *__pyx_r = NULL;
 
6003
  __Pyx_RefNannyDeclarations
 
6004
  PyObject *__pyx_t_1 = NULL;
 
6005
  int __pyx_lineno = 0;
 
6006
  const char *__pyx_filename = NULL;
 
6007
  int __pyx_clineno = 0;
 
6008
  __Pyx_RefNannySetupContext("close", 0);
 
6009
  __Pyx_XDECREF(__pyx_r);
 
6010
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_file *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6011
  __Pyx_GOTREF(__pyx_t_1);
 
6012
  __pyx_r = __pyx_t_1;
 
6013
  __pyx_t_1 = 0;
 
6014
  goto __pyx_L0;
 
6015
 
 
6016
  /* function exit code */
 
6017
  __pyx_L1_error:;
 
6018
  __Pyx_XDECREF(__pyx_t_1);
 
6019
  __Pyx_AddTraceback("adios.file.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6020
  __pyx_r = NULL;
 
6021
  __pyx_L0:;
 
6022
  __Pyx_XGIVEREF(__pyx_r);
 
6023
  __Pyx_RefNannyFinishContext();
 
6024
  return __pyx_r;
 
6025
}
 
6026
 
 
6027
/* "adios.pyx":478
 
6028
 *         self.fp = NULL
 
6029
 * 
 
6030
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
 
6031
 *         assert self.fp != NULL, 'Not an open file'
 
6032
 *         print '=== AdiosFile ==='
 
6033
 */
 
6034
 
 
6035
static PyObject *__pyx_pw_5adios_4file_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
6036
static PyObject *__pyx_f_5adios_4file_printself(struct __pyx_obj_5adios_file *__pyx_v_self, int __pyx_skip_dispatch) {
 
6037
  PyObject *__pyx_r = NULL;
 
6038
  __Pyx_RefNannyDeclarations
 
6039
  PyObject *__pyx_t_1 = NULL;
 
6040
  PyObject *__pyx_t_2 = NULL;
 
6041
  int __pyx_lineno = 0;
 
6042
  const char *__pyx_filename = NULL;
 
6043
  int __pyx_clineno = 0;
 
6044
  __Pyx_RefNannySetupContext("printself", 0);
 
6045
  /* Check if called by wrapper */
 
6046
  if (unlikely(__pyx_skip_dispatch)) ;
 
6047
  /* Check if overridden in Python */
 
6048
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
 
6049
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_printself); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6050
    __Pyx_GOTREF(__pyx_t_1);
 
6051
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_4file_7printself)) {
 
6052
      __Pyx_XDECREF(__pyx_r);
 
6053
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6054
      __Pyx_GOTREF(__pyx_t_2);
 
6055
      __pyx_r = __pyx_t_2;
 
6056
      __pyx_t_2 = 0;
 
6057
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
6058
      goto __pyx_L0;
 
6059
    }
 
6060
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
6061
  }
 
6062
 
 
6063
  /* "adios.pyx":479
6569
6064
 * 
6570
6065
 *     cpdef printself(self):
6571
6066
 *         assert self.fp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
6573
6068
 *         print '%15s : %lu' % ('fp', <unsigned long> self.fp)
6574
6069
 */
6575
6070
  #ifndef CYTHON_WITHOUT_ASSERTIONS
6576
 
  if (unlikely(!((__pyx_v_self->fp != NULL) != 0))) {
6577
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
6578
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6071
  if (unlikely(!Py_OptimizeFlag)) {
 
6072
    if (unlikely(!((__pyx_v_self->fp != NULL) != 0))) {
 
6073
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_an_open_file);
 
6074
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6075
    }
6579
6076
  }
6580
6077
  #endif
6581
6078
 
6582
 
  /* "adios.pyx":474
 
6079
  /* "adios.pyx":480
6583
6080
 *     cpdef printself(self):
6584
6081
 *         assert self.fp != NULL, 'Not an open file'
6585
6082
 *         print '=== AdiosFile ==='             # <<<<<<<<<<<<<<
6586
6083
 *         print '%15s : %lu' % ('fp', <unsigned long> self.fp)
6587
 
 *         printAdiosFile(self.fp)
 
6084
 *         printfile(self.fp)
6588
6085
 */
6589
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_14)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6086
  if (__Pyx_PrintOne(0, __pyx_kp_s_AdiosFile) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6590
6087
 
6591
 
  /* "adios.pyx":475
 
6088
  /* "adios.pyx":481
6592
6089
 *         assert self.fp != NULL, 'Not an open file'
6593
6090
 *         print '=== AdiosFile ==='
6594
6091
 *         print '%15s : %lu' % ('fp', <unsigned long> self.fp)             # <<<<<<<<<<<<<<
6595
 
 *         printAdiosFile(self.fp)
 
6092
 *         printfile(self.fp)
6596
6093
 * 
6597
6094
 */
6598
 
  __pyx_t_1 = PyLong_FromUnsignedLong(((unsigned long)__pyx_v_self->fp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6095
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(((unsigned long)__pyx_v_self->fp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6599
6096
  __Pyx_GOTREF(__pyx_t_1);
6600
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6097
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6601
6098
  __Pyx_GOTREF(__pyx_t_2);
6602
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__fp));
6603
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__fp));
6604
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fp));
 
6099
  __Pyx_INCREF(__pyx_n_s_fp);
 
6100
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_fp);
 
6101
  __Pyx_GIVEREF(__pyx_n_s_fp);
6605
6102
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
6606
6103
  __Pyx_GIVEREF(__pyx_t_1);
6607
6104
  __pyx_t_1 = 0;
6608
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6609
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
6610
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
6611
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6612
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
6105
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_lu, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6106
  __Pyx_GOTREF(__pyx_t_1);
 
6107
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
6108
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6109
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6613
6110
 
6614
 
  /* "adios.pyx":476
 
6111
  /* "adios.pyx":482
6615
6112
 *         print '=== AdiosFile ==='
6616
6113
 *         print '%15s : %lu' % ('fp', <unsigned long> self.fp)
6617
 
 *         printAdiosFile(self.fp)             # <<<<<<<<<<<<<<
6618
 
 * 
6619
 
 * 
 
6114
 *         printfile(self.fp)             # <<<<<<<<<<<<<<
 
6115
 * 
 
6116
 * cdef class var:
6620
6117
 */
6621
 
  __pyx_t_1 = __pyx_f_5adios_printAdiosFile(__pyx_v_self->fp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6118
  __pyx_t_1 = __pyx_f_5adios_printfile(__pyx_v_self->fp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6622
6119
  __Pyx_GOTREF(__pyx_t_1);
6623
6120
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6624
6121
 
6625
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6626
 
  goto __pyx_L0;
6627
 
  __pyx_L1_error:;
6628
 
  __Pyx_XDECREF(__pyx_t_1);
6629
 
  __Pyx_XDECREF(__pyx_t_2);
6630
 
  __Pyx_AddTraceback("adios.AdiosFile.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
6631
 
  __pyx_r = 0;
6632
 
  __pyx_L0:;
6633
 
  __Pyx_XGIVEREF(__pyx_r);
6634
 
  __Pyx_RefNannyFinishContext();
6635
 
  return __pyx_r;
6636
 
}
6637
 
 
6638
 
/* Python wrapper */
6639
 
static PyObject *__pyx_pw_5adios_9AdiosFile_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
6640
 
static PyObject *__pyx_pw_5adios_9AdiosFile_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
6641
 
  PyObject *__pyx_r = 0;
6642
 
  __Pyx_RefNannyDeclarations
6643
 
  __Pyx_RefNannySetupContext("printself (wrapper)", 0);
6644
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_6printself(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
6645
 
  __Pyx_RefNannyFinishContext();
6646
 
  return __pyx_r;
6647
 
}
6648
 
 
6649
 
/* "adios.pyx":472
 
6122
  /* "adios.pyx":478
6650
6123
 *         self.fp = NULL
6651
6124
 * 
6652
6125
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
6654
6127
 *         print '=== AdiosFile ==='
6655
6128
 */
6656
6129
 
6657
 
static PyObject *__pyx_pf_5adios_9AdiosFile_6printself(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6130
  /* function exit code */
 
6131
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
6132
  goto __pyx_L0;
 
6133
  __pyx_L1_error:;
 
6134
  __Pyx_XDECREF(__pyx_t_1);
 
6135
  __Pyx_XDECREF(__pyx_t_2);
 
6136
  __Pyx_AddTraceback("adios.file.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6137
  __pyx_r = 0;
 
6138
  __pyx_L0:;
 
6139
  __Pyx_XGIVEREF(__pyx_r);
 
6140
  __Pyx_RefNannyFinishContext();
 
6141
  return __pyx_r;
 
6142
}
 
6143
 
 
6144
/* Python wrapper */
 
6145
static PyObject *__pyx_pw_5adios_4file_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
6146
static PyObject *__pyx_pw_5adios_4file_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
 
6147
  PyObject *__pyx_r = 0;
 
6148
  __Pyx_RefNannyDeclarations
 
6149
  __Pyx_RefNannySetupContext("printself (wrapper)", 0);
 
6150
  __pyx_r = __pyx_pf_5adios_4file_6printself(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6151
 
 
6152
  /* function exit code */
 
6153
  __Pyx_RefNannyFinishContext();
 
6154
  return __pyx_r;
 
6155
}
 
6156
 
 
6157
static PyObject *__pyx_pf_5adios_4file_6printself(struct __pyx_obj_5adios_file *__pyx_v_self) {
6658
6158
  PyObject *__pyx_r = NULL;
6659
6159
  __Pyx_RefNannyDeclarations
6660
6160
  PyObject *__pyx_t_1 = NULL;
6663
6163
  int __pyx_clineno = 0;
6664
6164
  __Pyx_RefNannySetupContext("printself", 0);
6665
6165
  __Pyx_XDECREF(__pyx_r);
6666
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosFile *)__pyx_v_self->__pyx_vtab)->printself(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6166
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_file *)__pyx_v_self->__pyx_vtab)->printself(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6667
6167
  __Pyx_GOTREF(__pyx_t_1);
6668
6168
  __pyx_r = __pyx_t_1;
6669
6169
  __pyx_t_1 = 0;
6670
6170
  goto __pyx_L0;
6671
6171
 
6672
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6673
 
  goto __pyx_L0;
 
6172
  /* function exit code */
6674
6173
  __pyx_L1_error:;
6675
6174
  __Pyx_XDECREF(__pyx_t_1);
6676
 
  __Pyx_AddTraceback("adios.AdiosFile.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6175
  __Pyx_AddTraceback("adios.file.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
6677
6176
  __pyx_r = NULL;
6678
6177
  __pyx_L0:;
6679
6178
  __Pyx_XGIVEREF(__pyx_r);
6681
6180
  return __pyx_r;
6682
6181
}
6683
6182
 
6684
 
/* Python wrapper */
6685
 
static PyObject *__pyx_pw_5adios_9AdiosFile_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
6686
 
static PyObject *__pyx_pw_5adios_9AdiosFile_4name_1__get__(PyObject *__pyx_v_self) {
6687
 
  PyObject *__pyx_r = 0;
6688
 
  __Pyx_RefNannyDeclarations
6689
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
6690
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_4name___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
6691
 
  __Pyx_RefNannyFinishContext();
6692
 
  return __pyx_r;
6693
 
}
6694
 
 
6695
 
/* "adios.pyx":428
 
6183
/* "adios.pyx":436
6696
6184
 * 
6697
6185
 *     """ Public Memeber """
6698
6186
 *     cpdef public bytes name             # <<<<<<<<<<<<<<
6699
 
 *     cpdef public int groups_count
6700
 
 *     cpdef public int vars_count
 
6187
 *     cpdef public int nvars
 
6188
 *     cpdef public int nattrs
6701
6189
 */
6702
6190
 
6703
 
static PyObject *__pyx_pf_5adios_9AdiosFile_4name___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6191
/* Python wrapper */
 
6192
static PyObject *__pyx_pw_5adios_4file_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6193
static PyObject *__pyx_pw_5adios_4file_4name_1__get__(PyObject *__pyx_v_self) {
 
6194
  PyObject *__pyx_r = 0;
 
6195
  __Pyx_RefNannyDeclarations
 
6196
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6197
  __pyx_r = __pyx_pf_5adios_4file_4name___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6198
 
 
6199
  /* function exit code */
 
6200
  __Pyx_RefNannyFinishContext();
 
6201
  return __pyx_r;
 
6202
}
 
6203
 
 
6204
static PyObject *__pyx_pf_5adios_4file_4name___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
6704
6205
  PyObject *__pyx_r = NULL;
6705
6206
  __Pyx_RefNannyDeclarations
6706
6207
  __Pyx_RefNannySetupContext("__get__", 0);
6707
6208
  __Pyx_XDECREF(__pyx_r);
6708
 
  __Pyx_INCREF(((PyObject *)__pyx_v_self->name));
6709
 
  __pyx_r = ((PyObject *)__pyx_v_self->name);
 
6209
  __Pyx_INCREF(__pyx_v_self->name);
 
6210
  __pyx_r = __pyx_v_self->name;
6710
6211
  goto __pyx_L0;
6711
6212
 
6712
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
6213
  /* function exit code */
6713
6214
  __pyx_L0:;
6714
6215
  __Pyx_XGIVEREF(__pyx_r);
6715
6216
  __Pyx_RefNannyFinishContext();
6717
6218
}
6718
6219
 
6719
6220
/* Python wrapper */
6720
 
static int __pyx_pw_5adios_9AdiosFile_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
6721
 
static int __pyx_pw_5adios_9AdiosFile_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6221
static int __pyx_pw_5adios_4file_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6222
static int __pyx_pw_5adios_4file_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6722
6223
  int __pyx_r;
6723
6224
  __Pyx_RefNannyDeclarations
6724
6225
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
6725
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_4name_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6226
  __pyx_r = __pyx_pf_5adios_4file_4name_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6227
 
 
6228
  /* function exit code */
6726
6229
  __Pyx_RefNannyFinishContext();
6727
6230
  return __pyx_r;
6728
6231
}
6729
6232
 
6730
 
static int __pyx_pf_5adios_9AdiosFile_4name_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
 
6233
static int __pyx_pf_5adios_4file_4name_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
6731
6234
  int __pyx_r;
6732
6235
  __Pyx_RefNannyDeclarations
 
6236
  PyObject *__pyx_t_1 = NULL;
6733
6237
  int __pyx_lineno = 0;
6734
6238
  const char *__pyx_filename = NULL;
6735
6239
  int __pyx_clineno = 0;
6736
6240
  __Pyx_RefNannySetupContext("__set__", 0);
6737
 
  if (!(likely(PyBytes_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6738
 
  __Pyx_INCREF(__pyx_v_value);
6739
 
  __Pyx_GIVEREF(__pyx_v_value);
 
6241
  if (!(likely(PyBytes_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6242
  __pyx_t_1 = __pyx_v_value;
 
6243
  __Pyx_INCREF(__pyx_t_1);
 
6244
  __Pyx_GIVEREF(__pyx_t_1);
6740
6245
  __Pyx_GOTREF(__pyx_v_self->name);
6741
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
6742
 
  __pyx_v_self->name = ((PyObject*)__pyx_v_value);
 
6246
  __Pyx_DECREF(__pyx_v_self->name);
 
6247
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
 
6248
  __pyx_t_1 = 0;
6743
6249
 
 
6250
  /* function exit code */
6744
6251
  __pyx_r = 0;
6745
6252
  goto __pyx_L0;
6746
6253
  __pyx_L1_error:;
6747
 
  __Pyx_AddTraceback("adios.AdiosFile.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6254
  __Pyx_XDECREF(__pyx_t_1);
 
6255
  __Pyx_AddTraceback("adios.file.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6748
6256
  __pyx_r = -1;
6749
6257
  __pyx_L0:;
6750
6258
  __Pyx_RefNannyFinishContext();
6752
6260
}
6753
6261
 
6754
6262
/* Python wrapper */
6755
 
static int __pyx_pw_5adios_9AdiosFile_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
6756
 
static int __pyx_pw_5adios_9AdiosFile_4name_5__del__(PyObject *__pyx_v_self) {
 
6263
static int __pyx_pw_5adios_4file_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
 
6264
static int __pyx_pw_5adios_4file_4name_5__del__(PyObject *__pyx_v_self) {
6757
6265
  int __pyx_r;
6758
6266
  __Pyx_RefNannyDeclarations
6759
6267
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
6760
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_4name_4__del__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
 
6268
  __pyx_r = __pyx_pf_5adios_4file_4name_4__del__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6269
 
 
6270
  /* function exit code */
6761
6271
  __Pyx_RefNannyFinishContext();
6762
6272
  return __pyx_r;
6763
6273
}
6764
6274
 
6765
 
static int __pyx_pf_5adios_9AdiosFile_4name_4__del__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6275
static int __pyx_pf_5adios_4file_4name_4__del__(struct __pyx_obj_5adios_file *__pyx_v_self) {
6766
6276
  int __pyx_r;
6767
6277
  __Pyx_RefNannyDeclarations
6768
6278
  __Pyx_RefNannySetupContext("__del__", 0);
6769
6279
  __Pyx_INCREF(Py_None);
6770
6280
  __Pyx_GIVEREF(Py_None);
6771
6281
  __Pyx_GOTREF(__pyx_v_self->name);
6772
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
 
6282
  __Pyx_DECREF(__pyx_v_self->name);
6773
6283
  __pyx_v_self->name = ((PyObject*)Py_None);
6774
6284
 
 
6285
  /* function exit code */
6775
6286
  __pyx_r = 0;
6776
6287
  __Pyx_RefNannyFinishContext();
6777
6288
  return __pyx_r;
6778
6289
}
6779
6290
 
6780
 
/* Python wrapper */
6781
 
static PyObject *__pyx_pw_5adios_9AdiosFile_12groups_count_1__get__(PyObject *__pyx_v_self); /*proto*/
6782
 
static PyObject *__pyx_pw_5adios_9AdiosFile_12groups_count_1__get__(PyObject *__pyx_v_self) {
6783
 
  PyObject *__pyx_r = 0;
6784
 
  __Pyx_RefNannyDeclarations
6785
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
6786
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_12groups_count___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
6787
 
  __Pyx_RefNannyFinishContext();
6788
 
  return __pyx_r;
6789
 
}
6790
 
 
6791
 
/* "adios.pyx":429
 
6291
/* "adios.pyx":437
6792
6292
 *     """ Public Memeber """
6793
6293
 *     cpdef public bytes name
6794
 
 *     cpdef public int groups_count             # <<<<<<<<<<<<<<
6795
 
 *     cpdef public int vars_count
6796
 
 *     cpdef public int attrs_count
 
6294
 *     cpdef public int nvars             # <<<<<<<<<<<<<<
 
6295
 *     cpdef public int nattrs
 
6296
 *     cpdef public int current_step
6797
6297
 */
6798
6298
 
6799
 
static PyObject *__pyx_pf_5adios_9AdiosFile_12groups_count___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6299
/* Python wrapper */
 
6300
static PyObject *__pyx_pw_5adios_4file_5nvars_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6301
static PyObject *__pyx_pw_5adios_4file_5nvars_1__get__(PyObject *__pyx_v_self) {
 
6302
  PyObject *__pyx_r = 0;
 
6303
  __Pyx_RefNannyDeclarations
 
6304
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6305
  __pyx_r = __pyx_pf_5adios_4file_5nvars___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6306
 
 
6307
  /* function exit code */
 
6308
  __Pyx_RefNannyFinishContext();
 
6309
  return __pyx_r;
 
6310
}
 
6311
 
 
6312
static PyObject *__pyx_pf_5adios_4file_5nvars___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
6800
6313
  PyObject *__pyx_r = NULL;
6801
6314
  __Pyx_RefNannyDeclarations
6802
6315
  PyObject *__pyx_t_1 = NULL;
6805
6318
  int __pyx_clineno = 0;
6806
6319
  __Pyx_RefNannySetupContext("__get__", 0);
6807
6320
  __Pyx_XDECREF(__pyx_r);
6808
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->groups_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6321
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nvars); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6809
6322
  __Pyx_GOTREF(__pyx_t_1);
6810
6323
  __pyx_r = __pyx_t_1;
6811
6324
  __pyx_t_1 = 0;
6812
6325
  goto __pyx_L0;
6813
6326
 
6814
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6815
 
  goto __pyx_L0;
 
6327
  /* function exit code */
6816
6328
  __pyx_L1_error:;
6817
6329
  __Pyx_XDECREF(__pyx_t_1);
6818
 
  __Pyx_AddTraceback("adios.AdiosFile.groups_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6330
  __Pyx_AddTraceback("adios.file.nvars.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6819
6331
  __pyx_r = NULL;
6820
6332
  __pyx_L0:;
6821
6333
  __Pyx_XGIVEREF(__pyx_r);
6824
6336
}
6825
6337
 
6826
6338
/* Python wrapper */
6827
 
static int __pyx_pw_5adios_9AdiosFile_12groups_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
6828
 
static int __pyx_pw_5adios_9AdiosFile_12groups_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6339
static int __pyx_pw_5adios_4file_5nvars_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6340
static int __pyx_pw_5adios_4file_5nvars_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6829
6341
  int __pyx_r;
6830
6342
  __Pyx_RefNannyDeclarations
6831
6343
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
6832
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_12groups_count_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6344
  __pyx_r = __pyx_pf_5adios_4file_5nvars_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6345
 
 
6346
  /* function exit code */
6833
6347
  __Pyx_RefNannyFinishContext();
6834
6348
  return __pyx_r;
6835
6349
}
6836
6350
 
6837
 
static int __pyx_pf_5adios_9AdiosFile_12groups_count_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
 
6351
static int __pyx_pf_5adios_4file_5nvars_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
6838
6352
  int __pyx_r;
6839
6353
  __Pyx_RefNannyDeclarations
6840
6354
  int __pyx_t_1;
6842
6356
  const char *__pyx_filename = NULL;
6843
6357
  int __pyx_clineno = 0;
6844
6358
  __Pyx_RefNannySetupContext("__set__", 0);
6845
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6846
 
  __pyx_v_self->groups_count = __pyx_t_1;
 
6359
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6360
  __pyx_v_self->nvars = __pyx_t_1;
6847
6361
 
 
6362
  /* function exit code */
6848
6363
  __pyx_r = 0;
6849
6364
  goto __pyx_L0;
6850
6365
  __pyx_L1_error:;
6851
 
  __Pyx_AddTraceback("adios.AdiosFile.groups_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6366
  __Pyx_AddTraceback("adios.file.nvars.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6852
6367
  __pyx_r = -1;
6853
6368
  __pyx_L0:;
6854
6369
  __Pyx_RefNannyFinishContext();
6855
6370
  return __pyx_r;
6856
6371
}
6857
6372
 
6858
 
/* Python wrapper */
6859
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10vars_count_1__get__(PyObject *__pyx_v_self); /*proto*/
6860
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10vars_count_1__get__(PyObject *__pyx_v_self) {
6861
 
  PyObject *__pyx_r = 0;
6862
 
  __Pyx_RefNannyDeclarations
6863
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
6864
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10vars_count___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
6865
 
  __Pyx_RefNannyFinishContext();
6866
 
  return __pyx_r;
6867
 
}
6868
 
 
6869
 
/* "adios.pyx":430
 
6373
/* "adios.pyx":438
6870
6374
 *     cpdef public bytes name
6871
 
 *     cpdef public int groups_count
6872
 
 *     cpdef public int vars_count             # <<<<<<<<<<<<<<
6873
 
 *     cpdef public int attrs_count
6874
 
 *     cpdef public int tidx_start
6875
 
 */
6876
 
 
6877
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10vars_count___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
6878
 
  PyObject *__pyx_r = NULL;
6879
 
  __Pyx_RefNannyDeclarations
6880
 
  PyObject *__pyx_t_1 = NULL;
6881
 
  int __pyx_lineno = 0;
6882
 
  const char *__pyx_filename = NULL;
6883
 
  int __pyx_clineno = 0;
6884
 
  __Pyx_RefNannySetupContext("__get__", 0);
6885
 
  __Pyx_XDECREF(__pyx_r);
6886
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->vars_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6887
 
  __Pyx_GOTREF(__pyx_t_1);
6888
 
  __pyx_r = __pyx_t_1;
6889
 
  __pyx_t_1 = 0;
6890
 
  goto __pyx_L0;
6891
 
 
6892
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6893
 
  goto __pyx_L0;
6894
 
  __pyx_L1_error:;
6895
 
  __Pyx_XDECREF(__pyx_t_1);
6896
 
  __Pyx_AddTraceback("adios.AdiosFile.vars_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6897
 
  __pyx_r = NULL;
6898
 
  __pyx_L0:;
6899
 
  __Pyx_XGIVEREF(__pyx_r);
6900
 
  __Pyx_RefNannyFinishContext();
6901
 
  return __pyx_r;
6902
 
}
6903
 
 
6904
 
/* Python wrapper */
6905
 
static int __pyx_pw_5adios_9AdiosFile_10vars_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
6906
 
static int __pyx_pw_5adios_9AdiosFile_10vars_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6907
 
  int __pyx_r;
6908
 
  __Pyx_RefNannyDeclarations
6909
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
6910
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10vars_count_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6911
 
  __Pyx_RefNannyFinishContext();
6912
 
  return __pyx_r;
6913
 
}
6914
 
 
6915
 
static int __pyx_pf_5adios_9AdiosFile_10vars_count_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
6916
 
  int __pyx_r;
6917
 
  __Pyx_RefNannyDeclarations
6918
 
  int __pyx_t_1;
6919
 
  int __pyx_lineno = 0;
6920
 
  const char *__pyx_filename = NULL;
6921
 
  int __pyx_clineno = 0;
6922
 
  __Pyx_RefNannySetupContext("__set__", 0);
6923
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6924
 
  __pyx_v_self->vars_count = __pyx_t_1;
6925
 
 
6926
 
  __pyx_r = 0;
6927
 
  goto __pyx_L0;
6928
 
  __pyx_L1_error:;
6929
 
  __Pyx_AddTraceback("adios.AdiosFile.vars_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6930
 
  __pyx_r = -1;
6931
 
  __pyx_L0:;
6932
 
  __Pyx_RefNannyFinishContext();
6933
 
  return __pyx_r;
6934
 
}
6935
 
 
6936
 
/* Python wrapper */
6937
 
static PyObject *__pyx_pw_5adios_9AdiosFile_11attrs_count_1__get__(PyObject *__pyx_v_self); /*proto*/
6938
 
static PyObject *__pyx_pw_5adios_9AdiosFile_11attrs_count_1__get__(PyObject *__pyx_v_self) {
6939
 
  PyObject *__pyx_r = 0;
6940
 
  __Pyx_RefNannyDeclarations
6941
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
6942
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_11attrs_count___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
6943
 
  __Pyx_RefNannyFinishContext();
6944
 
  return __pyx_r;
6945
 
}
6946
 
 
6947
 
/* "adios.pyx":431
6948
 
 *     cpdef public int groups_count
6949
 
 *     cpdef public int vars_count
6950
 
 *     cpdef public int attrs_count             # <<<<<<<<<<<<<<
6951
 
 *     cpdef public int tidx_start
6952
 
 *     cpdef public int ntimesteps
6953
 
 */
6954
 
 
6955
 
static PyObject *__pyx_pf_5adios_9AdiosFile_11attrs_count___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
6956
 
  PyObject *__pyx_r = NULL;
6957
 
  __Pyx_RefNannyDeclarations
6958
 
  PyObject *__pyx_t_1 = NULL;
6959
 
  int __pyx_lineno = 0;
6960
 
  const char *__pyx_filename = NULL;
6961
 
  int __pyx_clineno = 0;
6962
 
  __Pyx_RefNannySetupContext("__get__", 0);
6963
 
  __Pyx_XDECREF(__pyx_r);
6964
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->attrs_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6965
 
  __Pyx_GOTREF(__pyx_t_1);
6966
 
  __pyx_r = __pyx_t_1;
6967
 
  __pyx_t_1 = 0;
6968
 
  goto __pyx_L0;
6969
 
 
6970
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6971
 
  goto __pyx_L0;
6972
 
  __pyx_L1_error:;
6973
 
  __Pyx_XDECREF(__pyx_t_1);
6974
 
  __Pyx_AddTraceback("adios.AdiosFile.attrs_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6975
 
  __pyx_r = NULL;
6976
 
  __pyx_L0:;
6977
 
  __Pyx_XGIVEREF(__pyx_r);
6978
 
  __Pyx_RefNannyFinishContext();
6979
 
  return __pyx_r;
6980
 
}
6981
 
 
6982
 
/* Python wrapper */
6983
 
static int __pyx_pw_5adios_9AdiosFile_11attrs_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
6984
 
static int __pyx_pw_5adios_9AdiosFile_11attrs_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6985
 
  int __pyx_r;
6986
 
  __Pyx_RefNannyDeclarations
6987
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
6988
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_11attrs_count_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6989
 
  __Pyx_RefNannyFinishContext();
6990
 
  return __pyx_r;
6991
 
}
6992
 
 
6993
 
static int __pyx_pf_5adios_9AdiosFile_11attrs_count_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
6994
 
  int __pyx_r;
6995
 
  __Pyx_RefNannyDeclarations
6996
 
  int __pyx_t_1;
6997
 
  int __pyx_lineno = 0;
6998
 
  const char *__pyx_filename = NULL;
6999
 
  int __pyx_clineno = 0;
7000
 
  __Pyx_RefNannySetupContext("__set__", 0);
7001
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7002
 
  __pyx_v_self->attrs_count = __pyx_t_1;
7003
 
 
7004
 
  __pyx_r = 0;
7005
 
  goto __pyx_L0;
7006
 
  __pyx_L1_error:;
7007
 
  __Pyx_AddTraceback("adios.AdiosFile.attrs_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7008
 
  __pyx_r = -1;
7009
 
  __pyx_L0:;
7010
 
  __Pyx_RefNannyFinishContext();
7011
 
  return __pyx_r;
7012
 
}
7013
 
 
7014
 
/* Python wrapper */
7015
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10tidx_start_1__get__(PyObject *__pyx_v_self); /*proto*/
7016
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10tidx_start_1__get__(PyObject *__pyx_v_self) {
7017
 
  PyObject *__pyx_r = 0;
7018
 
  __Pyx_RefNannyDeclarations
7019
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
7020
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10tidx_start___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7021
 
  __Pyx_RefNannyFinishContext();
7022
 
  return __pyx_r;
7023
 
}
7024
 
 
7025
 
/* "adios.pyx":432
7026
 
 *     cpdef public int vars_count
7027
 
 *     cpdef public int attrs_count
7028
 
 *     cpdef public int tidx_start             # <<<<<<<<<<<<<<
7029
 
 *     cpdef public int ntimesteps
 
6375
 *     cpdef public int nvars
 
6376
 *     cpdef public int nattrs             # <<<<<<<<<<<<<<
 
6377
 *     cpdef public int current_step
 
6378
 *     cpdef public int last_step
 
6379
 */
 
6380
 
 
6381
/* Python wrapper */
 
6382
static PyObject *__pyx_pw_5adios_4file_6nattrs_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6383
static PyObject *__pyx_pw_5adios_4file_6nattrs_1__get__(PyObject *__pyx_v_self) {
 
6384
  PyObject *__pyx_r = 0;
 
6385
  __Pyx_RefNannyDeclarations
 
6386
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6387
  __pyx_r = __pyx_pf_5adios_4file_6nattrs___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6388
 
 
6389
  /* function exit code */
 
6390
  __Pyx_RefNannyFinishContext();
 
6391
  return __pyx_r;
 
6392
}
 
6393
 
 
6394
static PyObject *__pyx_pf_5adios_4file_6nattrs___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
6395
  PyObject *__pyx_r = NULL;
 
6396
  __Pyx_RefNannyDeclarations
 
6397
  PyObject *__pyx_t_1 = NULL;
 
6398
  int __pyx_lineno = 0;
 
6399
  const char *__pyx_filename = NULL;
 
6400
  int __pyx_clineno = 0;
 
6401
  __Pyx_RefNannySetupContext("__get__", 0);
 
6402
  __Pyx_XDECREF(__pyx_r);
 
6403
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nattrs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6404
  __Pyx_GOTREF(__pyx_t_1);
 
6405
  __pyx_r = __pyx_t_1;
 
6406
  __pyx_t_1 = 0;
 
6407
  goto __pyx_L0;
 
6408
 
 
6409
  /* function exit code */
 
6410
  __pyx_L1_error:;
 
6411
  __Pyx_XDECREF(__pyx_t_1);
 
6412
  __Pyx_AddTraceback("adios.file.nattrs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6413
  __pyx_r = NULL;
 
6414
  __pyx_L0:;
 
6415
  __Pyx_XGIVEREF(__pyx_r);
 
6416
  __Pyx_RefNannyFinishContext();
 
6417
  return __pyx_r;
 
6418
}
 
6419
 
 
6420
/* Python wrapper */
 
6421
static int __pyx_pw_5adios_4file_6nattrs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6422
static int __pyx_pw_5adios_4file_6nattrs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6423
  int __pyx_r;
 
6424
  __Pyx_RefNannyDeclarations
 
6425
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
 
6426
  __pyx_r = __pyx_pf_5adios_4file_6nattrs_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6427
 
 
6428
  /* function exit code */
 
6429
  __Pyx_RefNannyFinishContext();
 
6430
  return __pyx_r;
 
6431
}
 
6432
 
 
6433
static int __pyx_pf_5adios_4file_6nattrs_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
 
6434
  int __pyx_r;
 
6435
  __Pyx_RefNannyDeclarations
 
6436
  int __pyx_t_1;
 
6437
  int __pyx_lineno = 0;
 
6438
  const char *__pyx_filename = NULL;
 
6439
  int __pyx_clineno = 0;
 
6440
  __Pyx_RefNannySetupContext("__set__", 0);
 
6441
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6442
  __pyx_v_self->nattrs = __pyx_t_1;
 
6443
 
 
6444
  /* function exit code */
 
6445
  __pyx_r = 0;
 
6446
  goto __pyx_L0;
 
6447
  __pyx_L1_error:;
 
6448
  __Pyx_AddTraceback("adios.file.nattrs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6449
  __pyx_r = -1;
 
6450
  __pyx_L0:;
 
6451
  __Pyx_RefNannyFinishContext();
 
6452
  return __pyx_r;
 
6453
}
 
6454
 
 
6455
/* "adios.pyx":439
 
6456
 *     cpdef public int nvars
 
6457
 *     cpdef public int nattrs
 
6458
 *     cpdef public int current_step             # <<<<<<<<<<<<<<
 
6459
 *     cpdef public int last_step
 
6460
 *     cpdef public int endianness
 
6461
 */
 
6462
 
 
6463
/* Python wrapper */
 
6464
static PyObject *__pyx_pw_5adios_4file_12current_step_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6465
static PyObject *__pyx_pw_5adios_4file_12current_step_1__get__(PyObject *__pyx_v_self) {
 
6466
  PyObject *__pyx_r = 0;
 
6467
  __Pyx_RefNannyDeclarations
 
6468
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6469
  __pyx_r = __pyx_pf_5adios_4file_12current_step___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6470
 
 
6471
  /* function exit code */
 
6472
  __Pyx_RefNannyFinishContext();
 
6473
  return __pyx_r;
 
6474
}
 
6475
 
 
6476
static PyObject *__pyx_pf_5adios_4file_12current_step___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
6477
  PyObject *__pyx_r = NULL;
 
6478
  __Pyx_RefNannyDeclarations
 
6479
  PyObject *__pyx_t_1 = NULL;
 
6480
  int __pyx_lineno = 0;
 
6481
  const char *__pyx_filename = NULL;
 
6482
  int __pyx_clineno = 0;
 
6483
  __Pyx_RefNannySetupContext("__get__", 0);
 
6484
  __Pyx_XDECREF(__pyx_r);
 
6485
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->current_step); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6486
  __Pyx_GOTREF(__pyx_t_1);
 
6487
  __pyx_r = __pyx_t_1;
 
6488
  __pyx_t_1 = 0;
 
6489
  goto __pyx_L0;
 
6490
 
 
6491
  /* function exit code */
 
6492
  __pyx_L1_error:;
 
6493
  __Pyx_XDECREF(__pyx_t_1);
 
6494
  __Pyx_AddTraceback("adios.file.current_step.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6495
  __pyx_r = NULL;
 
6496
  __pyx_L0:;
 
6497
  __Pyx_XGIVEREF(__pyx_r);
 
6498
  __Pyx_RefNannyFinishContext();
 
6499
  return __pyx_r;
 
6500
}
 
6501
 
 
6502
/* Python wrapper */
 
6503
static int __pyx_pw_5adios_4file_12current_step_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6504
static int __pyx_pw_5adios_4file_12current_step_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6505
  int __pyx_r;
 
6506
  __Pyx_RefNannyDeclarations
 
6507
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
 
6508
  __pyx_r = __pyx_pf_5adios_4file_12current_step_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6509
 
 
6510
  /* function exit code */
 
6511
  __Pyx_RefNannyFinishContext();
 
6512
  return __pyx_r;
 
6513
}
 
6514
 
 
6515
static int __pyx_pf_5adios_4file_12current_step_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
 
6516
  int __pyx_r;
 
6517
  __Pyx_RefNannyDeclarations
 
6518
  int __pyx_t_1;
 
6519
  int __pyx_lineno = 0;
 
6520
  const char *__pyx_filename = NULL;
 
6521
  int __pyx_clineno = 0;
 
6522
  __Pyx_RefNannySetupContext("__set__", 0);
 
6523
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6524
  __pyx_v_self->current_step = __pyx_t_1;
 
6525
 
 
6526
  /* function exit code */
 
6527
  __pyx_r = 0;
 
6528
  goto __pyx_L0;
 
6529
  __pyx_L1_error:;
 
6530
  __Pyx_AddTraceback("adios.file.current_step.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6531
  __pyx_r = -1;
 
6532
  __pyx_L0:;
 
6533
  __Pyx_RefNannyFinishContext();
 
6534
  return __pyx_r;
 
6535
}
 
6536
 
 
6537
/* "adios.pyx":440
 
6538
 *     cpdef public int nattrs
 
6539
 *     cpdef public int current_step
 
6540
 *     cpdef public int last_step             # <<<<<<<<<<<<<<
 
6541
 *     cpdef public int endianness
7030
6542
 *     cpdef public int version
7031
6543
 */
7032
6544
 
7033
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10tidx_start___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6545
/* Python wrapper */
 
6546
static PyObject *__pyx_pw_5adios_4file_9last_step_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6547
static PyObject *__pyx_pw_5adios_4file_9last_step_1__get__(PyObject *__pyx_v_self) {
 
6548
  PyObject *__pyx_r = 0;
 
6549
  __Pyx_RefNannyDeclarations
 
6550
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6551
  __pyx_r = __pyx_pf_5adios_4file_9last_step___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6552
 
 
6553
  /* function exit code */
 
6554
  __Pyx_RefNannyFinishContext();
 
6555
  return __pyx_r;
 
6556
}
 
6557
 
 
6558
static PyObject *__pyx_pf_5adios_4file_9last_step___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
7034
6559
  PyObject *__pyx_r = NULL;
7035
6560
  __Pyx_RefNannyDeclarations
7036
6561
  PyObject *__pyx_t_1 = NULL;
7039
6564
  int __pyx_clineno = 0;
7040
6565
  __Pyx_RefNannySetupContext("__get__", 0);
7041
6566
  __Pyx_XDECREF(__pyx_r);
7042
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->tidx_start); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6567
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->last_step); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7043
6568
  __Pyx_GOTREF(__pyx_t_1);
7044
6569
  __pyx_r = __pyx_t_1;
7045
6570
  __pyx_t_1 = 0;
7046
6571
  goto __pyx_L0;
7047
6572
 
7048
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7049
 
  goto __pyx_L0;
 
6573
  /* function exit code */
7050
6574
  __pyx_L1_error:;
7051
6575
  __Pyx_XDECREF(__pyx_t_1);
7052
 
  __Pyx_AddTraceback("adios.AdiosFile.tidx_start.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6576
  __Pyx_AddTraceback("adios.file.last_step.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7053
6577
  __pyx_r = NULL;
7054
6578
  __pyx_L0:;
7055
6579
  __Pyx_XGIVEREF(__pyx_r);
7058
6582
}
7059
6583
 
7060
6584
/* Python wrapper */
7061
 
static int __pyx_pw_5adios_9AdiosFile_10tidx_start_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
7062
 
static int __pyx_pw_5adios_9AdiosFile_10tidx_start_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6585
static int __pyx_pw_5adios_4file_9last_step_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6586
static int __pyx_pw_5adios_4file_9last_step_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7063
6587
  int __pyx_r;
7064
6588
  __Pyx_RefNannyDeclarations
7065
6589
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
7066
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10tidx_start_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6590
  __pyx_r = __pyx_pf_5adios_4file_9last_step_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6591
 
 
6592
  /* function exit code */
7067
6593
  __Pyx_RefNannyFinishContext();
7068
6594
  return __pyx_r;
7069
6595
}
7070
6596
 
7071
 
static int __pyx_pf_5adios_9AdiosFile_10tidx_start_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
 
6597
static int __pyx_pf_5adios_4file_9last_step_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
7072
6598
  int __pyx_r;
7073
6599
  __Pyx_RefNannyDeclarations
7074
6600
  int __pyx_t_1;
7076
6602
  const char *__pyx_filename = NULL;
7077
6603
  int __pyx_clineno = 0;
7078
6604
  __Pyx_RefNannySetupContext("__set__", 0);
7079
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7080
 
  __pyx_v_self->tidx_start = __pyx_t_1;
 
6605
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6606
  __pyx_v_self->last_step = __pyx_t_1;
7081
6607
 
 
6608
  /* function exit code */
7082
6609
  __pyx_r = 0;
7083
6610
  goto __pyx_L0;
7084
6611
  __pyx_L1_error:;
7085
 
  __Pyx_AddTraceback("adios.AdiosFile.tidx_start.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6612
  __Pyx_AddTraceback("adios.file.last_step.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7086
6613
  __pyx_r = -1;
7087
6614
  __pyx_L0:;
7088
6615
  __Pyx_RefNannyFinishContext();
7089
6616
  return __pyx_r;
7090
6617
}
7091
6618
 
7092
 
/* Python wrapper */
7093
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10ntimesteps_1__get__(PyObject *__pyx_v_self); /*proto*/
7094
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10ntimesteps_1__get__(PyObject *__pyx_v_self) {
7095
 
  PyObject *__pyx_r = 0;
7096
 
  __Pyx_RefNannyDeclarations
7097
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
7098
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10ntimesteps___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7099
 
  __Pyx_RefNannyFinishContext();
7100
 
  return __pyx_r;
7101
 
}
7102
 
 
7103
 
/* "adios.pyx":433
7104
 
 *     cpdef public int attrs_count
7105
 
 *     cpdef public int tidx_start
7106
 
 *     cpdef public int ntimesteps             # <<<<<<<<<<<<<<
 
6619
/* "adios.pyx":441
 
6620
 *     cpdef public int current_step
 
6621
 *     cpdef public int last_step
 
6622
 *     cpdef public int endianness             # <<<<<<<<<<<<<<
7107
6623
 *     cpdef public int version
7108
6624
 *     cpdef public int file_size
7109
6625
 */
7110
6626
 
7111
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10ntimesteps___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6627
/* Python wrapper */
 
6628
static PyObject *__pyx_pw_5adios_4file_10endianness_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6629
static PyObject *__pyx_pw_5adios_4file_10endianness_1__get__(PyObject *__pyx_v_self) {
 
6630
  PyObject *__pyx_r = 0;
 
6631
  __Pyx_RefNannyDeclarations
 
6632
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6633
  __pyx_r = __pyx_pf_5adios_4file_10endianness___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6634
 
 
6635
  /* function exit code */
 
6636
  __Pyx_RefNannyFinishContext();
 
6637
  return __pyx_r;
 
6638
}
 
6639
 
 
6640
static PyObject *__pyx_pf_5adios_4file_10endianness___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
7112
6641
  PyObject *__pyx_r = NULL;
7113
6642
  __Pyx_RefNannyDeclarations
7114
6643
  PyObject *__pyx_t_1 = NULL;
7117
6646
  int __pyx_clineno = 0;
7118
6647
  __Pyx_RefNannySetupContext("__get__", 0);
7119
6648
  __Pyx_XDECREF(__pyx_r);
7120
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->ntimesteps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6649
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->endianness); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7121
6650
  __Pyx_GOTREF(__pyx_t_1);
7122
6651
  __pyx_r = __pyx_t_1;
7123
6652
  __pyx_t_1 = 0;
7124
6653
  goto __pyx_L0;
7125
6654
 
7126
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7127
 
  goto __pyx_L0;
 
6655
  /* function exit code */
7128
6656
  __pyx_L1_error:;
7129
6657
  __Pyx_XDECREF(__pyx_t_1);
7130
 
  __Pyx_AddTraceback("adios.AdiosFile.ntimesteps.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6658
  __Pyx_AddTraceback("adios.file.endianness.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7131
6659
  __pyx_r = NULL;
7132
6660
  __pyx_L0:;
7133
6661
  __Pyx_XGIVEREF(__pyx_r);
7136
6664
}
7137
6665
 
7138
6666
/* Python wrapper */
7139
 
static int __pyx_pw_5adios_9AdiosFile_10ntimesteps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
7140
 
static int __pyx_pw_5adios_9AdiosFile_10ntimesteps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6667
static int __pyx_pw_5adios_4file_10endianness_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6668
static int __pyx_pw_5adios_4file_10endianness_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7141
6669
  int __pyx_r;
7142
6670
  __Pyx_RefNannyDeclarations
7143
6671
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
7144
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10ntimesteps_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6672
  __pyx_r = __pyx_pf_5adios_4file_10endianness_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6673
 
 
6674
  /* function exit code */
7145
6675
  __Pyx_RefNannyFinishContext();
7146
6676
  return __pyx_r;
7147
6677
}
7148
6678
 
7149
 
static int __pyx_pf_5adios_9AdiosFile_10ntimesteps_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
 
6679
static int __pyx_pf_5adios_4file_10endianness_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
7150
6680
  int __pyx_r;
7151
6681
  __Pyx_RefNannyDeclarations
7152
6682
  int __pyx_t_1;
7154
6684
  const char *__pyx_filename = NULL;
7155
6685
  int __pyx_clineno = 0;
7156
6686
  __Pyx_RefNannySetupContext("__set__", 0);
7157
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7158
 
  __pyx_v_self->ntimesteps = __pyx_t_1;
 
6687
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6688
  __pyx_v_self->endianness = __pyx_t_1;
7159
6689
 
 
6690
  /* function exit code */
7160
6691
  __pyx_r = 0;
7161
6692
  goto __pyx_L0;
7162
6693
  __pyx_L1_error:;
7163
 
  __Pyx_AddTraceback("adios.AdiosFile.ntimesteps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6694
  __Pyx_AddTraceback("adios.file.endianness.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7164
6695
  __pyx_r = -1;
7165
6696
  __pyx_L0:;
7166
6697
  __Pyx_RefNannyFinishContext();
7167
6698
  return __pyx_r;
7168
6699
}
7169
6700
 
7170
 
/* Python wrapper */
7171
 
static PyObject *__pyx_pw_5adios_9AdiosFile_7version_1__get__(PyObject *__pyx_v_self); /*proto*/
7172
 
static PyObject *__pyx_pw_5adios_9AdiosFile_7version_1__get__(PyObject *__pyx_v_self) {
7173
 
  PyObject *__pyx_r = 0;
7174
 
  __Pyx_RefNannyDeclarations
7175
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
7176
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_7version___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7177
 
  __Pyx_RefNannyFinishContext();
7178
 
  return __pyx_r;
7179
 
}
7180
 
 
7181
 
/* "adios.pyx":434
7182
 
 *     cpdef public int tidx_start
7183
 
 *     cpdef public int ntimesteps
 
6701
/* "adios.pyx":442
 
6702
 *     cpdef public int last_step
 
6703
 *     cpdef public int endianness
7184
6704
 *     cpdef public int version             # <<<<<<<<<<<<<<
7185
6705
 *     cpdef public int file_size
7186
 
 *     cpdef public int endianness
 
6706
 * 
7187
6707
 */
7188
6708
 
7189
 
static PyObject *__pyx_pf_5adios_9AdiosFile_7version___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6709
/* Python wrapper */
 
6710
static PyObject *__pyx_pw_5adios_4file_7version_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6711
static PyObject *__pyx_pw_5adios_4file_7version_1__get__(PyObject *__pyx_v_self) {
 
6712
  PyObject *__pyx_r = 0;
 
6713
  __Pyx_RefNannyDeclarations
 
6714
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6715
  __pyx_r = __pyx_pf_5adios_4file_7version___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6716
 
 
6717
  /* function exit code */
 
6718
  __Pyx_RefNannyFinishContext();
 
6719
  return __pyx_r;
 
6720
}
 
6721
 
 
6722
static PyObject *__pyx_pf_5adios_4file_7version___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
7190
6723
  PyObject *__pyx_r = NULL;
7191
6724
  __Pyx_RefNannyDeclarations
7192
6725
  PyObject *__pyx_t_1 = NULL;
7195
6728
  int __pyx_clineno = 0;
7196
6729
  __Pyx_RefNannySetupContext("__get__", 0);
7197
6730
  __Pyx_XDECREF(__pyx_r);
7198
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6731
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7199
6732
  __Pyx_GOTREF(__pyx_t_1);
7200
6733
  __pyx_r = __pyx_t_1;
7201
6734
  __pyx_t_1 = 0;
7202
6735
  goto __pyx_L0;
7203
6736
 
7204
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7205
 
  goto __pyx_L0;
 
6737
  /* function exit code */
7206
6738
  __pyx_L1_error:;
7207
6739
  __Pyx_XDECREF(__pyx_t_1);
7208
 
  __Pyx_AddTraceback("adios.AdiosFile.version.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6740
  __Pyx_AddTraceback("adios.file.version.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7209
6741
  __pyx_r = NULL;
7210
6742
  __pyx_L0:;
7211
6743
  __Pyx_XGIVEREF(__pyx_r);
7214
6746
}
7215
6747
 
7216
6748
/* Python wrapper */
7217
 
static int __pyx_pw_5adios_9AdiosFile_7version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
7218
 
static int __pyx_pw_5adios_9AdiosFile_7version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6749
static int __pyx_pw_5adios_4file_7version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6750
static int __pyx_pw_5adios_4file_7version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7219
6751
  int __pyx_r;
7220
6752
  __Pyx_RefNannyDeclarations
7221
6753
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
7222
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_7version_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6754
  __pyx_r = __pyx_pf_5adios_4file_7version_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6755
 
 
6756
  /* function exit code */
7223
6757
  __Pyx_RefNannyFinishContext();
7224
6758
  return __pyx_r;
7225
6759
}
7226
6760
 
7227
 
static int __pyx_pf_5adios_9AdiosFile_7version_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
 
6761
static int __pyx_pf_5adios_4file_7version_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
7228
6762
  int __pyx_r;
7229
6763
  __Pyx_RefNannyDeclarations
7230
6764
  int __pyx_t_1;
7232
6766
  const char *__pyx_filename = NULL;
7233
6767
  int __pyx_clineno = 0;
7234
6768
  __Pyx_RefNannySetupContext("__set__", 0);
7235
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6769
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7236
6770
  __pyx_v_self->version = __pyx_t_1;
7237
6771
 
 
6772
  /* function exit code */
7238
6773
  __pyx_r = 0;
7239
6774
  goto __pyx_L0;
7240
6775
  __pyx_L1_error:;
7241
 
  __Pyx_AddTraceback("adios.AdiosFile.version.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6776
  __Pyx_AddTraceback("adios.file.version.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7242
6777
  __pyx_r = -1;
7243
6778
  __pyx_L0:;
7244
6779
  __Pyx_RefNannyFinishContext();
7245
6780
  return __pyx_r;
7246
6781
}
7247
6782
 
7248
 
/* Python wrapper */
7249
 
static PyObject *__pyx_pw_5adios_9AdiosFile_9file_size_1__get__(PyObject *__pyx_v_self); /*proto*/
7250
 
static PyObject *__pyx_pw_5adios_9AdiosFile_9file_size_1__get__(PyObject *__pyx_v_self) {
7251
 
  PyObject *__pyx_r = 0;
7252
 
  __Pyx_RefNannyDeclarations
7253
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
7254
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_9file_size___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7255
 
  __Pyx_RefNannyFinishContext();
7256
 
  return __pyx_r;
7257
 
}
7258
 
 
7259
 
/* "adios.pyx":435
7260
 
 *     cpdef public int ntimesteps
 
6783
/* "adios.pyx":443
 
6784
 *     cpdef public int endianness
7261
6785
 *     cpdef public int version
7262
6786
 *     cpdef public int file_size             # <<<<<<<<<<<<<<
7263
 
 *     cpdef public int endianness
7264
6787
 * 
 
6788
 *     cpdef public dict var
7265
6789
 */
7266
6790
 
7267
 
static PyObject *__pyx_pf_5adios_9AdiosFile_9file_size___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
 
6791
/* Python wrapper */
 
6792
static PyObject *__pyx_pw_5adios_4file_9file_size_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6793
static PyObject *__pyx_pw_5adios_4file_9file_size_1__get__(PyObject *__pyx_v_self) {
 
6794
  PyObject *__pyx_r = 0;
 
6795
  __Pyx_RefNannyDeclarations
 
6796
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6797
  __pyx_r = __pyx_pf_5adios_4file_9file_size___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6798
 
 
6799
  /* function exit code */
 
6800
  __Pyx_RefNannyFinishContext();
 
6801
  return __pyx_r;
 
6802
}
 
6803
 
 
6804
static PyObject *__pyx_pf_5adios_4file_9file_size___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
7268
6805
  PyObject *__pyx_r = NULL;
7269
6806
  __Pyx_RefNannyDeclarations
7270
6807
  PyObject *__pyx_t_1 = NULL;
7273
6810
  int __pyx_clineno = 0;
7274
6811
  __Pyx_RefNannySetupContext("__get__", 0);
7275
6812
  __Pyx_XDECREF(__pyx_r);
7276
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->file_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6813
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->file_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7277
6814
  __Pyx_GOTREF(__pyx_t_1);
7278
6815
  __pyx_r = __pyx_t_1;
7279
6816
  __pyx_t_1 = 0;
7280
6817
  goto __pyx_L0;
7281
6818
 
7282
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7283
 
  goto __pyx_L0;
 
6819
  /* function exit code */
7284
6820
  __pyx_L1_error:;
7285
6821
  __Pyx_XDECREF(__pyx_t_1);
7286
 
  __Pyx_AddTraceback("adios.AdiosFile.file_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6822
  __Pyx_AddTraceback("adios.file.file_size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7287
6823
  __pyx_r = NULL;
7288
6824
  __pyx_L0:;
7289
6825
  __Pyx_XGIVEREF(__pyx_r);
7292
6828
}
7293
6829
 
7294
6830
/* Python wrapper */
7295
 
static int __pyx_pw_5adios_9AdiosFile_9file_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
7296
 
static int __pyx_pw_5adios_9AdiosFile_9file_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6831
static int __pyx_pw_5adios_4file_9file_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6832
static int __pyx_pw_5adios_4file_9file_size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7297
6833
  int __pyx_r;
7298
6834
  __Pyx_RefNannyDeclarations
7299
6835
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
7300
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_9file_size_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6836
  __pyx_r = __pyx_pf_5adios_4file_9file_size_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6837
 
 
6838
  /* function exit code */
7301
6839
  __Pyx_RefNannyFinishContext();
7302
6840
  return __pyx_r;
7303
6841
}
7304
6842
 
7305
 
static int __pyx_pf_5adios_9AdiosFile_9file_size_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
 
6843
static int __pyx_pf_5adios_4file_9file_size_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
7306
6844
  int __pyx_r;
7307
6845
  __Pyx_RefNannyDeclarations
7308
6846
  int __pyx_t_1;
7310
6848
  const char *__pyx_filename = NULL;
7311
6849
  int __pyx_clineno = 0;
7312
6850
  __Pyx_RefNannySetupContext("__set__", 0);
7313
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6851
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7314
6852
  __pyx_v_self->file_size = __pyx_t_1;
7315
6853
 
 
6854
  /* function exit code */
7316
6855
  __pyx_r = 0;
7317
6856
  goto __pyx_L0;
7318
6857
  __pyx_L1_error:;
7319
 
  __Pyx_AddTraceback("adios.AdiosFile.file_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6858
  __Pyx_AddTraceback("adios.file.file_size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7320
6859
  __pyx_r = -1;
7321
6860
  __pyx_L0:;
7322
6861
  __Pyx_RefNannyFinishContext();
7323
6862
  return __pyx_r;
7324
6863
}
7325
6864
 
7326
 
/* Python wrapper */
7327
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10endianness_1__get__(PyObject *__pyx_v_self); /*proto*/
7328
 
static PyObject *__pyx_pw_5adios_9AdiosFile_10endianness_1__get__(PyObject *__pyx_v_self) {
7329
 
  PyObject *__pyx_r = 0;
7330
 
  __Pyx_RefNannyDeclarations
7331
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
7332
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10endianness___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7333
 
  __Pyx_RefNannyFinishContext();
7334
 
  return __pyx_r;
7335
 
}
7336
 
 
7337
 
/* "adios.pyx":436
7338
 
 *     cpdef public int version
 
6865
/* "adios.pyx":445
7339
6866
 *     cpdef public int file_size
7340
 
 *     cpdef public int endianness             # <<<<<<<<<<<<<<
7341
 
 * 
7342
 
 *     cpdef public dict group
7343
 
 */
7344
 
 
7345
 
static PyObject *__pyx_pf_5adios_9AdiosFile_10endianness___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
7346
 
  PyObject *__pyx_r = NULL;
7347
 
  __Pyx_RefNannyDeclarations
7348
 
  PyObject *__pyx_t_1 = NULL;
7349
 
  int __pyx_lineno = 0;
7350
 
  const char *__pyx_filename = NULL;
7351
 
  int __pyx_clineno = 0;
7352
 
  __Pyx_RefNannySetupContext("__get__", 0);
7353
 
  __Pyx_XDECREF(__pyx_r);
7354
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->endianness); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7355
 
  __Pyx_GOTREF(__pyx_t_1);
7356
 
  __pyx_r = __pyx_t_1;
7357
 
  __pyx_t_1 = 0;
7358
 
  goto __pyx_L0;
7359
 
 
7360
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7361
 
  goto __pyx_L0;
7362
 
  __pyx_L1_error:;
7363
 
  __Pyx_XDECREF(__pyx_t_1);
7364
 
  __Pyx_AddTraceback("adios.AdiosFile.endianness.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7365
 
  __pyx_r = NULL;
7366
 
  __pyx_L0:;
7367
 
  __Pyx_XGIVEREF(__pyx_r);
7368
 
  __Pyx_RefNannyFinishContext();
7369
 
  return __pyx_r;
7370
 
}
7371
 
 
7372
 
/* Python wrapper */
7373
 
static int __pyx_pw_5adios_9AdiosFile_10endianness_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
7374
 
static int __pyx_pw_5adios_9AdiosFile_10endianness_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7375
 
  int __pyx_r;
7376
 
  __Pyx_RefNannyDeclarations
7377
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
7378
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_10endianness_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7379
 
  __Pyx_RefNannyFinishContext();
7380
 
  return __pyx_r;
7381
 
}
7382
 
 
7383
 
static int __pyx_pf_5adios_9AdiosFile_10endianness_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
7384
 
  int __pyx_r;
7385
 
  __Pyx_RefNannyDeclarations
7386
 
  int __pyx_t_1;
7387
 
  int __pyx_lineno = 0;
7388
 
  const char *__pyx_filename = NULL;
7389
 
  int __pyx_clineno = 0;
7390
 
  __Pyx_RefNannySetupContext("__set__", 0);
7391
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7392
 
  __pyx_v_self->endianness = __pyx_t_1;
7393
 
 
7394
 
  __pyx_r = 0;
7395
 
  goto __pyx_L0;
7396
 
  __pyx_L1_error:;
7397
 
  __Pyx_AddTraceback("adios.AdiosFile.endianness.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7398
 
  __pyx_r = -1;
7399
 
  __pyx_L0:;
7400
 
  __Pyx_RefNannyFinishContext();
7401
 
  return __pyx_r;
7402
 
}
7403
 
 
7404
 
/* Python wrapper */
7405
 
static PyObject *__pyx_pw_5adios_9AdiosFile_5group_1__get__(PyObject *__pyx_v_self); /*proto*/
7406
 
static PyObject *__pyx_pw_5adios_9AdiosFile_5group_1__get__(PyObject *__pyx_v_self) {
7407
 
  PyObject *__pyx_r = 0;
7408
 
  __Pyx_RefNannyDeclarations
7409
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
7410
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_5group___get__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7411
 
  __Pyx_RefNannyFinishContext();
7412
 
  return __pyx_r;
7413
 
}
7414
 
 
7415
 
/* "adios.pyx":438
7416
 
 *     cpdef public int endianness
7417
 
 * 
7418
 
 *     cpdef public dict group             # <<<<<<<<<<<<<<
7419
 
 * 
7420
 
 *     def __init__(self, char * fname, MPI.Comm comm = MPI.COMM_WORLD):
7421
 
 */
7422
 
 
7423
 
static PyObject *__pyx_pf_5adios_9AdiosFile_5group___get__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
7424
 
  PyObject *__pyx_r = NULL;
7425
 
  __Pyx_RefNannyDeclarations
7426
 
  __Pyx_RefNannySetupContext("__get__", 0);
7427
 
  __Pyx_XDECREF(__pyx_r);
7428
 
  __Pyx_INCREF(((PyObject *)__pyx_v_self->group));
7429
 
  __pyx_r = ((PyObject *)__pyx_v_self->group);
7430
 
  goto __pyx_L0;
7431
 
 
7432
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7433
 
  __pyx_L0:;
7434
 
  __Pyx_XGIVEREF(__pyx_r);
7435
 
  __Pyx_RefNannyFinishContext();
7436
 
  return __pyx_r;
7437
 
}
7438
 
 
7439
 
/* Python wrapper */
7440
 
static int __pyx_pw_5adios_9AdiosFile_5group_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
7441
 
static int __pyx_pw_5adios_9AdiosFile_5group_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7442
 
  int __pyx_r;
7443
 
  __Pyx_RefNannyDeclarations
7444
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
7445
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_5group_2__set__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7446
 
  __Pyx_RefNannyFinishContext();
7447
 
  return __pyx_r;
7448
 
}
7449
 
 
7450
 
static int __pyx_pf_5adios_9AdiosFile_5group_2__set__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self, PyObject *__pyx_v_value) {
7451
 
  int __pyx_r;
7452
 
  __Pyx_RefNannyDeclarations
7453
 
  int __pyx_lineno = 0;
7454
 
  const char *__pyx_filename = NULL;
7455
 
  int __pyx_clineno = 0;
7456
 
  __Pyx_RefNannySetupContext("__set__", 0);
7457
 
  if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected dict, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7458
 
  __Pyx_INCREF(__pyx_v_value);
7459
 
  __Pyx_GIVEREF(__pyx_v_value);
7460
 
  __Pyx_GOTREF(__pyx_v_self->group);
7461
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->group));
7462
 
  __pyx_v_self->group = ((PyObject*)__pyx_v_value);
7463
 
 
7464
 
  __pyx_r = 0;
7465
 
  goto __pyx_L0;
7466
 
  __pyx_L1_error:;
7467
 
  __Pyx_AddTraceback("adios.AdiosFile.group.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7468
 
  __pyx_r = -1;
7469
 
  __pyx_L0:;
7470
 
  __Pyx_RefNannyFinishContext();
7471
 
  return __pyx_r;
7472
 
}
7473
 
 
7474
 
/* Python wrapper */
7475
 
static int __pyx_pw_5adios_9AdiosFile_5group_5__del__(PyObject *__pyx_v_self); /*proto*/
7476
 
static int __pyx_pw_5adios_9AdiosFile_5group_5__del__(PyObject *__pyx_v_self) {
7477
 
  int __pyx_r;
7478
 
  __Pyx_RefNannyDeclarations
7479
 
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
7480
 
  __pyx_r = __pyx_pf_5adios_9AdiosFile_5group_4__del__(((struct __pyx_obj_5adios_AdiosFile *)__pyx_v_self));
7481
 
  __Pyx_RefNannyFinishContext();
7482
 
  return __pyx_r;
7483
 
}
7484
 
 
7485
 
static int __pyx_pf_5adios_9AdiosFile_5group_4__del__(struct __pyx_obj_5adios_AdiosFile *__pyx_v_self) {
7486
 
  int __pyx_r;
7487
 
  __Pyx_RefNannyDeclarations
7488
 
  __Pyx_RefNannySetupContext("__del__", 0);
7489
 
  __Pyx_INCREF(Py_None);
7490
 
  __Pyx_GIVEREF(Py_None);
7491
 
  __Pyx_GOTREF(__pyx_v_self->group);
7492
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->group));
7493
 
  __pyx_v_self->group = ((PyObject*)Py_None);
7494
 
 
7495
 
  __pyx_r = 0;
7496
 
  __Pyx_RefNannyFinishContext();
7497
 
  return __pyx_r;
7498
 
}
7499
 
 
7500
 
/* Python wrapper */
7501
 
static int __pyx_pw_5adios_10AdiosGroup_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
7502
 
static int __pyx_pw_5adios_10AdiosGroup_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7503
 
  struct __pyx_obj_5adios_AdiosFile *__pyx_v_file = 0;
 
6867
 * 
 
6868
 *     cpdef public dict var             # <<<<<<<<<<<<<<
 
6869
 *     cpdef public dict attr
 
6870
 * 
 
6871
 */
 
6872
 
 
6873
/* Python wrapper */
 
6874
static PyObject *__pyx_pw_5adios_4file_3var_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6875
static PyObject *__pyx_pw_5adios_4file_3var_1__get__(PyObject *__pyx_v_self) {
 
6876
  PyObject *__pyx_r = 0;
 
6877
  __Pyx_RefNannyDeclarations
 
6878
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6879
  __pyx_r = __pyx_pf_5adios_4file_3var___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6880
 
 
6881
  /* function exit code */
 
6882
  __Pyx_RefNannyFinishContext();
 
6883
  return __pyx_r;
 
6884
}
 
6885
 
 
6886
static PyObject *__pyx_pf_5adios_4file_3var___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
6887
  PyObject *__pyx_r = NULL;
 
6888
  __Pyx_RefNannyDeclarations
 
6889
  __Pyx_RefNannySetupContext("__get__", 0);
 
6890
  __Pyx_XDECREF(__pyx_r);
 
6891
  __Pyx_INCREF(__pyx_v_self->var);
 
6892
  __pyx_r = __pyx_v_self->var;
 
6893
  goto __pyx_L0;
 
6894
 
 
6895
  /* function exit code */
 
6896
  __pyx_L0:;
 
6897
  __Pyx_XGIVEREF(__pyx_r);
 
6898
  __Pyx_RefNannyFinishContext();
 
6899
  return __pyx_r;
 
6900
}
 
6901
 
 
6902
/* Python wrapper */
 
6903
static int __pyx_pw_5adios_4file_3var_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
6904
static int __pyx_pw_5adios_4file_3var_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
6905
  int __pyx_r;
 
6906
  __Pyx_RefNannyDeclarations
 
6907
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
 
6908
  __pyx_r = __pyx_pf_5adios_4file_3var_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
6909
 
 
6910
  /* function exit code */
 
6911
  __Pyx_RefNannyFinishContext();
 
6912
  return __pyx_r;
 
6913
}
 
6914
 
 
6915
static int __pyx_pf_5adios_4file_3var_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
 
6916
  int __pyx_r;
 
6917
  __Pyx_RefNannyDeclarations
 
6918
  PyObject *__pyx_t_1 = NULL;
 
6919
  int __pyx_lineno = 0;
 
6920
  const char *__pyx_filename = NULL;
 
6921
  int __pyx_clineno = 0;
 
6922
  __Pyx_RefNannySetupContext("__set__", 0);
 
6923
  if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6924
  __pyx_t_1 = __pyx_v_value;
 
6925
  __Pyx_INCREF(__pyx_t_1);
 
6926
  __Pyx_GIVEREF(__pyx_t_1);
 
6927
  __Pyx_GOTREF(__pyx_v_self->var);
 
6928
  __Pyx_DECREF(__pyx_v_self->var);
 
6929
  __pyx_v_self->var = ((PyObject*)__pyx_t_1);
 
6930
  __pyx_t_1 = 0;
 
6931
 
 
6932
  /* function exit code */
 
6933
  __pyx_r = 0;
 
6934
  goto __pyx_L0;
 
6935
  __pyx_L1_error:;
 
6936
  __Pyx_XDECREF(__pyx_t_1);
 
6937
  __Pyx_AddTraceback("adios.file.var.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
6938
  __pyx_r = -1;
 
6939
  __pyx_L0:;
 
6940
  __Pyx_RefNannyFinishContext();
 
6941
  return __pyx_r;
 
6942
}
 
6943
 
 
6944
/* Python wrapper */
 
6945
static int __pyx_pw_5adios_4file_3var_5__del__(PyObject *__pyx_v_self); /*proto*/
 
6946
static int __pyx_pw_5adios_4file_3var_5__del__(PyObject *__pyx_v_self) {
 
6947
  int __pyx_r;
 
6948
  __Pyx_RefNannyDeclarations
 
6949
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
 
6950
  __pyx_r = __pyx_pf_5adios_4file_3var_4__del__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6951
 
 
6952
  /* function exit code */
 
6953
  __Pyx_RefNannyFinishContext();
 
6954
  return __pyx_r;
 
6955
}
 
6956
 
 
6957
static int __pyx_pf_5adios_4file_3var_4__del__(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
6958
  int __pyx_r;
 
6959
  __Pyx_RefNannyDeclarations
 
6960
  __Pyx_RefNannySetupContext("__del__", 0);
 
6961
  __Pyx_INCREF(Py_None);
 
6962
  __Pyx_GIVEREF(Py_None);
 
6963
  __Pyx_GOTREF(__pyx_v_self->var);
 
6964
  __Pyx_DECREF(__pyx_v_self->var);
 
6965
  __pyx_v_self->var = ((PyObject*)Py_None);
 
6966
 
 
6967
  /* function exit code */
 
6968
  __pyx_r = 0;
 
6969
  __Pyx_RefNannyFinishContext();
 
6970
  return __pyx_r;
 
6971
}
 
6972
 
 
6973
/* "adios.pyx":446
 
6974
 * 
 
6975
 *     cpdef public dict var
 
6976
 *     cpdef public dict attr             # <<<<<<<<<<<<<<
 
6977
 * 
 
6978
 *     def __init__(self, char * fname,
 
6979
 */
 
6980
 
 
6981
/* Python wrapper */
 
6982
static PyObject *__pyx_pw_5adios_4file_4attr_1__get__(PyObject *__pyx_v_self); /*proto*/
 
6983
static PyObject *__pyx_pw_5adios_4file_4attr_1__get__(PyObject *__pyx_v_self) {
 
6984
  PyObject *__pyx_r = 0;
 
6985
  __Pyx_RefNannyDeclarations
 
6986
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
6987
  __pyx_r = __pyx_pf_5adios_4file_4attr___get__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
6988
 
 
6989
  /* function exit code */
 
6990
  __Pyx_RefNannyFinishContext();
 
6991
  return __pyx_r;
 
6992
}
 
6993
 
 
6994
static PyObject *__pyx_pf_5adios_4file_4attr___get__(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
6995
  PyObject *__pyx_r = NULL;
 
6996
  __Pyx_RefNannyDeclarations
 
6997
  __Pyx_RefNannySetupContext("__get__", 0);
 
6998
  __Pyx_XDECREF(__pyx_r);
 
6999
  __Pyx_INCREF(__pyx_v_self->attr);
 
7000
  __pyx_r = __pyx_v_self->attr;
 
7001
  goto __pyx_L0;
 
7002
 
 
7003
  /* function exit code */
 
7004
  __pyx_L0:;
 
7005
  __Pyx_XGIVEREF(__pyx_r);
 
7006
  __Pyx_RefNannyFinishContext();
 
7007
  return __pyx_r;
 
7008
}
 
7009
 
 
7010
/* Python wrapper */
 
7011
static int __pyx_pw_5adios_4file_4attr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
7012
static int __pyx_pw_5adios_4file_4attr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
7013
  int __pyx_r;
 
7014
  __Pyx_RefNannyDeclarations
 
7015
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
 
7016
  __pyx_r = __pyx_pf_5adios_4file_4attr_2__set__(((struct __pyx_obj_5adios_file *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
7017
 
 
7018
  /* function exit code */
 
7019
  __Pyx_RefNannyFinishContext();
 
7020
  return __pyx_r;
 
7021
}
 
7022
 
 
7023
static int __pyx_pf_5adios_4file_4attr_2__set__(struct __pyx_obj_5adios_file *__pyx_v_self, PyObject *__pyx_v_value) {
 
7024
  int __pyx_r;
 
7025
  __Pyx_RefNannyDeclarations
 
7026
  PyObject *__pyx_t_1 = NULL;
 
7027
  int __pyx_lineno = 0;
 
7028
  const char *__pyx_filename = NULL;
 
7029
  int __pyx_clineno = 0;
 
7030
  __Pyx_RefNannySetupContext("__set__", 0);
 
7031
  if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7032
  __pyx_t_1 = __pyx_v_value;
 
7033
  __Pyx_INCREF(__pyx_t_1);
 
7034
  __Pyx_GIVEREF(__pyx_t_1);
 
7035
  __Pyx_GOTREF(__pyx_v_self->attr);
 
7036
  __Pyx_DECREF(__pyx_v_self->attr);
 
7037
  __pyx_v_self->attr = ((PyObject*)__pyx_t_1);
 
7038
  __pyx_t_1 = 0;
 
7039
 
 
7040
  /* function exit code */
 
7041
  __pyx_r = 0;
 
7042
  goto __pyx_L0;
 
7043
  __pyx_L1_error:;
 
7044
  __Pyx_XDECREF(__pyx_t_1);
 
7045
  __Pyx_AddTraceback("adios.file.attr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
7046
  __pyx_r = -1;
 
7047
  __pyx_L0:;
 
7048
  __Pyx_RefNannyFinishContext();
 
7049
  return __pyx_r;
 
7050
}
 
7051
 
 
7052
/* Python wrapper */
 
7053
static int __pyx_pw_5adios_4file_4attr_5__del__(PyObject *__pyx_v_self); /*proto*/
 
7054
static int __pyx_pw_5adios_4file_4attr_5__del__(PyObject *__pyx_v_self) {
 
7055
  int __pyx_r;
 
7056
  __Pyx_RefNannyDeclarations
 
7057
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
 
7058
  __pyx_r = __pyx_pf_5adios_4file_4attr_4__del__(((struct __pyx_obj_5adios_file *)__pyx_v_self));
 
7059
 
 
7060
  /* function exit code */
 
7061
  __Pyx_RefNannyFinishContext();
 
7062
  return __pyx_r;
 
7063
}
 
7064
 
 
7065
static int __pyx_pf_5adios_4file_4attr_4__del__(struct __pyx_obj_5adios_file *__pyx_v_self) {
 
7066
  int __pyx_r;
 
7067
  __Pyx_RefNannyDeclarations
 
7068
  __Pyx_RefNannySetupContext("__del__", 0);
 
7069
  __Pyx_INCREF(Py_None);
 
7070
  __Pyx_GIVEREF(Py_None);
 
7071
  __Pyx_GOTREF(__pyx_v_self->attr);
 
7072
  __Pyx_DECREF(__pyx_v_self->attr);
 
7073
  __pyx_v_self->attr = ((PyObject*)Py_None);
 
7074
 
 
7075
  /* function exit code */
 
7076
  __pyx_r = 0;
 
7077
  __Pyx_RefNannyFinishContext();
 
7078
  return __pyx_r;
 
7079
}
 
7080
 
 
7081
/* "adios.pyx":497
 
7082
 *     cpdef public int nsteps
 
7083
 * 
 
7084
 *     def __init__(self, file file, char * name):             # <<<<<<<<<<<<<<
 
7085
 *         self.file = file
 
7086
 *         self.vp = NULL
 
7087
 */
 
7088
 
 
7089
/* Python wrapper */
 
7090
static int __pyx_pw_5adios_3var_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
7091
static int __pyx_pw_5adios_3var_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 
7092
  struct __pyx_obj_5adios_file *__pyx_v_file = 0;
7504
7093
  char *__pyx_v_name;
7505
7094
  int __pyx_lineno = 0;
7506
7095
  const char *__pyx_filename = NULL;
7509
7098
  __Pyx_RefNannyDeclarations
7510
7099
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
7511
7100
  {
7512
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__file,&__pyx_n_s__name,0};
 
7101
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_file,&__pyx_n_s_name,0};
7513
7102
    PyObject* values[2] = {0,0};
7514
7103
    if (unlikely(__pyx_kwds)) {
7515
7104
      Py_ssize_t kw_args;
7523
7112
      kw_args = PyDict_Size(__pyx_kwds);
7524
7113
      switch (pos_args) {
7525
7114
        case  0:
7526
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__file)) != 0)) kw_args--;
 
7115
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_file)) != 0)) kw_args--;
7527
7116
        else goto __pyx_L5_argtuple_error;
7528
7117
        case  1:
7529
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
 
7118
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
7530
7119
        else {
7531
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
7120
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7532
7121
        }
7533
7122
      }
7534
7123
      if (unlikely(kw_args > 0)) {
7535
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
7124
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7536
7125
      }
7537
7126
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
7538
7127
      goto __pyx_L5_argtuple_error;
7540
7129
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7541
7130
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7542
7131
    }
7543
 
    __pyx_v_file = ((struct __pyx_obj_5adios_AdiosFile *)values[0]);
7544
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
7132
    __pyx_v_file = ((struct __pyx_obj_5adios_file *)values[0]);
 
7133
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7545
7134
  }
7546
7135
  goto __pyx_L4_argument_unpacking_done;
7547
7136
  __pyx_L5_argtuple_error:;
7548
 
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
7137
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7549
7138
  __pyx_L3_error:;
7550
 
  __Pyx_AddTraceback("adios.AdiosGroup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
7139
  __Pyx_AddTraceback("adios.var.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7551
7140
  __Pyx_RefNannyFinishContext();
7552
7141
  return -1;
7553
7142
  __pyx_L4_argument_unpacking_done:;
7554
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_file), __pyx_ptype_5adios_AdiosFile, 1, "file", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7555
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup___init__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), __pyx_v_file, __pyx_v_name);
 
7143
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_file), __pyx_ptype_5adios_file, 1, "file", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7144
  __pyx_r = __pyx_pf_5adios_3var___init__(((struct __pyx_obj_5adios_var *)__pyx_v_self), __pyx_v_file, __pyx_v_name);
 
7145
 
 
7146
  /* function exit code */
7556
7147
  goto __pyx_L0;
7557
7148
  __pyx_L1_error:;
7558
7149
  __pyx_r = -1;
7561
7152
  return __pyx_r;
7562
7153
}
7563
7154
 
7564
 
/* "adios.pyx":494
7565
 
 *     cpdef public dict var
7566
 
 * 
7567
 
 *     def __init__(self, AdiosFile file, char * name):             # <<<<<<<<<<<<<<
7568
 
 *         self.file = file
7569
 
 *         self.var = {}
7570
 
 */
7571
 
 
7572
 
static int __pyx_pf_5adios_10AdiosGroup___init__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, struct __pyx_obj_5adios_AdiosFile *__pyx_v_file, char *__pyx_v_name) {
7573
 
  struct __pyx_obj_5adios_AdiosVariable *__pyx_v_v = 0;
7574
 
  PyObject *__pyx_v_varname = NULL;
 
7155
static int __pyx_pf_5adios_3var___init__(struct __pyx_obj_5adios_var *__pyx_v_self, struct __pyx_obj_5adios_file *__pyx_v_file, char *__pyx_v_name) {
7575
7156
  int __pyx_v_i;
7576
7157
  int __pyx_r;
7577
7158
  __Pyx_RefNannyDeclarations
7579
7160
  int __pyx_t_2;
7580
7161
  int __pyx_t_3;
7581
7162
  PyObject *__pyx_t_4 = NULL;
7582
 
  Py_ssize_t __pyx_t_5;
7583
 
  PyObject *__pyx_t_6 = NULL;
7584
7163
  int __pyx_lineno = 0;
7585
7164
  const char *__pyx_filename = NULL;
7586
7165
  int __pyx_clineno = 0;
7587
7166
  __Pyx_RefNannySetupContext("__init__", 0);
7588
7167
 
7589
 
  /* "adios.pyx":495
 
7168
  /* "adios.pyx":498
7590
7169
 * 
7591
 
 *     def __init__(self, AdiosFile file, char * name):
 
7170
 *     def __init__(self, file file, char * name):
7592
7171
 *         self.file = file             # <<<<<<<<<<<<<<
7593
 
 *         self.var = {}
 
7172
 *         self.vp = NULL
7594
7173
 * 
7595
7174
 */
7596
7175
  __Pyx_INCREF(((PyObject *)__pyx_v_file));
7599
7178
  __Pyx_DECREF(((PyObject *)__pyx_v_self->file));
7600
7179
  __pyx_v_self->file = __pyx_v_file;
7601
7180
 
7602
 
  /* "adios.pyx":496
7603
 
 *     def __init__(self, AdiosFile file, char * name):
7604
 
 *         self.file = file
7605
 
 *         self.var = {}             # <<<<<<<<<<<<<<
7606
 
 * 
7607
 
 *         self.gp = adios_gopen(self.file.fp, name)
7608
 
 */
7609
 
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7610
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
7611
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
7612
 
  __Pyx_GOTREF(__pyx_v_self->var);
7613
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->var));
7614
 
  __pyx_v_self->var = ((PyObject*)__pyx_t_1);
7615
 
  __pyx_t_1 = 0;
7616
 
 
7617
 
  /* "adios.pyx":498
7618
 
 *         self.var = {}
7619
 
 * 
7620
 
 *         self.gp = adios_gopen(self.file.fp, name)             # <<<<<<<<<<<<<<
7621
 
 *         assert self.gp != NULL, 'Not an open group'
7622
 
 * 
7623
 
 */
7624
 
  __pyx_v_self->gp = adios_gopen(__pyx_v_self->file->fp, __pyx_v_name);
7625
 
 
7626
7181
  /* "adios.pyx":499
7627
 
 * 
7628
 
 *         self.gp = adios_gopen(self.file.fp, name)
7629
 
 *         assert self.gp != NULL, 'Not an open group'             # <<<<<<<<<<<<<<
7630
 
 * 
7631
 
 *         self.name         = name
 
7182
 *     def __init__(self, file file, char * name):
 
7183
 *         self.file = file
 
7184
 *         self.vp = NULL             # <<<<<<<<<<<<<<
 
7185
 * 
 
7186
 *         assert self.file.fp != NULL, 'Not an open file'
7632
7187
 */
7633
 
  #ifndef CYTHON_WITHOUT_ASSERTIONS
7634
 
  if (unlikely(!((__pyx_v_self->gp != NULL) != 0))) {
7635
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_15));
7636
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7637
 
  }
7638
 
  #endif
 
7188
  __pyx_v_self->vp = NULL;
7639
7189
 
7640
7190
  /* "adios.pyx":501
7641
 
 *         assert self.gp != NULL, 'Not an open group'
 
7191
 *         self.vp = NULL
7642
7192
 * 
7643
 
 *         self.name         = name             # <<<<<<<<<<<<<<
7644
 
 *         self.grpid        = self.gp.grpid
7645
 
 *         self.vars_count   = self.gp.vars_count
 
7193
 *         assert self.file.fp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
 
7194
 *         self.vp = adios_inq_var(self.file.fp, name)
 
7195
 *         assert self.vp != NULL, 'Not a valid var'
7646
7196
 */
7647
 
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7648
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
7649
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
7650
 
  __Pyx_GOTREF(__pyx_v_self->name);
7651
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
7652
 
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
7653
 
  __pyx_t_1 = 0;
 
7197
  #ifndef CYTHON_WITHOUT_ASSERTIONS
 
7198
  if (unlikely(!Py_OptimizeFlag)) {
 
7199
    if (unlikely(!((__pyx_v_self->file->fp != NULL) != 0))) {
 
7200
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_an_open_file);
 
7201
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7202
    }
 
7203
  }
 
7204
  #endif
7654
7205
 
7655
7206
  /* "adios.pyx":502
7656
7207
 * 
7657
 
 *         self.name         = name
7658
 
 *         self.grpid        = self.gp.grpid             # <<<<<<<<<<<<<<
7659
 
 *         self.vars_count   = self.gp.vars_count
7660
 
 *         self.attrs_count  = self.gp.attrs_count
 
7208
 *         assert self.file.fp != NULL, 'Not an open file'
 
7209
 *         self.vp = adios_inq_var(self.file.fp, name)             # <<<<<<<<<<<<<<
 
7210
 *         assert self.vp != NULL, 'Not a valid var'
 
7211
 * 
7661
7212
 */
7662
 
  __pyx_t_2 = __pyx_v_self->gp->grpid;
7663
 
  __pyx_v_self->grpid = __pyx_t_2;
 
7213
  __pyx_v_self->vp = adios_inq_var(__pyx_v_self->file->fp, __pyx_v_name);
7664
7214
 
7665
7215
  /* "adios.pyx":503
7666
 
 *         self.name         = name
7667
 
 *         self.grpid        = self.gp.grpid
7668
 
 *         self.vars_count   = self.gp.vars_count             # <<<<<<<<<<<<<<
7669
 
 *         self.attrs_count  = self.gp.attrs_count
7670
 
 *         self.timestep     = self.gp.timestep
7671
 
 */
7672
 
  __pyx_t_2 = __pyx_v_self->gp->vars_count;
7673
 
  __pyx_v_self->vars_count = __pyx_t_2;
7674
 
 
7675
 
  /* "adios.pyx":504
7676
 
 *         self.grpid        = self.gp.grpid
7677
 
 *         self.vars_count   = self.gp.vars_count
7678
 
 *         self.attrs_count  = self.gp.attrs_count             # <<<<<<<<<<<<<<
7679
 
 *         self.timestep     = self.gp.timestep
7680
 
 *         self.lasttimestep = self.gp.lasttimestep
7681
 
 */
7682
 
  __pyx_t_2 = __pyx_v_self->gp->attrs_count;
7683
 
  __pyx_v_self->attrs_count = __pyx_t_2;
 
7216
 *         assert self.file.fp != NULL, 'Not an open file'
 
7217
 *         self.vp = adios_inq_var(self.file.fp, name)
 
7218
 *         assert self.vp != NULL, 'Not a valid var'             # <<<<<<<<<<<<<<
 
7219
 * 
 
7220
 *         self.name = name
 
7221
 */
 
7222
  #ifndef CYTHON_WITHOUT_ASSERTIONS
 
7223
  if (unlikely(!Py_OptimizeFlag)) {
 
7224
    if (unlikely(!((__pyx_v_self->vp != NULL) != 0))) {
 
7225
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_a_valid_var);
 
7226
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7227
    }
 
7228
  }
 
7229
  #endif
7684
7230
 
7685
7231
  /* "adios.pyx":505
7686
 
 *         self.vars_count   = self.gp.vars_count
7687
 
 *         self.attrs_count  = self.gp.attrs_count
7688
 
 *         self.timestep     = self.gp.timestep             # <<<<<<<<<<<<<<
7689
 
 *         self.lasttimestep = self.gp.lasttimestep
 
7232
 *         assert self.vp != NULL, 'Not a valid var'
7690
7233
 * 
 
7234
 *         self.name = name             # <<<<<<<<<<<<<<
 
7235
 *         self.varid = self.vp.varid
 
7236
 *         self.type = adios2nptype(self.vp.type)
7691
7237
 */
7692
 
  __pyx_t_2 = __pyx_v_self->gp->timestep;
7693
 
  __pyx_v_self->timestep = __pyx_t_2;
 
7238
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7239
  __Pyx_GOTREF(__pyx_t_1);
 
7240
  __Pyx_GIVEREF(__pyx_t_1);
 
7241
  __Pyx_GOTREF(__pyx_v_self->name);
 
7242
  __Pyx_DECREF(__pyx_v_self->name);
 
7243
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
 
7244
  __pyx_t_1 = 0;
7694
7245
 
7695
7246
  /* "adios.pyx":506
7696
 
 *         self.attrs_count  = self.gp.attrs_count
7697
 
 *         self.timestep     = self.gp.timestep
7698
 
 *         self.lasttimestep = self.gp.lasttimestep             # <<<<<<<<<<<<<<
7699
 
 * 
7700
 
 *         cdef AdiosVariable v
7701
 
 */
7702
 
  __pyx_t_2 = __pyx_v_self->gp->lasttimestep;
7703
 
  __pyx_v_self->lasttimestep = __pyx_t_2;
7704
 
 
7705
 
  /* "adios.pyx":509
7706
 
 * 
7707
 
 *         cdef AdiosVariable v
7708
 
 *         for varname in [self.gp.var_namelist[i] for i in range(self.vars_count)]:             # <<<<<<<<<<<<<<
7709
 
 *             v = AdiosVariable(self, varname)
7710
 
 *             self.var[varname] = v
7711
 
 */
7712
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7713
 
  __Pyx_GOTREF(__pyx_t_1);
7714
 
  __pyx_t_2 = __pyx_v_self->vars_count;
7715
 
  for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
7716
 
    __pyx_v_i = __pyx_t_3;
7717
 
    __pyx_t_4 = __Pyx_PyBytes_FromString((__pyx_v_self->gp->var_namelist[__pyx_v_i])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7718
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
7719
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7720
 
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
7721
 
  }
7722
 
  __pyx_t_4 = ((PyObject *)__pyx_t_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0;
7723
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
7724
 
  for (;;) {
7725
 
    if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break;
7726
 
    #if CYTHON_COMPILING_IN_CPYTHON
7727
 
    __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7728
 
    #else
7729
 
    __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7730
 
    #endif
7731
 
    __Pyx_XDECREF(__pyx_v_varname);
7732
 
    __pyx_v_varname = __pyx_t_1;
7733
 
    __pyx_t_1 = 0;
7734
 
 
7735
 
    /* "adios.pyx":510
7736
 
 *         cdef AdiosVariable v
7737
 
 *         for varname in [self.gp.var_namelist[i] for i in range(self.vars_count)]:
7738
 
 *             v = AdiosVariable(self, varname)             # <<<<<<<<<<<<<<
7739
 
 *             self.var[varname] = v
7740
 
 * 
7741
 
 */
7742
 
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7743
 
    __Pyx_GOTREF(__pyx_t_1);
7744
 
    __Pyx_INCREF(((PyObject *)__pyx_v_self));
7745
 
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
7746
 
    __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
7747
 
    __Pyx_INCREF(__pyx_v_varname);
7748
 
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_varname);
7749
 
    __Pyx_GIVEREF(__pyx_v_varname);
7750
 
    __pyx_t_6 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5adios_AdiosVariable)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7751
 
    __Pyx_GOTREF(__pyx_t_6);
7752
 
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
7753
 
    __Pyx_XDECREF(((PyObject *)__pyx_v_v));
7754
 
    __pyx_v_v = ((struct __pyx_obj_5adios_AdiosVariable *)__pyx_t_6);
7755
 
    __pyx_t_6 = 0;
7756
 
 
7757
 
    /* "adios.pyx":511
7758
 
 *         for varname in [self.gp.var_namelist[i] for i in range(self.vars_count)]:
7759
 
 *             v = AdiosVariable(self, varname)
7760
 
 *             self.var[varname] = v             # <<<<<<<<<<<<<<
7761
 
 * 
7762
 
 *     def __del__(self):
7763
 
 */
7764
 
    if (unlikely(((PyObject *)__pyx_v_self->var) == Py_None)) {
7765
 
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
7766
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7767
 
    }
7768
 
    if (PyDict_SetItem(((PyObject *)__pyx_v_self->var), __pyx_v_varname, ((PyObject *)__pyx_v_v)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7769
 
  }
7770
 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7771
 
 
7772
 
  __pyx_r = 0;
7773
 
  goto __pyx_L0;
7774
 
  __pyx_L1_error:;
7775
 
  __Pyx_XDECREF(__pyx_t_1);
7776
 
  __Pyx_XDECREF(__pyx_t_4);
7777
 
  __Pyx_XDECREF(__pyx_t_6);
7778
 
  __Pyx_AddTraceback("adios.AdiosGroup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7779
 
  __pyx_r = -1;
7780
 
  __pyx_L0:;
7781
 
  __Pyx_XDECREF((PyObject *)__pyx_v_v);
7782
 
  __Pyx_XDECREF(__pyx_v_varname);
7783
 
  __Pyx_RefNannyFinishContext();
7784
 
  return __pyx_r;
7785
 
}
7786
 
 
7787
 
/* Python wrapper */
7788
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
7789
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
7790
 
  PyObject *__pyx_r = 0;
7791
 
  __Pyx_RefNannyDeclarations
7792
 
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
7793
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_2__del__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
7794
 
  __Pyx_RefNannyFinishContext();
7795
 
  return __pyx_r;
7796
 
}
7797
 
 
7798
 
/* "adios.pyx":513
7799
 
 *             self.var[varname] = v
7800
 
 * 
7801
 
 *     def __del__(self):             # <<<<<<<<<<<<<<
7802
 
 *         self.close()
7803
 
 * 
7804
 
 */
7805
 
 
7806
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_2__del__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
7807
 
  PyObject *__pyx_r = NULL;
7808
 
  __Pyx_RefNannyDeclarations
7809
 
  PyObject *__pyx_t_1 = NULL;
7810
 
  int __pyx_lineno = 0;
7811
 
  const char *__pyx_filename = NULL;
7812
 
  int __pyx_clineno = 0;
7813
 
  __Pyx_RefNannySetupContext("__del__", 0);
7814
 
 
7815
 
  /* "adios.pyx":514
7816
 
 * 
7817
 
 *     def __del__(self):
7818
 
 *         self.close()             # <<<<<<<<<<<<<<
7819
 
 * 
7820
 
 *     cpdef close(self):
7821
 
 */
7822
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosGroup *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7823
 
  __Pyx_GOTREF(__pyx_t_1);
7824
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7825
 
 
7826
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7827
 
  goto __pyx_L0;
7828
 
  __pyx_L1_error:;
7829
 
  __Pyx_XDECREF(__pyx_t_1);
7830
 
  __Pyx_AddTraceback("adios.AdiosGroup.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7831
 
  __pyx_r = NULL;
7832
 
  __pyx_L0:;
7833
 
  __Pyx_XGIVEREF(__pyx_r);
7834
 
  __Pyx_RefNannyFinishContext();
7835
 
  return __pyx_r;
7836
 
}
7837
 
 
7838
 
/* "adios.pyx":516
7839
 
 *         self.close()
7840
 
 * 
7841
 
 *     cpdef close(self):             # <<<<<<<<<<<<<<
7842
 
 *         assert self.gp != NULL, 'Not an open file'
7843
 
 *         for v in self.var.values():
7844
 
 */
7845
 
 
7846
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
7847
 
static PyObject *__pyx_f_5adios_10AdiosGroup_close(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, int __pyx_skip_dispatch) {
7848
 
  PyObject *__pyx_v_v = NULL;
7849
 
  PyObject *__pyx_r = NULL;
7850
 
  __Pyx_RefNannyDeclarations
7851
 
  PyObject *__pyx_t_1 = NULL;
7852
 
  PyObject *__pyx_t_2 = NULL;
7853
 
  Py_ssize_t __pyx_t_3;
7854
 
  PyObject *(*__pyx_t_4)(PyObject *);
7855
 
  PyObject *__pyx_t_5 = NULL;
7856
 
  int __pyx_lineno = 0;
7857
 
  const char *__pyx_filename = NULL;
7858
 
  int __pyx_clineno = 0;
7859
 
  __Pyx_RefNannySetupContext("close", 0);
7860
 
  /* Check if called by wrapper */
7861
 
  if (unlikely(__pyx_skip_dispatch)) ;
7862
 
  /* Check if overridden in Python */
7863
 
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
7864
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7865
 
    __Pyx_GOTREF(__pyx_t_1);
7866
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_10AdiosGroup_5close)) {
7867
 
      __Pyx_XDECREF(__pyx_r);
7868
 
      __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7869
 
      __Pyx_GOTREF(__pyx_t_2);
7870
 
      __pyx_r = __pyx_t_2;
7871
 
      __pyx_t_2 = 0;
7872
 
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7873
 
      goto __pyx_L0;
7874
 
    }
7875
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7876
 
  }
7877
 
 
7878
 
  /* "adios.pyx":517
7879
 
 * 
7880
 
 *     cpdef close(self):
7881
 
 *         assert self.gp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
7882
 
 *         for v in self.var.values():
7883
 
 *             v.close()
7884
 
 */
7885
 
  #ifndef CYTHON_WITHOUT_ASSERTIONS
7886
 
  if (unlikely(!((__pyx_v_self->gp != NULL) != 0))) {
7887
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
7888
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7889
 
  }
7890
 
  #endif
7891
 
 
7892
 
  /* "adios.pyx":518
7893
 
 *     cpdef close(self):
7894
 
 *         assert self.gp != NULL, 'Not an open file'
7895
 
 *         for v in self.var.values():             # <<<<<<<<<<<<<<
7896
 
 *             v.close()
7897
 
 *         adios_gclose(self.gp)
7898
 
 */
7899
 
  if (unlikely(((PyObject *)__pyx_v_self->var) == Py_None)) {
7900
 
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "values");
7901
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7902
 
  }
7903
 
  __pyx_t_1 = __Pyx_PyDict_Values(__pyx_v_self->var); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7904
 
  __Pyx_GOTREF(__pyx_t_1);
7905
 
  if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) {
7906
 
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
7907
 
    __pyx_t_4 = NULL;
7908
 
  } else {
7909
 
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7910
 
    __Pyx_GOTREF(__pyx_t_2);
7911
 
    __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext;
7912
 
  }
7913
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7914
 
  for (;;) {
7915
 
    if (!__pyx_t_4 && PyList_CheckExact(__pyx_t_2)) {
7916
 
      if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
7917
 
      #if CYTHON_COMPILING_IN_CPYTHON
7918
 
      __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7919
 
      #else
7920
 
      __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7921
 
      #endif
7922
 
    } else if (!__pyx_t_4 && PyTuple_CheckExact(__pyx_t_2)) {
7923
 
      if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
7924
 
      #if CYTHON_COMPILING_IN_CPYTHON
7925
 
      __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7926
 
      #else
7927
 
      __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7928
 
      #endif
7929
 
    } else {
7930
 
      __pyx_t_1 = __pyx_t_4(__pyx_t_2);
7931
 
      if (unlikely(!__pyx_t_1)) {
7932
 
        if (PyErr_Occurred()) {
7933
 
          if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
7934
 
          else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7935
 
        }
7936
 
        break;
7937
 
      }
7938
 
      __Pyx_GOTREF(__pyx_t_1);
7939
 
    }
7940
 
    __Pyx_XDECREF(__pyx_v_v);
7941
 
    __pyx_v_v = __pyx_t_1;
7942
 
    __pyx_t_1 = 0;
7943
 
 
7944
 
    /* "adios.pyx":519
7945
 
 *         assert self.gp != NULL, 'Not an open file'
7946
 
 *         for v in self.var.values():
7947
 
 *             v.close()             # <<<<<<<<<<<<<<
7948
 
 *         adios_gclose(self.gp)
7949
 
 *         self.gp = NULL
7950
 
 */
7951
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s__close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7952
 
    __Pyx_GOTREF(__pyx_t_1);
7953
 
    __pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7954
 
    __Pyx_GOTREF(__pyx_t_5);
7955
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7956
 
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
7957
 
  }
7958
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7959
 
 
7960
 
  /* "adios.pyx":520
7961
 
 *         for v in self.var.values():
7962
 
 *             v.close()
7963
 
 *         adios_gclose(self.gp)             # <<<<<<<<<<<<<<
7964
 
 *         self.gp = NULL
7965
 
 * 
7966
 
 */
7967
 
  adios_gclose(__pyx_v_self->gp);
7968
 
 
7969
 
  /* "adios.pyx":521
7970
 
 *             v.close()
7971
 
 *         adios_gclose(self.gp)
7972
 
 *         self.gp = NULL             # <<<<<<<<<<<<<<
7973
 
 * 
7974
 
 *     cpdef printself(self):
7975
 
 */
7976
 
  __pyx_v_self->gp = NULL;
7977
 
 
7978
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7979
 
  goto __pyx_L0;
7980
 
  __pyx_L1_error:;
7981
 
  __Pyx_XDECREF(__pyx_t_1);
7982
 
  __Pyx_XDECREF(__pyx_t_2);
7983
 
  __Pyx_XDECREF(__pyx_t_5);
7984
 
  __Pyx_AddTraceback("adios.AdiosGroup.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
7985
 
  __pyx_r = 0;
7986
 
  __pyx_L0:;
7987
 
  __Pyx_XDECREF(__pyx_v_v);
7988
 
  __Pyx_XGIVEREF(__pyx_r);
7989
 
  __Pyx_RefNannyFinishContext();
7990
 
  return __pyx_r;
7991
 
}
7992
 
 
7993
 
/* Python wrapper */
7994
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
7995
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
7996
 
  PyObject *__pyx_r = 0;
7997
 
  __Pyx_RefNannyDeclarations
7998
 
  __Pyx_RefNannySetupContext("close (wrapper)", 0);
7999
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_4close(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8000
 
  __Pyx_RefNannyFinishContext();
8001
 
  return __pyx_r;
8002
 
}
8003
 
 
8004
 
/* "adios.pyx":516
8005
 
 *         self.close()
8006
 
 * 
8007
 
 *     cpdef close(self):             # <<<<<<<<<<<<<<
8008
 
 *         assert self.gp != NULL, 'Not an open file'
8009
 
 *         for v in self.var.values():
8010
 
 */
8011
 
 
8012
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_4close(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8013
 
  PyObject *__pyx_r = NULL;
8014
 
  __Pyx_RefNannyDeclarations
8015
 
  PyObject *__pyx_t_1 = NULL;
8016
 
  int __pyx_lineno = 0;
8017
 
  const char *__pyx_filename = NULL;
8018
 
  int __pyx_clineno = 0;
8019
 
  __Pyx_RefNannySetupContext("close", 0);
8020
 
  __Pyx_XDECREF(__pyx_r);
8021
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosGroup *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8022
 
  __Pyx_GOTREF(__pyx_t_1);
8023
 
  __pyx_r = __pyx_t_1;
8024
 
  __pyx_t_1 = 0;
8025
 
  goto __pyx_L0;
8026
 
 
8027
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8028
 
  goto __pyx_L0;
8029
 
  __pyx_L1_error:;
8030
 
  __Pyx_XDECREF(__pyx_t_1);
8031
 
  __Pyx_AddTraceback("adios.AdiosGroup.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
8032
 
  __pyx_r = NULL;
8033
 
  __pyx_L0:;
8034
 
  __Pyx_XGIVEREF(__pyx_r);
8035
 
  __Pyx_RefNannyFinishContext();
8036
 
  return __pyx_r;
8037
 
}
8038
 
 
8039
 
/* "adios.pyx":523
8040
 
 *         self.gp = NULL
8041
 
 * 
8042
 
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
8043
 
 *         assert self.gp != NULL, 'Not an open file'
8044
 
 *         print '=== AdiosGroup ==='
8045
 
 */
8046
 
 
8047
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
8048
 
static PyObject *__pyx_f_5adios_10AdiosGroup_printself(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, int __pyx_skip_dispatch) {
8049
 
  PyObject *__pyx_r = NULL;
8050
 
  __Pyx_RefNannyDeclarations
8051
 
  PyObject *__pyx_t_1 = NULL;
8052
 
  PyObject *__pyx_t_2 = NULL;
8053
 
  int __pyx_lineno = 0;
8054
 
  const char *__pyx_filename = NULL;
8055
 
  int __pyx_clineno = 0;
8056
 
  __Pyx_RefNannySetupContext("printself", 0);
8057
 
  /* Check if called by wrapper */
8058
 
  if (unlikely(__pyx_skip_dispatch)) ;
8059
 
  /* Check if overridden in Python */
8060
 
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
8061
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__printself); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8062
 
    __Pyx_GOTREF(__pyx_t_1);
8063
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_10AdiosGroup_7printself)) {
8064
 
      __Pyx_XDECREF(__pyx_r);
8065
 
      __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8066
 
      __Pyx_GOTREF(__pyx_t_2);
8067
 
      __pyx_r = __pyx_t_2;
8068
 
      __pyx_t_2 = 0;
8069
 
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8070
 
      goto __pyx_L0;
8071
 
    }
8072
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8073
 
  }
8074
 
 
8075
 
  /* "adios.pyx":524
8076
 
 * 
8077
 
 *     cpdef printself(self):
8078
 
 *         assert self.gp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
8079
 
 *         print '=== AdiosGroup ==='
8080
 
 *         print '%15s : %lu' % ('gp', <unsigned long> self.gp)
8081
 
 */
8082
 
  #ifndef CYTHON_WITHOUT_ASSERTIONS
8083
 
  if (unlikely(!((__pyx_v_self->gp != NULL) != 0))) {
8084
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
8085
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8086
 
  }
8087
 
  #endif
8088
 
 
8089
 
  /* "adios.pyx":525
8090
 
 *     cpdef printself(self):
8091
 
 *         assert self.gp != NULL, 'Not an open file'
8092
 
 *         print '=== AdiosGroup ==='             # <<<<<<<<<<<<<<
8093
 
 *         print '%15s : %lu' % ('gp', <unsigned long> self.gp)
8094
 
 *         printAdiosGroup(self.gp)
8095
 
 */
8096
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_16)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8097
 
 
8098
 
  /* "adios.pyx":526
8099
 
 *         assert self.gp != NULL, 'Not an open file'
8100
 
 *         print '=== AdiosGroup ==='
8101
 
 *         print '%15s : %lu' % ('gp', <unsigned long> self.gp)             # <<<<<<<<<<<<<<
8102
 
 *         printAdiosGroup(self.gp)
8103
 
 * 
8104
 
 */
8105
 
  __pyx_t_1 = PyLong_FromUnsignedLong(((unsigned long)__pyx_v_self->gp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8106
 
  __Pyx_GOTREF(__pyx_t_1);
8107
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8108
 
  __Pyx_GOTREF(__pyx_t_2);
8109
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__gp));
8110
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__gp));
8111
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__gp));
8112
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
8113
 
  __Pyx_GIVEREF(__pyx_t_1);
8114
 
  __pyx_t_1 = 0;
8115
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8116
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
8117
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
8118
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8119
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
8120
 
 
8121
 
  /* "adios.pyx":527
8122
 
 *         print '=== AdiosGroup ==='
8123
 
 *         print '%15s : %lu' % ('gp', <unsigned long> self.gp)
8124
 
 *         printAdiosGroup(self.gp)             # <<<<<<<<<<<<<<
8125
 
 * 
8126
 
 * cdef class AdiosVariable:
8127
 
 */
8128
 
  __pyx_t_1 = __pyx_f_5adios_printAdiosGroup(__pyx_v_self->gp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8129
 
  __Pyx_GOTREF(__pyx_t_1);
8130
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8131
 
 
8132
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8133
 
  goto __pyx_L0;
8134
 
  __pyx_L1_error:;
8135
 
  __Pyx_XDECREF(__pyx_t_1);
8136
 
  __Pyx_XDECREF(__pyx_t_2);
8137
 
  __Pyx_AddTraceback("adios.AdiosGroup.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
8138
 
  __pyx_r = 0;
8139
 
  __pyx_L0:;
8140
 
  __Pyx_XGIVEREF(__pyx_r);
8141
 
  __Pyx_RefNannyFinishContext();
8142
 
  return __pyx_r;
8143
 
}
8144
 
 
8145
 
/* Python wrapper */
8146
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
8147
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_7printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
8148
 
  PyObject *__pyx_r = 0;
8149
 
  __Pyx_RefNannyDeclarations
8150
 
  __Pyx_RefNannySetupContext("printself (wrapper)", 0);
8151
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_6printself(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8152
 
  __Pyx_RefNannyFinishContext();
8153
 
  return __pyx_r;
8154
 
}
8155
 
 
8156
 
/* "adios.pyx":523
8157
 
 *         self.gp = NULL
8158
 
 * 
8159
 
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
8160
 
 *         assert self.gp != NULL, 'Not an open file'
8161
 
 *         print '=== AdiosGroup ==='
8162
 
 */
8163
 
 
8164
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_6printself(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8165
 
  PyObject *__pyx_r = NULL;
8166
 
  __Pyx_RefNannyDeclarations
8167
 
  PyObject *__pyx_t_1 = NULL;
8168
 
  int __pyx_lineno = 0;
8169
 
  const char *__pyx_filename = NULL;
8170
 
  int __pyx_clineno = 0;
8171
 
  __Pyx_RefNannySetupContext("printself", 0);
8172
 
  __Pyx_XDECREF(__pyx_r);
8173
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosGroup *)__pyx_v_self->__pyx_vtab)->printself(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8174
 
  __Pyx_GOTREF(__pyx_t_1);
8175
 
  __pyx_r = __pyx_t_1;
8176
 
  __pyx_t_1 = 0;
8177
 
  goto __pyx_L0;
8178
 
 
8179
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8180
 
  goto __pyx_L0;
8181
 
  __pyx_L1_error:;
8182
 
  __Pyx_XDECREF(__pyx_t_1);
8183
 
  __Pyx_AddTraceback("adios.AdiosGroup.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
8184
 
  __pyx_r = NULL;
8185
 
  __pyx_L0:;
8186
 
  __Pyx_XGIVEREF(__pyx_r);
8187
 
  __Pyx_RefNannyFinishContext();
8188
 
  return __pyx_r;
8189
 
}
8190
 
 
8191
 
/* Python wrapper */
8192
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
8193
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_4name_1__get__(PyObject *__pyx_v_self) {
8194
 
  PyObject *__pyx_r = 0;
8195
 
  __Pyx_RefNannyDeclarations
8196
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8197
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_4name___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8198
 
  __Pyx_RefNannyFinishContext();
8199
 
  return __pyx_r;
8200
 
}
8201
 
 
8202
 
/* "adios.pyx":485
8203
 
 * 
8204
 
 *     """ Public Memeber """
8205
 
 *     cpdef public bytes name             # <<<<<<<<<<<<<<
8206
 
 *     cpdef public int grpid
8207
 
 *     cpdef public int vars_count
8208
 
 */
8209
 
 
8210
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_4name___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8211
 
  PyObject *__pyx_r = NULL;
8212
 
  __Pyx_RefNannyDeclarations
8213
 
  __Pyx_RefNannySetupContext("__get__", 0);
8214
 
  __Pyx_XDECREF(__pyx_r);
8215
 
  __Pyx_INCREF(((PyObject *)__pyx_v_self->name));
8216
 
  __pyx_r = ((PyObject *)__pyx_v_self->name);
8217
 
  goto __pyx_L0;
8218
 
 
8219
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8220
 
  __pyx_L0:;
8221
 
  __Pyx_XGIVEREF(__pyx_r);
8222
 
  __Pyx_RefNannyFinishContext();
8223
 
  return __pyx_r;
8224
 
}
8225
 
 
8226
 
/* Python wrapper */
8227
 
static int __pyx_pw_5adios_10AdiosGroup_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8228
 
static int __pyx_pw_5adios_10AdiosGroup_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8229
 
  int __pyx_r;
8230
 
  __Pyx_RefNannyDeclarations
8231
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8232
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_4name_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8233
 
  __Pyx_RefNannyFinishContext();
8234
 
  return __pyx_r;
8235
 
}
8236
 
 
8237
 
static int __pyx_pf_5adios_10AdiosGroup_4name_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8238
 
  int __pyx_r;
8239
 
  __Pyx_RefNannyDeclarations
8240
 
  int __pyx_lineno = 0;
8241
 
  const char *__pyx_filename = NULL;
8242
 
  int __pyx_clineno = 0;
8243
 
  __Pyx_RefNannySetupContext("__set__", 0);
8244
 
  if (!(likely(PyBytes_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8245
 
  __Pyx_INCREF(__pyx_v_value);
8246
 
  __Pyx_GIVEREF(__pyx_v_value);
8247
 
  __Pyx_GOTREF(__pyx_v_self->name);
8248
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
8249
 
  __pyx_v_self->name = ((PyObject*)__pyx_v_value);
8250
 
 
8251
 
  __pyx_r = 0;
8252
 
  goto __pyx_L0;
8253
 
  __pyx_L1_error:;
8254
 
  __Pyx_AddTraceback("adios.AdiosGroup.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8255
 
  __pyx_r = -1;
8256
 
  __pyx_L0:;
8257
 
  __Pyx_RefNannyFinishContext();
8258
 
  return __pyx_r;
8259
 
}
8260
 
 
8261
 
/* Python wrapper */
8262
 
static int __pyx_pw_5adios_10AdiosGroup_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
8263
 
static int __pyx_pw_5adios_10AdiosGroup_4name_5__del__(PyObject *__pyx_v_self) {
8264
 
  int __pyx_r;
8265
 
  __Pyx_RefNannyDeclarations
8266
 
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
8267
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_4name_4__del__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8268
 
  __Pyx_RefNannyFinishContext();
8269
 
  return __pyx_r;
8270
 
}
8271
 
 
8272
 
static int __pyx_pf_5adios_10AdiosGroup_4name_4__del__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8273
 
  int __pyx_r;
8274
 
  __Pyx_RefNannyDeclarations
8275
 
  __Pyx_RefNannySetupContext("__del__", 0);
8276
 
  __Pyx_INCREF(Py_None);
8277
 
  __Pyx_GIVEREF(Py_None);
8278
 
  __Pyx_GOTREF(__pyx_v_self->name);
8279
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
8280
 
  __pyx_v_self->name = ((PyObject*)Py_None);
8281
 
 
8282
 
  __pyx_r = 0;
8283
 
  __Pyx_RefNannyFinishContext();
8284
 
  return __pyx_r;
8285
 
}
8286
 
 
8287
 
/* Python wrapper */
8288
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_5grpid_1__get__(PyObject *__pyx_v_self); /*proto*/
8289
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_5grpid_1__get__(PyObject *__pyx_v_self) {
8290
 
  PyObject *__pyx_r = 0;
8291
 
  __Pyx_RefNannyDeclarations
8292
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8293
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_5grpid___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8294
 
  __Pyx_RefNannyFinishContext();
8295
 
  return __pyx_r;
8296
 
}
8297
 
 
8298
 
/* "adios.pyx":486
8299
 
 *     """ Public Memeber """
8300
 
 *     cpdef public bytes name
8301
 
 *     cpdef public int grpid             # <<<<<<<<<<<<<<
8302
 
 *     cpdef public int vars_count
8303
 
 *     cpdef public int attrs_count
8304
 
 */
8305
 
 
8306
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_5grpid___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8307
 
  PyObject *__pyx_r = NULL;
8308
 
  __Pyx_RefNannyDeclarations
8309
 
  PyObject *__pyx_t_1 = NULL;
8310
 
  int __pyx_lineno = 0;
8311
 
  const char *__pyx_filename = NULL;
8312
 
  int __pyx_clineno = 0;
8313
 
  __Pyx_RefNannySetupContext("__get__", 0);
8314
 
  __Pyx_XDECREF(__pyx_r);
8315
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->grpid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8316
 
  __Pyx_GOTREF(__pyx_t_1);
8317
 
  __pyx_r = __pyx_t_1;
8318
 
  __pyx_t_1 = 0;
8319
 
  goto __pyx_L0;
8320
 
 
8321
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8322
 
  goto __pyx_L0;
8323
 
  __pyx_L1_error:;
8324
 
  __Pyx_XDECREF(__pyx_t_1);
8325
 
  __Pyx_AddTraceback("adios.AdiosGroup.grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8326
 
  __pyx_r = NULL;
8327
 
  __pyx_L0:;
8328
 
  __Pyx_XGIVEREF(__pyx_r);
8329
 
  __Pyx_RefNannyFinishContext();
8330
 
  return __pyx_r;
8331
 
}
8332
 
 
8333
 
/* Python wrapper */
8334
 
static int __pyx_pw_5adios_10AdiosGroup_5grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8335
 
static int __pyx_pw_5adios_10AdiosGroup_5grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8336
 
  int __pyx_r;
8337
 
  __Pyx_RefNannyDeclarations
8338
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8339
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_5grpid_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8340
 
  __Pyx_RefNannyFinishContext();
8341
 
  return __pyx_r;
8342
 
}
8343
 
 
8344
 
static int __pyx_pf_5adios_10AdiosGroup_5grpid_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8345
 
  int __pyx_r;
8346
 
  __Pyx_RefNannyDeclarations
8347
 
  int __pyx_t_1;
8348
 
  int __pyx_lineno = 0;
8349
 
  const char *__pyx_filename = NULL;
8350
 
  int __pyx_clineno = 0;
8351
 
  __Pyx_RefNannySetupContext("__set__", 0);
8352
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8353
 
  __pyx_v_self->grpid = __pyx_t_1;
8354
 
 
8355
 
  __pyx_r = 0;
8356
 
  goto __pyx_L0;
8357
 
  __pyx_L1_error:;
8358
 
  __Pyx_AddTraceback("adios.AdiosGroup.grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8359
 
  __pyx_r = -1;
8360
 
  __pyx_L0:;
8361
 
  __Pyx_RefNannyFinishContext();
8362
 
  return __pyx_r;
8363
 
}
8364
 
 
8365
 
/* Python wrapper */
8366
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_10vars_count_1__get__(PyObject *__pyx_v_self); /*proto*/
8367
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_10vars_count_1__get__(PyObject *__pyx_v_self) {
8368
 
  PyObject *__pyx_r = 0;
8369
 
  __Pyx_RefNannyDeclarations
8370
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8371
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_10vars_count___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8372
 
  __Pyx_RefNannyFinishContext();
8373
 
  return __pyx_r;
8374
 
}
8375
 
 
8376
 
/* "adios.pyx":487
8377
 
 *     cpdef public bytes name
8378
 
 *     cpdef public int grpid
8379
 
 *     cpdef public int vars_count             # <<<<<<<<<<<<<<
8380
 
 *     cpdef public int attrs_count
8381
 
 *     cpdef public int timestep
8382
 
 */
8383
 
 
8384
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_10vars_count___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8385
 
  PyObject *__pyx_r = NULL;
8386
 
  __Pyx_RefNannyDeclarations
8387
 
  PyObject *__pyx_t_1 = NULL;
8388
 
  int __pyx_lineno = 0;
8389
 
  const char *__pyx_filename = NULL;
8390
 
  int __pyx_clineno = 0;
8391
 
  __Pyx_RefNannySetupContext("__get__", 0);
8392
 
  __Pyx_XDECREF(__pyx_r);
8393
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->vars_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8394
 
  __Pyx_GOTREF(__pyx_t_1);
8395
 
  __pyx_r = __pyx_t_1;
8396
 
  __pyx_t_1 = 0;
8397
 
  goto __pyx_L0;
8398
 
 
8399
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8400
 
  goto __pyx_L0;
8401
 
  __pyx_L1_error:;
8402
 
  __Pyx_XDECREF(__pyx_t_1);
8403
 
  __Pyx_AddTraceback("adios.AdiosGroup.vars_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8404
 
  __pyx_r = NULL;
8405
 
  __pyx_L0:;
8406
 
  __Pyx_XGIVEREF(__pyx_r);
8407
 
  __Pyx_RefNannyFinishContext();
8408
 
  return __pyx_r;
8409
 
}
8410
 
 
8411
 
/* Python wrapper */
8412
 
static int __pyx_pw_5adios_10AdiosGroup_10vars_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8413
 
static int __pyx_pw_5adios_10AdiosGroup_10vars_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8414
 
  int __pyx_r;
8415
 
  __Pyx_RefNannyDeclarations
8416
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8417
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_10vars_count_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8418
 
  __Pyx_RefNannyFinishContext();
8419
 
  return __pyx_r;
8420
 
}
8421
 
 
8422
 
static int __pyx_pf_5adios_10AdiosGroup_10vars_count_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8423
 
  int __pyx_r;
8424
 
  __Pyx_RefNannyDeclarations
8425
 
  int __pyx_t_1;
8426
 
  int __pyx_lineno = 0;
8427
 
  const char *__pyx_filename = NULL;
8428
 
  int __pyx_clineno = 0;
8429
 
  __Pyx_RefNannySetupContext("__set__", 0);
8430
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8431
 
  __pyx_v_self->vars_count = __pyx_t_1;
8432
 
 
8433
 
  __pyx_r = 0;
8434
 
  goto __pyx_L0;
8435
 
  __pyx_L1_error:;
8436
 
  __Pyx_AddTraceback("adios.AdiosGroup.vars_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8437
 
  __pyx_r = -1;
8438
 
  __pyx_L0:;
8439
 
  __Pyx_RefNannyFinishContext();
8440
 
  return __pyx_r;
8441
 
}
8442
 
 
8443
 
/* Python wrapper */
8444
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_11attrs_count_1__get__(PyObject *__pyx_v_self); /*proto*/
8445
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_11attrs_count_1__get__(PyObject *__pyx_v_self) {
8446
 
  PyObject *__pyx_r = 0;
8447
 
  __Pyx_RefNannyDeclarations
8448
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8449
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_11attrs_count___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8450
 
  __Pyx_RefNannyFinishContext();
8451
 
  return __pyx_r;
8452
 
}
8453
 
 
8454
 
/* "adios.pyx":488
8455
 
 *     cpdef public int grpid
8456
 
 *     cpdef public int vars_count
8457
 
 *     cpdef public int attrs_count             # <<<<<<<<<<<<<<
8458
 
 *     cpdef public int timestep
8459
 
 *     cpdef public int lasttimestep
8460
 
 */
8461
 
 
8462
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_11attrs_count___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8463
 
  PyObject *__pyx_r = NULL;
8464
 
  __Pyx_RefNannyDeclarations
8465
 
  PyObject *__pyx_t_1 = NULL;
8466
 
  int __pyx_lineno = 0;
8467
 
  const char *__pyx_filename = NULL;
8468
 
  int __pyx_clineno = 0;
8469
 
  __Pyx_RefNannySetupContext("__get__", 0);
8470
 
  __Pyx_XDECREF(__pyx_r);
8471
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->attrs_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8472
 
  __Pyx_GOTREF(__pyx_t_1);
8473
 
  __pyx_r = __pyx_t_1;
8474
 
  __pyx_t_1 = 0;
8475
 
  goto __pyx_L0;
8476
 
 
8477
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8478
 
  goto __pyx_L0;
8479
 
  __pyx_L1_error:;
8480
 
  __Pyx_XDECREF(__pyx_t_1);
8481
 
  __Pyx_AddTraceback("adios.AdiosGroup.attrs_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8482
 
  __pyx_r = NULL;
8483
 
  __pyx_L0:;
8484
 
  __Pyx_XGIVEREF(__pyx_r);
8485
 
  __Pyx_RefNannyFinishContext();
8486
 
  return __pyx_r;
8487
 
}
8488
 
 
8489
 
/* Python wrapper */
8490
 
static int __pyx_pw_5adios_10AdiosGroup_11attrs_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8491
 
static int __pyx_pw_5adios_10AdiosGroup_11attrs_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8492
 
  int __pyx_r;
8493
 
  __Pyx_RefNannyDeclarations
8494
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8495
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_11attrs_count_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8496
 
  __Pyx_RefNannyFinishContext();
8497
 
  return __pyx_r;
8498
 
}
8499
 
 
8500
 
static int __pyx_pf_5adios_10AdiosGroup_11attrs_count_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8501
 
  int __pyx_r;
8502
 
  __Pyx_RefNannyDeclarations
8503
 
  int __pyx_t_1;
8504
 
  int __pyx_lineno = 0;
8505
 
  const char *__pyx_filename = NULL;
8506
 
  int __pyx_clineno = 0;
8507
 
  __Pyx_RefNannySetupContext("__set__", 0);
8508
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8509
 
  __pyx_v_self->attrs_count = __pyx_t_1;
8510
 
 
8511
 
  __pyx_r = 0;
8512
 
  goto __pyx_L0;
8513
 
  __pyx_L1_error:;
8514
 
  __Pyx_AddTraceback("adios.AdiosGroup.attrs_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8515
 
  __pyx_r = -1;
8516
 
  __pyx_L0:;
8517
 
  __Pyx_RefNannyFinishContext();
8518
 
  return __pyx_r;
8519
 
}
8520
 
 
8521
 
/* Python wrapper */
8522
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_8timestep_1__get__(PyObject *__pyx_v_self); /*proto*/
8523
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_8timestep_1__get__(PyObject *__pyx_v_self) {
8524
 
  PyObject *__pyx_r = 0;
8525
 
  __Pyx_RefNannyDeclarations
8526
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8527
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_8timestep___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8528
 
  __Pyx_RefNannyFinishContext();
8529
 
  return __pyx_r;
8530
 
}
8531
 
 
8532
 
/* "adios.pyx":489
8533
 
 *     cpdef public int vars_count
8534
 
 *     cpdef public int attrs_count
8535
 
 *     cpdef public int timestep             # <<<<<<<<<<<<<<
8536
 
 *     cpdef public int lasttimestep
8537
 
 * 
8538
 
 */
8539
 
 
8540
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_8timestep___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8541
 
  PyObject *__pyx_r = NULL;
8542
 
  __Pyx_RefNannyDeclarations
8543
 
  PyObject *__pyx_t_1 = NULL;
8544
 
  int __pyx_lineno = 0;
8545
 
  const char *__pyx_filename = NULL;
8546
 
  int __pyx_clineno = 0;
8547
 
  __Pyx_RefNannySetupContext("__get__", 0);
8548
 
  __Pyx_XDECREF(__pyx_r);
8549
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->timestep); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8550
 
  __Pyx_GOTREF(__pyx_t_1);
8551
 
  __pyx_r = __pyx_t_1;
8552
 
  __pyx_t_1 = 0;
8553
 
  goto __pyx_L0;
8554
 
 
8555
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8556
 
  goto __pyx_L0;
8557
 
  __pyx_L1_error:;
8558
 
  __Pyx_XDECREF(__pyx_t_1);
8559
 
  __Pyx_AddTraceback("adios.AdiosGroup.timestep.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8560
 
  __pyx_r = NULL;
8561
 
  __pyx_L0:;
8562
 
  __Pyx_XGIVEREF(__pyx_r);
8563
 
  __Pyx_RefNannyFinishContext();
8564
 
  return __pyx_r;
8565
 
}
8566
 
 
8567
 
/* Python wrapper */
8568
 
static int __pyx_pw_5adios_10AdiosGroup_8timestep_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8569
 
static int __pyx_pw_5adios_10AdiosGroup_8timestep_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8570
 
  int __pyx_r;
8571
 
  __Pyx_RefNannyDeclarations
8572
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8573
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_8timestep_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8574
 
  __Pyx_RefNannyFinishContext();
8575
 
  return __pyx_r;
8576
 
}
8577
 
 
8578
 
static int __pyx_pf_5adios_10AdiosGroup_8timestep_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8579
 
  int __pyx_r;
8580
 
  __Pyx_RefNannyDeclarations
8581
 
  int __pyx_t_1;
8582
 
  int __pyx_lineno = 0;
8583
 
  const char *__pyx_filename = NULL;
8584
 
  int __pyx_clineno = 0;
8585
 
  __Pyx_RefNannySetupContext("__set__", 0);
8586
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8587
 
  __pyx_v_self->timestep = __pyx_t_1;
8588
 
 
8589
 
  __pyx_r = 0;
8590
 
  goto __pyx_L0;
8591
 
  __pyx_L1_error:;
8592
 
  __Pyx_AddTraceback("adios.AdiosGroup.timestep.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8593
 
  __pyx_r = -1;
8594
 
  __pyx_L0:;
8595
 
  __Pyx_RefNannyFinishContext();
8596
 
  return __pyx_r;
8597
 
}
8598
 
 
8599
 
/* Python wrapper */
8600
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_12lasttimestep_1__get__(PyObject *__pyx_v_self); /*proto*/
8601
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_12lasttimestep_1__get__(PyObject *__pyx_v_self) {
8602
 
  PyObject *__pyx_r = 0;
8603
 
  __Pyx_RefNannyDeclarations
8604
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8605
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_12lasttimestep___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8606
 
  __Pyx_RefNannyFinishContext();
8607
 
  return __pyx_r;
8608
 
}
8609
 
 
8610
 
/* "adios.pyx":490
8611
 
 *     cpdef public int attrs_count
8612
 
 *     cpdef public int timestep
8613
 
 *     cpdef public int lasttimestep             # <<<<<<<<<<<<<<
8614
 
 * 
8615
 
 *     cpdef public dict var
8616
 
 */
8617
 
 
8618
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_12lasttimestep___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8619
 
  PyObject *__pyx_r = NULL;
8620
 
  __Pyx_RefNannyDeclarations
8621
 
  PyObject *__pyx_t_1 = NULL;
8622
 
  int __pyx_lineno = 0;
8623
 
  const char *__pyx_filename = NULL;
8624
 
  int __pyx_clineno = 0;
8625
 
  __Pyx_RefNannySetupContext("__get__", 0);
8626
 
  __Pyx_XDECREF(__pyx_r);
8627
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->lasttimestep); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8628
 
  __Pyx_GOTREF(__pyx_t_1);
8629
 
  __pyx_r = __pyx_t_1;
8630
 
  __pyx_t_1 = 0;
8631
 
  goto __pyx_L0;
8632
 
 
8633
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8634
 
  goto __pyx_L0;
8635
 
  __pyx_L1_error:;
8636
 
  __Pyx_XDECREF(__pyx_t_1);
8637
 
  __Pyx_AddTraceback("adios.AdiosGroup.lasttimestep.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8638
 
  __pyx_r = NULL;
8639
 
  __pyx_L0:;
8640
 
  __Pyx_XGIVEREF(__pyx_r);
8641
 
  __Pyx_RefNannyFinishContext();
8642
 
  return __pyx_r;
8643
 
}
8644
 
 
8645
 
/* Python wrapper */
8646
 
static int __pyx_pw_5adios_10AdiosGroup_12lasttimestep_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8647
 
static int __pyx_pw_5adios_10AdiosGroup_12lasttimestep_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8648
 
  int __pyx_r;
8649
 
  __Pyx_RefNannyDeclarations
8650
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8651
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_12lasttimestep_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8652
 
  __Pyx_RefNannyFinishContext();
8653
 
  return __pyx_r;
8654
 
}
8655
 
 
8656
 
static int __pyx_pf_5adios_10AdiosGroup_12lasttimestep_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8657
 
  int __pyx_r;
8658
 
  __Pyx_RefNannyDeclarations
8659
 
  int __pyx_t_1;
8660
 
  int __pyx_lineno = 0;
8661
 
  const char *__pyx_filename = NULL;
8662
 
  int __pyx_clineno = 0;
8663
 
  __Pyx_RefNannySetupContext("__set__", 0);
8664
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8665
 
  __pyx_v_self->lasttimestep = __pyx_t_1;
8666
 
 
8667
 
  __pyx_r = 0;
8668
 
  goto __pyx_L0;
8669
 
  __pyx_L1_error:;
8670
 
  __Pyx_AddTraceback("adios.AdiosGroup.lasttimestep.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8671
 
  __pyx_r = -1;
8672
 
  __pyx_L0:;
8673
 
  __Pyx_RefNannyFinishContext();
8674
 
  return __pyx_r;
8675
 
}
8676
 
 
8677
 
/* Python wrapper */
8678
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_3var_1__get__(PyObject *__pyx_v_self); /*proto*/
8679
 
static PyObject *__pyx_pw_5adios_10AdiosGroup_3var_1__get__(PyObject *__pyx_v_self) {
8680
 
  PyObject *__pyx_r = 0;
8681
 
  __Pyx_RefNannyDeclarations
8682
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
8683
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_3var___get__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8684
 
  __Pyx_RefNannyFinishContext();
8685
 
  return __pyx_r;
8686
 
}
8687
 
 
8688
 
/* "adios.pyx":492
8689
 
 *     cpdef public int lasttimestep
8690
 
 * 
8691
 
 *     cpdef public dict var             # <<<<<<<<<<<<<<
8692
 
 * 
8693
 
 *     def __init__(self, AdiosFile file, char * name):
8694
 
 */
8695
 
 
8696
 
static PyObject *__pyx_pf_5adios_10AdiosGroup_3var___get__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8697
 
  PyObject *__pyx_r = NULL;
8698
 
  __Pyx_RefNannyDeclarations
8699
 
  __Pyx_RefNannySetupContext("__get__", 0);
8700
 
  __Pyx_XDECREF(__pyx_r);
8701
 
  __Pyx_INCREF(((PyObject *)__pyx_v_self->var));
8702
 
  __pyx_r = ((PyObject *)__pyx_v_self->var);
8703
 
  goto __pyx_L0;
8704
 
 
8705
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8706
 
  __pyx_L0:;
8707
 
  __Pyx_XGIVEREF(__pyx_r);
8708
 
  __Pyx_RefNannyFinishContext();
8709
 
  return __pyx_r;
8710
 
}
8711
 
 
8712
 
/* Python wrapper */
8713
 
static int __pyx_pw_5adios_10AdiosGroup_3var_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
8714
 
static int __pyx_pw_5adios_10AdiosGroup_3var_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8715
 
  int __pyx_r;
8716
 
  __Pyx_RefNannyDeclarations
8717
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
8718
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_3var_2__set__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8719
 
  __Pyx_RefNannyFinishContext();
8720
 
  return __pyx_r;
8721
 
}
8722
 
 
8723
 
static int __pyx_pf_5adios_10AdiosGroup_3var_2__set__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self, PyObject *__pyx_v_value) {
8724
 
  int __pyx_r;
8725
 
  __Pyx_RefNannyDeclarations
8726
 
  int __pyx_lineno = 0;
8727
 
  const char *__pyx_filename = NULL;
8728
 
  int __pyx_clineno = 0;
8729
 
  __Pyx_RefNannySetupContext("__set__", 0);
8730
 
  if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected dict, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8731
 
  __Pyx_INCREF(__pyx_v_value);
8732
 
  __Pyx_GIVEREF(__pyx_v_value);
8733
 
  __Pyx_GOTREF(__pyx_v_self->var);
8734
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->var));
8735
 
  __pyx_v_self->var = ((PyObject*)__pyx_v_value);
8736
 
 
8737
 
  __pyx_r = 0;
8738
 
  goto __pyx_L0;
8739
 
  __pyx_L1_error:;
8740
 
  __Pyx_AddTraceback("adios.AdiosGroup.var.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8741
 
  __pyx_r = -1;
8742
 
  __pyx_L0:;
8743
 
  __Pyx_RefNannyFinishContext();
8744
 
  return __pyx_r;
8745
 
}
8746
 
 
8747
 
/* Python wrapper */
8748
 
static int __pyx_pw_5adios_10AdiosGroup_3var_5__del__(PyObject *__pyx_v_self); /*proto*/
8749
 
static int __pyx_pw_5adios_10AdiosGroup_3var_5__del__(PyObject *__pyx_v_self) {
8750
 
  int __pyx_r;
8751
 
  __Pyx_RefNannyDeclarations
8752
 
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
8753
 
  __pyx_r = __pyx_pf_5adios_10AdiosGroup_3var_4__del__(((struct __pyx_obj_5adios_AdiosGroup *)__pyx_v_self));
8754
 
  __Pyx_RefNannyFinishContext();
8755
 
  return __pyx_r;
8756
 
}
8757
 
 
8758
 
static int __pyx_pf_5adios_10AdiosGroup_3var_4__del__(struct __pyx_obj_5adios_AdiosGroup *__pyx_v_self) {
8759
 
  int __pyx_r;
8760
 
  __Pyx_RefNannyDeclarations
8761
 
  __Pyx_RefNannySetupContext("__del__", 0);
8762
 
  __Pyx_INCREF(Py_None);
8763
 
  __Pyx_GIVEREF(Py_None);
8764
 
  __Pyx_GOTREF(__pyx_v_self->var);
8765
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->var));
8766
 
  __pyx_v_self->var = ((PyObject*)Py_None);
8767
 
 
8768
 
  __pyx_r = 0;
8769
 
  __Pyx_RefNannyFinishContext();
8770
 
  return __pyx_r;
8771
 
}
8772
 
 
8773
 
/* Python wrapper */
8774
 
static int __pyx_pw_5adios_13AdiosVariable_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8775
 
static int __pyx_pw_5adios_13AdiosVariable_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8776
 
  struct __pyx_obj_5adios_AdiosGroup *__pyx_v_group = 0;
8777
 
  char *__pyx_v_name;
8778
 
  int __pyx_lineno = 0;
8779
 
  const char *__pyx_filename = NULL;
8780
 
  int __pyx_clineno = 0;
8781
 
  int __pyx_r;
8782
 
  __Pyx_RefNannyDeclarations
8783
 
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
8784
 
  {
8785
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__group,&__pyx_n_s__name,0};
8786
 
    PyObject* values[2] = {0,0};
8787
 
    if (unlikely(__pyx_kwds)) {
8788
 
      Py_ssize_t kw_args;
8789
 
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8790
 
      switch (pos_args) {
8791
 
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8792
 
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8793
 
        case  0: break;
8794
 
        default: goto __pyx_L5_argtuple_error;
8795
 
      }
8796
 
      kw_args = PyDict_Size(__pyx_kwds);
8797
 
      switch (pos_args) {
8798
 
        case  0:
8799
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__group)) != 0)) kw_args--;
8800
 
        else goto __pyx_L5_argtuple_error;
8801
 
        case  1:
8802
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name)) != 0)) kw_args--;
8803
 
        else {
8804
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8805
 
        }
8806
 
      }
8807
 
      if (unlikely(kw_args > 0)) {
8808
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8809
 
      }
8810
 
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
8811
 
      goto __pyx_L5_argtuple_error;
8812
 
    } else {
8813
 
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8814
 
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8815
 
    }
8816
 
    __pyx_v_group = ((struct __pyx_obj_5adios_AdiosGroup *)values[0]);
8817
 
    __pyx_v_name = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8818
 
  }
8819
 
  goto __pyx_L4_argument_unpacking_done;
8820
 
  __pyx_L5_argtuple_error:;
8821
 
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8822
 
  __pyx_L3_error:;
8823
 
  __Pyx_AddTraceback("adios.AdiosVariable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8824
 
  __Pyx_RefNannyFinishContext();
8825
 
  return -1;
8826
 
  __pyx_L4_argument_unpacking_done:;
8827
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_group), __pyx_ptype_5adios_AdiosGroup, 1, "group", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8828
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable___init__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), __pyx_v_group, __pyx_v_name);
8829
 
  goto __pyx_L0;
8830
 
  __pyx_L1_error:;
8831
 
  __pyx_r = -1;
8832
 
  __pyx_L0:;
8833
 
  __Pyx_RefNannyFinishContext();
8834
 
  return __pyx_r;
8835
 
}
8836
 
 
8837
 
/* "adios.pyx":543
8838
 
 *     cpdef public int characteristics_count
8839
 
 * 
8840
 
 *     def __init__(self, AdiosGroup group, char * name):             # <<<<<<<<<<<<<<
8841
 
 *         self.group = group
8842
 
 *         self.vp = NULL
8843
 
 */
8844
 
 
8845
 
static int __pyx_pf_5adios_13AdiosVariable___init__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, struct __pyx_obj_5adios_AdiosGroup *__pyx_v_group, char *__pyx_v_name) {
8846
 
  int __pyx_v_i;
8847
 
  int __pyx_r;
8848
 
  __Pyx_RefNannyDeclarations
8849
 
  PyObject *__pyx_t_1 = NULL;
8850
 
  int __pyx_t_2;
8851
 
  int __pyx_t_3;
8852
 
  PyObject *__pyx_t_4 = NULL;
8853
 
  int __pyx_lineno = 0;
8854
 
  const char *__pyx_filename = NULL;
8855
 
  int __pyx_clineno = 0;
8856
 
  __Pyx_RefNannySetupContext("__init__", 0);
8857
 
 
8858
 
  /* "adios.pyx":544
8859
 
 * 
8860
 
 *     def __init__(self, AdiosGroup group, char * name):
8861
 
 *         self.group = group             # <<<<<<<<<<<<<<
8862
 
 *         self.vp = NULL
8863
 
 * 
8864
 
 */
8865
 
  __Pyx_INCREF(((PyObject *)__pyx_v_group));
8866
 
  __Pyx_GIVEREF(((PyObject *)__pyx_v_group));
8867
 
  __Pyx_GOTREF(__pyx_v_self->group);
8868
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->group));
8869
 
  __pyx_v_self->group = __pyx_v_group;
8870
 
 
8871
 
  /* "adios.pyx":545
8872
 
 *     def __init__(self, AdiosGroup group, char * name):
8873
 
 *         self.group = group
8874
 
 *         self.vp = NULL             # <<<<<<<<<<<<<<
8875
 
 * 
8876
 
 *         self.vp = adios_inq_var(self.group.gp, name)
8877
 
 */
8878
 
  __pyx_v_self->vp = NULL;
8879
 
 
8880
 
  /* "adios.pyx":547
8881
 
 *         self.vp = NULL
8882
 
 * 
8883
 
 *         self.vp = adios_inq_var(self.group.gp, name)             # <<<<<<<<<<<<<<
8884
 
 *         assert self.group.gp != NULL, 'Not an open group'
8885
 
 * 
8886
 
 */
8887
 
  __pyx_v_self->vp = adios_inq_var(__pyx_v_self->group->gp, __pyx_v_name);
8888
 
 
8889
 
  /* "adios.pyx":548
8890
 
 * 
8891
 
 *         self.vp = adios_inq_var(self.group.gp, name)
8892
 
 *         assert self.group.gp != NULL, 'Not an open group'             # <<<<<<<<<<<<<<
8893
 
 * 
8894
 
 *         self.name                  = name
8895
 
 */
8896
 
  #ifndef CYTHON_WITHOUT_ASSERTIONS
8897
 
  if (unlikely(!((__pyx_v_self->group->gp != NULL) != 0))) {
8898
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_15));
8899
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8900
 
  }
8901
 
  #endif
8902
 
 
8903
 
  /* "adios.pyx":550
8904
 
 *         assert self.group.gp != NULL, 'Not an open group'
8905
 
 * 
8906
 
 *         self.name                  = name             # <<<<<<<<<<<<<<
8907
 
 *         self.varid                 = self.vp.varid
8908
 
 *         self.type                  = adios2nptype(self.vp.type)
8909
 
 */
8910
 
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8911
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
8912
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
8913
 
  __Pyx_GOTREF(__pyx_v_self->name);
8914
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
8915
 
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
8916
 
  __pyx_t_1 = 0;
8917
 
 
8918
 
  /* "adios.pyx":551
8919
 
 * 
8920
 
 *         self.name                  = name
8921
 
 *         self.varid                 = self.vp.varid             # <<<<<<<<<<<<<<
8922
 
 *         self.type                  = adios2nptype(self.vp.type)
8923
 
 *         self.ndim                  = self.vp.ndim
 
7247
 * 
 
7248
 *         self.name = name
 
7249
 *         self.varid = self.vp.varid             # <<<<<<<<<<<<<<
 
7250
 *         self.type = adios2nptype(self.vp.type)
 
7251
 *         self.ndim = self.vp.ndim
8924
7252
 */
8925
7253
  __pyx_t_2 = __pyx_v_self->vp->varid;
8926
7254
  __pyx_v_self->varid = __pyx_t_2;
8927
7255
 
8928
 
  /* "adios.pyx":552
8929
 
 *         self.name                  = name
8930
 
 *         self.varid                 = self.vp.varid
8931
 
 *         self.type                  = adios2nptype(self.vp.type)             # <<<<<<<<<<<<<<
8932
 
 *         self.ndim                  = self.vp.ndim
8933
 
 *         self.timedim               = self.vp.timedim
 
7256
  /* "adios.pyx":507
 
7257
 *         self.name = name
 
7258
 *         self.varid = self.vp.varid
 
7259
 *         self.type = adios2nptype(self.vp.type)             # <<<<<<<<<<<<<<
 
7260
 *         self.ndim = self.vp.ndim
 
7261
 *         self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)])
8934
7262
 */
8935
 
  __pyx_t_1 = ((PyObject *)__pyx_f_5adios_adios2nptype(__pyx_v_self->vp->type, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7263
  __pyx_t_1 = ((PyObject *)__pyx_f_5adios_adios2nptype(__pyx_v_self->vp->type)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8936
7264
  __Pyx_GOTREF(__pyx_t_1);
8937
7265
  __Pyx_GIVEREF(__pyx_t_1);
8938
7266
  __Pyx_GOTREF(__pyx_v_self->type);
8940
7268
  __pyx_v_self->type = ((PyObject*)__pyx_t_1);
8941
7269
  __pyx_t_1 = 0;
8942
7270
 
8943
 
  /* "adios.pyx":553
8944
 
 *         self.varid                 = self.vp.varid
8945
 
 *         self.type                  = adios2nptype(self.vp.type)
8946
 
 *         self.ndim                  = self.vp.ndim             # <<<<<<<<<<<<<<
8947
 
 *         self.timedim               = self.vp.timedim
8948
 
 *         self.characteristics_count = self.vp.characteristics_count
 
7271
  /* "adios.pyx":508
 
7272
 *         self.varid = self.vp.varid
 
7273
 *         self.type = adios2nptype(self.vp.type)
 
7274
 *         self.ndim = self.vp.ndim             # <<<<<<<<<<<<<<
 
7275
 *         self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)])
 
7276
 *         self.nsteps = self.vp.nsteps
8949
7277
 */
8950
7278
  __pyx_t_2 = __pyx_v_self->vp->ndim;
8951
7279
  __pyx_v_self->ndim = __pyx_t_2;
8952
7280
 
8953
 
  /* "adios.pyx":554
8954
 
 *         self.type                  = adios2nptype(self.vp.type)
8955
 
 *         self.ndim                  = self.vp.ndim
8956
 
 *         self.timedim               = self.vp.timedim             # <<<<<<<<<<<<<<
8957
 
 *         self.characteristics_count = self.vp.characteristics_count
8958
 
 * 
8959
 
 */
8960
 
  __pyx_t_2 = __pyx_v_self->vp->timedim;
8961
 
  __pyx_v_self->timedim = __pyx_t_2;
8962
 
 
8963
 
  /* "adios.pyx":555
8964
 
 *         self.ndim                  = self.vp.ndim
8965
 
 *         self.timedim               = self.vp.timedim
8966
 
 *         self.characteristics_count = self.vp.characteristics_count             # <<<<<<<<<<<<<<
8967
 
 * 
8968
 
 *         self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)])
8969
 
 */
8970
 
  __pyx_t_2 = __pyx_v_self->vp->characteristics_count;
8971
 
  __pyx_v_self->characteristics_count = __pyx_t_2;
8972
 
 
8973
 
  /* "adios.pyx":557
8974
 
 *         self.characteristics_count = self.vp.characteristics_count
8975
 
 * 
 
7281
  /* "adios.pyx":509
 
7282
 *         self.type = adios2nptype(self.vp.type)
 
7283
 *         self.ndim = self.vp.ndim
8976
7284
 *         self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)])             # <<<<<<<<<<<<<<
 
7285
 *         self.nsteps = self.vp.nsteps
8977
7286
 * 
8978
 
 *     def __del__(self):
8979
7287
 */
8980
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7288
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8981
7289
  __Pyx_GOTREF(__pyx_t_1);
8982
7290
  __pyx_t_2 = __pyx_v_self->vp->ndim;
8983
7291
  for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
8984
7292
    __pyx_v_i = __pyx_t_3;
8985
 
    __pyx_t_4 = __Pyx_PyInt_to_py_uint64_t((__pyx_v_self->vp->dims[__pyx_v_i])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7293
    __pyx_t_4 = __Pyx_PyInt_From_uint64_t((__pyx_v_self->vp->dims[__pyx_v_i])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8986
7294
    __Pyx_GOTREF(__pyx_t_4);
8987
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7295
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8988
7296
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
8989
7297
  }
8990
 
  __pyx_t_4 = ((PyObject *)PyList_AsTuple(((PyObject*)__pyx_t_1))); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8991
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
8992
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
8993
 
  __Pyx_GIVEREF(((PyObject *)__pyx_t_4));
 
7298
  __pyx_t_4 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7299
  __Pyx_GOTREF(__pyx_t_4);
 
7300
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7301
  __Pyx_GIVEREF(__pyx_t_4);
8994
7302
  __Pyx_GOTREF(__pyx_v_self->dims);
8995
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->dims));
 
7303
  __Pyx_DECREF(__pyx_v_self->dims);
8996
7304
  __pyx_v_self->dims = ((PyObject*)__pyx_t_4);
8997
7305
  __pyx_t_4 = 0;
8998
7306
 
 
7307
  /* "adios.pyx":510
 
7308
 *         self.ndim = self.vp.ndim
 
7309
 *         self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)])
 
7310
 *         self.nsteps = self.vp.nsteps             # <<<<<<<<<<<<<<
 
7311
 * 
 
7312
 *     def __del__(self):
 
7313
 */
 
7314
  __pyx_t_2 = __pyx_v_self->vp->nsteps;
 
7315
  __pyx_v_self->nsteps = __pyx_t_2;
 
7316
 
 
7317
  /* "adios.pyx":497
 
7318
 *     cpdef public int nsteps
 
7319
 * 
 
7320
 *     def __init__(self, file file, char * name):             # <<<<<<<<<<<<<<
 
7321
 *         self.file = file
 
7322
 *         self.vp = NULL
 
7323
 */
 
7324
 
 
7325
  /* function exit code */
8999
7326
  __pyx_r = 0;
9000
7327
  goto __pyx_L0;
9001
7328
  __pyx_L1_error:;
9002
7329
  __Pyx_XDECREF(__pyx_t_1);
9003
7330
  __Pyx_XDECREF(__pyx_t_4);
9004
 
  __Pyx_AddTraceback("adios.AdiosVariable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
7331
  __Pyx_AddTraceback("adios.var.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9005
7332
  __pyx_r = -1;
9006
7333
  __pyx_L0:;
9007
7334
  __Pyx_RefNannyFinishContext();
9008
7335
  return __pyx_r;
9009
7336
}
9010
7337
 
 
7338
/* "adios.pyx":512
 
7339
 *         self.nsteps = self.vp.nsteps
 
7340
 * 
 
7341
 *     def __del__(self):             # <<<<<<<<<<<<<<
 
7342
 *         self.close()
 
7343
 * 
 
7344
 */
 
7345
 
9011
7346
/* Python wrapper */
9012
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
9013
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
 
7347
static PyObject *__pyx_pw_5adios_3var_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
7348
static PyObject *__pyx_pw_5adios_3var_3__del__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
9014
7349
  PyObject *__pyx_r = 0;
9015
7350
  __Pyx_RefNannyDeclarations
9016
7351
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
9017
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_2__del__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
7352
  __pyx_r = __pyx_pf_5adios_3var_2__del__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
7353
 
 
7354
  /* function exit code */
9018
7355
  __Pyx_RefNannyFinishContext();
9019
7356
  return __pyx_r;
9020
7357
}
9021
7358
 
9022
 
/* "adios.pyx":559
9023
 
 *         self.dims = tuple([self.vp.dims[i] for i in range(self.vp.ndim)])
9024
 
 * 
9025
 
 *     def __del__(self):             # <<<<<<<<<<<<<<
9026
 
 *         self.close()
9027
 
 * 
9028
 
 */
9029
 
 
9030
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_2__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
7359
static PyObject *__pyx_pf_5adios_3var_2__del__(struct __pyx_obj_5adios_var *__pyx_v_self) {
9031
7360
  PyObject *__pyx_r = NULL;
9032
7361
  __Pyx_RefNannyDeclarations
9033
7362
  PyObject *__pyx_t_1 = NULL;
9036
7365
  int __pyx_clineno = 0;
9037
7366
  __Pyx_RefNannySetupContext("__del__", 0);
9038
7367
 
9039
 
  /* "adios.pyx":560
 
7368
  /* "adios.pyx":513
9040
7369
 * 
9041
7370
 *     def __del__(self):
9042
7371
 *         self.close()             # <<<<<<<<<<<<<<
9043
7372
 * 
9044
7373
 *     cpdef close(self):
9045
7374
 */
9046
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosVariable *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7375
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_var *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9047
7376
  __Pyx_GOTREF(__pyx_t_1);
9048
7377
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9049
7378
 
 
7379
  /* "adios.pyx":512
 
7380
 *         self.nsteps = self.vp.nsteps
 
7381
 * 
 
7382
 *     def __del__(self):             # <<<<<<<<<<<<<<
 
7383
 *         self.close()
 
7384
 * 
 
7385
 */
 
7386
 
 
7387
  /* function exit code */
9050
7388
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9051
7389
  goto __pyx_L0;
9052
7390
  __pyx_L1_error:;
9053
7391
  __Pyx_XDECREF(__pyx_t_1);
9054
 
  __Pyx_AddTraceback("adios.AdiosVariable.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
7392
  __Pyx_AddTraceback("adios.var.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9055
7393
  __pyx_r = NULL;
9056
7394
  __pyx_L0:;
9057
7395
  __Pyx_XGIVEREF(__pyx_r);
9059
7397
  return __pyx_r;
9060
7398
}
9061
7399
 
9062
 
/* "adios.pyx":562
 
7400
/* "adios.pyx":515
9063
7401
 *         self.close()
9064
7402
 * 
9065
7403
 *     cpdef close(self):             # <<<<<<<<<<<<<<
9066
 
 *         assert self.vp != NULL, 'Not an open file'
 
7404
 *         assert self.vp != NULL, 'Not an open var'
9067
7405
 *         adios_free_varinfo(self.vp)
9068
7406
 */
9069
7407
 
9070
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
9071
 
static PyObject *__pyx_f_5adios_13AdiosVariable_close(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, int __pyx_skip_dispatch) {
 
7408
static PyObject *__pyx_pw_5adios_3var_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
7409
static PyObject *__pyx_f_5adios_3var_close(struct __pyx_obj_5adios_var *__pyx_v_self, int __pyx_skip_dispatch) {
9072
7410
  PyObject *__pyx_r = NULL;
9073
7411
  __Pyx_RefNannyDeclarations
9074
7412
  PyObject *__pyx_t_1 = NULL;
9081
7419
  if (unlikely(__pyx_skip_dispatch)) ;
9082
7420
  /* Check if overridden in Python */
9083
7421
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
9084
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7422
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9085
7423
    __Pyx_GOTREF(__pyx_t_1);
9086
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_13AdiosVariable_5close)) {
 
7424
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_3var_5close)) {
9087
7425
      __Pyx_XDECREF(__pyx_r);
9088
 
      __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7426
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9089
7427
      __Pyx_GOTREF(__pyx_t_2);
9090
7428
      __pyx_r = __pyx_t_2;
9091
7429
      __pyx_t_2 = 0;
9095
7433
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9096
7434
  }
9097
7435
 
9098
 
  /* "adios.pyx":563
 
7436
  /* "adios.pyx":516
9099
7437
 * 
9100
7438
 *     cpdef close(self):
9101
 
 *         assert self.vp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
 
7439
 *         assert self.vp != NULL, 'Not an open var'             # <<<<<<<<<<<<<<
9102
7440
 *         adios_free_varinfo(self.vp)
9103
7441
 *         self.vp = NULL
9104
7442
 */
9105
7443
  #ifndef CYTHON_WITHOUT_ASSERTIONS
9106
 
  if (unlikely(!((__pyx_v_self->vp != NULL) != 0))) {
9107
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
9108
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7444
  if (unlikely(!Py_OptimizeFlag)) {
 
7445
    if (unlikely(!((__pyx_v_self->vp != NULL) != 0))) {
 
7446
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_an_open_var);
 
7447
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7448
    }
9109
7449
  }
9110
7450
  #endif
9111
7451
 
9112
 
  /* "adios.pyx":564
 
7452
  /* "adios.pyx":517
9113
7453
 *     cpdef close(self):
9114
 
 *         assert self.vp != NULL, 'Not an open file'
 
7454
 *         assert self.vp != NULL, 'Not an open var'
9115
7455
 *         adios_free_varinfo(self.vp)             # <<<<<<<<<<<<<<
9116
7456
 *         self.vp = NULL
9117
7457
 * 
9118
7458
 */
9119
7459
  adios_free_varinfo(__pyx_v_self->vp);
9120
7460
 
9121
 
  /* "adios.pyx":565
9122
 
 *         assert self.vp != NULL, 'Not an open file'
 
7461
  /* "adios.pyx":518
 
7462
 *         assert self.vp != NULL, 'Not an open var'
9123
7463
 *         adios_free_varinfo(self.vp)
9124
7464
 *         self.vp = NULL             # <<<<<<<<<<<<<<
9125
7465
 * 
9126
 
 *     cpdef read(self, tuple offset = (), tuple count = ()):
 
7466
 *     cpdef read(self, tuple offset = (), tuple count = (), from_steps = 0, nsteps = 1):
9127
7467
 */
9128
7468
  __pyx_v_self->vp = NULL;
9129
7469
 
 
7470
  /* "adios.pyx":515
 
7471
 *         self.close()
 
7472
 * 
 
7473
 *     cpdef close(self):             # <<<<<<<<<<<<<<
 
7474
 *         assert self.vp != NULL, 'Not an open var'
 
7475
 *         adios_free_varinfo(self.vp)
 
7476
 */
 
7477
 
 
7478
  /* function exit code */
9130
7479
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9131
7480
  goto __pyx_L0;
9132
7481
  __pyx_L1_error:;
9133
7482
  __Pyx_XDECREF(__pyx_t_1);
9134
7483
  __Pyx_XDECREF(__pyx_t_2);
9135
 
  __Pyx_AddTraceback("adios.AdiosVariable.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
7484
  __Pyx_AddTraceback("adios.var.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
9136
7485
  __pyx_r = 0;
9137
7486
  __pyx_L0:;
9138
7487
  __Pyx_XGIVEREF(__pyx_r);
9141
7490
}
9142
7491
 
9143
7492
/* Python wrapper */
9144
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
9145
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
 
7493
static PyObject *__pyx_pw_5adios_3var_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
7494
static PyObject *__pyx_pw_5adios_3var_5close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
9146
7495
  PyObject *__pyx_r = 0;
9147
7496
  __Pyx_RefNannyDeclarations
9148
7497
  __Pyx_RefNannySetupContext("close (wrapper)", 0);
9149
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4close(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
7498
  __pyx_r = __pyx_pf_5adios_3var_4close(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
7499
 
 
7500
  /* function exit code */
9150
7501
  __Pyx_RefNannyFinishContext();
9151
7502
  return __pyx_r;
9152
7503
}
9153
7504
 
9154
 
/* "adios.pyx":562
9155
 
 *         self.close()
9156
 
 * 
9157
 
 *     cpdef close(self):             # <<<<<<<<<<<<<<
9158
 
 *         assert self.vp != NULL, 'Not an open file'
9159
 
 *         adios_free_varinfo(self.vp)
9160
 
 */
9161
 
 
9162
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4close(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
7505
static PyObject *__pyx_pf_5adios_3var_4close(struct __pyx_obj_5adios_var *__pyx_v_self) {
9163
7506
  PyObject *__pyx_r = NULL;
9164
7507
  __Pyx_RefNannyDeclarations
9165
7508
  PyObject *__pyx_t_1 = NULL;
9168
7511
  int __pyx_clineno = 0;
9169
7512
  __Pyx_RefNannySetupContext("close", 0);
9170
7513
  __Pyx_XDECREF(__pyx_r);
9171
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosVariable *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7514
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_var *)__pyx_v_self->__pyx_vtab)->close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9172
7515
  __Pyx_GOTREF(__pyx_t_1);
9173
7516
  __pyx_r = __pyx_t_1;
9174
7517
  __pyx_t_1 = 0;
9175
7518
  goto __pyx_L0;
9176
7519
 
9177
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9178
 
  goto __pyx_L0;
 
7520
  /* function exit code */
9179
7521
  __pyx_L1_error:;
9180
7522
  __Pyx_XDECREF(__pyx_t_1);
9181
 
  __Pyx_AddTraceback("adios.AdiosVariable.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
7523
  __Pyx_AddTraceback("adios.var.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
9182
7524
  __pyx_r = NULL;
9183
7525
  __pyx_L0:;
9184
7526
  __Pyx_XGIVEREF(__pyx_r);
9186
7528
  return __pyx_r;
9187
7529
}
9188
7530
 
9189
 
/* "adios.pyx":567
 
7531
/* "adios.pyx":520
9190
7532
 *         self.vp = NULL
9191
7533
 * 
9192
 
 *     cpdef read(self, tuple offset = (), tuple count = ()):             # <<<<<<<<<<<<<<
9193
 
 *         cdef type ntype = adios2nptype(self.vp.type)
9194
 
 *         assert ntype is not None, 'Data type is not supported yet'
 
7534
 *     cpdef read(self, tuple offset = (), tuple count = (), from_steps = 0, nsteps = 1):             # <<<<<<<<<<<<<<
 
7535
 *         assert self.type is not None, 'Data type is not supported yet'
 
7536
 *         assert from_steps + nsteps <= self.nsteps, 'Step index is out of range'
9195
7537
 */
9196
7538
 
9197
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_7read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
9198
 
static PyObject *__pyx_f_5adios_13AdiosVariable_read(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_13AdiosVariable_read *__pyx_optional_args) {
 
7539
static PyObject *__pyx_pw_5adios_3var_7read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
7540
static PyObject *__pyx_f_5adios_3var_read(struct __pyx_obj_5adios_var *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_3var_read *__pyx_optional_args) {
9199
7541
  PyObject *__pyx_v_offset = ((PyObject*)__pyx_empty_tuple);
9200
7542
  PyObject *__pyx_v_count = ((PyObject*)__pyx_empty_tuple);
9201
 
  PyObject *__pyx_v_ntype = 0;
 
7543
  PyObject *__pyx_v_from_steps = ((PyObject *)__pyx_int_0);
 
7544
  PyObject *__pyx_v_nsteps = ((PyObject *)__pyx_int_1);
9202
7545
  PyObject *__pyx_v_lshape = 0;
9203
7546
  PyArrayObject *__pyx_v_npshape = 0;
9204
7547
  PyArrayObject *__pyx_v_npoffset = 0;
9205
7548
  PyArrayObject *__pyx_v_npcount = 0;
 
7549
  PyObject *__pyx_v_shape = NULL;
9206
7550
  PyArrayObject *__pyx_v_var = 0;
9207
 
  int64_t __pyx_v_nbytes;
 
7551
  ADIOS_SELECTION *__pyx_v_sel;
9208
7552
  int __pyx_v_i;
9209
7553
  PyObject *__pyx_r = NULL;
9210
7554
  __Pyx_RefNannyDeclarations
9217
7561
  PyObject *__pyx_t_7 = NULL;
9218
7562
  PyObject *__pyx_t_8 = NULL;
9219
7563
  Py_ssize_t __pyx_t_9;
 
7564
  int __pyx_t_10;
9220
7565
  int __pyx_lineno = 0;
9221
7566
  const char *__pyx_filename = NULL;
9222
7567
  int __pyx_clineno = 0;
9226
7571
      __pyx_v_offset = __pyx_optional_args->offset;
9227
7572
      if (__pyx_optional_args->__pyx_n > 1) {
9228
7573
        __pyx_v_count = __pyx_optional_args->count;
 
7574
        if (__pyx_optional_args->__pyx_n > 2) {
 
7575
          __pyx_v_from_steps = __pyx_optional_args->from_steps;
 
7576
          if (__pyx_optional_args->__pyx_n > 3) {
 
7577
            __pyx_v_nsteps = __pyx_optional_args->nsteps;
 
7578
          }
 
7579
        }
9229
7580
      }
9230
7581
    }
9231
7582
  }
9233
7584
  if (unlikely(__pyx_skip_dispatch)) ;
9234
7585
  /* Check if overridden in Python */
9235
7586
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
9236
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__read); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7587
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9237
7588
    __Pyx_GOTREF(__pyx_t_1);
9238
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_13AdiosVariable_7read)) {
 
7589
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_3var_7read)) {
9239
7590
      __Pyx_XDECREF(__pyx_r);
9240
 
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7591
      __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9241
7592
      __Pyx_GOTREF(__pyx_t_2);
9242
 
      __Pyx_INCREF(((PyObject *)__pyx_v_offset));
9243
 
      PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_offset));
9244
 
      __Pyx_GIVEREF(((PyObject *)__pyx_v_offset));
9245
 
      __Pyx_INCREF(((PyObject *)__pyx_v_count));
9246
 
      PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_count));
9247
 
      __Pyx_GIVEREF(((PyObject *)__pyx_v_count));
9248
 
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7593
      __Pyx_INCREF(__pyx_v_offset);
 
7594
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_offset);
 
7595
      __Pyx_GIVEREF(__pyx_v_offset);
 
7596
      __Pyx_INCREF(__pyx_v_count);
 
7597
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_count);
 
7598
      __Pyx_GIVEREF(__pyx_v_count);
 
7599
      __Pyx_INCREF(__pyx_v_from_steps);
 
7600
      PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_from_steps);
 
7601
      __Pyx_GIVEREF(__pyx_v_from_steps);
 
7602
      __Pyx_INCREF(__pyx_v_nsteps);
 
7603
      PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_nsteps);
 
7604
      __Pyx_GIVEREF(__pyx_v_nsteps);
 
7605
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9249
7606
      __Pyx_GOTREF(__pyx_t_3);
9250
 
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7607
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9251
7608
      __pyx_r = __pyx_t_3;
9252
7609
      __pyx_t_3 = 0;
9253
7610
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9256
7613
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9257
7614
  }
9258
7615
 
9259
 
  /* "adios.pyx":568
 
7616
  /* "adios.pyx":521
9260
7617
 * 
9261
 
 *     cpdef read(self, tuple offset = (), tuple count = ()):
9262
 
 *         cdef type ntype = adios2nptype(self.vp.type)             # <<<<<<<<<<<<<<
9263
 
 *         assert ntype is not None, 'Data type is not supported yet'
 
7618
 *     cpdef read(self, tuple offset = (), tuple count = (), from_steps = 0, nsteps = 1):
 
7619
 *         assert self.type is not None, 'Data type is not supported yet'             # <<<<<<<<<<<<<<
 
7620
 *         assert from_steps + nsteps <= self.nsteps, 'Step index is out of range'
9264
7621
 * 
9265
7622
 */
9266
 
  __pyx_t_1 = ((PyObject *)__pyx_f_5adios_adios2nptype(__pyx_v_self->vp->type, 0)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9267
 
  __Pyx_GOTREF(__pyx_t_1);
9268
 
  __pyx_v_ntype = ((PyObject*)__pyx_t_1);
9269
 
  __pyx_t_1 = 0;
 
7623
  #ifndef CYTHON_WITHOUT_ASSERTIONS
 
7624
  if (unlikely(!Py_OptimizeFlag)) {
 
7625
    __pyx_t_4 = (__pyx_v_self->type != ((PyObject*)Py_None));
 
7626
    if (unlikely(!(__pyx_t_4 != 0))) {
 
7627
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Data_type_is_not_supported_yet);
 
7628
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7629
    }
 
7630
  }
 
7631
  #endif
9270
7632
 
9271
 
  /* "adios.pyx":569
9272
 
 *     cpdef read(self, tuple offset = (), tuple count = ()):
9273
 
 *         cdef type ntype = adios2nptype(self.vp.type)
9274
 
 *         assert ntype is not None, 'Data type is not supported yet'             # <<<<<<<<<<<<<<
 
7633
  /* "adios.pyx":522
 
7634
 *     cpdef read(self, tuple offset = (), tuple count = (), from_steps = 0, nsteps = 1):
 
7635
 *         assert self.type is not None, 'Data type is not supported yet'
 
7636
 *         assert from_steps + nsteps <= self.nsteps, 'Step index is out of range'             # <<<<<<<<<<<<<<
9275
7637
 * 
9276
7638
 *         cdef list lshape = [self.vp.dims[i] for i in range(self.vp.ndim)]
9277
7639
 */
9278
7640
  #ifndef CYTHON_WITHOUT_ASSERTIONS
9279
 
  __pyx_t_4 = (__pyx_v_ntype != ((PyObject*)Py_None));
9280
 
  if (unlikely(!(__pyx_t_4 != 0))) {
9281
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_17));
9282
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7641
  if (unlikely(!Py_OptimizeFlag)) {
 
7642
    __pyx_t_1 = PyNumber_Add(__pyx_v_from_steps, __pyx_v_nsteps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7643
    __Pyx_GOTREF(__pyx_t_1);
 
7644
    __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->nsteps); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7645
    __Pyx_GOTREF(__pyx_t_3);
 
7646
    __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7647
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7648
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7649
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7650
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7651
    if (unlikely(!__pyx_t_4)) {
 
7652
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Step_index_is_out_of_range);
 
7653
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7654
    }
9283
7655
  }
9284
7656
  #endif
9285
7657
 
9286
 
  /* "adios.pyx":571
9287
 
 *         assert ntype is not None, 'Data type is not supported yet'
 
7658
  /* "adios.pyx":524
 
7659
 *         assert from_steps + nsteps <= self.nsteps, 'Step index is out of range'
9288
7660
 * 
9289
7661
 *         cdef list lshape = [self.vp.dims[i] for i in range(self.vp.ndim)]             # <<<<<<<<<<<<<<
9290
7662
 *         cdef np.ndarray npshape = np.array(lshape, dtype=np.int64)
9291
7663
 * 
9292
7664
 */
9293
 
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9294
 
  __Pyx_GOTREF(__pyx_t_1);
 
7665
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7666
  __Pyx_GOTREF(__pyx_t_2);
9295
7667
  __pyx_t_5 = __pyx_v_self->vp->ndim;
9296
7668
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
9297
7669
    __pyx_v_i = __pyx_t_6;
9298
 
    __pyx_t_3 = __Pyx_PyInt_to_py_uint64_t((__pyx_v_self->vp->dims[__pyx_v_i])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7670
    __pyx_t_3 = __Pyx_PyInt_From_uint64_t((__pyx_v_self->vp->dims[__pyx_v_i])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9299
7671
    __Pyx_GOTREF(__pyx_t_3);
9300
 
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7672
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9301
7673
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9302
7674
  }
9303
 
  __pyx_v_lshape = ((PyObject*)__pyx_t_1);
9304
 
  __pyx_t_1 = 0;
 
7675
  __pyx_v_lshape = ((PyObject*)__pyx_t_2);
 
7676
  __pyx_t_2 = 0;
9305
7677
 
9306
 
  /* "adios.pyx":572
 
7678
  /* "adios.pyx":525
9307
7679
 * 
9308
7680
 *         cdef list lshape = [self.vp.dims[i] for i in range(self.vp.ndim)]
9309
7681
 *         cdef np.ndarray npshape = np.array(lshape, dtype=np.int64)             # <<<<<<<<<<<<<<
9310
7682
 * 
9311
7683
 *         cdef np.ndarray npoffset
9312
7684
 */
9313
 
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9314
 
  __Pyx_GOTREF(__pyx_t_1);
9315
 
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s__array); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7685
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7686
  __Pyx_GOTREF(__pyx_t_2);
 
7687
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9316
7688
  __Pyx_GOTREF(__pyx_t_3);
9317
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9318
 
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7689
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7690
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7691
  __Pyx_GOTREF(__pyx_t_2);
 
7692
  __Pyx_INCREF(__pyx_v_lshape);
 
7693
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_lshape);
 
7694
  __Pyx_GIVEREF(__pyx_v_lshape);
 
7695
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9319
7696
  __Pyx_GOTREF(__pyx_t_1);
9320
 
  __Pyx_INCREF(((PyObject *)__pyx_v_lshape));
9321
 
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_lshape));
9322
 
  __Pyx_GIVEREF(((PyObject *)__pyx_v_lshape));
9323
 
  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9324
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
9325
 
  __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7697
  __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9326
7698
  __Pyx_GOTREF(__pyx_t_7);
9327
 
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s__int64); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7699
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int64); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9328
7700
  __Pyx_GOTREF(__pyx_t_8);
9329
7701
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9330
 
  if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__dtype), __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7702
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9331
7703
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9332
 
  __pyx_t_8 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7704
  __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9333
7705
  __Pyx_GOTREF(__pyx_t_8);
9334
7706
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9335
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
9336
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
9337
 
  if (!(likely(((__pyx_t_8) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_8, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7707
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7708
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7709
  if (!(likely(((__pyx_t_8) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_8, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9338
7710
  __pyx_v_npshape = ((PyArrayObject *)__pyx_t_8);
9339
7711
  __pyx_t_8 = 0;
9340
7712
 
9341
 
  /* "adios.pyx":575
 
7713
  /* "adios.pyx":528
9342
7714
 * 
9343
7715
 *         cdef np.ndarray npoffset
9344
7716
 *         if len(offset) == 0:             # <<<<<<<<<<<<<<
9345
7717
 *             npoffset = npshape.copy()
9346
7718
 *             npoffset.fill(0)
9347
7719
 */
9348
 
  if (unlikely(((PyObject *)__pyx_v_offset) == Py_None)) {
 
7720
  if (unlikely(__pyx_v_offset == Py_None)) {
9349
7721
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
9350
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7722
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9351
7723
  }
9352
 
  __pyx_t_9 = PyTuple_GET_SIZE(((PyObject *)__pyx_v_offset)); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7724
  __pyx_t_9 = PyTuple_GET_SIZE(__pyx_v_offset); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9353
7725
  __pyx_t_4 = ((__pyx_t_9 == 0) != 0);
9354
7726
  if (__pyx_t_4) {
9355
7727
 
9356
 
    /* "adios.pyx":576
 
7728
    /* "adios.pyx":529
9357
7729
 *         cdef np.ndarray npoffset
9358
7730
 *         if len(offset) == 0:
9359
7731
 *             npoffset = npshape.copy()             # <<<<<<<<<<<<<<
9360
7732
 *             npoffset.fill(0)
9361
7733
 *         else:
9362
7734
 */
9363
 
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_npshape), __pyx_n_s__copy); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7735
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_npshape), __pyx_n_s_copy); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9364
7736
    __Pyx_GOTREF(__pyx_t_8);
9365
 
    __pyx_t_2 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9366
 
    __Pyx_GOTREF(__pyx_t_2);
 
7737
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7738
    __Pyx_GOTREF(__pyx_t_1);
9367
7739
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9368
 
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9369
 
    __pyx_v_npoffset = ((PyArrayObject *)__pyx_t_2);
9370
 
    __pyx_t_2 = 0;
 
7740
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7741
    __pyx_v_npoffset = ((PyArrayObject *)__pyx_t_1);
 
7742
    __pyx_t_1 = 0;
9371
7743
 
9372
 
    /* "adios.pyx":577
 
7744
    /* "adios.pyx":530
9373
7745
 *         if len(offset) == 0:
9374
7746
 *             npoffset = npshape.copy()
9375
7747
 *             npoffset.fill(0)             # <<<<<<<<<<<<<<
9376
7748
 *         else:
9377
7749
 *             npoffset = np.array(offset, dtype=np.int64)
9378
7750
 */
9379
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_npoffset), __pyx_n_s__fill); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9380
 
    __Pyx_GOTREF(__pyx_t_2);
9381
 
    __pyx_t_8 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_18), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7751
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_npoffset), __pyx_n_s_fill); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7752
    __Pyx_GOTREF(__pyx_t_1);
 
7753
    __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9382
7754
    __Pyx_GOTREF(__pyx_t_8);
9383
 
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7755
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9384
7756
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9385
7757
    goto __pyx_L5;
9386
7758
  }
9387
7759
  /*else*/ {
9388
7760
 
9389
 
    /* "adios.pyx":579
 
7761
    /* "adios.pyx":532
9390
7762
 *             npoffset.fill(0)
9391
7763
 *         else:
9392
7764
 *             npoffset = np.array(offset, dtype=np.int64)             # <<<<<<<<<<<<<<
9393
7765
 * 
9394
7766
 *         cdef np.ndarray npcount
9395
7767
 */
9396
 
    __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9397
 
    __Pyx_GOTREF(__pyx_t_8);
9398
 
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s__array); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7768
    __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7769
    __Pyx_GOTREF(__pyx_t_8);
 
7770
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_array); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7771
    __Pyx_GOTREF(__pyx_t_1);
 
7772
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
 
7773
    __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7774
    __Pyx_GOTREF(__pyx_t_8);
 
7775
    __Pyx_INCREF(__pyx_v_offset);
 
7776
    PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_offset);
 
7777
    __Pyx_GIVEREF(__pyx_v_offset);
 
7778
    __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9399
7779
    __Pyx_GOTREF(__pyx_t_2);
9400
 
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9401
 
    __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9402
 
    __Pyx_GOTREF(__pyx_t_8);
9403
 
    __Pyx_INCREF(((PyObject *)__pyx_v_offset));
9404
 
    PyTuple_SET_ITEM(__pyx_t_8, 0, ((PyObject *)__pyx_v_offset));
9405
 
    __Pyx_GIVEREF(((PyObject *)__pyx_v_offset));
9406
 
    __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9407
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
9408
 
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7780
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9409
7781
    __Pyx_GOTREF(__pyx_t_3);
9410
 
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s__int64); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7782
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int64); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9411
7783
    __Pyx_GOTREF(__pyx_t_7);
9412
7784
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9413
 
    if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__dtype), __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7785
    if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9414
7786
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9415
 
    __pyx_t_7 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_8), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7787
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, __pyx_t_2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9416
7788
    __Pyx_GOTREF(__pyx_t_7);
 
7789
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7790
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9417
7791
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9418
 
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
9419
 
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
9420
 
    if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7792
    if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9421
7793
    __pyx_v_npoffset = ((PyArrayObject *)__pyx_t_7);
9422
7794
    __pyx_t_7 = 0;
9423
7795
  }
9424
7796
  __pyx_L5:;
9425
7797
 
9426
 
  /* "adios.pyx":582
 
7798
  /* "adios.pyx":535
9427
7799
 * 
9428
7800
 *         cdef np.ndarray npcount
9429
7801
 *         if len(count) == 0:             # <<<<<<<<<<<<<<
9430
7802
 *             npcount = npshape - npoffset
9431
7803
 *         else:
9432
7804
 */
9433
 
  if (unlikely(((PyObject *)__pyx_v_count) == Py_None)) {
 
7805
  if (unlikely(__pyx_v_count == Py_None)) {
9434
7806
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
9435
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7807
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9436
7808
  }
9437
 
  __pyx_t_9 = PyTuple_GET_SIZE(((PyObject *)__pyx_v_count)); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7809
  __pyx_t_9 = PyTuple_GET_SIZE(__pyx_v_count); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9438
7810
  __pyx_t_4 = ((__pyx_t_9 == 0) != 0);
9439
7811
  if (__pyx_t_4) {
9440
7812
 
9441
 
    /* "adios.pyx":583
 
7813
    /* "adios.pyx":536
9442
7814
 *         cdef np.ndarray npcount
9443
7815
 *         if len(count) == 0:
9444
7816
 *             npcount = npshape - npoffset             # <<<<<<<<<<<<<<
9445
7817
 *         else:
9446
7818
 *             npcount = np.array(count, dtype=np.int64)
9447
7819
 */
9448
 
    __pyx_t_7 = PyNumber_Subtract(((PyObject *)__pyx_v_npshape), ((PyObject *)__pyx_v_npoffset)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7820
    __pyx_t_7 = PyNumber_Subtract(((PyObject *)__pyx_v_npshape), ((PyObject *)__pyx_v_npoffset)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9449
7821
    __Pyx_GOTREF(__pyx_t_7);
9450
 
    if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7822
    if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9451
7823
    __pyx_v_npcount = ((PyArrayObject *)__pyx_t_7);
9452
7824
    __pyx_t_7 = 0;
9453
7825
    goto __pyx_L6;
9454
7826
  }
9455
7827
  /*else*/ {
9456
7828
 
9457
 
    /* "adios.pyx":585
 
7829
    /* "adios.pyx":538
9458
7830
 *             npcount = npshape - npoffset
9459
7831
 *         else:
9460
7832
 *             npcount = np.array(count, dtype=np.int64)             # <<<<<<<<<<<<<<
9461
7833
 * 
9462
7834
 *         assert npshape.ndim == npoffset.ndim, 'Offset dimension mismatch'
9463
7835
 */
9464
 
    __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9465
 
    __Pyx_GOTREF(__pyx_t_7);
9466
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s__array); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7836
    __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7837
    __Pyx_GOTREF(__pyx_t_7);
 
7838
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_array); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7839
    __Pyx_GOTREF(__pyx_t_2);
 
7840
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
7841
    __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7842
    __Pyx_GOTREF(__pyx_t_7);
 
7843
    __Pyx_INCREF(__pyx_v_count);
 
7844
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_count);
 
7845
    __Pyx_GIVEREF(__pyx_v_count);
 
7846
    __pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7847
    __Pyx_GOTREF(__pyx_t_8);
 
7848
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9467
7849
    __Pyx_GOTREF(__pyx_t_1);
9468
 
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
9469
 
    __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9470
 
    __Pyx_GOTREF(__pyx_t_7);
9471
 
    __Pyx_INCREF(((PyObject *)__pyx_v_count));
9472
 
    PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_v_count));
9473
 
    __Pyx_GIVEREF(((PyObject *)__pyx_v_count));
9474
 
    __pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9475
 
    __Pyx_GOTREF(((PyObject *)__pyx_t_8));
9476
 
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9477
 
    __Pyx_GOTREF(__pyx_t_2);
9478
 
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__int64); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7850
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_int64); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7851
    __Pyx_GOTREF(__pyx_t_3);
 
7852
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7853
    if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7854
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7855
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9479
7856
    __Pyx_GOTREF(__pyx_t_3);
9480
7857
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9481
 
    if (PyDict_SetItem(__pyx_t_8, ((PyObject *)__pyx_n_s__dtype), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9482
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9483
 
    __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_7), ((PyObject *)__pyx_t_8)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9484
 
    __Pyx_GOTREF(__pyx_t_3);
9485
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9486
 
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
9487
 
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
9488
 
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7858
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
7859
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
 
7860
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9489
7861
    __pyx_v_npcount = ((PyArrayObject *)__pyx_t_3);
9490
7862
    __pyx_t_3 = 0;
9491
7863
  }
9492
7864
  __pyx_L6:;
9493
7865
 
9494
 
  /* "adios.pyx":587
 
7866
  /* "adios.pyx":540
9495
7867
 *             npcount = np.array(count, dtype=np.int64)
9496
7868
 * 
9497
7869
 *         assert npshape.ndim == npoffset.ndim, 'Offset dimension mismatch'             # <<<<<<<<<<<<<<
9498
7870
 *         assert npshape.ndim == npcount.ndim, 'Count dimension mismatch.'
9499
 
 *         assert (npshape - npoffset > npcount).all(), 'Count is larger than shape.'
 
7871
 *         assert (npshape - npoffset >= npcount).all(), 'Count is larger than shape.'
9500
7872
 */
9501
7873
  #ifndef CYTHON_WITHOUT_ASSERTIONS
9502
 
  if (unlikely(!((__pyx_v_npshape->nd == __pyx_v_npoffset->nd) != 0))) {
9503
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_19));
9504
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7874
  if (unlikely(!Py_OptimizeFlag)) {
 
7875
    if (unlikely(!((__pyx_v_npshape->nd == __pyx_v_npoffset->nd) != 0))) {
 
7876
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Offset_dimension_mismatch);
 
7877
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7878
    }
9505
7879
  }
9506
7880
  #endif
9507
7881
 
9508
 
  /* "adios.pyx":588
 
7882
  /* "adios.pyx":541
9509
7883
 * 
9510
7884
 *         assert npshape.ndim == npoffset.ndim, 'Offset dimension mismatch'
9511
7885
 *         assert npshape.ndim == npcount.ndim, 'Count dimension mismatch.'             # <<<<<<<<<<<<<<
9512
 
 *         assert (npshape - npoffset > npcount).all(), 'Count is larger than shape.'
 
7886
 *         assert (npshape - npoffset >= npcount).all(), 'Count is larger than shape.'
9513
7887
 * 
9514
7888
 */
9515
7889
  #ifndef CYTHON_WITHOUT_ASSERTIONS
9516
 
  if (unlikely(!((__pyx_v_npshape->nd == __pyx_v_npcount->nd) != 0))) {
9517
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_20));
9518
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7890
  if (unlikely(!Py_OptimizeFlag)) {
 
7891
    if (unlikely(!((__pyx_v_npshape->nd == __pyx_v_npcount->nd) != 0))) {
 
7892
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Count_dimension_mismatch);
 
7893
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7894
    }
9519
7895
  }
9520
7896
  #endif
9521
7897
 
9522
 
  /* "adios.pyx":589
 
7898
  /* "adios.pyx":542
9523
7899
 *         assert npshape.ndim == npoffset.ndim, 'Offset dimension mismatch'
9524
7900
 *         assert npshape.ndim == npcount.ndim, 'Count dimension mismatch.'
9525
 
 *         assert (npshape - npoffset > npcount).all(), 'Count is larger than shape.'             # <<<<<<<<<<<<<<
 
7901
 *         assert (npshape - npoffset >= npcount).all(), 'Count is larger than shape.'             # <<<<<<<<<<<<<<
9526
7902
 * 
9527
 
 *         cdef np.ndarray var = np.zeros(npcount, dtype=ntype)
 
7903
 *         shape = list(npcount)
9528
7904
 */
9529
7905
  #ifndef CYTHON_WITHOUT_ASSERTIONS
9530
 
  __pyx_t_3 = PyNumber_Subtract(((PyObject *)__pyx_v_npshape), ((PyObject *)__pyx_v_npoffset)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9531
 
  __Pyx_GOTREF(__pyx_t_3);
9532
 
  __pyx_t_8 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_v_npcount), Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9533
 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9534
 
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s__all); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9535
 
  __Pyx_GOTREF(__pyx_t_3);
9536
 
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9537
 
  __pyx_t_8 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9538
 
  __Pyx_GOTREF(__pyx_t_8);
9539
 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9540
 
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9541
 
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9542
 
  if (unlikely(!__pyx_t_4)) {
9543
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_21));
9544
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7906
  if (unlikely(!Py_OptimizeFlag)) {
 
7907
    __pyx_t_3 = PyNumber_Subtract(((PyObject *)__pyx_v_npshape), ((PyObject *)__pyx_v_npoffset)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7908
    __Pyx_GOTREF(__pyx_t_3);
 
7909
    __pyx_t_8 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_v_npcount), Py_GE); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7910
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7911
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_all); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7912
    __Pyx_GOTREF(__pyx_t_3);
 
7913
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
 
7914
    __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7915
    __Pyx_GOTREF(__pyx_t_8);
 
7916
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7917
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7918
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
 
7919
    if (unlikely(!__pyx_t_4)) {
 
7920
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Count_is_larger_than_shape);
 
7921
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7922
    }
9545
7923
  }
9546
7924
  #endif
9547
7925
 
9548
 
  /* "adios.pyx":591
9549
 
 *         assert (npshape - npoffset > npcount).all(), 'Count is larger than shape.'
 
7926
  /* "adios.pyx":544
 
7927
 *         assert (npshape - npoffset >= npcount).all(), 'Count is larger than shape.'
9550
7928
 * 
9551
 
 *         cdef np.ndarray var = np.zeros(npcount, dtype=ntype)             # <<<<<<<<<<<<<<
9552
 
 *         cdef int64_t nbytes = adios_read_var_byid(
9553
 
 *             self.group.gp,
 
7929
 *         shape = list(npcount)             # <<<<<<<<<<<<<<
 
7930
 *         if (nsteps > 1):
 
7931
 *             shape.insert(0, nsteps)
9554
7932
 */
9555
 
  __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s__np); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9556
 
  __Pyx_GOTREF(__pyx_t_8);
9557
 
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s__zeros); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9558
 
  __Pyx_GOTREF(__pyx_t_3);
9559
 
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
9560
 
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7933
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9561
7934
  __Pyx_GOTREF(__pyx_t_8);
9562
7935
  __Pyx_INCREF(((PyObject *)__pyx_v_npcount));
9563
7936
  PyTuple_SET_ITEM(__pyx_t_8, 0, ((PyObject *)__pyx_v_npcount));
9564
7937
  __Pyx_GIVEREF(((PyObject *)__pyx_v_npcount));
9565
 
  __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9566
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_7));
9567
 
  if (PyDict_SetItem(__pyx_t_7, ((PyObject *)__pyx_n_s__dtype), ((PyObject *)__pyx_v_ntype)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9568
 
  __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_8), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9569
 
  __Pyx_GOTREF(__pyx_t_1);
 
7938
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7939
  __Pyx_GOTREF(__pyx_t_3);
 
7940
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
 
7941
  __pyx_v_shape = ((PyObject*)__pyx_t_3);
 
7942
  __pyx_t_3 = 0;
 
7943
 
 
7944
  /* "adios.pyx":545
 
7945
 * 
 
7946
 *         shape = list(npcount)
 
7947
 *         if (nsteps > 1):             # <<<<<<<<<<<<<<
 
7948
 *             shape.insert(0, nsteps)
 
7949
 *         cdef np.ndarray var = np.zeros(shape, dtype=self.type)
 
7950
 */
 
7951
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_nsteps, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7952
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9570
7953
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9571
 
  __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
9572
 
  __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
9573
 
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9574
 
  __pyx_v_var = ((PyArrayObject *)__pyx_t_1);
9575
 
  __pyx_t_1 = 0;
9576
 
 
9577
 
  /* "adios.pyx":597
9578
 
 *             <uint64_t *> npoffset.data,
9579
 
 *             <uint64_t *> npcount.data,
9580
 
 *             <void *> var.data             # <<<<<<<<<<<<<<
9581
 
 *             )
9582
 
 * 
9583
 
 */
9584
 
  __pyx_v_nbytes = adios_read_var_byid(__pyx_v_self->group->gp, __pyx_v_self->vp->varid, ((uint64_t *)__pyx_v_npoffset->data), ((uint64_t *)__pyx_v_npcount->data), ((void *)__pyx_v_var->data));
9585
 
 
9586
 
  /* "adios.pyx":600
9587
 
 *             )
9588
 
 * 
9589
 
 *         if nbytes < 0:             # <<<<<<<<<<<<<<
9590
 
 *             print "[WARNING] bytes read :", nbytes
9591
 
 * 
9592
 
 */
9593
 
  __pyx_t_4 = ((__pyx_v_nbytes < 0) != 0);
9594
7954
  if (__pyx_t_4) {
9595
7955
 
9596
 
    /* "adios.pyx":601
9597
 
 * 
9598
 
 *         if nbytes < 0:
9599
 
 *             print "[WARNING] bytes read :", nbytes             # <<<<<<<<<<<<<<
 
7956
    /* "adios.pyx":546
 
7957
 *         shape = list(npcount)
 
7958
 *         if (nsteps > 1):
 
7959
 *             shape.insert(0, nsteps)             # <<<<<<<<<<<<<<
 
7960
 *         cdef np.ndarray var = np.zeros(shape, dtype=self.type)
 
7961
 * 
 
7962
 */
 
7963
    __pyx_t_10 = PyList_Insert(__pyx_v_shape, 0, __pyx_v_nsteps); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7964
    goto __pyx_L7;
 
7965
  }
 
7966
  __pyx_L7:;
 
7967
 
 
7968
  /* "adios.pyx":547
 
7969
 *         if (nsteps > 1):
 
7970
 *             shape.insert(0, nsteps)
 
7971
 *         cdef np.ndarray var = np.zeros(shape, dtype=self.type)             # <<<<<<<<<<<<<<
 
7972
 * 
 
7973
 *         cdef ADIOS_SELECTION * sel
 
7974
 */
 
7975
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_np); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7976
  __Pyx_GOTREF(__pyx_t_3);
 
7977
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7978
  __Pyx_GOTREF(__pyx_t_8);
 
7979
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7980
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7981
  __Pyx_GOTREF(__pyx_t_3);
 
7982
  __Pyx_INCREF(__pyx_v_shape);
 
7983
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_shape);
 
7984
  __Pyx_GIVEREF(__pyx_v_shape);
 
7985
  __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7986
  __Pyx_GOTREF(__pyx_t_7);
 
7987
  if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dtype, ((PyObject *)__pyx_v_self->type)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7988
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7989
  __Pyx_GOTREF(__pyx_t_2);
 
7990
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
 
7991
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7992
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
7993
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7994
  __pyx_v_var = ((PyArrayObject *)__pyx_t_2);
 
7995
  __pyx_t_2 = 0;
 
7996
 
 
7997
  /* "adios.pyx":550
 
7998
 * 
 
7999
 *         cdef ADIOS_SELECTION * sel
 
8000
 *         sel = adios_selection_boundingbox (self.vp.ndim, <uint64_t *> npoffset.data, <uint64_t *> npcount.data)             # <<<<<<<<<<<<<<
 
8001
 * 
 
8002
 *         adios_schedule_read_byid (self.file.fp, sel, self.vp.varid, from_steps, nsteps, <void *> var.data)
 
8003
 */
 
8004
  __pyx_v_sel = adios_selection_boundingbox(__pyx_v_self->vp->ndim, ((uint64_t *)__pyx_v_npoffset->data), ((uint64_t *)__pyx_v_npcount->data));
 
8005
 
 
8006
  /* "adios.pyx":552
 
8007
 *         sel = adios_selection_boundingbox (self.vp.ndim, <uint64_t *> npoffset.data, <uint64_t *> npcount.data)
 
8008
 * 
 
8009
 *         adios_schedule_read_byid (self.file.fp, sel, self.vp.varid, from_steps, nsteps, <void *> var.data)             # <<<<<<<<<<<<<<
 
8010
 *         adios_perform_reads(self.file.fp, 1)
 
8011
 * 
 
8012
 */
 
8013
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_from_steps); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8014
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_nsteps); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8015
  adios_schedule_read_byid(__pyx_v_self->file->fp, __pyx_v_sel, __pyx_v_self->vp->varid, __pyx_t_5, __pyx_t_6, ((void *)__pyx_v_var->data));
 
8016
 
 
8017
  /* "adios.pyx":553
 
8018
 * 
 
8019
 *         adios_schedule_read_byid (self.file.fp, sel, self.vp.varid, from_steps, nsteps, <void *> var.data)
 
8020
 *         adios_perform_reads(self.file.fp, 1)             # <<<<<<<<<<<<<<
9600
8021
 * 
9601
8022
 *         return var
9602
8023
 */
9603
 
    __pyx_t_1 = __Pyx_PyInt_to_py_int64_t(__pyx_v_nbytes); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9604
 
    __Pyx_GOTREF(__pyx_t_1);
9605
 
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9606
 
    __Pyx_GOTREF(__pyx_t_7);
9607
 
    __Pyx_INCREF(((PyObject *)__pyx_kp_s_22));
9608
 
    PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_kp_s_22));
9609
 
    __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_22));
9610
 
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1);
9611
 
    __Pyx_GIVEREF(__pyx_t_1);
9612
 
    __pyx_t_1 = 0;
9613
 
    if (__Pyx_Print(0, ((PyObject *)__pyx_t_7), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9614
 
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
9615
 
    goto __pyx_L7;
9616
 
  }
9617
 
  __pyx_L7:;
 
8024
  adios_perform_reads(__pyx_v_self->file->fp, 1);
9618
8025
 
9619
 
  /* "adios.pyx":603
9620
 
 *             print "[WARNING] bytes read :", nbytes
 
8026
  /* "adios.pyx":555
 
8027
 *         adios_perform_reads(self.file.fp, 1)
9621
8028
 * 
9622
8029
 *         return var             # <<<<<<<<<<<<<<
9623
8030
 * 
9628
8035
  __pyx_r = ((PyObject *)__pyx_v_var);
9629
8036
  goto __pyx_L0;
9630
8037
 
9631
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9632
 
  goto __pyx_L0;
 
8038
  /* "adios.pyx":520
 
8039
 *         self.vp = NULL
 
8040
 * 
 
8041
 *     cpdef read(self, tuple offset = (), tuple count = (), from_steps = 0, nsteps = 1):             # <<<<<<<<<<<<<<
 
8042
 *         assert self.type is not None, 'Data type is not supported yet'
 
8043
 *         assert from_steps + nsteps <= self.nsteps, 'Step index is out of range'
 
8044
 */
 
8045
 
 
8046
  /* function exit code */
9633
8047
  __pyx_L1_error:;
9634
8048
  __Pyx_XDECREF(__pyx_t_1);
9635
8049
  __Pyx_XDECREF(__pyx_t_2);
9636
8050
  __Pyx_XDECREF(__pyx_t_3);
9637
8051
  __Pyx_XDECREF(__pyx_t_7);
9638
8052
  __Pyx_XDECREF(__pyx_t_8);
9639
 
  __Pyx_AddTraceback("adios.AdiosVariable.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8053
  __Pyx_AddTraceback("adios.var.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
9640
8054
  __pyx_r = 0;
9641
8055
  __pyx_L0:;
9642
 
  __Pyx_XDECREF(__pyx_v_ntype);
9643
8056
  __Pyx_XDECREF(__pyx_v_lshape);
9644
8057
  __Pyx_XDECREF((PyObject *)__pyx_v_npshape);
9645
8058
  __Pyx_XDECREF((PyObject *)__pyx_v_npoffset);
9646
8059
  __Pyx_XDECREF((PyObject *)__pyx_v_npcount);
 
8060
  __Pyx_XDECREF(__pyx_v_shape);
9647
8061
  __Pyx_XDECREF((PyObject *)__pyx_v_var);
9648
8062
  __Pyx_XGIVEREF(__pyx_r);
9649
8063
  __Pyx_RefNannyFinishContext();
9651
8065
}
9652
8066
 
9653
8067
/* Python wrapper */
9654
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_7read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
9655
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_7read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 
8068
static PyObject *__pyx_pw_5adios_3var_7read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
8069
static PyObject *__pyx_pw_5adios_3var_7read(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9656
8070
  PyObject *__pyx_v_offset = 0;
9657
8071
  PyObject *__pyx_v_count = 0;
 
8072
  PyObject *__pyx_v_from_steps = 0;
 
8073
  PyObject *__pyx_v_nsteps = 0;
9658
8074
  int __pyx_lineno = 0;
9659
8075
  const char *__pyx_filename = NULL;
9660
8076
  int __pyx_clineno = 0;
9662
8078
  __Pyx_RefNannyDeclarations
9663
8079
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
9664
8080
  {
9665
 
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__offset,&__pyx_n_s__count,0};
9666
 
    PyObject* values[2] = {0,0};
9667
 
 
9668
 
    /* "adios.pyx":567
9669
 
 *         self.vp = NULL
9670
 
 * 
9671
 
 *     cpdef read(self, tuple offset = (), tuple count = ()):             # <<<<<<<<<<<<<<
9672
 
 *         cdef type ntype = adios2nptype(self.vp.type)
9673
 
 *         assert ntype is not None, 'Data type is not supported yet'
9674
 
 */
 
8081
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset,&__pyx_n_s_count,&__pyx_n_s_from_steps,&__pyx_n_s_nsteps,0};
 
8082
    PyObject* values[4] = {0,0,0,0};
9675
8083
    values[0] = ((PyObject*)__pyx_empty_tuple);
9676
8084
    values[1] = ((PyObject*)__pyx_empty_tuple);
 
8085
    values[2] = ((PyObject *)__pyx_int_0);
 
8086
    values[3] = ((PyObject *)__pyx_int_1);
9677
8087
    if (unlikely(__pyx_kwds)) {
9678
8088
      Py_ssize_t kw_args;
9679
8089
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9680
8090
      switch (pos_args) {
 
8091
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
 
8092
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9681
8093
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9682
8094
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9683
8095
        case  0: break;
9687
8099
      switch (pos_args) {
9688
8100
        case  0:
9689
8101
        if (kw_args > 0) {
9690
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__offset);
 
8102
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_offset);
9691
8103
          if (value) { values[0] = value; kw_args--; }
9692
8104
        }
9693
8105
        case  1:
9694
8106
        if (kw_args > 0) {
9695
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__count);
 
8107
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_count);
9696
8108
          if (value) { values[1] = value; kw_args--; }
9697
8109
        }
 
8110
        case  2:
 
8111
        if (kw_args > 0) {
 
8112
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_from_steps);
 
8113
          if (value) { values[2] = value; kw_args--; }
 
8114
        }
 
8115
        case  3:
 
8116
        if (kw_args > 0) {
 
8117
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_nsteps);
 
8118
          if (value) { values[3] = value; kw_args--; }
 
8119
        }
9698
8120
      }
9699
8121
      if (unlikely(kw_args > 0)) {
9700
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
8122
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9701
8123
      }
9702
8124
    } else {
9703
8125
      switch (PyTuple_GET_SIZE(__pyx_args)) {
 
8126
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
 
8127
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9704
8128
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9705
8129
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9706
8130
        case  0: break;
9709
8133
    }
9710
8134
    __pyx_v_offset = ((PyObject*)values[0]);
9711
8135
    __pyx_v_count = ((PyObject*)values[1]);
 
8136
    __pyx_v_from_steps = values[2];
 
8137
    __pyx_v_nsteps = values[3];
9712
8138
  }
9713
8139
  goto __pyx_L4_argument_unpacking_done;
9714
8140
  __pyx_L5_argtuple_error:;
9715
 
  __Pyx_RaiseArgtupleInvalid("read", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
8141
  __Pyx_RaiseArgtupleInvalid("read", 0, 0, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9716
8142
  __pyx_L3_error:;
9717
 
  __Pyx_AddTraceback("adios.AdiosVariable.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8143
  __Pyx_AddTraceback("adios.var.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
9718
8144
  __Pyx_RefNannyFinishContext();
9719
8145
  return NULL;
9720
8146
  __pyx_L4_argument_unpacking_done:;
9721
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_offset), (&PyTuple_Type), 1, "offset", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9722
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_count), (&PyTuple_Type), 1, "count", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9723
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_6read(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), __pyx_v_offset, __pyx_v_count);
 
8147
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_offset), (&PyTuple_Type), 1, "offset", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8148
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_count), (&PyTuple_Type), 1, "count", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8149
  __pyx_r = __pyx_pf_5adios_3var_6read(((struct __pyx_obj_5adios_var *)__pyx_v_self), __pyx_v_offset, __pyx_v_count, __pyx_v_from_steps, __pyx_v_nsteps);
 
8150
 
 
8151
  /* function exit code */
9724
8152
  goto __pyx_L0;
9725
8153
  __pyx_L1_error:;
9726
8154
  __pyx_r = NULL;
9729
8157
  return __pyx_r;
9730
8158
}
9731
8159
 
9732
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_6read(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_offset, PyObject *__pyx_v_count) {
 
8160
static PyObject *__pyx_pf_5adios_3var_6read(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_offset, PyObject *__pyx_v_count, PyObject *__pyx_v_from_steps, PyObject *__pyx_v_nsteps) {
9733
8161
  PyObject *__pyx_r = NULL;
9734
8162
  __Pyx_RefNannyDeclarations
9735
8163
  PyObject *__pyx_t_1 = NULL;
9736
 
  struct __pyx_opt_args_5adios_13AdiosVariable_read __pyx_t_2;
 
8164
  struct __pyx_opt_args_5adios_3var_read __pyx_t_2;
9737
8165
  int __pyx_lineno = 0;
9738
8166
  const char *__pyx_filename = NULL;
9739
8167
  int __pyx_clineno = 0;
9740
8168
  __Pyx_RefNannySetupContext("read", 0);
9741
8169
  __Pyx_XDECREF(__pyx_r);
9742
 
  __pyx_t_2.__pyx_n = 2;
 
8170
  __pyx_t_2.__pyx_n = 4;
9743
8171
  __pyx_t_2.offset = __pyx_v_offset;
9744
8172
  __pyx_t_2.count = __pyx_v_count;
9745
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosVariable *)__pyx_v_self->__pyx_vtab)->read(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8173
  __pyx_t_2.from_steps = __pyx_v_from_steps;
 
8174
  __pyx_t_2.nsteps = __pyx_v_nsteps;
 
8175
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_var *)__pyx_v_self->__pyx_vtab)->read(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9746
8176
  __Pyx_GOTREF(__pyx_t_1);
9747
8177
  __pyx_r = __pyx_t_1;
9748
8178
  __pyx_t_1 = 0;
9749
8179
  goto __pyx_L0;
9750
8180
 
9751
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9752
 
  goto __pyx_L0;
 
8181
  /* function exit code */
9753
8182
  __pyx_L1_error:;
9754
8183
  __Pyx_XDECREF(__pyx_t_1);
9755
 
  __Pyx_AddTraceback("adios.AdiosVariable.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8184
  __Pyx_AddTraceback("adios.var.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
9756
8185
  __pyx_r = NULL;
9757
8186
  __pyx_L0:;
9758
8187
  __Pyx_XGIVEREF(__pyx_r);
9760
8189
  return __pyx_r;
9761
8190
}
9762
8191
 
9763
 
/* "adios.pyx":606
 
8192
/* "adios.pyx":558
9764
8193
 * 
9765
8194
 *     """ Print self """
9766
8195
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
9767
 
 *         assert self.vp != NULL, 'Not an open file'
 
8196
 *         assert self.vp != NULL, 'Not an open variable'
9768
8197
 *         print '=== AdiosVariable ==='
9769
8198
 */
9770
8199
 
9771
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_9printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
9772
 
static PyObject *__pyx_f_5adios_13AdiosVariable_printself(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, int __pyx_skip_dispatch) {
 
8200
static PyObject *__pyx_pw_5adios_3var_9printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
8201
static PyObject *__pyx_f_5adios_3var_printself(struct __pyx_obj_5adios_var *__pyx_v_self, int __pyx_skip_dispatch) {
9773
8202
  PyObject *__pyx_r = NULL;
9774
8203
  __Pyx_RefNannyDeclarations
9775
8204
  PyObject *__pyx_t_1 = NULL;
9782
8211
  if (unlikely(__pyx_skip_dispatch)) ;
9783
8212
  /* Check if overridden in Python */
9784
8213
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
9785
 
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s__printself); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8214
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_printself); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9786
8215
    __Pyx_GOTREF(__pyx_t_1);
9787
 
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_13AdiosVariable_9printself)) {
 
8216
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_5adios_3var_9printself)) {
9788
8217
      __Pyx_XDECREF(__pyx_r);
9789
 
      __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8218
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9790
8219
      __Pyx_GOTREF(__pyx_t_2);
9791
8220
      __pyx_r = __pyx_t_2;
9792
8221
      __pyx_t_2 = 0;
9796
8225
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9797
8226
  }
9798
8227
 
9799
 
  /* "adios.pyx":607
 
8228
  /* "adios.pyx":559
9800
8229
 *     """ Print self """
9801
8230
 *     cpdef printself(self):
9802
 
 *         assert self.vp != NULL, 'Not an open file'             # <<<<<<<<<<<<<<
 
8231
 *         assert self.vp != NULL, 'Not an open variable'             # <<<<<<<<<<<<<<
9803
8232
 *         print '=== AdiosVariable ==='
9804
8233
 *         print '%15s : %lu' % ('vp', <unsigned long> self.vp)
9805
8234
 */
9806
8235
  #ifndef CYTHON_WITHOUT_ASSERTIONS
9807
 
  if (unlikely(!((__pyx_v_self->vp != NULL) != 0))) {
9808
 
    PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_11));
9809
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8236
  if (unlikely(!Py_OptimizeFlag)) {
 
8237
    if (unlikely(!((__pyx_v_self->vp != NULL) != 0))) {
 
8238
      PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Not_an_open_variable);
 
8239
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8240
    }
9810
8241
  }
9811
8242
  #endif
9812
8243
 
9813
 
  /* "adios.pyx":608
 
8244
  /* "adios.pyx":560
9814
8245
 *     cpdef printself(self):
9815
 
 *         assert self.vp != NULL, 'Not an open file'
 
8246
 *         assert self.vp != NULL, 'Not an open variable'
9816
8247
 *         print '=== AdiosVariable ==='             # <<<<<<<<<<<<<<
9817
8248
 *         print '%15s : %lu' % ('vp', <unsigned long> self.vp)
9818
 
 *         printAdiosVariable(self.vp)
 
8249
 *         print '%15s : %lu' % ('fp', <unsigned long> self.file.fp)
9819
8250
 */
9820
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_23)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8251
  if (__Pyx_PrintOne(0, __pyx_kp_s_AdiosVariable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9821
8252
 
9822
 
  /* "adios.pyx":609
9823
 
 *         assert self.vp != NULL, 'Not an open file'
 
8253
  /* "adios.pyx":561
 
8254
 *         assert self.vp != NULL, 'Not an open variable'
9824
8255
 *         print '=== AdiosVariable ==='
9825
8256
 *         print '%15s : %lu' % ('vp', <unsigned long> self.vp)             # <<<<<<<<<<<<<<
9826
 
 *         printAdiosVariable(self.vp)
9827
 
 */
9828
 
  __pyx_t_1 = PyLong_FromUnsignedLong(((unsigned long)__pyx_v_self->vp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9829
 
  __Pyx_GOTREF(__pyx_t_1);
9830
 
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9831
 
  __Pyx_GOTREF(__pyx_t_2);
9832
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s__vp));
9833
 
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__vp));
9834
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__vp));
9835
 
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
9836
 
  __Pyx_GIVEREF(__pyx_t_1);
9837
 
  __pyx_t_1 = 0;
9838
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_7), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9839
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
9840
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
9841
 
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9842
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
9843
 
 
9844
 
  /* "adios.pyx":610
9845
 
 *         print '=== AdiosVariable ==='
9846
 
 *         print '%15s : %lu' % ('vp', <unsigned long> self.vp)
9847
 
 *         printAdiosVariable(self.vp)             # <<<<<<<<<<<<<<
9848
 
 */
9849
 
  __pyx_t_1 = __pyx_f_5adios_printAdiosVariable(__pyx_v_self->vp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9850
 
  __Pyx_GOTREF(__pyx_t_1);
9851
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9852
 
 
 
8257
 *         print '%15s : %lu' % ('fp', <unsigned long> self.file.fp)
 
8258
 *         printvar(self.vp)
 
8259
 */
 
8260
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(((unsigned long)__pyx_v_self->vp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8261
  __Pyx_GOTREF(__pyx_t_1);
 
8262
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8263
  __Pyx_GOTREF(__pyx_t_2);
 
8264
  __Pyx_INCREF(__pyx_n_s_vp);
 
8265
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_vp);
 
8266
  __Pyx_GIVEREF(__pyx_n_s_vp);
 
8267
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
8268
  __Pyx_GIVEREF(__pyx_t_1);
 
8269
  __pyx_t_1 = 0;
 
8270
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_lu, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8271
  __Pyx_GOTREF(__pyx_t_1);
 
8272
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8273
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8274
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8275
 
 
8276
  /* "adios.pyx":562
 
8277
 *         print '=== AdiosVariable ==='
 
8278
 *         print '%15s : %lu' % ('vp', <unsigned long> self.vp)
 
8279
 *         print '%15s : %lu' % ('fp', <unsigned long> self.file.fp)             # <<<<<<<<<<<<<<
 
8280
 *         printvar(self.vp)
 
8281
 * 
 
8282
 */
 
8283
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(((unsigned long)__pyx_v_self->file->fp)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8284
  __Pyx_GOTREF(__pyx_t_1);
 
8285
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8286
  __Pyx_GOTREF(__pyx_t_2);
 
8287
  __Pyx_INCREF(__pyx_n_s_fp);
 
8288
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_fp);
 
8289
  __Pyx_GIVEREF(__pyx_n_s_fp);
 
8290
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
8291
  __Pyx_GIVEREF(__pyx_t_1);
 
8292
  __pyx_t_1 = 0;
 
8293
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_15s_lu, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8294
  __Pyx_GOTREF(__pyx_t_1);
 
8295
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8296
  if (__Pyx_PrintOne(0, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8297
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8298
 
 
8299
  /* "adios.pyx":563
 
8300
 *         print '%15s : %lu' % ('vp', <unsigned long> self.vp)
 
8301
 *         print '%15s : %lu' % ('fp', <unsigned long> self.file.fp)
 
8302
 *         printvar(self.vp)             # <<<<<<<<<<<<<<
 
8303
 * 
 
8304
 * ## ====================
 
8305
 */
 
8306
  __pyx_t_1 = __pyx_f_5adios_printvar(__pyx_v_self->vp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8307
  __Pyx_GOTREF(__pyx_t_1);
 
8308
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8309
 
 
8310
  /* "adios.pyx":558
 
8311
 * 
 
8312
 *     """ Print self """
 
8313
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
 
8314
 *         assert self.vp != NULL, 'Not an open variable'
 
8315
 *         print '=== AdiosVariable ==='
 
8316
 */
 
8317
 
 
8318
  /* function exit code */
9853
8319
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9854
8320
  goto __pyx_L0;
9855
8321
  __pyx_L1_error:;
9856
8322
  __Pyx_XDECREF(__pyx_t_1);
9857
8323
  __Pyx_XDECREF(__pyx_t_2);
9858
 
  __Pyx_AddTraceback("adios.AdiosVariable.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8324
  __Pyx_AddTraceback("adios.var.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
9859
8325
  __pyx_r = 0;
9860
8326
  __pyx_L0:;
9861
8327
  __Pyx_XGIVEREF(__pyx_r);
9864
8330
}
9865
8331
 
9866
8332
/* Python wrapper */
9867
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_9printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
9868
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_9printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
 
8333
static PyObject *__pyx_pw_5adios_3var_9printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
 
8334
static PyObject *__pyx_pw_5adios_3var_9printself(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
9869
8335
  PyObject *__pyx_r = 0;
9870
8336
  __Pyx_RefNannyDeclarations
9871
8337
  __Pyx_RefNannySetupContext("printself (wrapper)", 0);
9872
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_8printself(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
8338
  __pyx_r = __pyx_pf_5adios_3var_8printself(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8339
 
 
8340
  /* function exit code */
9873
8341
  __Pyx_RefNannyFinishContext();
9874
8342
  return __pyx_r;
9875
8343
}
9876
8344
 
9877
 
/* "adios.pyx":606
9878
 
 * 
9879
 
 *     """ Print self """
9880
 
 *     cpdef printself(self):             # <<<<<<<<<<<<<<
9881
 
 *         assert self.vp != NULL, 'Not an open file'
9882
 
 *         print '=== AdiosVariable ==='
9883
 
 */
9884
 
 
9885
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_8printself(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8345
static PyObject *__pyx_pf_5adios_3var_8printself(struct __pyx_obj_5adios_var *__pyx_v_self) {
9886
8346
  PyObject *__pyx_r = NULL;
9887
8347
  __Pyx_RefNannyDeclarations
9888
8348
  PyObject *__pyx_t_1 = NULL;
9891
8351
  int __pyx_clineno = 0;
9892
8352
  __Pyx_RefNannySetupContext("printself", 0);
9893
8353
  __Pyx_XDECREF(__pyx_r);
9894
 
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_AdiosVariable *)__pyx_v_self->__pyx_vtab)->printself(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8354
  __pyx_t_1 = ((struct __pyx_vtabstruct_5adios_var *)__pyx_v_self->__pyx_vtab)->printself(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9895
8355
  __Pyx_GOTREF(__pyx_t_1);
9896
8356
  __pyx_r = __pyx_t_1;
9897
8357
  __pyx_t_1 = 0;
9898
8358
  goto __pyx_L0;
9899
8359
 
9900
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9901
 
  goto __pyx_L0;
 
8360
  /* function exit code */
9902
8361
  __pyx_L1_error:;
9903
8362
  __Pyx_XDECREF(__pyx_t_1);
9904
 
  __Pyx_AddTraceback("adios.AdiosVariable.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8363
  __Pyx_AddTraceback("adios.var.printself", __pyx_clineno, __pyx_lineno, __pyx_filename);
9905
8364
  __pyx_r = NULL;
9906
8365
  __pyx_L0:;
9907
8366
  __Pyx_XGIVEREF(__pyx_r);
9909
8368
  return __pyx_r;
9910
8369
}
9911
8370
 
9912
 
/* Python wrapper */
9913
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
9914
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4name_1__get__(PyObject *__pyx_v_self) {
9915
 
  PyObject *__pyx_r = 0;
9916
 
  __Pyx_RefNannyDeclarations
9917
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
9918
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4name___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
9919
 
  __Pyx_RefNannyFinishContext();
9920
 
  return __pyx_r;
9921
 
}
9922
 
 
9923
 
/* "adios.pyx":535
 
8371
/* "adios.pyx":490
9924
8372
 * 
9925
8373
 *     """ Public Memeber """
9926
8374
 *     cpdef public bytes name             # <<<<<<<<<<<<<<
9928
8376
 *     cpdef public type type
9929
8377
 */
9930
8378
 
9931
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4name___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8379
/* Python wrapper */
 
8380
static PyObject *__pyx_pw_5adios_3var_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
 
8381
static PyObject *__pyx_pw_5adios_3var_4name_1__get__(PyObject *__pyx_v_self) {
 
8382
  PyObject *__pyx_r = 0;
 
8383
  __Pyx_RefNannyDeclarations
 
8384
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
8385
  __pyx_r = __pyx_pf_5adios_3var_4name___get__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8386
 
 
8387
  /* function exit code */
 
8388
  __Pyx_RefNannyFinishContext();
 
8389
  return __pyx_r;
 
8390
}
 
8391
 
 
8392
static PyObject *__pyx_pf_5adios_3var_4name___get__(struct __pyx_obj_5adios_var *__pyx_v_self) {
9932
8393
  PyObject *__pyx_r = NULL;
9933
8394
  __Pyx_RefNannyDeclarations
9934
8395
  __Pyx_RefNannySetupContext("__get__", 0);
9935
8396
  __Pyx_XDECREF(__pyx_r);
9936
 
  __Pyx_INCREF(((PyObject *)__pyx_v_self->name));
9937
 
  __pyx_r = ((PyObject *)__pyx_v_self->name);
 
8397
  __Pyx_INCREF(__pyx_v_self->name);
 
8398
  __pyx_r = __pyx_v_self->name;
9938
8399
  goto __pyx_L0;
9939
8400
 
9940
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
8401
  /* function exit code */
9941
8402
  __pyx_L0:;
9942
8403
  __Pyx_XGIVEREF(__pyx_r);
9943
8404
  __Pyx_RefNannyFinishContext();
9945
8406
}
9946
8407
 
9947
8408
/* Python wrapper */
9948
 
static int __pyx_pw_5adios_13AdiosVariable_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
9949
 
static int __pyx_pw_5adios_13AdiosVariable_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
8409
static int __pyx_pw_5adios_3var_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
8410
static int __pyx_pw_5adios_3var_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9950
8411
  int __pyx_r;
9951
8412
  __Pyx_RefNannyDeclarations
9952
8413
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
9953
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4name_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8414
  __pyx_r = __pyx_pf_5adios_3var_4name_2__set__(((struct __pyx_obj_5adios_var *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8415
 
 
8416
  /* function exit code */
9954
8417
  __Pyx_RefNannyFinishContext();
9955
8418
  return __pyx_r;
9956
8419
}
9957
8420
 
9958
 
static int __pyx_pf_5adios_13AdiosVariable_4name_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
 
8421
static int __pyx_pf_5adios_3var_4name_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value) {
9959
8422
  int __pyx_r;
9960
8423
  __Pyx_RefNannyDeclarations
 
8424
  PyObject *__pyx_t_1 = NULL;
9961
8425
  int __pyx_lineno = 0;
9962
8426
  const char *__pyx_filename = NULL;
9963
8427
  int __pyx_clineno = 0;
9964
8428
  __Pyx_RefNannySetupContext("__set__", 0);
9965
 
  if (!(likely(PyBytes_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected bytes, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9966
 
  __Pyx_INCREF(__pyx_v_value);
9967
 
  __Pyx_GIVEREF(__pyx_v_value);
 
8429
  if (!(likely(PyBytes_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8430
  __pyx_t_1 = __pyx_v_value;
 
8431
  __Pyx_INCREF(__pyx_t_1);
 
8432
  __Pyx_GIVEREF(__pyx_t_1);
9968
8433
  __Pyx_GOTREF(__pyx_v_self->name);
9969
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
9970
 
  __pyx_v_self->name = ((PyObject*)__pyx_v_value);
 
8434
  __Pyx_DECREF(__pyx_v_self->name);
 
8435
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
 
8436
  __pyx_t_1 = 0;
9971
8437
 
 
8438
  /* function exit code */
9972
8439
  __pyx_r = 0;
9973
8440
  goto __pyx_L0;
9974
8441
  __pyx_L1_error:;
9975
 
  __Pyx_AddTraceback("adios.AdiosVariable.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8442
  __Pyx_XDECREF(__pyx_t_1);
 
8443
  __Pyx_AddTraceback("adios.var.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9976
8444
  __pyx_r = -1;
9977
8445
  __pyx_L0:;
9978
8446
  __Pyx_RefNannyFinishContext();
9980
8448
}
9981
8449
 
9982
8450
/* Python wrapper */
9983
 
static int __pyx_pw_5adios_13AdiosVariable_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
9984
 
static int __pyx_pw_5adios_13AdiosVariable_4name_5__del__(PyObject *__pyx_v_self) {
 
8451
static int __pyx_pw_5adios_3var_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
 
8452
static int __pyx_pw_5adios_3var_4name_5__del__(PyObject *__pyx_v_self) {
9985
8453
  int __pyx_r;
9986
8454
  __Pyx_RefNannyDeclarations
9987
8455
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
9988
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4name_4__del__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
8456
  __pyx_r = __pyx_pf_5adios_3var_4name_4__del__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8457
 
 
8458
  /* function exit code */
9989
8459
  __Pyx_RefNannyFinishContext();
9990
8460
  return __pyx_r;
9991
8461
}
9992
8462
 
9993
 
static int __pyx_pf_5adios_13AdiosVariable_4name_4__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8463
static int __pyx_pf_5adios_3var_4name_4__del__(struct __pyx_obj_5adios_var *__pyx_v_self) {
9994
8464
  int __pyx_r;
9995
8465
  __Pyx_RefNannyDeclarations
9996
8466
  __Pyx_RefNannySetupContext("__del__", 0);
9997
8467
  __Pyx_INCREF(Py_None);
9998
8468
  __Pyx_GIVEREF(Py_None);
9999
8469
  __Pyx_GOTREF(__pyx_v_self->name);
10000
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->name));
 
8470
  __Pyx_DECREF(__pyx_v_self->name);
10001
8471
  __pyx_v_self->name = ((PyObject*)Py_None);
10002
8472
 
 
8473
  /* function exit code */
10003
8474
  __pyx_r = 0;
10004
8475
  __Pyx_RefNannyFinishContext();
10005
8476
  return __pyx_r;
10006
8477
}
10007
8478
 
10008
 
/* Python wrapper */
10009
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_5varid_1__get__(PyObject *__pyx_v_self); /*proto*/
10010
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_5varid_1__get__(PyObject *__pyx_v_self) {
10011
 
  PyObject *__pyx_r = 0;
10012
 
  __Pyx_RefNannyDeclarations
10013
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
10014
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_5varid___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
10015
 
  __Pyx_RefNannyFinishContext();
10016
 
  return __pyx_r;
10017
 
}
10018
 
 
10019
 
/* "adios.pyx":536
 
8479
/* "adios.pyx":491
10020
8480
 *     """ Public Memeber """
10021
8481
 *     cpdef public bytes name
10022
8482
 *     cpdef public int varid             # <<<<<<<<<<<<<<
10024
8484
 *     cpdef public int ndim
10025
8485
 */
10026
8486
 
10027
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_5varid___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8487
/* Python wrapper */
 
8488
static PyObject *__pyx_pw_5adios_3var_5varid_1__get__(PyObject *__pyx_v_self); /*proto*/
 
8489
static PyObject *__pyx_pw_5adios_3var_5varid_1__get__(PyObject *__pyx_v_self) {
 
8490
  PyObject *__pyx_r = 0;
 
8491
  __Pyx_RefNannyDeclarations
 
8492
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
8493
  __pyx_r = __pyx_pf_5adios_3var_5varid___get__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8494
 
 
8495
  /* function exit code */
 
8496
  __Pyx_RefNannyFinishContext();
 
8497
  return __pyx_r;
 
8498
}
 
8499
 
 
8500
static PyObject *__pyx_pf_5adios_3var_5varid___get__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10028
8501
  PyObject *__pyx_r = NULL;
10029
8502
  __Pyx_RefNannyDeclarations
10030
8503
  PyObject *__pyx_t_1 = NULL;
10033
8506
  int __pyx_clineno = 0;
10034
8507
  __Pyx_RefNannySetupContext("__get__", 0);
10035
8508
  __Pyx_XDECREF(__pyx_r);
10036
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->varid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8509
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->varid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10037
8510
  __Pyx_GOTREF(__pyx_t_1);
10038
8511
  __pyx_r = __pyx_t_1;
10039
8512
  __pyx_t_1 = 0;
10040
8513
  goto __pyx_L0;
10041
8514
 
10042
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10043
 
  goto __pyx_L0;
 
8515
  /* function exit code */
10044
8516
  __pyx_L1_error:;
10045
8517
  __Pyx_XDECREF(__pyx_t_1);
10046
 
  __Pyx_AddTraceback("adios.AdiosVariable.varid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8518
  __Pyx_AddTraceback("adios.var.varid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10047
8519
  __pyx_r = NULL;
10048
8520
  __pyx_L0:;
10049
8521
  __Pyx_XGIVEREF(__pyx_r);
10052
8524
}
10053
8525
 
10054
8526
/* Python wrapper */
10055
 
static int __pyx_pw_5adios_13AdiosVariable_5varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
10056
 
static int __pyx_pw_5adios_13AdiosVariable_5varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
8527
static int __pyx_pw_5adios_3var_5varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
8528
static int __pyx_pw_5adios_3var_5varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10057
8529
  int __pyx_r;
10058
8530
  __Pyx_RefNannyDeclarations
10059
8531
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
10060
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_5varid_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8532
  __pyx_r = __pyx_pf_5adios_3var_5varid_2__set__(((struct __pyx_obj_5adios_var *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8533
 
 
8534
  /* function exit code */
10061
8535
  __Pyx_RefNannyFinishContext();
10062
8536
  return __pyx_r;
10063
8537
}
10064
8538
 
10065
 
static int __pyx_pf_5adios_13AdiosVariable_5varid_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
 
8539
static int __pyx_pf_5adios_3var_5varid_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value) {
10066
8540
  int __pyx_r;
10067
8541
  __Pyx_RefNannyDeclarations
10068
8542
  int __pyx_t_1;
10070
8544
  const char *__pyx_filename = NULL;
10071
8545
  int __pyx_clineno = 0;
10072
8546
  __Pyx_RefNannySetupContext("__set__", 0);
10073
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8547
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10074
8548
  __pyx_v_self->varid = __pyx_t_1;
10075
8549
 
 
8550
  /* function exit code */
10076
8551
  __pyx_r = 0;
10077
8552
  goto __pyx_L0;
10078
8553
  __pyx_L1_error:;
10079
 
  __Pyx_AddTraceback("adios.AdiosVariable.varid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8554
  __Pyx_AddTraceback("adios.var.varid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10080
8555
  __pyx_r = -1;
10081
8556
  __pyx_L0:;
10082
8557
  __Pyx_RefNannyFinishContext();
10083
8558
  return __pyx_r;
10084
8559
}
10085
8560
 
10086
 
/* Python wrapper */
10087
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
10088
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4type_1__get__(PyObject *__pyx_v_self) {
10089
 
  PyObject *__pyx_r = 0;
10090
 
  __Pyx_RefNannyDeclarations
10091
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
10092
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4type___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
10093
 
  __Pyx_RefNannyFinishContext();
10094
 
  return __pyx_r;
10095
 
}
10096
 
 
10097
 
/* "adios.pyx":537
 
8561
/* "adios.pyx":492
10098
8562
 *     cpdef public bytes name
10099
8563
 *     cpdef public int varid
10100
8564
 *     cpdef public type type             # <<<<<<<<<<<<<<
10102
8566
 *     cpdef public tuple dims
10103
8567
 */
10104
8568
 
10105
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4type___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8569
/* Python wrapper */
 
8570
static PyObject *__pyx_pw_5adios_3var_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
 
8571
static PyObject *__pyx_pw_5adios_3var_4type_1__get__(PyObject *__pyx_v_self) {
 
8572
  PyObject *__pyx_r = 0;
 
8573
  __Pyx_RefNannyDeclarations
 
8574
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
8575
  __pyx_r = __pyx_pf_5adios_3var_4type___get__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8576
 
 
8577
  /* function exit code */
 
8578
  __Pyx_RefNannyFinishContext();
 
8579
  return __pyx_r;
 
8580
}
 
8581
 
 
8582
static PyObject *__pyx_pf_5adios_3var_4type___get__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10106
8583
  PyObject *__pyx_r = NULL;
10107
8584
  __Pyx_RefNannyDeclarations
10108
8585
  __Pyx_RefNannySetupContext("__get__", 0);
10111
8588
  __pyx_r = ((PyObject *)__pyx_v_self->type);
10112
8589
  goto __pyx_L0;
10113
8590
 
10114
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
8591
  /* function exit code */
10115
8592
  __pyx_L0:;
10116
8593
  __Pyx_XGIVEREF(__pyx_r);
10117
8594
  __Pyx_RefNannyFinishContext();
10119
8596
}
10120
8597
 
10121
8598
/* Python wrapper */
10122
 
static int __pyx_pw_5adios_13AdiosVariable_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
10123
 
static int __pyx_pw_5adios_13AdiosVariable_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
8599
static int __pyx_pw_5adios_3var_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
8600
static int __pyx_pw_5adios_3var_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10124
8601
  int __pyx_r;
10125
8602
  __Pyx_RefNannyDeclarations
10126
8603
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
10127
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4type_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8604
  __pyx_r = __pyx_pf_5adios_3var_4type_2__set__(((struct __pyx_obj_5adios_var *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8605
 
 
8606
  /* function exit code */
10128
8607
  __Pyx_RefNannyFinishContext();
10129
8608
  return __pyx_r;
10130
8609
}
10131
8610
 
10132
 
static int __pyx_pf_5adios_13AdiosVariable_4type_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
 
8611
static int __pyx_pf_5adios_3var_4type_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value) {
10133
8612
  int __pyx_r;
10134
8613
  __Pyx_RefNannyDeclarations
 
8614
  PyObject *__pyx_t_1 = NULL;
10135
8615
  int __pyx_lineno = 0;
10136
8616
  const char *__pyx_filename = NULL;
10137
8617
  int __pyx_clineno = 0;
10138
8618
  __Pyx_RefNannySetupContext("__set__", 0);
10139
 
  if (!(likely(PyType_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected type, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10140
 
  __Pyx_INCREF(__pyx_v_value);
10141
 
  __Pyx_GIVEREF(__pyx_v_value);
 
8619
  if (!(likely(PyType_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "type", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8620
  __pyx_t_1 = __pyx_v_value;
 
8621
  __Pyx_INCREF(__pyx_t_1);
 
8622
  __Pyx_GIVEREF(__pyx_t_1);
10142
8623
  __Pyx_GOTREF(__pyx_v_self->type);
10143
8624
  __Pyx_DECREF(((PyObject *)__pyx_v_self->type));
10144
 
  __pyx_v_self->type = ((PyObject*)__pyx_v_value);
 
8625
  __pyx_v_self->type = ((PyObject*)__pyx_t_1);
 
8626
  __pyx_t_1 = 0;
10145
8627
 
 
8628
  /* function exit code */
10146
8629
  __pyx_r = 0;
10147
8630
  goto __pyx_L0;
10148
8631
  __pyx_L1_error:;
10149
 
  __Pyx_AddTraceback("adios.AdiosVariable.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8632
  __Pyx_XDECREF(__pyx_t_1);
 
8633
  __Pyx_AddTraceback("adios.var.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10150
8634
  __pyx_r = -1;
10151
8635
  __pyx_L0:;
10152
8636
  __Pyx_RefNannyFinishContext();
10154
8638
}
10155
8639
 
10156
8640
/* Python wrapper */
10157
 
static int __pyx_pw_5adios_13AdiosVariable_4type_5__del__(PyObject *__pyx_v_self); /*proto*/
10158
 
static int __pyx_pw_5adios_13AdiosVariable_4type_5__del__(PyObject *__pyx_v_self) {
 
8641
static int __pyx_pw_5adios_3var_4type_5__del__(PyObject *__pyx_v_self); /*proto*/
 
8642
static int __pyx_pw_5adios_3var_4type_5__del__(PyObject *__pyx_v_self) {
10159
8643
  int __pyx_r;
10160
8644
  __Pyx_RefNannyDeclarations
10161
8645
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
10162
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4type_4__del__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
8646
  __pyx_r = __pyx_pf_5adios_3var_4type_4__del__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8647
 
 
8648
  /* function exit code */
10163
8649
  __Pyx_RefNannyFinishContext();
10164
8650
  return __pyx_r;
10165
8651
}
10166
8652
 
10167
 
static int __pyx_pf_5adios_13AdiosVariable_4type_4__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8653
static int __pyx_pf_5adios_3var_4type_4__del__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10168
8654
  int __pyx_r;
10169
8655
  __Pyx_RefNannyDeclarations
10170
8656
  __Pyx_RefNannySetupContext("__del__", 0);
10174
8660
  __Pyx_DECREF(((PyObject *)__pyx_v_self->type));
10175
8661
  __pyx_v_self->type = ((PyObject*)Py_None);
10176
8662
 
 
8663
  /* function exit code */
10177
8664
  __pyx_r = 0;
10178
8665
  __Pyx_RefNannyFinishContext();
10179
8666
  return __pyx_r;
10180
8667
}
10181
8668
 
10182
 
/* Python wrapper */
10183
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4ndim_1__get__(PyObject *__pyx_v_self); /*proto*/
10184
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4ndim_1__get__(PyObject *__pyx_v_self) {
10185
 
  PyObject *__pyx_r = 0;
10186
 
  __Pyx_RefNannyDeclarations
10187
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
10188
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4ndim___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
10189
 
  __Pyx_RefNannyFinishContext();
10190
 
  return __pyx_r;
10191
 
}
10192
 
 
10193
 
/* "adios.pyx":538
 
8669
/* "adios.pyx":493
10194
8670
 *     cpdef public int varid
10195
8671
 *     cpdef public type type
10196
8672
 *     cpdef public int ndim             # <<<<<<<<<<<<<<
10197
8673
 *     cpdef public tuple dims
10198
 
 *     cpdef public int timedim
 
8674
 *     cpdef public int nsteps
10199
8675
 */
10200
8676
 
10201
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4ndim___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8677
/* Python wrapper */
 
8678
static PyObject *__pyx_pw_5adios_3var_4ndim_1__get__(PyObject *__pyx_v_self); /*proto*/
 
8679
static PyObject *__pyx_pw_5adios_3var_4ndim_1__get__(PyObject *__pyx_v_self) {
 
8680
  PyObject *__pyx_r = 0;
 
8681
  __Pyx_RefNannyDeclarations
 
8682
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
8683
  __pyx_r = __pyx_pf_5adios_3var_4ndim___get__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8684
 
 
8685
  /* function exit code */
 
8686
  __Pyx_RefNannyFinishContext();
 
8687
  return __pyx_r;
 
8688
}
 
8689
 
 
8690
static PyObject *__pyx_pf_5adios_3var_4ndim___get__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10202
8691
  PyObject *__pyx_r = NULL;
10203
8692
  __Pyx_RefNannyDeclarations
10204
8693
  PyObject *__pyx_t_1 = NULL;
10207
8696
  int __pyx_clineno = 0;
10208
8697
  __Pyx_RefNannySetupContext("__get__", 0);
10209
8698
  __Pyx_XDECREF(__pyx_r);
10210
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->ndim); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8699
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ndim); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10211
8700
  __Pyx_GOTREF(__pyx_t_1);
10212
8701
  __pyx_r = __pyx_t_1;
10213
8702
  __pyx_t_1 = 0;
10214
8703
  goto __pyx_L0;
10215
8704
 
10216
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10217
 
  goto __pyx_L0;
 
8705
  /* function exit code */
10218
8706
  __pyx_L1_error:;
10219
8707
  __Pyx_XDECREF(__pyx_t_1);
10220
 
  __Pyx_AddTraceback("adios.AdiosVariable.ndim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8708
  __Pyx_AddTraceback("adios.var.ndim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10221
8709
  __pyx_r = NULL;
10222
8710
  __pyx_L0:;
10223
8711
  __Pyx_XGIVEREF(__pyx_r);
10226
8714
}
10227
8715
 
10228
8716
/* Python wrapper */
10229
 
static int __pyx_pw_5adios_13AdiosVariable_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
10230
 
static int __pyx_pw_5adios_13AdiosVariable_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
8717
static int __pyx_pw_5adios_3var_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
8718
static int __pyx_pw_5adios_3var_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10231
8719
  int __pyx_r;
10232
8720
  __Pyx_RefNannyDeclarations
10233
8721
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
10234
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4ndim_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8722
  __pyx_r = __pyx_pf_5adios_3var_4ndim_2__set__(((struct __pyx_obj_5adios_var *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8723
 
 
8724
  /* function exit code */
10235
8725
  __Pyx_RefNannyFinishContext();
10236
8726
  return __pyx_r;
10237
8727
}
10238
8728
 
10239
 
static int __pyx_pf_5adios_13AdiosVariable_4ndim_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
 
8729
static int __pyx_pf_5adios_3var_4ndim_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value) {
10240
8730
  int __pyx_r;
10241
8731
  __Pyx_RefNannyDeclarations
10242
8732
  int __pyx_t_1;
10244
8734
  const char *__pyx_filename = NULL;
10245
8735
  int __pyx_clineno = 0;
10246
8736
  __Pyx_RefNannySetupContext("__set__", 0);
10247
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8737
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10248
8738
  __pyx_v_self->ndim = __pyx_t_1;
10249
8739
 
 
8740
  /* function exit code */
10250
8741
  __pyx_r = 0;
10251
8742
  goto __pyx_L0;
10252
8743
  __pyx_L1_error:;
10253
 
  __Pyx_AddTraceback("adios.AdiosVariable.ndim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8744
  __Pyx_AddTraceback("adios.var.ndim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10254
8745
  __pyx_r = -1;
10255
8746
  __pyx_L0:;
10256
8747
  __Pyx_RefNannyFinishContext();
10257
8748
  return __pyx_r;
10258
8749
}
10259
8750
 
10260
 
/* Python wrapper */
10261
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4dims_1__get__(PyObject *__pyx_v_self); /*proto*/
10262
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_4dims_1__get__(PyObject *__pyx_v_self) {
10263
 
  PyObject *__pyx_r = 0;
10264
 
  __Pyx_RefNannyDeclarations
10265
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
10266
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4dims___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
10267
 
  __Pyx_RefNannyFinishContext();
10268
 
  return __pyx_r;
10269
 
}
10270
 
 
10271
 
/* "adios.pyx":539
 
8751
/* "adios.pyx":494
10272
8752
 *     cpdef public type type
10273
8753
 *     cpdef public int ndim
10274
8754
 *     cpdef public tuple dims             # <<<<<<<<<<<<<<
10275
 
 *     cpdef public int timedim
10276
 
 *     cpdef public int characteristics_count
 
8755
 *     cpdef public int nsteps
 
8756
 * 
10277
8757
 */
10278
8758
 
10279
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_4dims___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8759
/* Python wrapper */
 
8760
static PyObject *__pyx_pw_5adios_3var_4dims_1__get__(PyObject *__pyx_v_self); /*proto*/
 
8761
static PyObject *__pyx_pw_5adios_3var_4dims_1__get__(PyObject *__pyx_v_self) {
 
8762
  PyObject *__pyx_r = 0;
 
8763
  __Pyx_RefNannyDeclarations
 
8764
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
 
8765
  __pyx_r = __pyx_pf_5adios_3var_4dims___get__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8766
 
 
8767
  /* function exit code */
 
8768
  __Pyx_RefNannyFinishContext();
 
8769
  return __pyx_r;
 
8770
}
 
8771
 
 
8772
static PyObject *__pyx_pf_5adios_3var_4dims___get__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10280
8773
  PyObject *__pyx_r = NULL;
10281
8774
  __Pyx_RefNannyDeclarations
10282
8775
  __Pyx_RefNannySetupContext("__get__", 0);
10283
8776
  __Pyx_XDECREF(__pyx_r);
10284
 
  __Pyx_INCREF(((PyObject *)__pyx_v_self->dims));
10285
 
  __pyx_r = ((PyObject *)__pyx_v_self->dims);
 
8777
  __Pyx_INCREF(__pyx_v_self->dims);
 
8778
  __pyx_r = __pyx_v_self->dims;
10286
8779
  goto __pyx_L0;
10287
8780
 
10288
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
8781
  /* function exit code */
10289
8782
  __pyx_L0:;
10290
8783
  __Pyx_XGIVEREF(__pyx_r);
10291
8784
  __Pyx_RefNannyFinishContext();
10293
8786
}
10294
8787
 
10295
8788
/* Python wrapper */
10296
 
static int __pyx_pw_5adios_13AdiosVariable_4dims_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
10297
 
static int __pyx_pw_5adios_13AdiosVariable_4dims_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
8789
static int __pyx_pw_5adios_3var_4dims_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
8790
static int __pyx_pw_5adios_3var_4dims_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10298
8791
  int __pyx_r;
10299
8792
  __Pyx_RefNannyDeclarations
10300
8793
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
10301
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4dims_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8794
  __pyx_r = __pyx_pf_5adios_3var_4dims_2__set__(((struct __pyx_obj_5adios_var *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8795
 
 
8796
  /* function exit code */
10302
8797
  __Pyx_RefNannyFinishContext();
10303
8798
  return __pyx_r;
10304
8799
}
10305
8800
 
10306
 
static int __pyx_pf_5adios_13AdiosVariable_4dims_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
 
8801
static int __pyx_pf_5adios_3var_4dims_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value) {
10307
8802
  int __pyx_r;
10308
8803
  __Pyx_RefNannyDeclarations
 
8804
  PyObject *__pyx_t_1 = NULL;
10309
8805
  int __pyx_lineno = 0;
10310
8806
  const char *__pyx_filename = NULL;
10311
8807
  int __pyx_clineno = 0;
10312
8808
  __Pyx_RefNannySetupContext("__set__", 0);
10313
 
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected tuple, got %.200s", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10314
 
  __Pyx_INCREF(__pyx_v_value);
10315
 
  __Pyx_GIVEREF(__pyx_v_value);
 
8809
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8810
  __pyx_t_1 = __pyx_v_value;
 
8811
  __Pyx_INCREF(__pyx_t_1);
 
8812
  __Pyx_GIVEREF(__pyx_t_1);
10316
8813
  __Pyx_GOTREF(__pyx_v_self->dims);
10317
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->dims));
10318
 
  __pyx_v_self->dims = ((PyObject*)__pyx_v_value);
 
8814
  __Pyx_DECREF(__pyx_v_self->dims);
 
8815
  __pyx_v_self->dims = ((PyObject*)__pyx_t_1);
 
8816
  __pyx_t_1 = 0;
10319
8817
 
 
8818
  /* function exit code */
10320
8819
  __pyx_r = 0;
10321
8820
  goto __pyx_L0;
10322
8821
  __pyx_L1_error:;
10323
 
  __Pyx_AddTraceback("adios.AdiosVariable.dims.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8822
  __Pyx_XDECREF(__pyx_t_1);
 
8823
  __Pyx_AddTraceback("adios.var.dims.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10324
8824
  __pyx_r = -1;
10325
8825
  __pyx_L0:;
10326
8826
  __Pyx_RefNannyFinishContext();
10328
8828
}
10329
8829
 
10330
8830
/* Python wrapper */
10331
 
static int __pyx_pw_5adios_13AdiosVariable_4dims_5__del__(PyObject *__pyx_v_self); /*proto*/
10332
 
static int __pyx_pw_5adios_13AdiosVariable_4dims_5__del__(PyObject *__pyx_v_self) {
 
8831
static int __pyx_pw_5adios_3var_4dims_5__del__(PyObject *__pyx_v_self); /*proto*/
 
8832
static int __pyx_pw_5adios_3var_4dims_5__del__(PyObject *__pyx_v_self) {
10333
8833
  int __pyx_r;
10334
8834
  __Pyx_RefNannyDeclarations
10335
8835
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
10336
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_4dims_4__del__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
8836
  __pyx_r = __pyx_pf_5adios_3var_4dims_4__del__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8837
 
 
8838
  /* function exit code */
10337
8839
  __Pyx_RefNannyFinishContext();
10338
8840
  return __pyx_r;
10339
8841
}
10340
8842
 
10341
 
static int __pyx_pf_5adios_13AdiosVariable_4dims_4__del__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8843
static int __pyx_pf_5adios_3var_4dims_4__del__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10342
8844
  int __pyx_r;
10343
8845
  __Pyx_RefNannyDeclarations
10344
8846
  __Pyx_RefNannySetupContext("__del__", 0);
10345
8847
  __Pyx_INCREF(Py_None);
10346
8848
  __Pyx_GIVEREF(Py_None);
10347
8849
  __Pyx_GOTREF(__pyx_v_self->dims);
10348
 
  __Pyx_DECREF(((PyObject *)__pyx_v_self->dims));
 
8850
  __Pyx_DECREF(__pyx_v_self->dims);
10349
8851
  __pyx_v_self->dims = ((PyObject*)Py_None);
10350
8852
 
 
8853
  /* function exit code */
10351
8854
  __pyx_r = 0;
10352
8855
  __Pyx_RefNannyFinishContext();
10353
8856
  return __pyx_r;
10354
8857
}
10355
8858
 
10356
 
/* Python wrapper */
10357
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_7timedim_1__get__(PyObject *__pyx_v_self); /*proto*/
10358
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_7timedim_1__get__(PyObject *__pyx_v_self) {
10359
 
  PyObject *__pyx_r = 0;
10360
 
  __Pyx_RefNannyDeclarations
10361
 
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
10362
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_7timedim___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
10363
 
  __Pyx_RefNannyFinishContext();
10364
 
  return __pyx_r;
10365
 
}
10366
 
 
10367
 
/* "adios.pyx":540
 
8859
/* "adios.pyx":495
10368
8860
 *     cpdef public int ndim
10369
8861
 *     cpdef public tuple dims
10370
 
 *     cpdef public int timedim             # <<<<<<<<<<<<<<
10371
 
 *     cpdef public int characteristics_count
 
8862
 *     cpdef public int nsteps             # <<<<<<<<<<<<<<
10372
8863
 * 
 
8864
 *     def __init__(self, file file, char * name):
10373
8865
 */
10374
8866
 
10375
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_7timedim___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
10376
 
  PyObject *__pyx_r = NULL;
10377
 
  __Pyx_RefNannyDeclarations
10378
 
  PyObject *__pyx_t_1 = NULL;
10379
 
  int __pyx_lineno = 0;
10380
 
  const char *__pyx_filename = NULL;
10381
 
  int __pyx_clineno = 0;
10382
 
  __Pyx_RefNannySetupContext("__get__", 0);
10383
 
  __Pyx_XDECREF(__pyx_r);
10384
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->timedim); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10385
 
  __Pyx_GOTREF(__pyx_t_1);
10386
 
  __pyx_r = __pyx_t_1;
10387
 
  __pyx_t_1 = 0;
10388
 
  goto __pyx_L0;
10389
 
 
10390
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10391
 
  goto __pyx_L0;
10392
 
  __pyx_L1_error:;
10393
 
  __Pyx_XDECREF(__pyx_t_1);
10394
 
  __Pyx_AddTraceback("adios.AdiosVariable.timedim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10395
 
  __pyx_r = NULL;
10396
 
  __pyx_L0:;
10397
 
  __Pyx_XGIVEREF(__pyx_r);
10398
 
  __Pyx_RefNannyFinishContext();
10399
 
  return __pyx_r;
10400
 
}
10401
 
 
10402
 
/* Python wrapper */
10403
 
static int __pyx_pw_5adios_13AdiosVariable_7timedim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
10404
 
static int __pyx_pw_5adios_13AdiosVariable_7timedim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10405
 
  int __pyx_r;
10406
 
  __Pyx_RefNannyDeclarations
10407
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
10408
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_7timedim_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
10409
 
  __Pyx_RefNannyFinishContext();
10410
 
  return __pyx_r;
10411
 
}
10412
 
 
10413
 
static int __pyx_pf_5adios_13AdiosVariable_7timedim_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
10414
 
  int __pyx_r;
10415
 
  __Pyx_RefNannyDeclarations
10416
 
  int __pyx_t_1;
10417
 
  int __pyx_lineno = 0;
10418
 
  const char *__pyx_filename = NULL;
10419
 
  int __pyx_clineno = 0;
10420
 
  __Pyx_RefNannySetupContext("__set__", 0);
10421
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10422
 
  __pyx_v_self->timedim = __pyx_t_1;
10423
 
 
10424
 
  __pyx_r = 0;
10425
 
  goto __pyx_L0;
10426
 
  __pyx_L1_error:;
10427
 
  __Pyx_AddTraceback("adios.AdiosVariable.timedim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10428
 
  __pyx_r = -1;
10429
 
  __pyx_L0:;
10430
 
  __Pyx_RefNannyFinishContext();
10431
 
  return __pyx_r;
10432
 
}
10433
 
 
10434
 
/* Python wrapper */
10435
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_21characteristics_count_1__get__(PyObject *__pyx_v_self); /*proto*/
10436
 
static PyObject *__pyx_pw_5adios_13AdiosVariable_21characteristics_count_1__get__(PyObject *__pyx_v_self) {
 
8867
/* Python wrapper */
 
8868
static PyObject *__pyx_pw_5adios_3var_6nsteps_1__get__(PyObject *__pyx_v_self); /*proto*/
 
8869
static PyObject *__pyx_pw_5adios_3var_6nsteps_1__get__(PyObject *__pyx_v_self) {
10437
8870
  PyObject *__pyx_r = 0;
10438
8871
  __Pyx_RefNannyDeclarations
10439
8872
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
10440
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_21characteristics_count___get__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self));
 
8873
  __pyx_r = __pyx_pf_5adios_3var_6nsteps___get__(((struct __pyx_obj_5adios_var *)__pyx_v_self));
 
8874
 
 
8875
  /* function exit code */
10441
8876
  __Pyx_RefNannyFinishContext();
10442
8877
  return __pyx_r;
10443
8878
}
10444
8879
 
10445
 
/* "adios.pyx":541
10446
 
 *     cpdef public tuple dims
10447
 
 *     cpdef public int timedim
10448
 
 *     cpdef public int characteristics_count             # <<<<<<<<<<<<<<
10449
 
 * 
10450
 
 *     def __init__(self, AdiosGroup group, char * name):
10451
 
 */
10452
 
 
10453
 
static PyObject *__pyx_pf_5adios_13AdiosVariable_21characteristics_count___get__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self) {
 
8880
static PyObject *__pyx_pf_5adios_3var_6nsteps___get__(struct __pyx_obj_5adios_var *__pyx_v_self) {
10454
8881
  PyObject *__pyx_r = NULL;
10455
8882
  __Pyx_RefNannyDeclarations
10456
8883
  PyObject *__pyx_t_1 = NULL;
10459
8886
  int __pyx_clineno = 0;
10460
8887
  __Pyx_RefNannySetupContext("__get__", 0);
10461
8888
  __Pyx_XDECREF(__pyx_r);
10462
 
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->characteristics_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8889
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nsteps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10463
8890
  __Pyx_GOTREF(__pyx_t_1);
10464
8891
  __pyx_r = __pyx_t_1;
10465
8892
  __pyx_t_1 = 0;
10466
8893
  goto __pyx_L0;
10467
8894
 
10468
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10469
 
  goto __pyx_L0;
 
8895
  /* function exit code */
10470
8896
  __pyx_L1_error:;
10471
8897
  __Pyx_XDECREF(__pyx_t_1);
10472
 
  __Pyx_AddTraceback("adios.AdiosVariable.characteristics_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8898
  __Pyx_AddTraceback("adios.var.nsteps.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10473
8899
  __pyx_r = NULL;
10474
8900
  __pyx_L0:;
10475
8901
  __Pyx_XGIVEREF(__pyx_r);
10478
8904
}
10479
8905
 
10480
8906
/* Python wrapper */
10481
 
static int __pyx_pw_5adios_13AdiosVariable_21characteristics_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
10482
 
static int __pyx_pw_5adios_13AdiosVariable_21characteristics_count_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
 
8907
static int __pyx_pw_5adios_3var_6nsteps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
 
8908
static int __pyx_pw_5adios_3var_6nsteps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10483
8909
  int __pyx_r;
10484
8910
  __Pyx_RefNannyDeclarations
10485
8911
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
10486
 
  __pyx_r = __pyx_pf_5adios_13AdiosVariable_21characteristics_count_2__set__(((struct __pyx_obj_5adios_AdiosVariable *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8912
  __pyx_r = __pyx_pf_5adios_3var_6nsteps_2__set__(((struct __pyx_obj_5adios_var *)__pyx_v_self), ((PyObject *)__pyx_v_value));
 
8913
 
 
8914
  /* function exit code */
10487
8915
  __Pyx_RefNannyFinishContext();
10488
8916
  return __pyx_r;
10489
8917
}
10490
8918
 
10491
 
static int __pyx_pf_5adios_13AdiosVariable_21characteristics_count_2__set__(struct __pyx_obj_5adios_AdiosVariable *__pyx_v_self, PyObject *__pyx_v_value) {
 
8919
static int __pyx_pf_5adios_3var_6nsteps_2__set__(struct __pyx_obj_5adios_var *__pyx_v_self, PyObject *__pyx_v_value) {
10492
8920
  int __pyx_r;
10493
8921
  __Pyx_RefNannyDeclarations
10494
8922
  int __pyx_t_1;
10496
8924
  const char *__pyx_filename = NULL;
10497
8925
  int __pyx_clineno = 0;
10498
8926
  __Pyx_RefNannySetupContext("__set__", 0);
10499
 
  __pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10500
 
  __pyx_v_self->characteristics_count = __pyx_t_1;
 
8927
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8928
  __pyx_v_self->nsteps = __pyx_t_1;
10501
8929
 
 
8930
  /* function exit code */
10502
8931
  __pyx_r = 0;
10503
8932
  goto __pyx_L0;
10504
8933
  __pyx_L1_error:;
10505
 
  __Pyx_AddTraceback("adios.AdiosVariable.characteristics_count.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
8934
  __Pyx_AddTraceback("adios.var.nsteps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10506
8935
  __pyx_r = -1;
10507
8936
  __pyx_L0:;
10508
8937
  __Pyx_RefNannyFinishContext();
10509
8938
  return __pyx_r;
10510
8939
}
10511
8940
 
 
8941
/* "adios.pyx":569
 
8942
 * ## ====================
 
8943
 * 
 
8944
 * def readvar(fname, varname):             # <<<<<<<<<<<<<<
 
8945
 *     f = file(fname)
 
8946
 *     if not f.var.has_key(varname):
 
8947
 */
 
8948
 
 
8949
/* Python wrapper */
 
8950
static PyObject *__pyx_pw_5adios_37readvar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
 
8951
static PyMethodDef __pyx_mdef_5adios_37readvar = {__Pyx_NAMESTR("readvar"), (PyCFunction)__pyx_pw_5adios_37readvar, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
 
8952
static PyObject *__pyx_pw_5adios_37readvar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 
8953
  PyObject *__pyx_v_fname = 0;
 
8954
  PyObject *__pyx_v_varname = 0;
 
8955
  int __pyx_lineno = 0;
 
8956
  const char *__pyx_filename = NULL;
 
8957
  int __pyx_clineno = 0;
 
8958
  PyObject *__pyx_r = 0;
 
8959
  __Pyx_RefNannyDeclarations
 
8960
  __Pyx_RefNannySetupContext("readvar (wrapper)", 0);
 
8961
  {
 
8962
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fname,&__pyx_n_s_varname,0};
 
8963
    PyObject* values[2] = {0,0};
 
8964
    if (unlikely(__pyx_kwds)) {
 
8965
      Py_ssize_t kw_args;
 
8966
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
 
8967
      switch (pos_args) {
 
8968
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
 
8969
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 
8970
        case  0: break;
 
8971
        default: goto __pyx_L5_argtuple_error;
 
8972
      }
 
8973
      kw_args = PyDict_Size(__pyx_kwds);
 
8974
      switch (pos_args) {
 
8975
        case  0:
 
8976
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fname)) != 0)) kw_args--;
 
8977
        else goto __pyx_L5_argtuple_error;
 
8978
        case  1:
 
8979
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_varname)) != 0)) kw_args--;
 
8980
        else {
 
8981
          __Pyx_RaiseArgtupleInvalid("readvar", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
8982
        }
 
8983
      }
 
8984
      if (unlikely(kw_args > 0)) {
 
8985
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "readvar") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
8986
      }
 
8987
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
 
8988
      goto __pyx_L5_argtuple_error;
 
8989
    } else {
 
8990
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
 
8991
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
 
8992
    }
 
8993
    __pyx_v_fname = values[0];
 
8994
    __pyx_v_varname = values[1];
 
8995
  }
 
8996
  goto __pyx_L4_argument_unpacking_done;
 
8997
  __pyx_L5_argtuple_error:;
 
8998
  __Pyx_RaiseArgtupleInvalid("readvar", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
8999
  __pyx_L3_error:;
 
9000
  __Pyx_AddTraceback("adios.readvar", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
9001
  __Pyx_RefNannyFinishContext();
 
9002
  return NULL;
 
9003
  __pyx_L4_argument_unpacking_done:;
 
9004
  __pyx_r = __pyx_pf_5adios_36readvar(__pyx_self, __pyx_v_fname, __pyx_v_varname);
 
9005
 
 
9006
  /* function exit code */
 
9007
  __Pyx_RefNannyFinishContext();
 
9008
  return __pyx_r;
 
9009
}
 
9010
 
 
9011
static PyObject *__pyx_pf_5adios_36readvar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fname, PyObject *__pyx_v_varname) {
 
9012
  struct __pyx_obj_5adios_file *__pyx_v_f = NULL;
 
9013
  PyObject *__pyx_v_v = NULL;
 
9014
  PyObject *__pyx_r = NULL;
 
9015
  __Pyx_RefNannyDeclarations
 
9016
  PyObject *__pyx_t_1 = NULL;
 
9017
  PyObject *__pyx_t_2 = NULL;
 
9018
  int __pyx_t_3;
 
9019
  int __pyx_t_4;
 
9020
  PyObject *__pyx_t_5 = NULL;
 
9021
  int __pyx_lineno = 0;
 
9022
  const char *__pyx_filename = NULL;
 
9023
  int __pyx_clineno = 0;
 
9024
  __Pyx_RefNannySetupContext("readvar", 0);
 
9025
 
 
9026
  /* "adios.pyx":570
 
9027
 * 
 
9028
 * def readvar(fname, varname):
 
9029
 *     f = file(fname)             # <<<<<<<<<<<<<<
 
9030
 *     if not f.var.has_key(varname):
 
9031
 *         print "No valid variable"
 
9032
 */
 
9033
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9034
  __Pyx_GOTREF(__pyx_t_1);
 
9035
  __Pyx_INCREF(__pyx_v_fname);
 
9036
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_fname);
 
9037
  __Pyx_GIVEREF(__pyx_v_fname);
 
9038
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5adios_file)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9039
  __Pyx_GOTREF(__pyx_t_2);
 
9040
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9041
  __pyx_v_f = ((struct __pyx_obj_5adios_file *)__pyx_t_2);
 
9042
  __pyx_t_2 = 0;
 
9043
 
 
9044
  /* "adios.pyx":571
 
9045
 * def readvar(fname, varname):
 
9046
 *     f = file(fname)
 
9047
 *     if not f.var.has_key(varname):             # <<<<<<<<<<<<<<
 
9048
 *         print "No valid variable"
 
9049
 *         return
 
9050
 */
 
9051
  if (unlikely(__pyx_v_f->var == Py_None)) {
 
9052
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "has_key");
 
9053
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9054
  }
 
9055
  __pyx_t_3 = PyDict_Contains(__pyx_v_f->var, __pyx_v_varname); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9056
  __pyx_t_4 = ((!(__pyx_t_3 != 0)) != 0);
 
9057
  if (__pyx_t_4) {
 
9058
 
 
9059
    /* "adios.pyx":572
 
9060
 *     f = file(fname)
 
9061
 *     if not f.var.has_key(varname):
 
9062
 *         print "No valid variable"             # <<<<<<<<<<<<<<
 
9063
 *         return
 
9064
 * 
 
9065
 */
 
9066
    if (__Pyx_PrintOne(0, __pyx_kp_s_No_valid_variable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9067
 
 
9068
    /* "adios.pyx":573
 
9069
 *     if not f.var.has_key(varname):
 
9070
 *         print "No valid variable"
 
9071
 *         return             # <<<<<<<<<<<<<<
 
9072
 * 
 
9073
 *     v = f.var[varname]
 
9074
 */
 
9075
    __Pyx_XDECREF(__pyx_r);
 
9076
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
9077
    goto __pyx_L0;
 
9078
  }
 
9079
 
 
9080
  /* "adios.pyx":575
 
9081
 *         return
 
9082
 * 
 
9083
 *     v = f.var[varname]             # <<<<<<<<<<<<<<
 
9084
 *     return v.read(from_steps=0, nsteps=v.nsteps)
 
9085
 * 
 
9086
 */
 
9087
  if (unlikely(__pyx_v_f->var == Py_None)) {
 
9088
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
 
9089
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9090
  }
 
9091
  __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_f->var, __pyx_v_varname); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
9092
  __Pyx_GOTREF(__pyx_t_2);
 
9093
  __pyx_v_v = __pyx_t_2;
 
9094
  __pyx_t_2 = 0;
 
9095
 
 
9096
  /* "adios.pyx":576
 
9097
 * 
 
9098
 *     v = f.var[varname]
 
9099
 *     return v.read(from_steps=0, nsteps=v.nsteps)             # <<<<<<<<<<<<<<
 
9100
 * 
 
9101
 * def bpls(fname):
 
9102
 */
 
9103
  __Pyx_XDECREF(__pyx_r);
 
9104
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_read); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9105
  __Pyx_GOTREF(__pyx_t_2);
 
9106
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9107
  __Pyx_GOTREF(__pyx_t_1);
 
9108
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_from_steps, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9109
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_nsteps); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9110
  __Pyx_GOTREF(__pyx_t_5);
 
9111
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_nsteps, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9112
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
9113
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9114
  __Pyx_GOTREF(__pyx_t_5);
 
9115
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
9116
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9117
  __pyx_r = __pyx_t_5;
 
9118
  __pyx_t_5 = 0;
 
9119
  goto __pyx_L0;
 
9120
 
 
9121
  /* "adios.pyx":569
 
9122
 * ## ====================
 
9123
 * 
 
9124
 * def readvar(fname, varname):             # <<<<<<<<<<<<<<
 
9125
 *     f = file(fname)
 
9126
 *     if not f.var.has_key(varname):
 
9127
 */
 
9128
 
 
9129
  /* function exit code */
 
9130
  __pyx_L1_error:;
 
9131
  __Pyx_XDECREF(__pyx_t_1);
 
9132
  __Pyx_XDECREF(__pyx_t_2);
 
9133
  __Pyx_XDECREF(__pyx_t_5);
 
9134
  __Pyx_AddTraceback("adios.readvar", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
9135
  __pyx_r = NULL;
 
9136
  __pyx_L0:;
 
9137
  __Pyx_XDECREF((PyObject *)__pyx_v_f);
 
9138
  __Pyx_XDECREF(__pyx_v_v);
 
9139
  __Pyx_XGIVEREF(__pyx_r);
 
9140
  __Pyx_RefNannyFinishContext();
 
9141
  return __pyx_r;
 
9142
}
 
9143
 
 
9144
/* "adios.pyx":578
 
9145
 *     return v.read(from_steps=0, nsteps=v.nsteps)
 
9146
 * 
 
9147
 * def bpls(fname):             # <<<<<<<<<<<<<<
 
9148
 *     f = file(fname)
 
9149
 *     return {'nvars': f.nvars,
 
9150
 */
 
9151
 
 
9152
/* Python wrapper */
 
9153
static PyObject *__pyx_pw_5adios_39bpls(PyObject *__pyx_self, PyObject *__pyx_v_fname); /*proto*/
 
9154
static PyMethodDef __pyx_mdef_5adios_39bpls = {__Pyx_NAMESTR("bpls"), (PyCFunction)__pyx_pw_5adios_39bpls, METH_O, __Pyx_DOCSTR(0)};
 
9155
static PyObject *__pyx_pw_5adios_39bpls(PyObject *__pyx_self, PyObject *__pyx_v_fname) {
 
9156
  PyObject *__pyx_r = 0;
 
9157
  __Pyx_RefNannyDeclarations
 
9158
  __Pyx_RefNannySetupContext("bpls (wrapper)", 0);
 
9159
  __pyx_r = __pyx_pf_5adios_38bpls(__pyx_self, ((PyObject *)__pyx_v_fname));
 
9160
 
 
9161
  /* function exit code */
 
9162
  __Pyx_RefNannyFinishContext();
 
9163
  return __pyx_r;
 
9164
}
 
9165
 
 
9166
static PyObject *__pyx_pf_5adios_38bpls(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_fname) {
 
9167
  struct __pyx_obj_5adios_file *__pyx_v_f = NULL;
 
9168
  PyObject *__pyx_v_k = NULL;
 
9169
  PyObject *__pyx_r = NULL;
 
9170
  __Pyx_RefNannyDeclarations
 
9171
  PyObject *__pyx_t_1 = NULL;
 
9172
  PyObject *__pyx_t_2 = NULL;
 
9173
  PyObject *__pyx_t_3 = NULL;
 
9174
  Py_ssize_t __pyx_t_4;
 
9175
  Py_ssize_t __pyx_t_5;
 
9176
  int __pyx_t_6;
 
9177
  PyObject *__pyx_t_7 = NULL;
 
9178
  int __pyx_t_8;
 
9179
  int __pyx_lineno = 0;
 
9180
  const char *__pyx_filename = NULL;
 
9181
  int __pyx_clineno = 0;
 
9182
  __Pyx_RefNannySetupContext("bpls", 0);
 
9183
 
 
9184
  /* "adios.pyx":579
 
9185
 * 
 
9186
 * def bpls(fname):
 
9187
 *     f = file(fname)             # <<<<<<<<<<<<<<
 
9188
 *     return {'nvars': f.nvars,
 
9189
 *             'nattrs': f.nattrs,
 
9190
 */
 
9191
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9192
  __Pyx_GOTREF(__pyx_t_1);
 
9193
  __Pyx_INCREF(__pyx_v_fname);
 
9194
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_fname);
 
9195
  __Pyx_GIVEREF(__pyx_v_fname);
 
9196
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5adios_file)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9197
  __Pyx_GOTREF(__pyx_t_2);
 
9198
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9199
  __pyx_v_f = ((struct __pyx_obj_5adios_file *)__pyx_t_2);
 
9200
  __pyx_t_2 = 0;
 
9201
 
 
9202
  /* "adios.pyx":580
 
9203
 * def bpls(fname):
 
9204
 *     f = file(fname)
 
9205
 *     return {'nvars': f.nvars,             # <<<<<<<<<<<<<<
 
9206
 *             'nattrs': f.nattrs,
 
9207
 *             'vars': tuple([ k for k in f.var.iterkeys() ]),
 
9208
 */
 
9209
  __Pyx_XDECREF(__pyx_r);
 
9210
  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9211
  __Pyx_GOTREF(__pyx_t_2);
 
9212
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->nvars); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9213
  __Pyx_GOTREF(__pyx_t_1);
 
9214
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nvars, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9215
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9216
 
 
9217
  /* "adios.pyx":581
 
9218
 *     f = file(fname)
 
9219
 *     return {'nvars': f.nvars,
 
9220
 *             'nattrs': f.nattrs,             # <<<<<<<<<<<<<<
 
9221
 *             'vars': tuple([ k for k in f.var.iterkeys() ]),
 
9222
 *             'attrs': tuple([ k for k in f.attr.iterkeys() ]),
 
9223
 */
 
9224
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->nattrs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9225
  __Pyx_GOTREF(__pyx_t_1);
 
9226
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nattrs, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9227
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9228
 
 
9229
  /* "adios.pyx":582
 
9230
 *     return {'nvars': f.nvars,
 
9231
 *             'nattrs': f.nattrs,
 
9232
 *             'vars': tuple([ k for k in f.var.iterkeys() ]),             # <<<<<<<<<<<<<<
 
9233
 *             'attrs': tuple([ k for k in f.attr.iterkeys() ]),
 
9234
 *             'time_steps': (f.current_step, f.last_step),
 
9235
 */
 
9236
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9237
  __Pyx_GOTREF(__pyx_t_1);
 
9238
  __pyx_t_4 = 0;
 
9239
  if (unlikely(__pyx_v_f->var == Py_None)) {
 
9240
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "iterkeys");
 
9241
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9242
  }
 
9243
  __pyx_t_7 = __Pyx_dict_iterator(__pyx_v_f->var, 1, __pyx_n_s_iterkeys, (&__pyx_t_5), (&__pyx_t_6)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9244
  __Pyx_GOTREF(__pyx_t_7);
 
9245
  __Pyx_XDECREF(__pyx_t_3);
 
9246
  __pyx_t_3 = __pyx_t_7;
 
9247
  __pyx_t_7 = 0;
 
9248
  while (1) {
 
9249
    __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_5, &__pyx_t_4, &__pyx_t_7, NULL, NULL, __pyx_t_6);
 
9250
    if (unlikely(__pyx_t_8 == 0)) break;
 
9251
    if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9252
    __Pyx_GOTREF(__pyx_t_7);
 
9253
    __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_7);
 
9254
    __pyx_t_7 = 0;
 
9255
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_v_k))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9256
  }
 
9257
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
9258
  __pyx_t_3 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9259
  __Pyx_GOTREF(__pyx_t_3);
 
9260
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9261
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_vars, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9262
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
9263
 
 
9264
  /* "adios.pyx":583
 
9265
 *             'nattrs': f.nattrs,
 
9266
 *             'vars': tuple([ k for k in f.var.iterkeys() ]),
 
9267
 *             'attrs': tuple([ k for k in f.attr.iterkeys() ]),             # <<<<<<<<<<<<<<
 
9268
 *             'time_steps': (f.current_step, f.last_step),
 
9269
 *             'file_size': f.file_size}
 
9270
 */
 
9271
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9272
  __Pyx_GOTREF(__pyx_t_3);
 
9273
  __pyx_t_5 = 0;
 
9274
  if (unlikely(__pyx_v_f->attr == Py_None)) {
 
9275
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "iterkeys");
 
9276
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9277
  }
 
9278
  __pyx_t_7 = __Pyx_dict_iterator(__pyx_v_f->attr, 1, __pyx_n_s_iterkeys, (&__pyx_t_4), (&__pyx_t_6)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9279
  __Pyx_GOTREF(__pyx_t_7);
 
9280
  __Pyx_XDECREF(__pyx_t_1);
 
9281
  __pyx_t_1 = __pyx_t_7;
 
9282
  __pyx_t_7 = 0;
 
9283
  while (1) {
 
9284
    __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_4, &__pyx_t_5, &__pyx_t_7, NULL, NULL, __pyx_t_6);
 
9285
    if (unlikely(__pyx_t_8 == 0)) break;
 
9286
    if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9287
    __Pyx_GOTREF(__pyx_t_7);
 
9288
    __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_7);
 
9289
    __pyx_t_7 = 0;
 
9290
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_v_k))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9291
  }
 
9292
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9293
  __pyx_t_1 = PyList_AsTuple(((PyObject*)__pyx_t_3)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9294
  __Pyx_GOTREF(__pyx_t_1);
 
9295
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
9296
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attrs, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9297
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9298
 
 
9299
  /* "adios.pyx":584
 
9300
 *             'vars': tuple([ k for k in f.var.iterkeys() ]),
 
9301
 *             'attrs': tuple([ k for k in f.attr.iterkeys() ]),
 
9302
 *             'time_steps': (f.current_step, f.last_step),             # <<<<<<<<<<<<<<
 
9303
 *             'file_size': f.file_size}
 
9304
 * 
 
9305
 */
 
9306
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_f->current_step); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9307
  __Pyx_GOTREF(__pyx_t_1);
 
9308
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_f->last_step); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9309
  __Pyx_GOTREF(__pyx_t_3);
 
9310
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9311
  __Pyx_GOTREF(__pyx_t_7);
 
9312
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1);
 
9313
  __Pyx_GIVEREF(__pyx_t_1);
 
9314
  PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3);
 
9315
  __Pyx_GIVEREF(__pyx_t_3);
 
9316
  __pyx_t_1 = 0;
 
9317
  __pyx_t_3 = 0;
 
9318
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_time_steps, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9319
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
9320
 
 
9321
  /* "adios.pyx":585
 
9322
 *             'attrs': tuple([ k for k in f.attr.iterkeys() ]),
 
9323
 *             'time_steps': (f.current_step, f.last_step),
 
9324
 *             'file_size': f.file_size}             # <<<<<<<<<<<<<<
 
9325
 * 
 
9326
 */
 
9327
  __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_f->file_size); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9328
  __Pyx_GOTREF(__pyx_t_7);
 
9329
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_file_size, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9330
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
9331
  __pyx_r = __pyx_t_2;
 
9332
  __pyx_t_2 = 0;
 
9333
  goto __pyx_L0;
 
9334
 
 
9335
  /* "adios.pyx":578
 
9336
 *     return v.read(from_steps=0, nsteps=v.nsteps)
 
9337
 * 
 
9338
 * def bpls(fname):             # <<<<<<<<<<<<<<
 
9339
 *     f = file(fname)
 
9340
 *     return {'nvars': f.nvars,
 
9341
 */
 
9342
 
 
9343
  /* function exit code */
 
9344
  __pyx_L1_error:;
 
9345
  __Pyx_XDECREF(__pyx_t_1);
 
9346
  __Pyx_XDECREF(__pyx_t_2);
 
9347
  __Pyx_XDECREF(__pyx_t_3);
 
9348
  __Pyx_XDECREF(__pyx_t_7);
 
9349
  __Pyx_AddTraceback("adios.bpls", __pyx_clineno, __pyx_lineno, __pyx_filename);
 
9350
  __pyx_r = NULL;
 
9351
  __pyx_L0:;
 
9352
  __Pyx_XDECREF((PyObject *)__pyx_v_f);
 
9353
  __Pyx_XDECREF(__pyx_v_k);
 
9354
  __Pyx_XGIVEREF(__pyx_r);
 
9355
  __Pyx_RefNannyFinishContext();
 
9356
  return __pyx_r;
 
9357
}
 
9358
 
 
9359
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":194
 
9360
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
 
9361
 *         # -- the details of this may change.
 
9362
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
 
9363
 *             # This implementation of getbuffer is geared towards Cython
 
9364
 *             # requirements, and does not yet fullfill the PEP.
 
9365
 */
 
9366
 
10512
9367
/* Python wrapper */
10513
9368
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
10514
9369
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
10516
9371
  __Pyx_RefNannyDeclarations
10517
9372
  __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
10518
9373
  __pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));
 
9374
 
 
9375
  /* function exit code */
10519
9376
  __Pyx_RefNannyFinishContext();
10520
9377
  return __pyx_r;
10521
9378
}
10522
9379
 
10523
 
/* "numpy.pxd":194
10524
 
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
10525
 
 *         # -- the details of this may change.
10526
 
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
10527
 
 *             # This implementation of getbuffer is geared towards Cython
10528
 
 *             # requirements, and does not yet fullfill the PEP.
10529
 
 */
10530
 
 
10531
9380
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
10532
9381
  int __pyx_v_copy_shape;
10533
9382
  int __pyx_v_i;
10559
9408
    __Pyx_GIVEREF(__pyx_v_info->obj);
10560
9409
  }
10561
9410
 
10562
 
  /* "numpy.pxd":200
 
9411
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":200
10563
9412
 *             # of flags
10564
9413
 * 
10565
9414
 *             if info == NULL: return             # <<<<<<<<<<<<<<
10570
9419
  if (__pyx_t_1) {
10571
9420
    __pyx_r = 0;
10572
9421
    goto __pyx_L0;
10573
 
    goto __pyx_L3;
10574
9422
  }
10575
 
  __pyx_L3:;
10576
9423
 
10577
 
  /* "numpy.pxd":203
 
9424
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":203
10578
9425
 * 
10579
9426
 *             cdef int copy_shape, i, ndim
10580
9427
 *             cdef int endian_detector = 1             # <<<<<<<<<<<<<<
10583
9430
 */
10584
9431
  __pyx_v_endian_detector = 1;
10585
9432
 
10586
 
  /* "numpy.pxd":204
 
9433
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":204
10587
9434
 *             cdef int copy_shape, i, ndim
10588
9435
 *             cdef int endian_detector = 1
10589
9436
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)             # <<<<<<<<<<<<<<
10592
9439
 */
10593
9440
  __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
10594
9441
 
10595
 
  /* "numpy.pxd":206
 
9442
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":206
10596
9443
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
10597
9444
 * 
10598
9445
 *             ndim = PyArray_NDIM(self)             # <<<<<<<<<<<<<<
10601
9448
 */
10602
9449
  __pyx_v_ndim = PyArray_NDIM(__pyx_v_self);
10603
9450
 
10604
 
  /* "numpy.pxd":208
 
9451
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":208
10605
9452
 *             ndim = PyArray_NDIM(self)
10606
9453
 * 
10607
9454
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
10611
9458
  __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
10612
9459
  if (__pyx_t_1) {
10613
9460
 
10614
 
    /* "numpy.pxd":209
 
9461
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":209
10615
9462
 * 
10616
9463
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
10617
9464
 *                 copy_shape = 1             # <<<<<<<<<<<<<<
10623
9470
  }
10624
9471
  /*else*/ {
10625
9472
 
10626
 
    /* "numpy.pxd":211
 
9473
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211
10627
9474
 *                 copy_shape = 1
10628
9475
 *             else:
10629
9476
 *                 copy_shape = 0             # <<<<<<<<<<<<<<
10634
9481
  }
10635
9482
  __pyx_L4:;
10636
9483
 
10637
 
  /* "numpy.pxd":213
 
9484
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":213
10638
9485
 *                 copy_shape = 0
10639
9486
 * 
10640
9487
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
10644
9491
  __pyx_t_1 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
10645
9492
  if (__pyx_t_1) {
10646
9493
 
10647
 
    /* "numpy.pxd":214
 
9494
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":214
10648
9495
 * 
10649
9496
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
10650
9497
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):             # <<<<<<<<<<<<<<
10658
9505
  }
10659
9506
  if (__pyx_t_3) {
10660
9507
 
10661
 
    /* "numpy.pxd":215
 
9508
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":215
10662
9509
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
10663
9510
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
10664
9511
 *                 raise ValueError(u"ndarray is not C contiguous")             # <<<<<<<<<<<<<<
10665
9512
 * 
10666
9513
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
10667
9514
 */
10668
 
    __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_25), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9515
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10669
9516
    __Pyx_GOTREF(__pyx_t_4);
10670
9517
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
10671
9518
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10672
9519
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10673
 
    goto __pyx_L5;
10674
9520
  }
10675
 
  __pyx_L5:;
10676
9521
 
10677
 
  /* "numpy.pxd":217
 
9522
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":217
10678
9523
 *                 raise ValueError(u"ndarray is not C contiguous")
10679
9524
 * 
10680
9525
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
10684
9529
  __pyx_t_3 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
10685
9530
  if (__pyx_t_3) {
10686
9531
 
10687
 
    /* "numpy.pxd":218
 
9532
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218
10688
9533
 * 
10689
9534
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
10690
9535
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):             # <<<<<<<<<<<<<<
10698
9543
  }
10699
9544
  if (__pyx_t_2) {
10700
9545
 
10701
 
    /* "numpy.pxd":219
 
9546
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":219
10702
9547
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
10703
9548
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
10704
9549
 *                 raise ValueError(u"ndarray is not Fortran contiguous")             # <<<<<<<<<<<<<<
10705
9550
 * 
10706
9551
 *             info.buf = PyArray_DATA(self)
10707
9552
 */
10708
 
    __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_27), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9553
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10709
9554
    __Pyx_GOTREF(__pyx_t_4);
10710
9555
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
10711
9556
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10712
9557
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10713
 
    goto __pyx_L6;
10714
9558
  }
10715
 
  __pyx_L6:;
10716
9559
 
10717
 
  /* "numpy.pxd":221
 
9560
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":221
10718
9561
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
10719
9562
 * 
10720
9563
 *             info.buf = PyArray_DATA(self)             # <<<<<<<<<<<<<<
10723
9566
 */
10724
9567
  __pyx_v_info->buf = PyArray_DATA(__pyx_v_self);
10725
9568
 
10726
 
  /* "numpy.pxd":222
 
9569
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222
10727
9570
 * 
10728
9571
 *             info.buf = PyArray_DATA(self)
10729
9572
 *             info.ndim = ndim             # <<<<<<<<<<<<<<
10732
9575
 */
10733
9576
  __pyx_v_info->ndim = __pyx_v_ndim;
10734
9577
 
10735
 
  /* "numpy.pxd":223
 
9578
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":223
10736
9579
 *             info.buf = PyArray_DATA(self)
10737
9580
 *             info.ndim = ndim
10738
9581
 *             if copy_shape:             # <<<<<<<<<<<<<<
10742
9585
  __pyx_t_2 = (__pyx_v_copy_shape != 0);
10743
9586
  if (__pyx_t_2) {
10744
9587
 
10745
 
    /* "numpy.pxd":226
 
9588
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226
10746
9589
 *                 # Allocate new buffer for strides and shape info.
10747
9590
 *                 # This is allocated as one block, strides first.
10748
9591
 *                 info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)             # <<<<<<<<<<<<<<
10751
9594
 */
10752
9595
    __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2)));
10753
9596
 
10754
 
    /* "numpy.pxd":227
 
9597
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":227
10755
9598
 *                 # This is allocated as one block, strides first.
10756
9599
 *                 info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
10757
9600
 *                 info.shape = info.strides + ndim             # <<<<<<<<<<<<<<
10760
9603
 */
10761
9604
    __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);
10762
9605
 
10763
 
    /* "numpy.pxd":228
 
9606
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":228
10764
9607
 *                 info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
10765
9608
 *                 info.shape = info.strides + ndim
10766
9609
 *                 for i in range(ndim):             # <<<<<<<<<<<<<<
10771
9614
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
10772
9615
      __pyx_v_i = __pyx_t_6;
10773
9616
 
10774
 
      /* "numpy.pxd":229
 
9617
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":229
10775
9618
 *                 info.shape = info.strides + ndim
10776
9619
 *                 for i in range(ndim):
10777
9620
 *                     info.strides[i] = PyArray_STRIDES(self)[i]             # <<<<<<<<<<<<<<
10780
9623
 */
10781
9624
      (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);
10782
9625
 
10783
 
      /* "numpy.pxd":230
 
9626
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":230
10784
9627
 *                 for i in range(ndim):
10785
9628
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
10786
9629
 *                     info.shape[i] = PyArray_DIMS(self)[i]             # <<<<<<<<<<<<<<
10793
9636
  }
10794
9637
  /*else*/ {
10795
9638
 
10796
 
    /* "numpy.pxd":232
 
9639
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":232
10797
9640
 *                     info.shape[i] = PyArray_DIMS(self)[i]
10798
9641
 *             else:
10799
9642
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)             # <<<<<<<<<<<<<<
10802
9645
 */
10803
9646
    __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));
10804
9647
 
10805
 
    /* "numpy.pxd":233
 
9648
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":233
10806
9649
 *             else:
10807
9650
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
10808
9651
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)             # <<<<<<<<<<<<<<
10813
9656
  }
10814
9657
  __pyx_L7:;
10815
9658
 
10816
 
  /* "numpy.pxd":234
 
9659
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":234
10817
9660
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
10818
9661
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
10819
9662
 *             info.suboffsets = NULL             # <<<<<<<<<<<<<<
10822
9665
 */
10823
9666
  __pyx_v_info->suboffsets = NULL;
10824
9667
 
10825
 
  /* "numpy.pxd":235
 
9668
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":235
10826
9669
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
10827
9670
 *             info.suboffsets = NULL
10828
9671
 *             info.itemsize = PyArray_ITEMSIZE(self)             # <<<<<<<<<<<<<<
10831
9674
 */
10832
9675
  __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);
10833
9676
 
10834
 
  /* "numpy.pxd":236
 
9677
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":236
10835
9678
 *             info.suboffsets = NULL
10836
9679
 *             info.itemsize = PyArray_ITEMSIZE(self)
10837
9680
 *             info.readonly = not PyArray_ISWRITEABLE(self)             # <<<<<<<<<<<<<<
10840
9683
 */
10841
9684
  __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));
10842
9685
 
10843
 
  /* "numpy.pxd":239
 
9686
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":239
10844
9687
 * 
10845
9688
 *             cdef int t
10846
9689
 *             cdef char* f = NULL             # <<<<<<<<<<<<<<
10849
9692
 */
10850
9693
  __pyx_v_f = NULL;
10851
9694
 
10852
 
  /* "numpy.pxd":240
 
9695
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":240
10853
9696
 *             cdef int t
10854
9697
 *             cdef char* f = NULL
10855
9698
 *             cdef dtype descr = self.descr             # <<<<<<<<<<<<<<
10861
9704
  __pyx_v_descr = ((PyArray_Descr *)__pyx_t_4);
10862
9705
  __pyx_t_4 = 0;
10863
9706
 
10864
 
  /* "numpy.pxd":244
 
9707
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":244
10865
9708
 *             cdef int offset
10866
9709
 * 
10867
9710
 *             cdef bint hasfields = PyDataType_HASFIELDS(descr)             # <<<<<<<<<<<<<<
10870
9713
 */
10871
9714
  __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr);
10872
9715
 
10873
 
  /* "numpy.pxd":246
 
9716
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":246
10874
9717
 *             cdef bint hasfields = PyDataType_HASFIELDS(descr)
10875
9718
 * 
10876
9719
 *             if not hasfields and not copy_shape:             # <<<<<<<<<<<<<<
10886
9729
  }
10887
9730
  if (__pyx_t_1) {
10888
9731
 
10889
 
    /* "numpy.pxd":248
 
9732
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248
10890
9733
 *             if not hasfields and not copy_shape:
10891
9734
 *                 # do not call releasebuffer
10892
9735
 *                 info.obj = None             # <<<<<<<<<<<<<<
10902
9745
  }
10903
9746
  /*else*/ {
10904
9747
 
10905
 
    /* "numpy.pxd":251
 
9748
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":251
10906
9749
 *             else:
10907
9750
 *                 # need to call releasebuffer
10908
9751
 *                 info.obj = self             # <<<<<<<<<<<<<<
10917
9760
  }
10918
9761
  __pyx_L10:;
10919
9762
 
10920
 
  /* "numpy.pxd":253
 
9763
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":253
10921
9764
 *                 info.obj = self
10922
9765
 * 
10923
9766
 *             if not hasfields:             # <<<<<<<<<<<<<<
10927
9770
  __pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0);
10928
9771
  if (__pyx_t_1) {
10929
9772
 
10930
 
    /* "numpy.pxd":254
 
9773
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":254
10931
9774
 * 
10932
9775
 *             if not hasfields:
10933
9776
 *                 t = descr.type_num             # <<<<<<<<<<<<<<
10937
9780
    __pyx_t_5 = __pyx_v_descr->type_num;
10938
9781
    __pyx_v_t = __pyx_t_5;
10939
9782
 
10940
 
    /* "numpy.pxd":255
 
9783
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255
10941
9784
 *             if not hasfields:
10942
9785
 *                 t = descr.type_num
10943
9786
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
10952
9795
    }
10953
9796
    if (!__pyx_t_2) {
10954
9797
 
10955
 
      /* "numpy.pxd":256
 
9798
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":256
10956
9799
 *                 t = descr.type_num
10957
9800
 *                 if ((descr.byteorder == c'>' and little_endian) or
10958
9801
 *                     (descr.byteorder == c'<' and not little_endian)):             # <<<<<<<<<<<<<<
10972
9815
    }
10973
9816
    if (__pyx_t_1) {
10974
9817
 
10975
 
      /* "numpy.pxd":257
 
9818
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257
10976
9819
 *                 if ((descr.byteorder == c'>' and little_endian) or
10977
9820
 *                     (descr.byteorder == c'<' and not little_endian)):
10978
9821
 *                     raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
10979
9822
 *                 if   t == NPY_BYTE:        f = "b"
10980
9823
 *                 elif t == NPY_UBYTE:       f = "B"
10981
9824
 */
10982
 
      __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_29), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9825
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10983
9826
      __Pyx_GOTREF(__pyx_t_4);
10984
9827
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
10985
9828
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10986
9829
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10987
 
      goto __pyx_L12;
10988
9830
    }
10989
 
    __pyx_L12:;
10990
9831
 
10991
 
    /* "numpy.pxd":274
 
9832
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274
10992
9833
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
10993
9834
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
10994
9835
 *                 elif t == NPY_OBJECT:      f = "O"             # <<<<<<<<<<<<<<
10997
9838
 */
10998
9839
    switch (__pyx_v_t) {
10999
9840
 
11000
 
      /* "numpy.pxd":258
 
9841
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":258
11001
9842
 *                     (descr.byteorder == c'<' and not little_endian)):
11002
9843
 *                     raise ValueError(u"Non-native byte order not supported")
11003
9844
 *                 if   t == NPY_BYTE:        f = "b"             # <<<<<<<<<<<<<<
11005
9846
 *                 elif t == NPY_SHORT:       f = "h"
11006
9847
 */
11007
9848
      case NPY_BYTE:
11008
 
      __pyx_v_f = __pyx_k__b;
 
9849
      __pyx_v_f = __pyx_k_b;
11009
9850
      break;
11010
9851
 
11011
 
      /* "numpy.pxd":259
 
9852
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259
11012
9853
 *                     raise ValueError(u"Non-native byte order not supported")
11013
9854
 *                 if   t == NPY_BYTE:        f = "b"
11014
9855
 *                 elif t == NPY_UBYTE:       f = "B"             # <<<<<<<<<<<<<<
11016
9857
 *                 elif t == NPY_USHORT:      f = "H"
11017
9858
 */
11018
9859
      case NPY_UBYTE:
11019
 
      __pyx_v_f = __pyx_k__B;
 
9860
      __pyx_v_f = __pyx_k_B;
11020
9861
      break;
11021
9862
 
11022
 
      /* "numpy.pxd":260
 
9863
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":260
11023
9864
 *                 if   t == NPY_BYTE:        f = "b"
11024
9865
 *                 elif t == NPY_UBYTE:       f = "B"
11025
9866
 *                 elif t == NPY_SHORT:       f = "h"             # <<<<<<<<<<<<<<
11027
9868
 *                 elif t == NPY_INT:         f = "i"
11028
9869
 */
11029
9870
      case NPY_SHORT:
11030
 
      __pyx_v_f = __pyx_k__h;
 
9871
      __pyx_v_f = __pyx_k_h;
11031
9872
      break;
11032
9873
 
11033
 
      /* "numpy.pxd":261
 
9874
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":261
11034
9875
 *                 elif t == NPY_UBYTE:       f = "B"
11035
9876
 *                 elif t == NPY_SHORT:       f = "h"
11036
9877
 *                 elif t == NPY_USHORT:      f = "H"             # <<<<<<<<<<<<<<
11038
9879
 *                 elif t == NPY_UINT:        f = "I"
11039
9880
 */
11040
9881
      case NPY_USHORT:
11041
 
      __pyx_v_f = __pyx_k__H;
 
9882
      __pyx_v_f = __pyx_k_H;
11042
9883
      break;
11043
9884
 
11044
 
      /* "numpy.pxd":262
 
9885
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":262
11045
9886
 *                 elif t == NPY_SHORT:       f = "h"
11046
9887
 *                 elif t == NPY_USHORT:      f = "H"
11047
9888
 *                 elif t == NPY_INT:         f = "i"             # <<<<<<<<<<<<<<
11049
9890
 *                 elif t == NPY_LONG:        f = "l"
11050
9891
 */
11051
9892
      case NPY_INT:
11052
 
      __pyx_v_f = __pyx_k__i;
 
9893
      __pyx_v_f = __pyx_k_i;
11053
9894
      break;
11054
9895
 
11055
 
      /* "numpy.pxd":263
 
9896
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":263
11056
9897
 *                 elif t == NPY_USHORT:      f = "H"
11057
9898
 *                 elif t == NPY_INT:         f = "i"
11058
9899
 *                 elif t == NPY_UINT:        f = "I"             # <<<<<<<<<<<<<<
11060
9901
 *                 elif t == NPY_ULONG:       f = "L"
11061
9902
 */
11062
9903
      case NPY_UINT:
11063
 
      __pyx_v_f = __pyx_k__I;
 
9904
      __pyx_v_f = __pyx_k_I;
11064
9905
      break;
11065
9906
 
11066
 
      /* "numpy.pxd":264
 
9907
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":264
11067
9908
 *                 elif t == NPY_INT:         f = "i"
11068
9909
 *                 elif t == NPY_UINT:        f = "I"
11069
9910
 *                 elif t == NPY_LONG:        f = "l"             # <<<<<<<<<<<<<<
11071
9912
 *                 elif t == NPY_LONGLONG:    f = "q"
11072
9913
 */
11073
9914
      case NPY_LONG:
11074
 
      __pyx_v_f = __pyx_k__l;
 
9915
      __pyx_v_f = __pyx_k_l;
11075
9916
      break;
11076
9917
 
11077
 
      /* "numpy.pxd":265
 
9918
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":265
11078
9919
 *                 elif t == NPY_UINT:        f = "I"
11079
9920
 *                 elif t == NPY_LONG:        f = "l"
11080
9921
 *                 elif t == NPY_ULONG:       f = "L"             # <<<<<<<<<<<<<<
11082
9923
 *                 elif t == NPY_ULONGLONG:   f = "Q"
11083
9924
 */
11084
9925
      case NPY_ULONG:
11085
 
      __pyx_v_f = __pyx_k__L;
 
9926
      __pyx_v_f = __pyx_k_L;
11086
9927
      break;
11087
9928
 
11088
 
      /* "numpy.pxd":266
 
9929
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":266
11089
9930
 *                 elif t == NPY_LONG:        f = "l"
11090
9931
 *                 elif t == NPY_ULONG:       f = "L"
11091
9932
 *                 elif t == NPY_LONGLONG:    f = "q"             # <<<<<<<<<<<<<<
11093
9934
 *                 elif t == NPY_FLOAT:       f = "f"
11094
9935
 */
11095
9936
      case NPY_LONGLONG:
11096
 
      __pyx_v_f = __pyx_k__q;
 
9937
      __pyx_v_f = __pyx_k_q;
11097
9938
      break;
11098
9939
 
11099
 
      /* "numpy.pxd":267
 
9940
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":267
11100
9941
 *                 elif t == NPY_ULONG:       f = "L"
11101
9942
 *                 elif t == NPY_LONGLONG:    f = "q"
11102
9943
 *                 elif t == NPY_ULONGLONG:   f = "Q"             # <<<<<<<<<<<<<<
11104
9945
 *                 elif t == NPY_DOUBLE:      f = "d"
11105
9946
 */
11106
9947
      case NPY_ULONGLONG:
11107
 
      __pyx_v_f = __pyx_k__Q;
 
9948
      __pyx_v_f = __pyx_k_Q;
11108
9949
      break;
11109
9950
 
11110
 
      /* "numpy.pxd":268
 
9951
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":268
11111
9952
 *                 elif t == NPY_LONGLONG:    f = "q"
11112
9953
 *                 elif t == NPY_ULONGLONG:   f = "Q"
11113
9954
 *                 elif t == NPY_FLOAT:       f = "f"             # <<<<<<<<<<<<<<
11115
9956
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
11116
9957
 */
11117
9958
      case NPY_FLOAT:
11118
 
      __pyx_v_f = __pyx_k__f;
 
9959
      __pyx_v_f = __pyx_k_f;
11119
9960
      break;
11120
9961
 
11121
 
      /* "numpy.pxd":269
 
9962
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":269
11122
9963
 *                 elif t == NPY_ULONGLONG:   f = "Q"
11123
9964
 *                 elif t == NPY_FLOAT:       f = "f"
11124
9965
 *                 elif t == NPY_DOUBLE:      f = "d"             # <<<<<<<<<<<<<<
11126
9967
 *                 elif t == NPY_CFLOAT:      f = "Zf"
11127
9968
 */
11128
9969
      case NPY_DOUBLE:
11129
 
      __pyx_v_f = __pyx_k__d;
 
9970
      __pyx_v_f = __pyx_k_d;
11130
9971
      break;
11131
9972
 
11132
 
      /* "numpy.pxd":270
 
9973
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":270
11133
9974
 *                 elif t == NPY_FLOAT:       f = "f"
11134
9975
 *                 elif t == NPY_DOUBLE:      f = "d"
11135
9976
 *                 elif t == NPY_LONGDOUBLE:  f = "g"             # <<<<<<<<<<<<<<
11137
9978
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
11138
9979
 */
11139
9980
      case NPY_LONGDOUBLE:
11140
 
      __pyx_v_f = __pyx_k__g;
 
9981
      __pyx_v_f = __pyx_k_g;
11141
9982
      break;
11142
9983
 
11143
 
      /* "numpy.pxd":271
 
9984
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":271
11144
9985
 *                 elif t == NPY_DOUBLE:      f = "d"
11145
9986
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
11146
9987
 *                 elif t == NPY_CFLOAT:      f = "Zf"             # <<<<<<<<<<<<<<
11148
9989
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
11149
9990
 */
11150
9991
      case NPY_CFLOAT:
11151
 
      __pyx_v_f = __pyx_k__Zf;
 
9992
      __pyx_v_f = __pyx_k_Zf;
11152
9993
      break;
11153
9994
 
11154
 
      /* "numpy.pxd":272
 
9995
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":272
11155
9996
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
11156
9997
 *                 elif t == NPY_CFLOAT:      f = "Zf"
11157
9998
 *                 elif t == NPY_CDOUBLE:     f = "Zd"             # <<<<<<<<<<<<<<
11159
10000
 *                 elif t == NPY_OBJECT:      f = "O"
11160
10001
 */
11161
10002
      case NPY_CDOUBLE:
11162
 
      __pyx_v_f = __pyx_k__Zd;
 
10003
      __pyx_v_f = __pyx_k_Zd;
11163
10004
      break;
11164
10005
 
11165
 
      /* "numpy.pxd":273
 
10006
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":273
11166
10007
 *                 elif t == NPY_CFLOAT:      f = "Zf"
11167
10008
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
11168
10009
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"             # <<<<<<<<<<<<<<
11170
10011
 *                 else:
11171
10012
 */
11172
10013
      case NPY_CLONGDOUBLE:
11173
 
      __pyx_v_f = __pyx_k__Zg;
 
10014
      __pyx_v_f = __pyx_k_Zg;
11174
10015
      break;
11175
10016
 
11176
 
      /* "numpy.pxd":274
 
10017
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274
11177
10018
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
11178
10019
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
11179
10020
 *                 elif t == NPY_OBJECT:      f = "O"             # <<<<<<<<<<<<<<
11181
10022
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
11182
10023
 */
11183
10024
      case NPY_OBJECT:
11184
 
      __pyx_v_f = __pyx_k__O;
 
10025
      __pyx_v_f = __pyx_k_O;
11185
10026
      break;
11186
10027
      default:
11187
10028
 
11188
 
      /* "numpy.pxd":276
 
10029
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":276
11189
10030
 *                 elif t == NPY_OBJECT:      f = "O"
11190
10031
 *                 else:
11191
10032
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)             # <<<<<<<<<<<<<<
11192
10033
 *                 info.format = f
11193
10034
 *                 return
11194
10035
 */
11195
 
      __pyx_t_4 = PyInt_FromLong(__pyx_v_t); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10036
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11196
10037
      __Pyx_GOTREF(__pyx_t_4);
11197
 
      __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_u_30), __pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11198
 
      __Pyx_GOTREF(((PyObject *)__pyx_t_8));
 
10038
      __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10039
      __Pyx_GOTREF(__pyx_t_8);
11199
10040
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11200
10041
      __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11201
10042
      __Pyx_GOTREF(__pyx_t_4);
11202
 
      PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_8));
11203
 
      __Pyx_GIVEREF(((PyObject *)__pyx_t_8));
 
10043
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8);
 
10044
      __Pyx_GIVEREF(__pyx_t_8);
11204
10045
      __pyx_t_8 = 0;
11205
 
      __pyx_t_8 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10046
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11206
10047
      __Pyx_GOTREF(__pyx_t_8);
11207
 
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
10048
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11208
10049
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
11209
10050
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
11210
10051
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11211
10052
      break;
11212
10053
    }
11213
10054
 
11214
 
    /* "numpy.pxd":277
 
10055
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":277
11215
10056
 *                 else:
11216
10057
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
11217
10058
 *                 info.format = f             # <<<<<<<<<<<<<<
11220
10061
 */
11221
10062
    __pyx_v_info->format = __pyx_v_f;
11222
10063
 
11223
 
    /* "numpy.pxd":278
 
10064
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":278
11224
10065
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
11225
10066
 *                 info.format = f
11226
10067
 *                 return             # <<<<<<<<<<<<<<
11229
10070
 */
11230
10071
    __pyx_r = 0;
11231
10072
    goto __pyx_L0;
11232
 
    goto __pyx_L11;
11233
10073
  }
11234
10074
  /*else*/ {
11235
10075
 
11236
 
    /* "numpy.pxd":280
 
10076
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":280
11237
10077
 *                 return
11238
10078
 *             else:
11239
10079
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)             # <<<<<<<<<<<<<<
11242
10082
 */
11243
10083
    __pyx_v_info->format = ((char *)malloc(255));
11244
10084
 
11245
 
    /* "numpy.pxd":281
 
10085
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":281
11246
10086
 *             else:
11247
10087
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)
11248
10088
 *                 info.format[0] = c'^' # Native data types, manual alignment             # <<<<<<<<<<<<<<
11251
10091
 */
11252
10092
    (__pyx_v_info->format[0]) = '^';
11253
10093
 
11254
 
    /* "numpy.pxd":282
 
10094
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":282
11255
10095
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)
11256
10096
 *                 info.format[0] = c'^' # Native data types, manual alignment
11257
10097
 *                 offset = 0             # <<<<<<<<<<<<<<
11260
10100
 */
11261
10101
    __pyx_v_offset = 0;
11262
10102
 
11263
 
    /* "numpy.pxd":285
11264
 
 *                 f = _util_dtypestring(descr, info.format + 1,
 
10103
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":283
 
10104
 *                 info.format[0] = c'^' # Native data types, manual alignment
 
10105
 *                 offset = 0
 
10106
 *                 f = _util_dtypestring(descr, info.format + 1,             # <<<<<<<<<<<<<<
11265
10107
 *                                       info.format + _buffer_format_string_len,
11266
 
 *                                       &offset)             # <<<<<<<<<<<<<<
11267
 
 *                 f[0] = c'\0' # Terminate format string
11268
 
 * 
 
10108
 *                                       &offset)
11269
10109
 */
11270
10110
    __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 255), (&__pyx_v_offset)); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11271
10111
    __pyx_v_f = __pyx_t_9;
11272
10112
 
11273
 
    /* "numpy.pxd":286
 
10113
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":286
11274
10114
 *                                       info.format + _buffer_format_string_len,
11275
10115
 *                                       &offset)
11276
10116
 *                 f[0] = c'\0' # Terminate format string             # <<<<<<<<<<<<<<
11279
10119
 */
11280
10120
    (__pyx_v_f[0]) = '\x00';
11281
10121
  }
11282
 
  __pyx_L11:;
11283
 
 
 
10122
 
 
10123
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":194
 
10124
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
 
10125
 *         # -- the details of this may change.
 
10126
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
 
10127
 *             # This implementation of getbuffer is geared towards Cython
 
10128
 *             # requirements, and does not yet fullfill the PEP.
 
10129
 */
 
10130
 
 
10131
  /* function exit code */
11284
10132
  __pyx_r = 0;
11285
10133
  goto __pyx_L0;
11286
10134
  __pyx_L1_error:;
11304
10152
  return __pyx_r;
11305
10153
}
11306
10154
 
 
10155
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288
 
10156
 *                 f[0] = c'\0' # Terminate format string
 
10157
 * 
 
10158
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
 
10159
 *             if PyArray_HASFIELDS(self):
 
10160
 *                 stdlib.free(info.format)
 
10161
 */
 
10162
 
11307
10163
/* Python wrapper */
11308
10164
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/
11309
10165
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
11310
10166
  __Pyx_RefNannyDeclarations
11311
10167
  __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0);
11312
10168
  __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info));
 
10169
 
 
10170
  /* function exit code */
11313
10171
  __Pyx_RefNannyFinishContext();
11314
10172
}
11315
10173
 
11316
 
/* "numpy.pxd":288
11317
 
 *                 f[0] = c'\0' # Terminate format string
11318
 
 * 
11319
 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
11320
 
 *             if PyArray_HASFIELDS(self):
11321
 
 *                 stdlib.free(info.format)
11322
 
 */
11323
 
 
11324
10174
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
11325
10175
  __Pyx_RefNannyDeclarations
11326
10176
  int __pyx_t_1;
11327
10177
  __Pyx_RefNannySetupContext("__releasebuffer__", 0);
11328
10178
 
11329
 
  /* "numpy.pxd":289
 
10179
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":289
11330
10180
 * 
11331
10181
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
11332
10182
 *             if PyArray_HASFIELDS(self):             # <<<<<<<<<<<<<<
11336
10186
  __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
11337
10187
  if (__pyx_t_1) {
11338
10188
 
11339
 
    /* "numpy.pxd":290
 
10189
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290
11340
10190
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
11341
10191
 *             if PyArray_HASFIELDS(self):
11342
10192
 *                 stdlib.free(info.format)             # <<<<<<<<<<<<<<
11348
10198
  }
11349
10199
  __pyx_L3:;
11350
10200
 
11351
 
  /* "numpy.pxd":291
 
10201
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291
11352
10202
 *             if PyArray_HASFIELDS(self):
11353
10203
 *                 stdlib.free(info.format)
11354
10204
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
11358
10208
  __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
11359
10209
  if (__pyx_t_1) {
11360
10210
 
11361
 
    /* "numpy.pxd":292
 
10211
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":292
11362
10212
 *                 stdlib.free(info.format)
11363
10213
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
11364
10214
 *                 stdlib.free(info.strides)             # <<<<<<<<<<<<<<
11370
10220
  }
11371
10221
  __pyx_L4:;
11372
10222
 
 
10223
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288
 
10224
 *                 f[0] = c'\0' # Terminate format string
 
10225
 * 
 
10226
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
 
10227
 *             if PyArray_HASFIELDS(self):
 
10228
 *                 stdlib.free(info.format)
 
10229
 */
 
10230
 
 
10231
  /* function exit code */
11373
10232
  __Pyx_RefNannyFinishContext();
11374
10233
}
11375
10234
 
11376
 
/* "numpy.pxd":768
 
10235
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":768
11377
10236
 * ctypedef npy_cdouble     complex_t
11378
10237
 * 
11379
10238
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
11390
10249
  int __pyx_clineno = 0;
11391
10250
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);
11392
10251
 
11393
 
  /* "numpy.pxd":769
 
10252
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":769
11394
10253
 * 
11395
10254
 * cdef inline object PyArray_MultiIterNew1(a):
11396
10255
 *     return PyArray_MultiIterNew(1, <void*>a)             # <<<<<<<<<<<<<<
11404
10263
  __pyx_t_1 = 0;
11405
10264
  goto __pyx_L0;
11406
10265
 
11407
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11408
 
  goto __pyx_L0;
 
10266
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":768
 
10267
 * ctypedef npy_cdouble     complex_t
 
10268
 * 
 
10269
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 
10270
 *     return PyArray_MultiIterNew(1, <void*>a)
 
10271
 * 
 
10272
 */
 
10273
 
 
10274
  /* function exit code */
11409
10275
  __pyx_L1_error:;
11410
10276
  __Pyx_XDECREF(__pyx_t_1);
11411
10277
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
11416
10282
  return __pyx_r;
11417
10283
}
11418
10284
 
11419
 
/* "numpy.pxd":771
 
10285
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771
11420
10286
 *     return PyArray_MultiIterNew(1, <void*>a)
11421
10287
 * 
11422
10288
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
11433
10299
  int __pyx_clineno = 0;
11434
10300
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);
11435
10301
 
11436
 
  /* "numpy.pxd":772
 
10302
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":772
11437
10303
 * 
11438
10304
 * cdef inline object PyArray_MultiIterNew2(a, b):
11439
10305
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)             # <<<<<<<<<<<<<<
11447
10313
  __pyx_t_1 = 0;
11448
10314
  goto __pyx_L0;
11449
10315
 
11450
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11451
 
  goto __pyx_L0;
 
10316
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771
 
10317
 *     return PyArray_MultiIterNew(1, <void*>a)
 
10318
 * 
 
10319
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 
10320
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 
10321
 * 
 
10322
 */
 
10323
 
 
10324
  /* function exit code */
11452
10325
  __pyx_L1_error:;
11453
10326
  __Pyx_XDECREF(__pyx_t_1);
11454
10327
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
11459
10332
  return __pyx_r;
11460
10333
}
11461
10334
 
11462
 
/* "numpy.pxd":774
 
10335
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774
11463
10336
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
11464
10337
 * 
11465
10338
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
11476
10349
  int __pyx_clineno = 0;
11477
10350
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);
11478
10351
 
11479
 
  /* "numpy.pxd":775
 
10352
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":775
11480
10353
 * 
11481
10354
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
11482
10355
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)             # <<<<<<<<<<<<<<
11490
10363
  __pyx_t_1 = 0;
11491
10364
  goto __pyx_L0;
11492
10365
 
11493
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11494
 
  goto __pyx_L0;
 
10366
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774
 
10367
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 
10368
 * 
 
10369
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 
10370
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 
10371
 * 
 
10372
 */
 
10373
 
 
10374
  /* function exit code */
11495
10375
  __pyx_L1_error:;
11496
10376
  __Pyx_XDECREF(__pyx_t_1);
11497
10377
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
11502
10382
  return __pyx_r;
11503
10383
}
11504
10384
 
11505
 
/* "numpy.pxd":777
 
10385
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777
11506
10386
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
11507
10387
 * 
11508
10388
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
11519
10399
  int __pyx_clineno = 0;
11520
10400
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);
11521
10401
 
11522
 
  /* "numpy.pxd":778
 
10402
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":778
11523
10403
 * 
11524
10404
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
11525
10405
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)             # <<<<<<<<<<<<<<
11533
10413
  __pyx_t_1 = 0;
11534
10414
  goto __pyx_L0;
11535
10415
 
11536
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11537
 
  goto __pyx_L0;
 
10416
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777
 
10417
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 
10418
 * 
 
10419
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 
10420
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 
10421
 * 
 
10422
 */
 
10423
 
 
10424
  /* function exit code */
11538
10425
  __pyx_L1_error:;
11539
10426
  __Pyx_XDECREF(__pyx_t_1);
11540
10427
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
11545
10432
  return __pyx_r;
11546
10433
}
11547
10434
 
11548
 
/* "numpy.pxd":780
 
10435
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780
11549
10436
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
11550
10437
 * 
11551
10438
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
11562
10449
  int __pyx_clineno = 0;
11563
10450
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);
11564
10451
 
11565
 
  /* "numpy.pxd":781
 
10452
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":781
11566
10453
 * 
11567
10454
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
11568
10455
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)             # <<<<<<<<<<<<<<
11576
10463
  __pyx_t_1 = 0;
11577
10464
  goto __pyx_L0;
11578
10465
 
11579
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11580
 
  goto __pyx_L0;
 
10466
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780
 
10467
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 
10468
 * 
 
10469
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 
10470
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 
10471
 * 
 
10472
 */
 
10473
 
 
10474
  /* function exit code */
11581
10475
  __pyx_L1_error:;
11582
10476
  __Pyx_XDECREF(__pyx_t_1);
11583
10477
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
11588
10482
  return __pyx_r;
11589
10483
}
11590
10484
 
11591
 
/* "numpy.pxd":783
 
10485
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783
11592
10486
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
11593
10487
 * 
11594
10488
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:             # <<<<<<<<<<<<<<
11610
10504
  Py_ssize_t __pyx_t_2;
11611
10505
  PyObject *__pyx_t_3 = NULL;
11612
10506
  PyObject *__pyx_t_4 = NULL;
11613
 
  PyObject *__pyx_t_5 = NULL;
11614
 
  PyObject *(*__pyx_t_6)(PyObject *);
 
10507
  int __pyx_t_5;
 
10508
  int __pyx_t_6;
11615
10509
  int __pyx_t_7;
11616
10510
  int __pyx_t_8;
11617
10511
  int __pyx_t_9;
11618
 
  int __pyx_t_10;
11619
 
  long __pyx_t_11;
11620
 
  char *__pyx_t_12;
 
10512
  long __pyx_t_10;
 
10513
  char *__pyx_t_11;
11621
10514
  int __pyx_lineno = 0;
11622
10515
  const char *__pyx_filename = NULL;
11623
10516
  int __pyx_clineno = 0;
11624
10517
  __Pyx_RefNannySetupContext("_util_dtypestring", 0);
11625
10518
 
11626
 
  /* "numpy.pxd":790
 
10519
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":790
11627
10520
 *     cdef int delta_offset
11628
10521
 *     cdef tuple i
11629
10522
 *     cdef int endian_detector = 1             # <<<<<<<<<<<<<<
11632
10525
 */
11633
10526
  __pyx_v_endian_detector = 1;
11634
10527
 
11635
 
  /* "numpy.pxd":791
 
10528
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":791
11636
10529
 *     cdef tuple i
11637
10530
 *     cdef int endian_detector = 1
11638
10531
 *     cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)             # <<<<<<<<<<<<<<
11641
10534
 */
11642
10535
  __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
11643
10536
 
11644
 
  /* "numpy.pxd":794
 
10537
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794
11645
10538
 *     cdef tuple fields
11646
10539
 * 
11647
10540
 *     for childname in descr.names:             # <<<<<<<<<<<<<<
11648
10541
 *         fields = descr.fields[childname]
11649
10542
 *         child, new_offset = fields
11650
10543
 */
11651
 
  if (unlikely(((PyObject *)__pyx_v_descr->names) == Py_None)) {
 
10544
  if (unlikely(__pyx_v_descr->names == Py_None)) {
11652
10545
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
11653
10546
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11654
10547
  }
11655
 
  __pyx_t_1 = ((PyObject *)__pyx_v_descr->names); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
 
10548
  __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
11656
10549
  for (;;) {
11657
10550
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
11658
10551
    #if CYTHON_COMPILING_IN_CPYTHON
11660
10553
    #else
11661
10554
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11662
10555
    #endif
11663
 
    __Pyx_XDECREF(__pyx_v_childname);
11664
 
    __pyx_v_childname = __pyx_t_3;
 
10556
    __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
11665
10557
    __pyx_t_3 = 0;
11666
10558
 
11667
 
    /* "numpy.pxd":795
 
10559
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":795
11668
10560
 * 
11669
10561
 *     for childname in descr.names:
11670
10562
 *         fields = descr.fields[childname]             # <<<<<<<<<<<<<<
11671
10563
 *         child, new_offset = fields
11672
10564
 * 
11673
10565
 */
11674
 
    __pyx_t_3 = PyObject_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (!__pyx_t_3) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10566
    __pyx_t_3 = PyObject_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
11675
10567
    __Pyx_GOTREF(__pyx_t_3);
11676
 
    if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected tuple, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11677
 
    __Pyx_XDECREF(((PyObject *)__pyx_v_fields));
11678
 
    __pyx_v_fields = ((PyObject*)__pyx_t_3);
 
10568
    if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10569
    __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
11679
10570
    __pyx_t_3 = 0;
11680
10571
 
11681
 
    /* "numpy.pxd":796
 
10572
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":796
11682
10573
 *     for childname in descr.names:
11683
10574
 *         fields = descr.fields[childname]
11684
10575
 *         child, new_offset = fields             # <<<<<<<<<<<<<<
11685
10576
 * 
11686
 
 *         if (end - f) - (new_offset - offset[0]) < 15:
 
10577
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
11687
10578
 */
11688
 
    if (likely(PyTuple_CheckExact(((PyObject *)__pyx_v_fields)))) {
11689
 
      PyObject* sequence = ((PyObject *)__pyx_v_fields);
 
10579
    if (likely(__pyx_v_fields != Py_None)) {
 
10580
      PyObject* sequence = __pyx_v_fields;
11690
10581
      #if CYTHON_COMPILING_IN_CPYTHON
11691
10582
      Py_ssize_t size = Py_SIZE(sequence);
11692
10583
      #else
11708
10599
      __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11709
10600
      __Pyx_GOTREF(__pyx_t_4);
11710
10601
      #endif
11711
 
    } else if (1) {
 
10602
    } else {
11712
10603
      __Pyx_RaiseNoneNotIterableError(); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11713
 
    } else
11714
 
    {
11715
 
      Py_ssize_t index = -1;
11716
 
      __pyx_t_5 = PyObject_GetIter(((PyObject *)__pyx_v_fields)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11717
 
      __Pyx_GOTREF(__pyx_t_5);
11718
 
      __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
11719
 
      index = 0; __pyx_t_3 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed;
11720
 
      __Pyx_GOTREF(__pyx_t_3);
11721
 
      index = 1; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed;
11722
 
      __Pyx_GOTREF(__pyx_t_4);
11723
 
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11724
 
      __pyx_t_6 = NULL;
11725
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11726
 
      goto __pyx_L6_unpacking_done;
11727
 
      __pyx_L5_unpacking_failed:;
11728
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11729
 
      __pyx_t_6 = NULL;
11730
 
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
11731
 
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11732
 
      __pyx_L6_unpacking_done:;
11733
10604
    }
11734
10605
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11735
 
    __Pyx_XDECREF(((PyObject *)__pyx_v_child));
11736
 
    __pyx_v_child = ((PyArray_Descr *)__pyx_t_3);
 
10606
    __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
11737
10607
    __pyx_t_3 = 0;
11738
 
    __Pyx_XDECREF(__pyx_v_new_offset);
11739
 
    __pyx_v_new_offset = __pyx_t_4;
 
10608
    __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
11740
10609
    __pyx_t_4 = 0;
11741
10610
 
11742
 
    /* "numpy.pxd":798
 
10611
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798
11743
10612
 *         child, new_offset = fields
11744
10613
 * 
11745
 
 *         if (end - f) - (new_offset - offset[0]) < 15:             # <<<<<<<<<<<<<<
 
10614
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:             # <<<<<<<<<<<<<<
11746
10615
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
11747
10616
 * 
11748
10617
 */
11749
 
    __pyx_t_4 = PyInt_FromLong((__pyx_v_end - __pyx_v_f)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10618
    __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11750
10619
    __Pyx_GOTREF(__pyx_t_4);
11751
 
    __pyx_t_3 = PyInt_FromLong((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11752
 
    __Pyx_GOTREF(__pyx_t_3);
11753
 
    __pyx_t_5 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11754
 
    __Pyx_GOTREF(__pyx_t_5);
11755
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11756
 
    __pyx_t_3 = PyNumber_Subtract(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10620
    __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11757
10621
    __Pyx_GOTREF(__pyx_t_3);
11758
10622
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11759
 
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11760
 
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_int_15, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10623
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11761
10624
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11762
 
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11763
 
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11764
 
    if (__pyx_t_7) {
 
10625
    __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0);
 
10626
    if (__pyx_t_6) {
11765
10627
 
11766
 
      /* "numpy.pxd":799
 
10628
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799
11767
10629
 * 
11768
 
 *         if (end - f) - (new_offset - offset[0]) < 15:
 
10630
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
11769
10631
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")             # <<<<<<<<<<<<<<
11770
10632
 * 
11771
10633
 *         if ((child.byteorder == c'>' and little_endian) or
11772
10634
 */
11773
 
      __pyx_t_5 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_32), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11774
 
      __Pyx_GOTREF(__pyx_t_5);
11775
 
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
11776
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
10635
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10636
      __Pyx_GOTREF(__pyx_t_3);
 
10637
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
 
10638
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11777
10639
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11778
 
      goto __pyx_L7;
11779
10640
    }
11780
 
    __pyx_L7:;
11781
10641
 
11782
 
    /* "numpy.pxd":801
 
10642
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801
11783
10643
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
11784
10644
 * 
11785
10645
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
11786
10646
 *             (child.byteorder == c'<' and not little_endian)):
11787
10647
 *             raise ValueError(u"Non-native byte order not supported")
11788
10648
 */
11789
 
    __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0);
11790
 
    if (__pyx_t_7) {
11791
 
      __pyx_t_8 = (__pyx_v_little_endian != 0);
 
10649
    __pyx_t_6 = ((__pyx_v_child->byteorder == '>') != 0);
 
10650
    if (__pyx_t_6) {
 
10651
      __pyx_t_7 = (__pyx_v_little_endian != 0);
11792
10652
    } else {
11793
 
      __pyx_t_8 = __pyx_t_7;
 
10653
      __pyx_t_7 = __pyx_t_6;
11794
10654
    }
11795
 
    if (!__pyx_t_8) {
 
10655
    if (!__pyx_t_7) {
11796
10656
 
11797
 
      /* "numpy.pxd":802
 
10657
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":802
11798
10658
 * 
11799
10659
 *         if ((child.byteorder == c'>' and little_endian) or
11800
10660
 *             (child.byteorder == c'<' and not little_endian)):             # <<<<<<<<<<<<<<
11801
10661
 *             raise ValueError(u"Non-native byte order not supported")
11802
10662
 *             # One could encode it in the format string and have Cython
11803
10663
 */
11804
 
      __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0);
11805
 
      if (__pyx_t_7) {
11806
 
        __pyx_t_9 = ((!(__pyx_v_little_endian != 0)) != 0);
11807
 
        __pyx_t_10 = __pyx_t_9;
 
10664
      __pyx_t_6 = ((__pyx_v_child->byteorder == '<') != 0);
 
10665
      if (__pyx_t_6) {
 
10666
        __pyx_t_8 = ((!(__pyx_v_little_endian != 0)) != 0);
 
10667
        __pyx_t_9 = __pyx_t_8;
11808
10668
      } else {
11809
 
        __pyx_t_10 = __pyx_t_7;
 
10669
        __pyx_t_9 = __pyx_t_6;
11810
10670
      }
11811
 
      __pyx_t_7 = __pyx_t_10;
 
10671
      __pyx_t_6 = __pyx_t_9;
11812
10672
    } else {
11813
 
      __pyx_t_7 = __pyx_t_8;
 
10673
      __pyx_t_6 = __pyx_t_7;
11814
10674
    }
11815
 
    if (__pyx_t_7) {
 
10675
    if (__pyx_t_6) {
11816
10676
 
11817
 
      /* "numpy.pxd":803
 
10677
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803
11818
10678
 *         if ((child.byteorder == c'>' and little_endian) or
11819
10679
 *             (child.byteorder == c'<' and not little_endian)):
11820
10680
 *             raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
11821
10681
 *             # One could encode it in the format string and have Cython
11822
10682
 *             # complain instead, BUT: < and > in format strings also imply
11823
10683
 */
11824
 
      __pyx_t_5 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_33), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11825
 
      __Pyx_GOTREF(__pyx_t_5);
11826
 
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
11827
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
10684
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10685
      __Pyx_GOTREF(__pyx_t_3);
 
10686
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
 
10687
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11828
10688
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11829
 
      goto __pyx_L8;
11830
10689
    }
11831
 
    __pyx_L8:;
11832
10690
 
11833
 
    /* "numpy.pxd":813
 
10691
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":813
11834
10692
 * 
11835
10693
 *         # Output padding bytes
11836
10694
 *         while offset[0] < new_offset:             # <<<<<<<<<<<<<<
11838
10696
 *             f += 1
11839
10697
 */
11840
10698
    while (1) {
11841
 
      __pyx_t_5 = PyInt_FromLong((__pyx_v_offset[0])); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11842
 
      __Pyx_GOTREF(__pyx_t_5);
11843
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11844
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11845
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10699
      __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10700
      __Pyx_GOTREF(__pyx_t_3);
 
10701
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11846
10702
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11847
 
      if (!__pyx_t_7) break;
 
10703
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10704
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10705
      if (!__pyx_t_6) break;
11848
10706
 
11849
 
      /* "numpy.pxd":814
 
10707
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":814
11850
10708
 *         # Output padding bytes
11851
10709
 *         while offset[0] < new_offset:
11852
10710
 *             f[0] = 120 # "x"; pad byte             # <<<<<<<<<<<<<<
11855
10713
 */
11856
10714
      (__pyx_v_f[0]) = 120;
11857
10715
 
11858
 
      /* "numpy.pxd":815
 
10716
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":815
11859
10717
 *         while offset[0] < new_offset:
11860
10718
 *             f[0] = 120 # "x"; pad byte
11861
10719
 *             f += 1             # <<<<<<<<<<<<<<
11864
10722
 */
11865
10723
      __pyx_v_f = (__pyx_v_f + 1);
11866
10724
 
11867
 
      /* "numpy.pxd":816
 
10725
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":816
11868
10726
 *             f[0] = 120 # "x"; pad byte
11869
10727
 *             f += 1
11870
10728
 *             offset[0] += 1             # <<<<<<<<<<<<<<
11871
10729
 * 
11872
10730
 *         offset[0] += child.itemsize
11873
10731
 */
11874
 
      __pyx_t_11 = 0;
11875
 
      (__pyx_v_offset[__pyx_t_11]) = ((__pyx_v_offset[__pyx_t_11]) + 1);
 
10732
      __pyx_t_10 = 0;
 
10733
      (__pyx_v_offset[__pyx_t_10]) = ((__pyx_v_offset[__pyx_t_10]) + 1);
11876
10734
    }
11877
10735
 
11878
 
    /* "numpy.pxd":818
 
10736
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":818
11879
10737
 *             offset[0] += 1
11880
10738
 * 
11881
10739
 *         offset[0] += child.itemsize             # <<<<<<<<<<<<<<
11882
10740
 * 
11883
10741
 *         if not PyDataType_HASFIELDS(child):
11884
10742
 */
11885
 
    __pyx_t_11 = 0;
11886
 
    (__pyx_v_offset[__pyx_t_11]) = ((__pyx_v_offset[__pyx_t_11]) + __pyx_v_child->elsize);
 
10743
    __pyx_t_10 = 0;
 
10744
    (__pyx_v_offset[__pyx_t_10]) = ((__pyx_v_offset[__pyx_t_10]) + __pyx_v_child->elsize);
11887
10745
 
11888
 
    /* "numpy.pxd":820
 
10746
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820
11889
10747
 *         offset[0] += child.itemsize
11890
10748
 * 
11891
10749
 *         if not PyDataType_HASFIELDS(child):             # <<<<<<<<<<<<<<
11892
10750
 *             t = child.type_num
11893
10751
 *             if end - f < 5:
11894
10752
 */
11895
 
    __pyx_t_7 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
11896
 
    if (__pyx_t_7) {
 
10753
    __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
 
10754
    if (__pyx_t_6) {
11897
10755
 
11898
 
      /* "numpy.pxd":821
 
10756
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":821
11899
10757
 * 
11900
10758
 *         if not PyDataType_HASFIELDS(child):
11901
10759
 *             t = child.type_num             # <<<<<<<<<<<<<<
11902
10760
 *             if end - f < 5:
11903
10761
 *                 raise RuntimeError(u"Format string allocated too short.")
11904
10762
 */
11905
 
      __pyx_t_3 = PyInt_FromLong(__pyx_v_child->type_num); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11906
 
      __Pyx_GOTREF(__pyx_t_3);
11907
 
      __Pyx_XDECREF(__pyx_v_t);
11908
 
      __pyx_v_t = __pyx_t_3;
11909
 
      __pyx_t_3 = 0;
 
10763
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10764
      __Pyx_GOTREF(__pyx_t_4);
 
10765
      __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
 
10766
      __pyx_t_4 = 0;
11910
10767
 
11911
 
      /* "numpy.pxd":822
 
10768
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822
11912
10769
 *         if not PyDataType_HASFIELDS(child):
11913
10770
 *             t = child.type_num
11914
10771
 *             if end - f < 5:             # <<<<<<<<<<<<<<
11915
10772
 *                 raise RuntimeError(u"Format string allocated too short.")
11916
10773
 * 
11917
10774
 */
11918
 
      __pyx_t_7 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
11919
 
      if (__pyx_t_7) {
 
10775
      __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
 
10776
      if (__pyx_t_6) {
11920
10777
 
11921
 
        /* "numpy.pxd":823
 
10778
        /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823
11922
10779
 *             t = child.type_num
11923
10780
 *             if end - f < 5:
11924
10781
 *                 raise RuntimeError(u"Format string allocated too short.")             # <<<<<<<<<<<<<<
11925
10782
 * 
11926
10783
 *             # Until ticket #99 is fixed, use integers to avoid warnings
11927
10784
 */
11928
 
        __pyx_t_3 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_35), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11929
 
        __Pyx_GOTREF(__pyx_t_3);
11930
 
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
11931
 
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
10785
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10786
        __Pyx_GOTREF(__pyx_t_4);
 
10787
        __Pyx_Raise(__pyx_t_4, 0, 0, 0);
 
10788
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11932
10789
        {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11933
 
        goto __pyx_L12;
11934
10790
      }
11935
 
      __pyx_L12:;
11936
10791
 
11937
 
      /* "numpy.pxd":826
 
10792
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":826
11938
10793
 * 
11939
10794
 *             # Until ticket #99 is fixed, use integers to avoid warnings
11940
10795
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"             # <<<<<<<<<<<<<<
11941
10796
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
11942
10797
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
11943
10798
 */
11944
 
      __pyx_t_3 = PyInt_FromLong(NPY_BYTE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11945
 
      __Pyx_GOTREF(__pyx_t_3);
11946
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10799
      __pyx_t_4 = PyInt_FromLong(NPY_BYTE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10800
      __Pyx_GOTREF(__pyx_t_4);
 
10801
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10802
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10803
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11947
10804
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11948
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11949
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11950
 
      if (__pyx_t_7) {
 
10805
      if (__pyx_t_6) {
11951
10806
        (__pyx_v_f[0]) = 98;
11952
 
        goto __pyx_L13;
 
10807
        goto __pyx_L11;
11953
10808
      }
11954
10809
 
11955
 
      /* "numpy.pxd":827
 
10810
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":827
11956
10811
 *             # Until ticket #99 is fixed, use integers to avoid warnings
11957
10812
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"
11958
10813
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"             # <<<<<<<<<<<<<<
11959
10814
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
11960
10815
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
11961
10816
 */
11962
 
      __pyx_t_5 = PyInt_FromLong(NPY_UBYTE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11963
 
      __Pyx_GOTREF(__pyx_t_5);
11964
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11965
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11966
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10817
      __pyx_t_3 = PyInt_FromLong(NPY_UBYTE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10818
      __Pyx_GOTREF(__pyx_t_3);
 
10819
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11967
10820
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11968
 
      if (__pyx_t_7) {
 
10821
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10822
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10823
      if (__pyx_t_6) {
11969
10824
        (__pyx_v_f[0]) = 66;
11970
 
        goto __pyx_L13;
 
10825
        goto __pyx_L11;
11971
10826
      }
11972
10827
 
11973
 
      /* "numpy.pxd":828
 
10828
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":828
11974
10829
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"
11975
10830
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
11976
10831
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"             # <<<<<<<<<<<<<<
11977
10832
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
11978
10833
 *             elif t == NPY_INT:         f[0] = 105 #"i"
11979
10834
 */
11980
 
      __pyx_t_3 = PyInt_FromLong(NPY_SHORT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11981
 
      __Pyx_GOTREF(__pyx_t_3);
11982
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10835
      __pyx_t_4 = PyInt_FromLong(NPY_SHORT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10836
      __Pyx_GOTREF(__pyx_t_4);
 
10837
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10838
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10839
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11983
10840
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11984
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11985
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11986
 
      if (__pyx_t_7) {
 
10841
      if (__pyx_t_6) {
11987
10842
        (__pyx_v_f[0]) = 104;
11988
 
        goto __pyx_L13;
 
10843
        goto __pyx_L11;
11989
10844
      }
11990
10845
 
11991
 
      /* "numpy.pxd":829
 
10846
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":829
11992
10847
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
11993
10848
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
11994
10849
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"             # <<<<<<<<<<<<<<
11995
10850
 *             elif t == NPY_INT:         f[0] = 105 #"i"
11996
10851
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
11997
10852
 */
11998
 
      __pyx_t_5 = PyInt_FromLong(NPY_USHORT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11999
 
      __Pyx_GOTREF(__pyx_t_5);
12000
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12001
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12002
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10853
      __pyx_t_3 = PyInt_FromLong(NPY_USHORT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10854
      __Pyx_GOTREF(__pyx_t_3);
 
10855
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12003
10856
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12004
 
      if (__pyx_t_7) {
 
10857
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10858
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10859
      if (__pyx_t_6) {
12005
10860
        (__pyx_v_f[0]) = 72;
12006
 
        goto __pyx_L13;
 
10861
        goto __pyx_L11;
12007
10862
      }
12008
10863
 
12009
 
      /* "numpy.pxd":830
 
10864
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":830
12010
10865
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
12011
10866
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
12012
10867
 *             elif t == NPY_INT:         f[0] = 105 #"i"             # <<<<<<<<<<<<<<
12013
10868
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
12014
10869
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
12015
10870
 */
12016
 
      __pyx_t_3 = PyInt_FromLong(NPY_INT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12017
 
      __Pyx_GOTREF(__pyx_t_3);
12018
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10871
      __pyx_t_4 = PyInt_FromLong(NPY_INT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10872
      __Pyx_GOTREF(__pyx_t_4);
 
10873
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10874
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10875
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12019
10876
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12020
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12021
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12022
 
      if (__pyx_t_7) {
 
10877
      if (__pyx_t_6) {
12023
10878
        (__pyx_v_f[0]) = 105;
12024
 
        goto __pyx_L13;
 
10879
        goto __pyx_L11;
12025
10880
      }
12026
10881
 
12027
 
      /* "numpy.pxd":831
 
10882
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":831
12028
10883
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
12029
10884
 *             elif t == NPY_INT:         f[0] = 105 #"i"
12030
10885
 *             elif t == NPY_UINT:        f[0] =  73 #"I"             # <<<<<<<<<<<<<<
12031
10886
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
12032
10887
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
12033
10888
 */
12034
 
      __pyx_t_5 = PyInt_FromLong(NPY_UINT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12035
 
      __Pyx_GOTREF(__pyx_t_5);
12036
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12037
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12038
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10889
      __pyx_t_3 = PyInt_FromLong(NPY_UINT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10890
      __Pyx_GOTREF(__pyx_t_3);
 
10891
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12039
10892
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12040
 
      if (__pyx_t_7) {
 
10893
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10894
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10895
      if (__pyx_t_6) {
12041
10896
        (__pyx_v_f[0]) = 73;
12042
 
        goto __pyx_L13;
 
10897
        goto __pyx_L11;
12043
10898
      }
12044
10899
 
12045
 
      /* "numpy.pxd":832
 
10900
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":832
12046
10901
 *             elif t == NPY_INT:         f[0] = 105 #"i"
12047
10902
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
12048
10903
 *             elif t == NPY_LONG:        f[0] = 108 #"l"             # <<<<<<<<<<<<<<
12049
10904
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
12050
10905
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
12051
10906
 */
12052
 
      __pyx_t_3 = PyInt_FromLong(NPY_LONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12053
 
      __Pyx_GOTREF(__pyx_t_3);
12054
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10907
      __pyx_t_4 = PyInt_FromLong(NPY_LONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10908
      __Pyx_GOTREF(__pyx_t_4);
 
10909
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10910
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10911
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12055
10912
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12056
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12057
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12058
 
      if (__pyx_t_7) {
 
10913
      if (__pyx_t_6) {
12059
10914
        (__pyx_v_f[0]) = 108;
12060
 
        goto __pyx_L13;
 
10915
        goto __pyx_L11;
12061
10916
      }
12062
10917
 
12063
 
      /* "numpy.pxd":833
 
10918
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":833
12064
10919
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
12065
10920
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
12066
10921
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"             # <<<<<<<<<<<<<<
12067
10922
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
12068
10923
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
12069
10924
 */
12070
 
      __pyx_t_5 = PyInt_FromLong(NPY_ULONG); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12071
 
      __Pyx_GOTREF(__pyx_t_5);
12072
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12073
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12074
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10925
      __pyx_t_3 = PyInt_FromLong(NPY_ULONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10926
      __Pyx_GOTREF(__pyx_t_3);
 
10927
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12075
10928
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12076
 
      if (__pyx_t_7) {
 
10929
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10930
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10931
      if (__pyx_t_6) {
12077
10932
        (__pyx_v_f[0]) = 76;
12078
 
        goto __pyx_L13;
 
10933
        goto __pyx_L11;
12079
10934
      }
12080
10935
 
12081
 
      /* "numpy.pxd":834
 
10936
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":834
12082
10937
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
12083
10938
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
12084
10939
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"             # <<<<<<<<<<<<<<
12085
10940
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
12086
10941
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
12087
10942
 */
12088
 
      __pyx_t_3 = PyInt_FromLong(NPY_LONGLONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12089
 
      __Pyx_GOTREF(__pyx_t_3);
12090
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10943
      __pyx_t_4 = PyInt_FromLong(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10944
      __Pyx_GOTREF(__pyx_t_4);
 
10945
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10946
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10947
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12091
10948
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12092
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12093
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12094
 
      if (__pyx_t_7) {
 
10949
      if (__pyx_t_6) {
12095
10950
        (__pyx_v_f[0]) = 113;
12096
 
        goto __pyx_L13;
 
10951
        goto __pyx_L11;
12097
10952
      }
12098
10953
 
12099
 
      /* "numpy.pxd":835
 
10954
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":835
12100
10955
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
12101
10956
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
12102
10957
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"             # <<<<<<<<<<<<<<
12103
10958
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
12104
10959
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
12105
10960
 */
12106
 
      __pyx_t_5 = PyInt_FromLong(NPY_ULONGLONG); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12107
 
      __Pyx_GOTREF(__pyx_t_5);
12108
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12109
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12110
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10961
      __pyx_t_3 = PyInt_FromLong(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10962
      __Pyx_GOTREF(__pyx_t_3);
 
10963
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12111
10964
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12112
 
      if (__pyx_t_7) {
 
10965
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10966
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10967
      if (__pyx_t_6) {
12113
10968
        (__pyx_v_f[0]) = 81;
12114
 
        goto __pyx_L13;
 
10969
        goto __pyx_L11;
12115
10970
      }
12116
10971
 
12117
 
      /* "numpy.pxd":836
 
10972
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":836
12118
10973
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
12119
10974
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
12120
10975
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"             # <<<<<<<<<<<<<<
12121
10976
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
12122
10977
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
12123
10978
 */
12124
 
      __pyx_t_3 = PyInt_FromLong(NPY_FLOAT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12125
 
      __Pyx_GOTREF(__pyx_t_3);
12126
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10979
      __pyx_t_4 = PyInt_FromLong(NPY_FLOAT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10980
      __Pyx_GOTREF(__pyx_t_4);
 
10981
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10982
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10983
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12127
10984
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12128
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12129
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12130
 
      if (__pyx_t_7) {
 
10985
      if (__pyx_t_6) {
12131
10986
        (__pyx_v_f[0]) = 102;
12132
 
        goto __pyx_L13;
 
10987
        goto __pyx_L11;
12133
10988
      }
12134
10989
 
12135
 
      /* "numpy.pxd":837
 
10990
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":837
12136
10991
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
12137
10992
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
12138
10993
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"             # <<<<<<<<<<<<<<
12139
10994
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
12140
10995
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
12141
10996
 */
12142
 
      __pyx_t_5 = PyInt_FromLong(NPY_DOUBLE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12143
 
      __Pyx_GOTREF(__pyx_t_5);
12144
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12145
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12146
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10997
      __pyx_t_3 = PyInt_FromLong(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10998
      __Pyx_GOTREF(__pyx_t_3);
 
10999
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12147
11000
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12148
 
      if (__pyx_t_7) {
 
11001
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11002
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11003
      if (__pyx_t_6) {
12149
11004
        (__pyx_v_f[0]) = 100;
12150
 
        goto __pyx_L13;
 
11005
        goto __pyx_L11;
12151
11006
      }
12152
11007
 
12153
 
      /* "numpy.pxd":838
 
11008
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":838
12154
11009
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
12155
11010
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
12156
11011
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"             # <<<<<<<<<<<<<<
12157
11012
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
12158
11013
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
12159
11014
 */
12160
 
      __pyx_t_3 = PyInt_FromLong(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12161
 
      __Pyx_GOTREF(__pyx_t_3);
12162
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11015
      __pyx_t_4 = PyInt_FromLong(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11016
      __Pyx_GOTREF(__pyx_t_4);
 
11017
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11018
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11019
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12163
11020
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12164
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12165
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12166
 
      if (__pyx_t_7) {
 
11021
      if (__pyx_t_6) {
12167
11022
        (__pyx_v_f[0]) = 103;
12168
 
        goto __pyx_L13;
 
11023
        goto __pyx_L11;
12169
11024
      }
12170
11025
 
12171
 
      /* "numpy.pxd":839
 
11026
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":839
12172
11027
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
12173
11028
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
12174
11029
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf             # <<<<<<<<<<<<<<
12175
11030
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
12176
11031
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
12177
11032
 */
12178
 
      __pyx_t_5 = PyInt_FromLong(NPY_CFLOAT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12179
 
      __Pyx_GOTREF(__pyx_t_5);
12180
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12181
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12182
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11033
      __pyx_t_3 = PyInt_FromLong(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11034
      __Pyx_GOTREF(__pyx_t_3);
 
11035
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12183
11036
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12184
 
      if (__pyx_t_7) {
 
11037
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11038
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11039
      if (__pyx_t_6) {
12185
11040
        (__pyx_v_f[0]) = 90;
12186
11041
        (__pyx_v_f[1]) = 102;
12187
11042
        __pyx_v_f = (__pyx_v_f + 1);
12188
 
        goto __pyx_L13;
 
11043
        goto __pyx_L11;
12189
11044
      }
12190
11045
 
12191
 
      /* "numpy.pxd":840
 
11046
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":840
12192
11047
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
12193
11048
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
12194
11049
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd             # <<<<<<<<<<<<<<
12195
11050
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
12196
11051
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
12197
11052
 */
12198
 
      __pyx_t_3 = PyInt_FromLong(NPY_CDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12199
 
      __Pyx_GOTREF(__pyx_t_3);
12200
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11053
      __pyx_t_4 = PyInt_FromLong(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11054
      __Pyx_GOTREF(__pyx_t_4);
 
11055
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11056
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11057
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12201
11058
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12202
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12203
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12204
 
      if (__pyx_t_7) {
 
11059
      if (__pyx_t_6) {
12205
11060
        (__pyx_v_f[0]) = 90;
12206
11061
        (__pyx_v_f[1]) = 100;
12207
11062
        __pyx_v_f = (__pyx_v_f + 1);
12208
 
        goto __pyx_L13;
 
11063
        goto __pyx_L11;
12209
11064
      }
12210
11065
 
12211
 
      /* "numpy.pxd":841
 
11066
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":841
12212
11067
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
12213
11068
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
12214
11069
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg             # <<<<<<<<<<<<<<
12215
11070
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
12216
11071
 *             else:
12217
11072
 */
12218
 
      __pyx_t_5 = PyInt_FromLong(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12219
 
      __Pyx_GOTREF(__pyx_t_5);
12220
 
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12221
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12222
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11073
      __pyx_t_3 = PyInt_FromLong(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11074
      __Pyx_GOTREF(__pyx_t_3);
 
11075
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12223
11076
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12224
 
      if (__pyx_t_7) {
 
11077
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11078
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11079
      if (__pyx_t_6) {
12225
11080
        (__pyx_v_f[0]) = 90;
12226
11081
        (__pyx_v_f[1]) = 103;
12227
11082
        __pyx_v_f = (__pyx_v_f + 1);
12228
 
        goto __pyx_L13;
 
11083
        goto __pyx_L11;
12229
11084
      }
12230
11085
 
12231
 
      /* "numpy.pxd":842
 
11086
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":842
12232
11087
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
12233
11088
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
12234
11089
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"             # <<<<<<<<<<<<<<
12235
11090
 *             else:
12236
11091
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
12237
11092
 */
12238
 
      __pyx_t_3 = PyInt_FromLong(NPY_OBJECT); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12239
 
      __Pyx_GOTREF(__pyx_t_3);
12240
 
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11093
      __pyx_t_4 = PyInt_FromLong(NPY_OBJECT); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11094
      __Pyx_GOTREF(__pyx_t_4);
 
11095
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11096
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11097
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12241
11098
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12242
 
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12243
 
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12244
 
      if (__pyx_t_7) {
 
11099
      if (__pyx_t_6) {
12245
11100
        (__pyx_v_f[0]) = 79;
12246
 
        goto __pyx_L13;
 
11101
        goto __pyx_L11;
12247
11102
      }
12248
11103
      /*else*/ {
12249
11104
 
12250
 
        /* "numpy.pxd":844
 
11105
        /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":844
12251
11106
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
12252
11107
 *             else:
12253
11108
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)             # <<<<<<<<<<<<<<
12254
11109
 *             f += 1
12255
11110
 *         else:
12256
11111
 */
12257
 
        __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_u_30), __pyx_v_t); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12258
 
        __Pyx_GOTREF(((PyObject *)__pyx_t_5));
12259
 
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12260
 
        __Pyx_GOTREF(__pyx_t_3);
12261
 
        PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_5));
12262
 
        __Pyx_GIVEREF(((PyObject *)__pyx_t_5));
12263
 
        __pyx_t_5 = 0;
12264
 
        __pyx_t_5 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12265
 
        __Pyx_GOTREF(__pyx_t_5);
12266
 
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
12267
 
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
12268
 
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
11112
        __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11113
        __Pyx_GOTREF(__pyx_t_3);
 
11114
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11115
        __Pyx_GOTREF(__pyx_t_4);
 
11116
        PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
 
11117
        __Pyx_GIVEREF(__pyx_t_3);
 
11118
        __pyx_t_3 = 0;
 
11119
        __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11120
        __Pyx_GOTREF(__pyx_t_3);
 
11121
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
11122
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
 
11123
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12269
11124
        {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12270
11125
      }
12271
 
      __pyx_L13:;
 
11126
      __pyx_L11:;
12272
11127
 
12273
 
      /* "numpy.pxd":845
 
11128
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":845
12274
11129
 *             else:
12275
11130
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
12276
11131
 *             f += 1             # <<<<<<<<<<<<<<
12278
11133
 *             # Cython ignores struct boundary information ("T{...}"),
12279
11134
 */
12280
11135
      __pyx_v_f = (__pyx_v_f + 1);
12281
 
      goto __pyx_L11;
 
11136
      goto __pyx_L9;
12282
11137
    }
12283
11138
    /*else*/ {
12284
11139
 
12285
 
      /* "numpy.pxd":849
 
11140
      /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":849
12286
11141
 *             # Cython ignores struct boundary information ("T{...}"),
12287
11142
 *             # so don't output it
12288
11143
 *             f = _util_dtypestring(child, f, end, offset)             # <<<<<<<<<<<<<<
12289
11144
 *     return f
12290
11145
 * 
12291
11146
 */
12292
 
      __pyx_t_12 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_12 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12293
 
      __pyx_v_f = __pyx_t_12;
 
11147
      __pyx_t_11 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_11 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11148
      __pyx_v_f = __pyx_t_11;
12294
11149
    }
12295
 
    __pyx_L11:;
 
11150
    __pyx_L9:;
12296
11151
  }
12297
11152
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12298
11153
 
12299
 
  /* "numpy.pxd":850
 
11154
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":850
12300
11155
 *             # so don't output it
12301
11156
 *             f = _util_dtypestring(child, f, end, offset)
12302
11157
 *     return f             # <<<<<<<<<<<<<<
12306
11161
  __pyx_r = __pyx_v_f;
12307
11162
  goto __pyx_L0;
12308
11163
 
12309
 
  __pyx_r = 0;
12310
 
  goto __pyx_L0;
 
11164
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783
 
11165
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 
11166
 * 
 
11167
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:             # <<<<<<<<<<<<<<
 
11168
 *     # Recursive utility function used in __getbuffer__ to get format
 
11169
 *     # string. The new location in the format string is returned.
 
11170
 */
 
11171
 
 
11172
  /* function exit code */
12311
11173
  __pyx_L1_error:;
12312
11174
  __Pyx_XDECREF(__pyx_t_1);
12313
11175
  __Pyx_XDECREF(__pyx_t_3);
12314
11176
  __Pyx_XDECREF(__pyx_t_4);
12315
 
  __Pyx_XDECREF(__pyx_t_5);
12316
11177
  __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename);
12317
11178
  __pyx_r = NULL;
12318
11179
  __pyx_L0:;
12325
11186
  return __pyx_r;
12326
11187
}
12327
11188
 
12328
 
/* "numpy.pxd":965
 
11189
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966
12329
11190
 * 
12330
11191
 * 
12331
11192
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
12340
11201
  int __pyx_t_2;
12341
11202
  __Pyx_RefNannySetupContext("set_array_base", 0);
12342
11203
 
12343
 
  /* "numpy.pxd":967
 
11204
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968
12344
11205
 * cdef inline void set_array_base(ndarray arr, object base):
12345
11206
 *      cdef PyObject* baseptr
12346
11207
 *      if base is None:             # <<<<<<<<<<<<<<
12351
11212
  __pyx_t_2 = (__pyx_t_1 != 0);
12352
11213
  if (__pyx_t_2) {
12353
11214
 
12354
 
    /* "numpy.pxd":968
 
11215
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":969
12355
11216
 *      cdef PyObject* baseptr
12356
11217
 *      if base is None:
12357
11218
 *          baseptr = NULL             # <<<<<<<<<<<<<<
12363
11224
  }
12364
11225
  /*else*/ {
12365
11226
 
12366
 
    /* "numpy.pxd":970
 
11227
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":971
12367
11228
 *          baseptr = NULL
12368
11229
 *      else:
12369
11230
 *          Py_INCREF(base) # important to do this before decref below!             # <<<<<<<<<<<<<<
12372
11233
 */
12373
11234
    Py_INCREF(__pyx_v_base);
12374
11235
 
12375
 
    /* "numpy.pxd":971
 
11236
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":972
12376
11237
 *      else:
12377
11238
 *          Py_INCREF(base) # important to do this before decref below!
12378
11239
 *          baseptr = <PyObject*>base             # <<<<<<<<<<<<<<
12383
11244
  }
12384
11245
  __pyx_L3:;
12385
11246
 
12386
 
  /* "numpy.pxd":972
 
11247
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":973
12387
11248
 *          Py_INCREF(base) # important to do this before decref below!
12388
11249
 *          baseptr = <PyObject*>base
12389
11250
 *      Py_XDECREF(arr.base)             # <<<<<<<<<<<<<<
12392
11253
 */
12393
11254
  Py_XDECREF(__pyx_v_arr->base);
12394
11255
 
12395
 
  /* "numpy.pxd":973
 
11256
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":974
12396
11257
 *          baseptr = <PyObject*>base
12397
11258
 *      Py_XDECREF(arr.base)
12398
11259
 *      arr.base = baseptr             # <<<<<<<<<<<<<<
12401
11262
 */
12402
11263
  __pyx_v_arr->base = __pyx_v_baseptr;
12403
11264
 
 
11265
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966
 
11266
 * 
 
11267
 * 
 
11268
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 
11269
 *      cdef PyObject* baseptr
 
11270
 *      if base is None:
 
11271
 */
 
11272
 
 
11273
  /* function exit code */
12404
11274
  __Pyx_RefNannyFinishContext();
12405
11275
}
12406
11276
 
12407
 
/* "numpy.pxd":975
 
11277
/* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976
12408
11278
 *      arr.base = baseptr
12409
11279
 * 
12410
11280
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
12418
11288
  int __pyx_t_1;
12419
11289
  __Pyx_RefNannySetupContext("get_array_base", 0);
12420
11290
 
12421
 
  /* "numpy.pxd":976
 
11291
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977
12422
11292
 * 
12423
11293
 * cdef inline object get_array_base(ndarray arr):
12424
11294
 *     if arr.base is NULL:             # <<<<<<<<<<<<<<
12428
11298
  __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0);
12429
11299
  if (__pyx_t_1) {
12430
11300
 
12431
 
    /* "numpy.pxd":977
 
11301
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":978
12432
11302
 * cdef inline object get_array_base(ndarray arr):
12433
11303
 *     if arr.base is NULL:
12434
11304
 *         return None             # <<<<<<<<<<<<<<
12439
11309
    __Pyx_INCREF(Py_None);
12440
11310
    __pyx_r = Py_None;
12441
11311
    goto __pyx_L0;
12442
 
    goto __pyx_L3;
12443
11312
  }
12444
11313
  /*else*/ {
12445
11314
 
12446
 
    /* "numpy.pxd":979
 
11315
    /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":980
12447
11316
 *         return None
12448
11317
 *     else:
12449
11318
 *         return <object>arr.base             # <<<<<<<<<<<<<<
12453
11322
    __pyx_r = ((PyObject *)__pyx_v_arr->base);
12454
11323
    goto __pyx_L0;
12455
11324
  }
12456
 
  __pyx_L3:;
12457
 
 
12458
 
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
11325
 
 
11326
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976
 
11327
 *      arr.base = baseptr
 
11328
 * 
 
11329
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 
11330
 *     if arr.base is NULL:
 
11331
 *         return None
 
11332
 */
 
11333
 
 
11334
  /* function exit code */
12459
11335
  __pyx_L0:;
12460
11336
  __Pyx_XGIVEREF(__pyx_r);
12461
11337
  __Pyx_RefNannyFinishContext();
12462
11338
  return __pyx_r;
12463
11339
}
12464
 
static struct __pyx_vtabstruct_5adios_AdiosFile __pyx_vtable_5adios_AdiosFile;
12465
 
 
12466
 
static PyObject *__pyx_tp_new_5adios_AdiosFile(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
12467
 
  struct __pyx_obj_5adios_AdiosFile *p;
12468
 
  PyObject *o;
12469
 
  o = (*t->tp_alloc)(t, 0);
12470
 
  if (unlikely(!o)) return 0;
12471
 
  p = ((struct __pyx_obj_5adios_AdiosFile *)o);
12472
 
  p->__pyx_vtab = __pyx_vtabptr_5adios_AdiosFile;
12473
 
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
12474
 
  p->group = ((PyObject*)Py_None); Py_INCREF(Py_None);
12475
 
  return o;
12476
 
}
12477
 
 
12478
 
static void __pyx_tp_dealloc_5adios_AdiosFile(PyObject *o) {
12479
 
  struct __pyx_obj_5adios_AdiosFile *p = (struct __pyx_obj_5adios_AdiosFile *)o;
12480
 
  PyObject_GC_UnTrack(o);
12481
 
  Py_CLEAR(p->name);
12482
 
  Py_CLEAR(p->group);
12483
 
  (*Py_TYPE(o)->tp_free)(o);
12484
 
}
12485
 
 
12486
 
static int __pyx_tp_traverse_5adios_AdiosFile(PyObject *o, visitproc v, void *a) {
12487
 
  int e;
12488
 
  struct __pyx_obj_5adios_AdiosFile *p = (struct __pyx_obj_5adios_AdiosFile *)o;
12489
 
  if (p->name) {
12490
 
    e = (*v)(p->name, a); if (e) return e;
12491
 
  }
12492
 
  if (p->group) {
12493
 
    e = (*v)(p->group, a); if (e) return e;
12494
 
  }
12495
 
  return 0;
12496
 
}
12497
 
 
12498
 
static int __pyx_tp_clear_5adios_AdiosFile(PyObject *o) {
12499
 
  struct __pyx_obj_5adios_AdiosFile *p = (struct __pyx_obj_5adios_AdiosFile *)o;
12500
 
  PyObject* tmp;
12501
 
  tmp = ((PyObject*)p->name);
12502
 
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
12503
 
  Py_XDECREF(tmp);
12504
 
  tmp = ((PyObject*)p->group);
12505
 
  p->group = ((PyObject*)Py_None); Py_INCREF(Py_None);
12506
 
  Py_XDECREF(tmp);
12507
 
  return 0;
12508
 
}
12509
 
 
12510
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_name(PyObject *o, CYTHON_UNUSED void *x) {
12511
 
  return __pyx_pw_5adios_9AdiosFile_4name_1__get__(o);
12512
 
}
12513
 
 
12514
 
static int __pyx_setprop_5adios_9AdiosFile_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12515
 
  if (v) {
12516
 
    return __pyx_pw_5adios_9AdiosFile_4name_3__set__(o, v);
12517
 
  }
12518
 
  else {
12519
 
    return __pyx_pw_5adios_9AdiosFile_4name_5__del__(o);
12520
 
  }
12521
 
}
12522
 
 
12523
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_groups_count(PyObject *o, CYTHON_UNUSED void *x) {
12524
 
  return __pyx_pw_5adios_9AdiosFile_12groups_count_1__get__(o);
12525
 
}
12526
 
 
12527
 
static int __pyx_setprop_5adios_9AdiosFile_groups_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12528
 
  if (v) {
12529
 
    return __pyx_pw_5adios_9AdiosFile_12groups_count_3__set__(o, v);
12530
 
  }
12531
 
  else {
12532
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12533
 
    return -1;
12534
 
  }
12535
 
}
12536
 
 
12537
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_vars_count(PyObject *o, CYTHON_UNUSED void *x) {
12538
 
  return __pyx_pw_5adios_9AdiosFile_10vars_count_1__get__(o);
12539
 
}
12540
 
 
12541
 
static int __pyx_setprop_5adios_9AdiosFile_vars_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12542
 
  if (v) {
12543
 
    return __pyx_pw_5adios_9AdiosFile_10vars_count_3__set__(o, v);
12544
 
  }
12545
 
  else {
12546
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12547
 
    return -1;
12548
 
  }
12549
 
}
12550
 
 
12551
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_attrs_count(PyObject *o, CYTHON_UNUSED void *x) {
12552
 
  return __pyx_pw_5adios_9AdiosFile_11attrs_count_1__get__(o);
12553
 
}
12554
 
 
12555
 
static int __pyx_setprop_5adios_9AdiosFile_attrs_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12556
 
  if (v) {
12557
 
    return __pyx_pw_5adios_9AdiosFile_11attrs_count_3__set__(o, v);
12558
 
  }
12559
 
  else {
12560
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12561
 
    return -1;
12562
 
  }
12563
 
}
12564
 
 
12565
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_tidx_start(PyObject *o, CYTHON_UNUSED void *x) {
12566
 
  return __pyx_pw_5adios_9AdiosFile_10tidx_start_1__get__(o);
12567
 
}
12568
 
 
12569
 
static int __pyx_setprop_5adios_9AdiosFile_tidx_start(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12570
 
  if (v) {
12571
 
    return __pyx_pw_5adios_9AdiosFile_10tidx_start_3__set__(o, v);
12572
 
  }
12573
 
  else {
12574
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12575
 
    return -1;
12576
 
  }
12577
 
}
12578
 
 
12579
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_ntimesteps(PyObject *o, CYTHON_UNUSED void *x) {
12580
 
  return __pyx_pw_5adios_9AdiosFile_10ntimesteps_1__get__(o);
12581
 
}
12582
 
 
12583
 
static int __pyx_setprop_5adios_9AdiosFile_ntimesteps(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12584
 
  if (v) {
12585
 
    return __pyx_pw_5adios_9AdiosFile_10ntimesteps_3__set__(o, v);
12586
 
  }
12587
 
  else {
12588
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12589
 
    return -1;
12590
 
  }
12591
 
}
12592
 
 
12593
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_version(PyObject *o, CYTHON_UNUSED void *x) {
12594
 
  return __pyx_pw_5adios_9AdiosFile_7version_1__get__(o);
12595
 
}
12596
 
 
12597
 
static int __pyx_setprop_5adios_9AdiosFile_version(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12598
 
  if (v) {
12599
 
    return __pyx_pw_5adios_9AdiosFile_7version_3__set__(o, v);
12600
 
  }
12601
 
  else {
12602
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12603
 
    return -1;
12604
 
  }
12605
 
}
12606
 
 
12607
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_file_size(PyObject *o, CYTHON_UNUSED void *x) {
12608
 
  return __pyx_pw_5adios_9AdiosFile_9file_size_1__get__(o);
12609
 
}
12610
 
 
12611
 
static int __pyx_setprop_5adios_9AdiosFile_file_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12612
 
  if (v) {
12613
 
    return __pyx_pw_5adios_9AdiosFile_9file_size_3__set__(o, v);
12614
 
  }
12615
 
  else {
12616
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12617
 
    return -1;
12618
 
  }
12619
 
}
12620
 
 
12621
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_endianness(PyObject *o, CYTHON_UNUSED void *x) {
12622
 
  return __pyx_pw_5adios_9AdiosFile_10endianness_1__get__(o);
12623
 
}
12624
 
 
12625
 
static int __pyx_setprop_5adios_9AdiosFile_endianness(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12626
 
  if (v) {
12627
 
    return __pyx_pw_5adios_9AdiosFile_10endianness_3__set__(o, v);
12628
 
  }
12629
 
  else {
12630
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12631
 
    return -1;
12632
 
  }
12633
 
}
12634
 
 
12635
 
static PyObject *__pyx_getprop_5adios_9AdiosFile_group(PyObject *o, CYTHON_UNUSED void *x) {
12636
 
  return __pyx_pw_5adios_9AdiosFile_5group_1__get__(o);
12637
 
}
12638
 
 
12639
 
static int __pyx_setprop_5adios_9AdiosFile_group(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12640
 
  if (v) {
12641
 
    return __pyx_pw_5adios_9AdiosFile_5group_3__set__(o, v);
12642
 
  }
12643
 
  else {
12644
 
    return __pyx_pw_5adios_9AdiosFile_5group_5__del__(o);
12645
 
  }
12646
 
}
12647
 
 
12648
 
static PyMethodDef __pyx_methods_5adios_AdiosFile[] = {
12649
 
  {__Pyx_NAMESTR("__del__"), (PyCFunction)__pyx_pw_5adios_9AdiosFile_3__del__, METH_NOARGS, __Pyx_DOCSTR(0)},
12650
 
  {__Pyx_NAMESTR("close"), (PyCFunction)__pyx_pw_5adios_9AdiosFile_5close, METH_NOARGS, __Pyx_DOCSTR(0)},
12651
 
  {__Pyx_NAMESTR("printself"), (PyCFunction)__pyx_pw_5adios_9AdiosFile_7printself, METH_NOARGS, __Pyx_DOCSTR(0)},
12652
 
  {0, 0, 0, 0}
12653
 
};
12654
 
 
12655
 
static struct PyGetSetDef __pyx_getsets_5adios_AdiosFile[] = {
12656
 
  {(char *)"name", __pyx_getprop_5adios_9AdiosFile_name, __pyx_setprop_5adios_9AdiosFile_name, 0, 0},
12657
 
  {(char *)"groups_count", __pyx_getprop_5adios_9AdiosFile_groups_count, __pyx_setprop_5adios_9AdiosFile_groups_count, 0, 0},
12658
 
  {(char *)"vars_count", __pyx_getprop_5adios_9AdiosFile_vars_count, __pyx_setprop_5adios_9AdiosFile_vars_count, 0, 0},
12659
 
  {(char *)"attrs_count", __pyx_getprop_5adios_9AdiosFile_attrs_count, __pyx_setprop_5adios_9AdiosFile_attrs_count, 0, 0},
12660
 
  {(char *)"tidx_start", __pyx_getprop_5adios_9AdiosFile_tidx_start, __pyx_setprop_5adios_9AdiosFile_tidx_start, 0, 0},
12661
 
  {(char *)"ntimesteps", __pyx_getprop_5adios_9AdiosFile_ntimesteps, __pyx_setprop_5adios_9AdiosFile_ntimesteps, 0, 0},
12662
 
  {(char *)"version", __pyx_getprop_5adios_9AdiosFile_version, __pyx_setprop_5adios_9AdiosFile_version, 0, 0},
12663
 
  {(char *)"file_size", __pyx_getprop_5adios_9AdiosFile_file_size, __pyx_setprop_5adios_9AdiosFile_file_size, 0, 0},
12664
 
  {(char *)"endianness", __pyx_getprop_5adios_9AdiosFile_endianness, __pyx_setprop_5adios_9AdiosFile_endianness, 0, 0},
12665
 
  {(char *)"group", __pyx_getprop_5adios_9AdiosFile_group, __pyx_setprop_5adios_9AdiosFile_group, 0, 0},
12666
 
  {0, 0, 0, 0, 0}
12667
 
};
12668
 
 
12669
 
static PyTypeObject __pyx_type_5adios_AdiosFile = {
12670
 
  PyVarObject_HEAD_INIT(0, 0)
12671
 
  __Pyx_NAMESTR("adios.AdiosFile"), /*tp_name*/
12672
 
  sizeof(struct __pyx_obj_5adios_AdiosFile), /*tp_basicsize*/
12673
 
  0, /*tp_itemsize*/
12674
 
  __pyx_tp_dealloc_5adios_AdiosFile, /*tp_dealloc*/
12675
 
  0, /*tp_print*/
12676
 
  0, /*tp_getattr*/
12677
 
  0, /*tp_setattr*/
12678
 
  #if PY_MAJOR_VERSION < 3
12679
 
  0, /*tp_compare*/
12680
 
  #else
12681
 
  0, /*reserved*/
12682
 
  #endif
12683
 
  0, /*tp_repr*/
12684
 
  0, /*tp_as_number*/
12685
 
  0, /*tp_as_sequence*/
12686
 
  0, /*tp_as_mapping*/
12687
 
  0, /*tp_hash*/
12688
 
  0, /*tp_call*/
12689
 
  0, /*tp_str*/
12690
 
  0, /*tp_getattro*/
12691
 
  0, /*tp_setattro*/
12692
 
  0, /*tp_as_buffer*/
12693
 
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
12694
 
  __Pyx_DOCSTR(" Private Memeber "), /*tp_doc*/
12695
 
  __pyx_tp_traverse_5adios_AdiosFile, /*tp_traverse*/
12696
 
  __pyx_tp_clear_5adios_AdiosFile, /*tp_clear*/
12697
 
  0, /*tp_richcompare*/
12698
 
  0, /*tp_weaklistoffset*/
12699
 
  0, /*tp_iter*/
12700
 
  0, /*tp_iternext*/
12701
 
  __pyx_methods_5adios_AdiosFile, /*tp_methods*/
12702
 
  0, /*tp_members*/
12703
 
  __pyx_getsets_5adios_AdiosFile, /*tp_getset*/
12704
 
  0, /*tp_base*/
12705
 
  0, /*tp_dict*/
12706
 
  0, /*tp_descr_get*/
12707
 
  0, /*tp_descr_set*/
12708
 
  0, /*tp_dictoffset*/
12709
 
  __pyx_pw_5adios_9AdiosFile_1__init__, /*tp_init*/
12710
 
  0, /*tp_alloc*/
12711
 
  __pyx_tp_new_5adios_AdiosFile, /*tp_new*/
12712
 
  0, /*tp_free*/
12713
 
  0, /*tp_is_gc*/
12714
 
  0, /*tp_bases*/
12715
 
  0, /*tp_mro*/
12716
 
  0, /*tp_cache*/
12717
 
  0, /*tp_subclasses*/
12718
 
  0, /*tp_weaklist*/
12719
 
  0, /*tp_del*/
12720
 
  #if PY_VERSION_HEX >= 0x02060000
12721
 
  0, /*tp_version_tag*/
12722
 
  #endif
12723
 
};
12724
 
static struct __pyx_vtabstruct_5adios_AdiosGroup __pyx_vtable_5adios_AdiosGroup;
12725
 
 
12726
 
static PyObject *__pyx_tp_new_5adios_AdiosGroup(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
12727
 
  struct __pyx_obj_5adios_AdiosGroup *p;
12728
 
  PyObject *o;
12729
 
  o = (*t->tp_alloc)(t, 0);
12730
 
  if (unlikely(!o)) return 0;
12731
 
  p = ((struct __pyx_obj_5adios_AdiosGroup *)o);
12732
 
  p->__pyx_vtab = __pyx_vtabptr_5adios_AdiosGroup;
12733
 
  p->file = ((struct __pyx_obj_5adios_AdiosFile *)Py_None); Py_INCREF(Py_None);
 
11340
static struct __pyx_vtabstruct_5adios_file __pyx_vtable_5adios_file;
 
11341
 
 
11342
static PyObject *__pyx_tp_new_5adios_file(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
 
11343
  struct __pyx_obj_5adios_file *p;
 
11344
  PyObject *o;
 
11345
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
 
11346
    o = (*t->tp_alloc)(t, 0);
 
11347
  } else {
 
11348
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
 
11349
  }
 
11350
  if (unlikely(!o)) return 0;
 
11351
  p = ((struct __pyx_obj_5adios_file *)o);
 
11352
  p->__pyx_vtab = __pyx_vtabptr_5adios_file;
12734
11353
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
12735
11354
  p->var = ((PyObject*)Py_None); Py_INCREF(Py_None);
 
11355
  p->attr = ((PyObject*)Py_None); Py_INCREF(Py_None);
12736
11356
  return o;
12737
11357
}
12738
11358
 
12739
 
static void __pyx_tp_dealloc_5adios_AdiosGroup(PyObject *o) {
12740
 
  struct __pyx_obj_5adios_AdiosGroup *p = (struct __pyx_obj_5adios_AdiosGroup *)o;
 
11359
static void __pyx_tp_dealloc_5adios_file(PyObject *o) {
 
11360
  struct __pyx_obj_5adios_file *p = (struct __pyx_obj_5adios_file *)o;
 
11361
  #if PY_VERSION_HEX >= 0x030400a1
 
11362
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
 
11363
    if (PyObject_CallFinalizerFromDealloc(o)) return;
 
11364
  }
 
11365
  #endif
12741
11366
  PyObject_GC_UnTrack(o);
12742
 
  Py_CLEAR(p->file);
12743
11367
  Py_CLEAR(p->name);
12744
11368
  Py_CLEAR(p->var);
 
11369
  Py_CLEAR(p->attr);
12745
11370
  (*Py_TYPE(o)->tp_free)(o);
12746
11371
}
12747
11372
 
12748
 
static int __pyx_tp_traverse_5adios_AdiosGroup(PyObject *o, visitproc v, void *a) {
 
11373
static int __pyx_tp_traverse_5adios_file(PyObject *o, visitproc v, void *a) {
12749
11374
  int e;
12750
 
  struct __pyx_obj_5adios_AdiosGroup *p = (struct __pyx_obj_5adios_AdiosGroup *)o;
12751
 
  if (p->file) {
12752
 
    e = (*v)(((PyObject*)p->file), a); if (e) return e;
12753
 
  }
12754
 
  if (p->name) {
12755
 
    e = (*v)(p->name, a); if (e) return e;
12756
 
  }
 
11375
  struct __pyx_obj_5adios_file *p = (struct __pyx_obj_5adios_file *)o;
12757
11376
  if (p->var) {
12758
11377
    e = (*v)(p->var, a); if (e) return e;
12759
11378
  }
 
11379
  if (p->attr) {
 
11380
    e = (*v)(p->attr, a); if (e) return e;
 
11381
  }
12760
11382
  return 0;
12761
11383
}
12762
11384
 
12763
 
static int __pyx_tp_clear_5adios_AdiosGroup(PyObject *o) {
12764
 
  struct __pyx_obj_5adios_AdiosGroup *p = (struct __pyx_obj_5adios_AdiosGroup *)o;
 
11385
static int __pyx_tp_clear_5adios_file(PyObject *o) {
12765
11386
  PyObject* tmp;
12766
 
  tmp = ((PyObject*)p->file);
12767
 
  p->file = ((struct __pyx_obj_5adios_AdiosFile *)Py_None); Py_INCREF(Py_None);
12768
 
  Py_XDECREF(tmp);
12769
 
  tmp = ((PyObject*)p->name);
12770
 
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
12771
 
  Py_XDECREF(tmp);
 
11387
  struct __pyx_obj_5adios_file *p = (struct __pyx_obj_5adios_file *)o;
12772
11388
  tmp = ((PyObject*)p->var);
12773
11389
  p->var = ((PyObject*)Py_None); Py_INCREF(Py_None);
12774
11390
  Py_XDECREF(tmp);
 
11391
  tmp = ((PyObject*)p->attr);
 
11392
  p->attr = ((PyObject*)Py_None); Py_INCREF(Py_None);
 
11393
  Py_XDECREF(tmp);
12775
11394
  return 0;
12776
11395
}
12777
11396
 
12778
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_name(PyObject *o, CYTHON_UNUSED void *x) {
12779
 
  return __pyx_pw_5adios_10AdiosGroup_4name_1__get__(o);
12780
 
}
12781
 
 
12782
 
static int __pyx_setprop_5adios_10AdiosGroup_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12783
 
  if (v) {
12784
 
    return __pyx_pw_5adios_10AdiosGroup_4name_3__set__(o, v);
12785
 
  }
12786
 
  else {
12787
 
    return __pyx_pw_5adios_10AdiosGroup_4name_5__del__(o);
12788
 
  }
12789
 
}
12790
 
 
12791
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_grpid(PyObject *o, CYTHON_UNUSED void *x) {
12792
 
  return __pyx_pw_5adios_10AdiosGroup_5grpid_1__get__(o);
12793
 
}
12794
 
 
12795
 
static int __pyx_setprop_5adios_10AdiosGroup_grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12796
 
  if (v) {
12797
 
    return __pyx_pw_5adios_10AdiosGroup_5grpid_3__set__(o, v);
12798
 
  }
12799
 
  else {
12800
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12801
 
    return -1;
12802
 
  }
12803
 
}
12804
 
 
12805
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_vars_count(PyObject *o, CYTHON_UNUSED void *x) {
12806
 
  return __pyx_pw_5adios_10AdiosGroup_10vars_count_1__get__(o);
12807
 
}
12808
 
 
12809
 
static int __pyx_setprop_5adios_10AdiosGroup_vars_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12810
 
  if (v) {
12811
 
    return __pyx_pw_5adios_10AdiosGroup_10vars_count_3__set__(o, v);
12812
 
  }
12813
 
  else {
12814
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12815
 
    return -1;
12816
 
  }
12817
 
}
12818
 
 
12819
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_attrs_count(PyObject *o, CYTHON_UNUSED void *x) {
12820
 
  return __pyx_pw_5adios_10AdiosGroup_11attrs_count_1__get__(o);
12821
 
}
12822
 
 
12823
 
static int __pyx_setprop_5adios_10AdiosGroup_attrs_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12824
 
  if (v) {
12825
 
    return __pyx_pw_5adios_10AdiosGroup_11attrs_count_3__set__(o, v);
12826
 
  }
12827
 
  else {
12828
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12829
 
    return -1;
12830
 
  }
12831
 
}
12832
 
 
12833
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_timestep(PyObject *o, CYTHON_UNUSED void *x) {
12834
 
  return __pyx_pw_5adios_10AdiosGroup_8timestep_1__get__(o);
12835
 
}
12836
 
 
12837
 
static int __pyx_setprop_5adios_10AdiosGroup_timestep(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12838
 
  if (v) {
12839
 
    return __pyx_pw_5adios_10AdiosGroup_8timestep_3__set__(o, v);
12840
 
  }
12841
 
  else {
12842
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12843
 
    return -1;
12844
 
  }
12845
 
}
12846
 
 
12847
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_lasttimestep(PyObject *o, CYTHON_UNUSED void *x) {
12848
 
  return __pyx_pw_5adios_10AdiosGroup_12lasttimestep_1__get__(o);
12849
 
}
12850
 
 
12851
 
static int __pyx_setprop_5adios_10AdiosGroup_lasttimestep(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12852
 
  if (v) {
12853
 
    return __pyx_pw_5adios_10AdiosGroup_12lasttimestep_3__set__(o, v);
12854
 
  }
12855
 
  else {
12856
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
12857
 
    return -1;
12858
 
  }
12859
 
}
12860
 
 
12861
 
static PyObject *__pyx_getprop_5adios_10AdiosGroup_var(PyObject *o, CYTHON_UNUSED void *x) {
12862
 
  return __pyx_pw_5adios_10AdiosGroup_3var_1__get__(o);
12863
 
}
12864
 
 
12865
 
static int __pyx_setprop_5adios_10AdiosGroup_var(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
12866
 
  if (v) {
12867
 
    return __pyx_pw_5adios_10AdiosGroup_3var_3__set__(o, v);
12868
 
  }
12869
 
  else {
12870
 
    return __pyx_pw_5adios_10AdiosGroup_3var_5__del__(o);
12871
 
  }
12872
 
}
12873
 
 
12874
 
static PyMethodDef __pyx_methods_5adios_AdiosGroup[] = {
12875
 
  {__Pyx_NAMESTR("__del__"), (PyCFunction)__pyx_pw_5adios_10AdiosGroup_3__del__, METH_NOARGS, __Pyx_DOCSTR(0)},
12876
 
  {__Pyx_NAMESTR("close"), (PyCFunction)__pyx_pw_5adios_10AdiosGroup_5close, METH_NOARGS, __Pyx_DOCSTR(0)},
12877
 
  {__Pyx_NAMESTR("printself"), (PyCFunction)__pyx_pw_5adios_10AdiosGroup_7printself, METH_NOARGS, __Pyx_DOCSTR(0)},
 
11397
static PyObject *__pyx_getprop_5adios_4file_name(PyObject *o, CYTHON_UNUSED void *x) {
 
11398
  return __pyx_pw_5adios_4file_4name_1__get__(o);
 
11399
}
 
11400
 
 
11401
static int __pyx_setprop_5adios_4file_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11402
  if (v) {
 
11403
    return __pyx_pw_5adios_4file_4name_3__set__(o, v);
 
11404
  }
 
11405
  else {
 
11406
    return __pyx_pw_5adios_4file_4name_5__del__(o);
 
11407
  }
 
11408
}
 
11409
 
 
11410
static PyObject *__pyx_getprop_5adios_4file_nvars(PyObject *o, CYTHON_UNUSED void *x) {
 
11411
  return __pyx_pw_5adios_4file_5nvars_1__get__(o);
 
11412
}
 
11413
 
 
11414
static int __pyx_setprop_5adios_4file_nvars(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11415
  if (v) {
 
11416
    return __pyx_pw_5adios_4file_5nvars_3__set__(o, v);
 
11417
  }
 
11418
  else {
 
11419
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11420
    return -1;
 
11421
  }
 
11422
}
 
11423
 
 
11424
static PyObject *__pyx_getprop_5adios_4file_nattrs(PyObject *o, CYTHON_UNUSED void *x) {
 
11425
  return __pyx_pw_5adios_4file_6nattrs_1__get__(o);
 
11426
}
 
11427
 
 
11428
static int __pyx_setprop_5adios_4file_nattrs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11429
  if (v) {
 
11430
    return __pyx_pw_5adios_4file_6nattrs_3__set__(o, v);
 
11431
  }
 
11432
  else {
 
11433
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11434
    return -1;
 
11435
  }
 
11436
}
 
11437
 
 
11438
static PyObject *__pyx_getprop_5adios_4file_current_step(PyObject *o, CYTHON_UNUSED void *x) {
 
11439
  return __pyx_pw_5adios_4file_12current_step_1__get__(o);
 
11440
}
 
11441
 
 
11442
static int __pyx_setprop_5adios_4file_current_step(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11443
  if (v) {
 
11444
    return __pyx_pw_5adios_4file_12current_step_3__set__(o, v);
 
11445
  }
 
11446
  else {
 
11447
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11448
    return -1;
 
11449
  }
 
11450
}
 
11451
 
 
11452
static PyObject *__pyx_getprop_5adios_4file_last_step(PyObject *o, CYTHON_UNUSED void *x) {
 
11453
  return __pyx_pw_5adios_4file_9last_step_1__get__(o);
 
11454
}
 
11455
 
 
11456
static int __pyx_setprop_5adios_4file_last_step(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11457
  if (v) {
 
11458
    return __pyx_pw_5adios_4file_9last_step_3__set__(o, v);
 
11459
  }
 
11460
  else {
 
11461
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11462
    return -1;
 
11463
  }
 
11464
}
 
11465
 
 
11466
static PyObject *__pyx_getprop_5adios_4file_endianness(PyObject *o, CYTHON_UNUSED void *x) {
 
11467
  return __pyx_pw_5adios_4file_10endianness_1__get__(o);
 
11468
}
 
11469
 
 
11470
static int __pyx_setprop_5adios_4file_endianness(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11471
  if (v) {
 
11472
    return __pyx_pw_5adios_4file_10endianness_3__set__(o, v);
 
11473
  }
 
11474
  else {
 
11475
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11476
    return -1;
 
11477
  }
 
11478
}
 
11479
 
 
11480
static PyObject *__pyx_getprop_5adios_4file_version(PyObject *o, CYTHON_UNUSED void *x) {
 
11481
  return __pyx_pw_5adios_4file_7version_1__get__(o);
 
11482
}
 
11483
 
 
11484
static int __pyx_setprop_5adios_4file_version(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11485
  if (v) {
 
11486
    return __pyx_pw_5adios_4file_7version_3__set__(o, v);
 
11487
  }
 
11488
  else {
 
11489
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11490
    return -1;
 
11491
  }
 
11492
}
 
11493
 
 
11494
static PyObject *__pyx_getprop_5adios_4file_file_size(PyObject *o, CYTHON_UNUSED void *x) {
 
11495
  return __pyx_pw_5adios_4file_9file_size_1__get__(o);
 
11496
}
 
11497
 
 
11498
static int __pyx_setprop_5adios_4file_file_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11499
  if (v) {
 
11500
    return __pyx_pw_5adios_4file_9file_size_3__set__(o, v);
 
11501
  }
 
11502
  else {
 
11503
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11504
    return -1;
 
11505
  }
 
11506
}
 
11507
 
 
11508
static PyObject *__pyx_getprop_5adios_4file_var(PyObject *o, CYTHON_UNUSED void *x) {
 
11509
  return __pyx_pw_5adios_4file_3var_1__get__(o);
 
11510
}
 
11511
 
 
11512
static int __pyx_setprop_5adios_4file_var(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11513
  if (v) {
 
11514
    return __pyx_pw_5adios_4file_3var_3__set__(o, v);
 
11515
  }
 
11516
  else {
 
11517
    return __pyx_pw_5adios_4file_3var_5__del__(o);
 
11518
  }
 
11519
}
 
11520
 
 
11521
static PyObject *__pyx_getprop_5adios_4file_attr(PyObject *o, CYTHON_UNUSED void *x) {
 
11522
  return __pyx_pw_5adios_4file_4attr_1__get__(o);
 
11523
}
 
11524
 
 
11525
static int __pyx_setprop_5adios_4file_attr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11526
  if (v) {
 
11527
    return __pyx_pw_5adios_4file_4attr_3__set__(o, v);
 
11528
  }
 
11529
  else {
 
11530
    return __pyx_pw_5adios_4file_4attr_5__del__(o);
 
11531
  }
 
11532
}
 
11533
 
 
11534
static PyMethodDef __pyx_methods_5adios_file[] = {
 
11535
  {__Pyx_NAMESTR("__del__"), (PyCFunction)__pyx_pw_5adios_4file_3__del__, METH_NOARGS, __Pyx_DOCSTR(0)},
 
11536
  {__Pyx_NAMESTR("close"), (PyCFunction)__pyx_pw_5adios_4file_5close, METH_NOARGS, __Pyx_DOCSTR(0)},
 
11537
  {__Pyx_NAMESTR("printself"), (PyCFunction)__pyx_pw_5adios_4file_7printself, METH_NOARGS, __Pyx_DOCSTR(0)},
12878
11538
  {0, 0, 0, 0}
12879
11539
};
12880
11540
 
12881
 
static struct PyGetSetDef __pyx_getsets_5adios_AdiosGroup[] = {
12882
 
  {(char *)"name", __pyx_getprop_5adios_10AdiosGroup_name, __pyx_setprop_5adios_10AdiosGroup_name, 0, 0},
12883
 
  {(char *)"grpid", __pyx_getprop_5adios_10AdiosGroup_grpid, __pyx_setprop_5adios_10AdiosGroup_grpid, 0, 0},
12884
 
  {(char *)"vars_count", __pyx_getprop_5adios_10AdiosGroup_vars_count, __pyx_setprop_5adios_10AdiosGroup_vars_count, 0, 0},
12885
 
  {(char *)"attrs_count", __pyx_getprop_5adios_10AdiosGroup_attrs_count, __pyx_setprop_5adios_10AdiosGroup_attrs_count, 0, 0},
12886
 
  {(char *)"timestep", __pyx_getprop_5adios_10AdiosGroup_timestep, __pyx_setprop_5adios_10AdiosGroup_timestep, 0, 0},
12887
 
  {(char *)"lasttimestep", __pyx_getprop_5adios_10AdiosGroup_lasttimestep, __pyx_setprop_5adios_10AdiosGroup_lasttimestep, 0, 0},
12888
 
  {(char *)"var", __pyx_getprop_5adios_10AdiosGroup_var, __pyx_setprop_5adios_10AdiosGroup_var, 0, 0},
 
11541
static struct PyGetSetDef __pyx_getsets_5adios_file[] = {
 
11542
  {(char *)"name", __pyx_getprop_5adios_4file_name, __pyx_setprop_5adios_4file_name, 0, 0},
 
11543
  {(char *)"nvars", __pyx_getprop_5adios_4file_nvars, __pyx_setprop_5adios_4file_nvars, 0, 0},
 
11544
  {(char *)"nattrs", __pyx_getprop_5adios_4file_nattrs, __pyx_setprop_5adios_4file_nattrs, 0, 0},
 
11545
  {(char *)"current_step", __pyx_getprop_5adios_4file_current_step, __pyx_setprop_5adios_4file_current_step, 0, 0},
 
11546
  {(char *)"last_step", __pyx_getprop_5adios_4file_last_step, __pyx_setprop_5adios_4file_last_step, 0, 0},
 
11547
  {(char *)"endianness", __pyx_getprop_5adios_4file_endianness, __pyx_setprop_5adios_4file_endianness, 0, 0},
 
11548
  {(char *)"version", __pyx_getprop_5adios_4file_version, __pyx_setprop_5adios_4file_version, 0, 0},
 
11549
  {(char *)"file_size", __pyx_getprop_5adios_4file_file_size, __pyx_setprop_5adios_4file_file_size, 0, 0},
 
11550
  {(char *)"var", __pyx_getprop_5adios_4file_var, __pyx_setprop_5adios_4file_var, 0, 0},
 
11551
  {(char *)"attr", __pyx_getprop_5adios_4file_attr, __pyx_setprop_5adios_4file_attr, 0, 0},
12889
11552
  {0, 0, 0, 0, 0}
12890
11553
};
12891
11554
 
12892
 
static PyTypeObject __pyx_type_5adios_AdiosGroup = {
 
11555
static PyTypeObject __pyx_type_5adios_file = {
12893
11556
  PyVarObject_HEAD_INIT(0, 0)
12894
 
  __Pyx_NAMESTR("adios.AdiosGroup"), /*tp_name*/
12895
 
  sizeof(struct __pyx_obj_5adios_AdiosGroup), /*tp_basicsize*/
 
11557
  __Pyx_NAMESTR("adios.file"), /*tp_name*/
 
11558
  sizeof(struct __pyx_obj_5adios_file), /*tp_basicsize*/
12896
11559
  0, /*tp_itemsize*/
12897
 
  __pyx_tp_dealloc_5adios_AdiosGroup, /*tp_dealloc*/
 
11560
  __pyx_tp_dealloc_5adios_file, /*tp_dealloc*/
12898
11561
  0, /*tp_print*/
12899
11562
  0, /*tp_getattr*/
12900
11563
  0, /*tp_setattr*/
12915
11578
  0, /*tp_as_buffer*/
12916
11579
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
12917
11580
  __Pyx_DOCSTR(" Private Memeber "), /*tp_doc*/
12918
 
  __pyx_tp_traverse_5adios_AdiosGroup, /*tp_traverse*/
12919
 
  __pyx_tp_clear_5adios_AdiosGroup, /*tp_clear*/
 
11581
  __pyx_tp_traverse_5adios_file, /*tp_traverse*/
 
11582
  __pyx_tp_clear_5adios_file, /*tp_clear*/
12920
11583
  0, /*tp_richcompare*/
12921
11584
  0, /*tp_weaklistoffset*/
12922
11585
  0, /*tp_iter*/
12923
11586
  0, /*tp_iternext*/
12924
 
  __pyx_methods_5adios_AdiosGroup, /*tp_methods*/
 
11587
  __pyx_methods_5adios_file, /*tp_methods*/
12925
11588
  0, /*tp_members*/
12926
 
  __pyx_getsets_5adios_AdiosGroup, /*tp_getset*/
 
11589
  __pyx_getsets_5adios_file, /*tp_getset*/
12927
11590
  0, /*tp_base*/
12928
11591
  0, /*tp_dict*/
12929
11592
  0, /*tp_descr_get*/
12930
11593
  0, /*tp_descr_set*/
12931
11594
  0, /*tp_dictoffset*/
12932
 
  __pyx_pw_5adios_10AdiosGroup_1__init__, /*tp_init*/
 
11595
  __pyx_pw_5adios_4file_1__init__, /*tp_init*/
12933
11596
  0, /*tp_alloc*/
12934
 
  __pyx_tp_new_5adios_AdiosGroup, /*tp_new*/
 
11597
  __pyx_tp_new_5adios_file, /*tp_new*/
12935
11598
  0, /*tp_free*/
12936
11599
  0, /*tp_is_gc*/
12937
11600
  0, /*tp_bases*/
12943
11606
  #if PY_VERSION_HEX >= 0x02060000
12944
11607
  0, /*tp_version_tag*/
12945
11608
  #endif
 
11609
  #if PY_VERSION_HEX >= 0x030400a1
 
11610
  0, /*tp_finalize*/
 
11611
  #endif
12946
11612
};
12947
 
static struct __pyx_vtabstruct_5adios_AdiosVariable __pyx_vtable_5adios_AdiosVariable;
 
11613
static struct __pyx_vtabstruct_5adios_var __pyx_vtable_5adios_var;
12948
11614
 
12949
 
static PyObject *__pyx_tp_new_5adios_AdiosVariable(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
12950
 
  struct __pyx_obj_5adios_AdiosVariable *p;
 
11615
static PyObject *__pyx_tp_new_5adios_var(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
 
11616
  struct __pyx_obj_5adios_var *p;
12951
11617
  PyObject *o;
12952
 
  o = (*t->tp_alloc)(t, 0);
 
11618
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
 
11619
    o = (*t->tp_alloc)(t, 0);
 
11620
  } else {
 
11621
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
 
11622
  }
12953
11623
  if (unlikely(!o)) return 0;
12954
 
  p = ((struct __pyx_obj_5adios_AdiosVariable *)o);
12955
 
  p->__pyx_vtab = __pyx_vtabptr_5adios_AdiosVariable;
12956
 
  p->group = ((struct __pyx_obj_5adios_AdiosGroup *)Py_None); Py_INCREF(Py_None);
 
11624
  p = ((struct __pyx_obj_5adios_var *)o);
 
11625
  p->__pyx_vtab = __pyx_vtabptr_5adios_var;
 
11626
  p->file = ((struct __pyx_obj_5adios_file *)Py_None); Py_INCREF(Py_None);
12957
11627
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
12958
11628
  p->type = ((PyObject*)Py_None); Py_INCREF(Py_None);
12959
11629
  p->dims = ((PyObject*)Py_None); Py_INCREF(Py_None);
12960
11630
  return o;
12961
11631
}
12962
11632
 
12963
 
static void __pyx_tp_dealloc_5adios_AdiosVariable(PyObject *o) {
12964
 
  struct __pyx_obj_5adios_AdiosVariable *p = (struct __pyx_obj_5adios_AdiosVariable *)o;
 
11633
static void __pyx_tp_dealloc_5adios_var(PyObject *o) {
 
11634
  struct __pyx_obj_5adios_var *p = (struct __pyx_obj_5adios_var *)o;
 
11635
  #if PY_VERSION_HEX >= 0x030400a1
 
11636
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
 
11637
    if (PyObject_CallFinalizerFromDealloc(o)) return;
 
11638
  }
 
11639
  #endif
12965
11640
  PyObject_GC_UnTrack(o);
12966
 
  Py_CLEAR(p->group);
 
11641
  Py_CLEAR(p->file);
12967
11642
  Py_CLEAR(p->name);
12968
11643
  Py_CLEAR(p->type);
12969
11644
  Py_CLEAR(p->dims);
12970
11645
  (*Py_TYPE(o)->tp_free)(o);
12971
11646
}
12972
11647
 
12973
 
static int __pyx_tp_traverse_5adios_AdiosVariable(PyObject *o, visitproc v, void *a) {
 
11648
static int __pyx_tp_traverse_5adios_var(PyObject *o, visitproc v, void *a) {
12974
11649
  int e;
12975
 
  struct __pyx_obj_5adios_AdiosVariable *p = (struct __pyx_obj_5adios_AdiosVariable *)o;
12976
 
  if (p->group) {
12977
 
    e = (*v)(((PyObject*)p->group), a); if (e) return e;
12978
 
  }
12979
 
  if (p->name) {
12980
 
    e = (*v)(p->name, a); if (e) return e;
 
11650
  struct __pyx_obj_5adios_var *p = (struct __pyx_obj_5adios_var *)o;
 
11651
  if (p->file) {
 
11652
    e = (*v)(((PyObject*)p->file), a); if (e) return e;
12981
11653
  }
12982
11654
  if (p->type) {
12983
11655
    e = (*v)(p->type, a); if (e) return e;
12988
11660
  return 0;
12989
11661
}
12990
11662
 
12991
 
static int __pyx_tp_clear_5adios_AdiosVariable(PyObject *o) {
12992
 
  struct __pyx_obj_5adios_AdiosVariable *p = (struct __pyx_obj_5adios_AdiosVariable *)o;
 
11663
static int __pyx_tp_clear_5adios_var(PyObject *o) {
12993
11664
  PyObject* tmp;
12994
 
  tmp = ((PyObject*)p->group);
12995
 
  p->group = ((struct __pyx_obj_5adios_AdiosGroup *)Py_None); Py_INCREF(Py_None);
12996
 
  Py_XDECREF(tmp);
12997
 
  tmp = ((PyObject*)p->name);
12998
 
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
 
11665
  struct __pyx_obj_5adios_var *p = (struct __pyx_obj_5adios_var *)o;
 
11666
  tmp = ((PyObject*)p->file);
 
11667
  p->file = ((struct __pyx_obj_5adios_file *)Py_None); Py_INCREF(Py_None);
12999
11668
  Py_XDECREF(tmp);
13000
11669
  tmp = ((PyObject*)p->type);
13001
11670
  p->type = ((PyObject*)Py_None); Py_INCREF(Py_None);
13006
11675
  return 0;
13007
11676
}
13008
11677
 
13009
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_name(PyObject *o, CYTHON_UNUSED void *x) {
13010
 
  return __pyx_pw_5adios_13AdiosVariable_4name_1__get__(o);
13011
 
}
13012
 
 
13013
 
static int __pyx_setprop_5adios_13AdiosVariable_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13014
 
  if (v) {
13015
 
    return __pyx_pw_5adios_13AdiosVariable_4name_3__set__(o, v);
13016
 
  }
13017
 
  else {
13018
 
    return __pyx_pw_5adios_13AdiosVariable_4name_5__del__(o);
13019
 
  }
13020
 
}
13021
 
 
13022
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_varid(PyObject *o, CYTHON_UNUSED void *x) {
13023
 
  return __pyx_pw_5adios_13AdiosVariable_5varid_1__get__(o);
13024
 
}
13025
 
 
13026
 
static int __pyx_setprop_5adios_13AdiosVariable_varid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13027
 
  if (v) {
13028
 
    return __pyx_pw_5adios_13AdiosVariable_5varid_3__set__(o, v);
13029
 
  }
13030
 
  else {
13031
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
13032
 
    return -1;
13033
 
  }
13034
 
}
13035
 
 
13036
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_type(PyObject *o, CYTHON_UNUSED void *x) {
13037
 
  return __pyx_pw_5adios_13AdiosVariable_4type_1__get__(o);
13038
 
}
13039
 
 
13040
 
static int __pyx_setprop_5adios_13AdiosVariable_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13041
 
  if (v) {
13042
 
    return __pyx_pw_5adios_13AdiosVariable_4type_3__set__(o, v);
13043
 
  }
13044
 
  else {
13045
 
    return __pyx_pw_5adios_13AdiosVariable_4type_5__del__(o);
13046
 
  }
13047
 
}
13048
 
 
13049
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_ndim(PyObject *o, CYTHON_UNUSED void *x) {
13050
 
  return __pyx_pw_5adios_13AdiosVariable_4ndim_1__get__(o);
13051
 
}
13052
 
 
13053
 
static int __pyx_setprop_5adios_13AdiosVariable_ndim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13054
 
  if (v) {
13055
 
    return __pyx_pw_5adios_13AdiosVariable_4ndim_3__set__(o, v);
13056
 
  }
13057
 
  else {
13058
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
13059
 
    return -1;
13060
 
  }
13061
 
}
13062
 
 
13063
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_dims(PyObject *o, CYTHON_UNUSED void *x) {
13064
 
  return __pyx_pw_5adios_13AdiosVariable_4dims_1__get__(o);
13065
 
}
13066
 
 
13067
 
static int __pyx_setprop_5adios_13AdiosVariable_dims(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13068
 
  if (v) {
13069
 
    return __pyx_pw_5adios_13AdiosVariable_4dims_3__set__(o, v);
13070
 
  }
13071
 
  else {
13072
 
    return __pyx_pw_5adios_13AdiosVariable_4dims_5__del__(o);
13073
 
  }
13074
 
}
13075
 
 
13076
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_timedim(PyObject *o, CYTHON_UNUSED void *x) {
13077
 
  return __pyx_pw_5adios_13AdiosVariable_7timedim_1__get__(o);
13078
 
}
13079
 
 
13080
 
static int __pyx_setprop_5adios_13AdiosVariable_timedim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13081
 
  if (v) {
13082
 
    return __pyx_pw_5adios_13AdiosVariable_7timedim_3__set__(o, v);
13083
 
  }
13084
 
  else {
13085
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
13086
 
    return -1;
13087
 
  }
13088
 
}
13089
 
 
13090
 
static PyObject *__pyx_getprop_5adios_13AdiosVariable_characteristics_count(PyObject *o, CYTHON_UNUSED void *x) {
13091
 
  return __pyx_pw_5adios_13AdiosVariable_21characteristics_count_1__get__(o);
13092
 
}
13093
 
 
13094
 
static int __pyx_setprop_5adios_13AdiosVariable_characteristics_count(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
13095
 
  if (v) {
13096
 
    return __pyx_pw_5adios_13AdiosVariable_21characteristics_count_3__set__(o, v);
13097
 
  }
13098
 
  else {
13099
 
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
13100
 
    return -1;
13101
 
  }
13102
 
}
13103
 
 
13104
 
static PyMethodDef __pyx_methods_5adios_AdiosVariable[] = {
13105
 
  {__Pyx_NAMESTR("__del__"), (PyCFunction)__pyx_pw_5adios_13AdiosVariable_3__del__, METH_NOARGS, __Pyx_DOCSTR(0)},
13106
 
  {__Pyx_NAMESTR("close"), (PyCFunction)__pyx_pw_5adios_13AdiosVariable_5close, METH_NOARGS, __Pyx_DOCSTR(0)},
13107
 
  {__Pyx_NAMESTR("read"), (PyCFunction)__pyx_pw_5adios_13AdiosVariable_7read, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
13108
 
  {__Pyx_NAMESTR("printself"), (PyCFunction)__pyx_pw_5adios_13AdiosVariable_9printself, METH_NOARGS, __Pyx_DOCSTR(0)},
 
11678
static PyObject *__pyx_getprop_5adios_3var_name(PyObject *o, CYTHON_UNUSED void *x) {
 
11679
  return __pyx_pw_5adios_3var_4name_1__get__(o);
 
11680
}
 
11681
 
 
11682
static int __pyx_setprop_5adios_3var_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11683
  if (v) {
 
11684
    return __pyx_pw_5adios_3var_4name_3__set__(o, v);
 
11685
  }
 
11686
  else {
 
11687
    return __pyx_pw_5adios_3var_4name_5__del__(o);
 
11688
  }
 
11689
}
 
11690
 
 
11691
static PyObject *__pyx_getprop_5adios_3var_varid(PyObject *o, CYTHON_UNUSED void *x) {
 
11692
  return __pyx_pw_5adios_3var_5varid_1__get__(o);
 
11693
}
 
11694
 
 
11695
static int __pyx_setprop_5adios_3var_varid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11696
  if (v) {
 
11697
    return __pyx_pw_5adios_3var_5varid_3__set__(o, v);
 
11698
  }
 
11699
  else {
 
11700
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11701
    return -1;
 
11702
  }
 
11703
}
 
11704
 
 
11705
static PyObject *__pyx_getprop_5adios_3var_type(PyObject *o, CYTHON_UNUSED void *x) {
 
11706
  return __pyx_pw_5adios_3var_4type_1__get__(o);
 
11707
}
 
11708
 
 
11709
static int __pyx_setprop_5adios_3var_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11710
  if (v) {
 
11711
    return __pyx_pw_5adios_3var_4type_3__set__(o, v);
 
11712
  }
 
11713
  else {
 
11714
    return __pyx_pw_5adios_3var_4type_5__del__(o);
 
11715
  }
 
11716
}
 
11717
 
 
11718
static PyObject *__pyx_getprop_5adios_3var_ndim(PyObject *o, CYTHON_UNUSED void *x) {
 
11719
  return __pyx_pw_5adios_3var_4ndim_1__get__(o);
 
11720
}
 
11721
 
 
11722
static int __pyx_setprop_5adios_3var_ndim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11723
  if (v) {
 
11724
    return __pyx_pw_5adios_3var_4ndim_3__set__(o, v);
 
11725
  }
 
11726
  else {
 
11727
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11728
    return -1;
 
11729
  }
 
11730
}
 
11731
 
 
11732
static PyObject *__pyx_getprop_5adios_3var_dims(PyObject *o, CYTHON_UNUSED void *x) {
 
11733
  return __pyx_pw_5adios_3var_4dims_1__get__(o);
 
11734
}
 
11735
 
 
11736
static int __pyx_setprop_5adios_3var_dims(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11737
  if (v) {
 
11738
    return __pyx_pw_5adios_3var_4dims_3__set__(o, v);
 
11739
  }
 
11740
  else {
 
11741
    return __pyx_pw_5adios_3var_4dims_5__del__(o);
 
11742
  }
 
11743
}
 
11744
 
 
11745
static PyObject *__pyx_getprop_5adios_3var_nsteps(PyObject *o, CYTHON_UNUSED void *x) {
 
11746
  return __pyx_pw_5adios_3var_6nsteps_1__get__(o);
 
11747
}
 
11748
 
 
11749
static int __pyx_setprop_5adios_3var_nsteps(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
 
11750
  if (v) {
 
11751
    return __pyx_pw_5adios_3var_6nsteps_3__set__(o, v);
 
11752
  }
 
11753
  else {
 
11754
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
 
11755
    return -1;
 
11756
  }
 
11757
}
 
11758
 
 
11759
static PyMethodDef __pyx_methods_5adios_var[] = {
 
11760
  {__Pyx_NAMESTR("__del__"), (PyCFunction)__pyx_pw_5adios_3var_3__del__, METH_NOARGS, __Pyx_DOCSTR(0)},
 
11761
  {__Pyx_NAMESTR("close"), (PyCFunction)__pyx_pw_5adios_3var_5close, METH_NOARGS, __Pyx_DOCSTR(0)},
 
11762
  {__Pyx_NAMESTR("read"), (PyCFunction)__pyx_pw_5adios_3var_7read, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
 
11763
  {__Pyx_NAMESTR("printself"), (PyCFunction)__pyx_pw_5adios_3var_9printself, METH_NOARGS, __Pyx_DOCSTR(0)},
13109
11764
  {0, 0, 0, 0}
13110
11765
};
13111
11766
 
13112
 
static struct PyGetSetDef __pyx_getsets_5adios_AdiosVariable[] = {
13113
 
  {(char *)"name", __pyx_getprop_5adios_13AdiosVariable_name, __pyx_setprop_5adios_13AdiosVariable_name, 0, 0},
13114
 
  {(char *)"varid", __pyx_getprop_5adios_13AdiosVariable_varid, __pyx_setprop_5adios_13AdiosVariable_varid, 0, 0},
13115
 
  {(char *)"type", __pyx_getprop_5adios_13AdiosVariable_type, __pyx_setprop_5adios_13AdiosVariable_type, 0, 0},
13116
 
  {(char *)"ndim", __pyx_getprop_5adios_13AdiosVariable_ndim, __pyx_setprop_5adios_13AdiosVariable_ndim, 0, 0},
13117
 
  {(char *)"dims", __pyx_getprop_5adios_13AdiosVariable_dims, __pyx_setprop_5adios_13AdiosVariable_dims, 0, 0},
13118
 
  {(char *)"timedim", __pyx_getprop_5adios_13AdiosVariable_timedim, __pyx_setprop_5adios_13AdiosVariable_timedim, 0, 0},
13119
 
  {(char *)"characteristics_count", __pyx_getprop_5adios_13AdiosVariable_characteristics_count, __pyx_setprop_5adios_13AdiosVariable_characteristics_count, 0, 0},
 
11767
static struct PyGetSetDef __pyx_getsets_5adios_var[] = {
 
11768
  {(char *)"name", __pyx_getprop_5adios_3var_name, __pyx_setprop_5adios_3var_name, 0, 0},
 
11769
  {(char *)"varid", __pyx_getprop_5adios_3var_varid, __pyx_setprop_5adios_3var_varid, 0, 0},
 
11770
  {(char *)"type", __pyx_getprop_5adios_3var_type, __pyx_setprop_5adios_3var_type, 0, 0},
 
11771
  {(char *)"ndim", __pyx_getprop_5adios_3var_ndim, __pyx_setprop_5adios_3var_ndim, 0, 0},
 
11772
  {(char *)"dims", __pyx_getprop_5adios_3var_dims, __pyx_setprop_5adios_3var_dims, 0, 0},
 
11773
  {(char *)"nsteps", __pyx_getprop_5adios_3var_nsteps, __pyx_setprop_5adios_3var_nsteps, 0, 0},
13120
11774
  {0, 0, 0, 0, 0}
13121
11775
};
13122
11776
 
13123
 
static PyTypeObject __pyx_type_5adios_AdiosVariable = {
 
11777
static PyTypeObject __pyx_type_5adios_var = {
13124
11778
  PyVarObject_HEAD_INIT(0, 0)
13125
 
  __Pyx_NAMESTR("adios.AdiosVariable"), /*tp_name*/
13126
 
  sizeof(struct __pyx_obj_5adios_AdiosVariable), /*tp_basicsize*/
 
11779
  __Pyx_NAMESTR("adios.var"), /*tp_name*/
 
11780
  sizeof(struct __pyx_obj_5adios_var), /*tp_basicsize*/
13127
11781
  0, /*tp_itemsize*/
13128
 
  __pyx_tp_dealloc_5adios_AdiosVariable, /*tp_dealloc*/
 
11782
  __pyx_tp_dealloc_5adios_var, /*tp_dealloc*/
13129
11783
  0, /*tp_print*/
13130
11784
  0, /*tp_getattr*/
13131
11785
  0, /*tp_setattr*/
13146
11800
  0, /*tp_as_buffer*/
13147
11801
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
13148
11802
  __Pyx_DOCSTR(" Private Memeber "), /*tp_doc*/
13149
 
  __pyx_tp_traverse_5adios_AdiosVariable, /*tp_traverse*/
13150
 
  __pyx_tp_clear_5adios_AdiosVariable, /*tp_clear*/
 
11803
  __pyx_tp_traverse_5adios_var, /*tp_traverse*/
 
11804
  __pyx_tp_clear_5adios_var, /*tp_clear*/
13151
11805
  0, /*tp_richcompare*/
13152
11806
  0, /*tp_weaklistoffset*/
13153
11807
  0, /*tp_iter*/
13154
11808
  0, /*tp_iternext*/
13155
 
  __pyx_methods_5adios_AdiosVariable, /*tp_methods*/
 
11809
  __pyx_methods_5adios_var, /*tp_methods*/
13156
11810
  0, /*tp_members*/
13157
 
  __pyx_getsets_5adios_AdiosVariable, /*tp_getset*/
 
11811
  __pyx_getsets_5adios_var, /*tp_getset*/
13158
11812
  0, /*tp_base*/
13159
11813
  0, /*tp_dict*/
13160
11814
  0, /*tp_descr_get*/
13161
11815
  0, /*tp_descr_set*/
13162
11816
  0, /*tp_dictoffset*/
13163
 
  __pyx_pw_5adios_13AdiosVariable_1__init__, /*tp_init*/
 
11817
  __pyx_pw_5adios_3var_1__init__, /*tp_init*/
13164
11818
  0, /*tp_alloc*/
13165
 
  __pyx_tp_new_5adios_AdiosVariable, /*tp_new*/
 
11819
  __pyx_tp_new_5adios_var, /*tp_new*/
13166
11820
  0, /*tp_free*/
13167
11821
  0, /*tp_is_gc*/
13168
11822
  0, /*tp_bases*/
13174
11828
  #if PY_VERSION_HEX >= 0x02060000
13175
11829
  0, /*tp_version_tag*/
13176
11830
  #endif
 
11831
  #if PY_VERSION_HEX >= 0x030400a1
 
11832
  0, /*tp_finalize*/
 
11833
  #endif
13177
11834
};
13178
11835
 
13179
11836
static PyMethodDef __pyx_methods[] = {
13193
11850
  {__Pyx_NAMESTR("define_var"), (PyCFunction)__pyx_pw_5adios_27define_var, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
13194
11851
  {__Pyx_NAMESTR("define_attribute"), (PyCFunction)__pyx_pw_5adios_29define_attribute, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
13195
11852
  {__Pyx_NAMESTR("select_method"), (PyCFunction)__pyx_pw_5adios_31select_method, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
13196
 
  {__Pyx_NAMESTR("adios2nptype"), (PyCFunction)__pyx_pw_5adios_33adios2nptype, METH_O, __Pyx_DOCSTR(0)},
 
11853
  {__Pyx_NAMESTR("read_init"), (PyCFunction)__pyx_pw_5adios_33read_init, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
 
11854
  {__Pyx_NAMESTR("read_finalize"), (PyCFunction)__pyx_pw_5adios_35read_finalize, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
13197
11855
  {0, 0, 0, 0}
13198
11856
};
13199
11857
 
13205
11863
    PyModuleDef_HEAD_INIT,
13206
11864
  #endif
13207
11865
    __Pyx_NAMESTR("adios"),
13208
 
    __Pyx_DOCSTR(__pyx_k_36), /* m_doc */
 
11866
    __Pyx_DOCSTR(__pyx_k_ADIOS_is_freely_available_under), /* m_doc */
13209
11867
    -1, /* m_size */
13210
11868
    __pyx_methods /* m_methods */,
13211
11869
    NULL, /* m_reload */
13216
11874
#endif
13217
11875
 
13218
11876
static __Pyx_StringTabEntry __pyx_string_tab[] = {
13219
 
  {&__pyx_kp_s_11, __pyx_k_11, sizeof(__pyx_k_11), 0, 0, 1, 0},
13220
 
  {&__pyx_kp_s_12, __pyx_k_12, sizeof(__pyx_k_12), 0, 0, 1, 0},
13221
 
  {&__pyx_kp_s_14, __pyx_k_14, sizeof(__pyx_k_14), 0, 0, 1, 0},
13222
 
  {&__pyx_kp_s_15, __pyx_k_15, sizeof(__pyx_k_15), 0, 0, 1, 0},
13223
 
  {&__pyx_kp_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 0},
13224
 
  {&__pyx_kp_s_17, __pyx_k_17, sizeof(__pyx_k_17), 0, 0, 1, 0},
13225
 
  {&__pyx_kp_s_19, __pyx_k_19, sizeof(__pyx_k_19), 0, 0, 1, 0},
13226
 
  {&__pyx_kp_s_20, __pyx_k_20, sizeof(__pyx_k_20), 0, 0, 1, 0},
13227
 
  {&__pyx_kp_s_21, __pyx_k_21, sizeof(__pyx_k_21), 0, 0, 1, 0},
13228
 
  {&__pyx_kp_s_22, __pyx_k_22, sizeof(__pyx_k_22), 0, 0, 1, 0},
13229
 
  {&__pyx_kp_s_23, __pyx_k_23, sizeof(__pyx_k_23), 0, 0, 1, 0},
13230
 
  {&__pyx_kp_u_24, __pyx_k_24, sizeof(__pyx_k_24), 0, 1, 0, 0},
13231
 
  {&__pyx_kp_u_26, __pyx_k_26, sizeof(__pyx_k_26), 0, 1, 0, 0},
13232
 
  {&__pyx_kp_u_28, __pyx_k_28, sizeof(__pyx_k_28), 0, 1, 0, 0},
13233
 
  {&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
13234
 
  {&__pyx_kp_u_30, __pyx_k_30, sizeof(__pyx_k_30), 0, 1, 0, 0},
13235
 
  {&__pyx_kp_u_31, __pyx_k_31, sizeof(__pyx_k_31), 0, 1, 0, 0},
13236
 
  {&__pyx_kp_u_34, __pyx_k_34, sizeof(__pyx_k_34), 0, 1, 0, 0},
13237
 
  {&__pyx_n_s_37, __pyx_k_37, sizeof(__pyx_k_37), 0, 0, 1, 1},
13238
 
  {&__pyx_n_s_38, __pyx_k_38, sizeof(__pyx_k_38), 0, 0, 1, 1},
13239
 
  {&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
13240
 
  {&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
13241
 
  {&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
13242
 
  {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
13243
 
  {&__pyx_kp_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 0},
13244
 
  {&__pyx_n_s__BUFFER_ALLOC_WHEN, __pyx_k__BUFFER_ALLOC_WHEN, sizeof(__pyx_k__BUFFER_ALLOC_WHEN), 0, 0, 1, 1},
13245
 
  {&__pyx_n_s__COMM_WORLD, __pyx_k__COMM_WORLD, sizeof(__pyx_k__COMM_WORLD), 0, 0, 1, 1},
13246
 
  {&__pyx_n_s__DATATYPE, __pyx_k__DATATYPE, sizeof(__pyx_k__DATATYPE), 0, 0, 1, 1},
13247
 
  {&__pyx_n_s__FLAG, __pyx_k__FLAG, sizeof(__pyx_k__FLAG), 0, 0, 1, 1},
13248
 
  {&__pyx_n_s__LATER, __pyx_k__LATER, sizeof(__pyx_k__LATER), 0, 0, 1, 1},
13249
 
  {&__pyx_n_s__MPI, __pyx_k__MPI, sizeof(__pyx_k__MPI), 0, 0, 1, 1},
13250
 
  {&__pyx_n_s__NO, __pyx_k__NO, sizeof(__pyx_k__NO), 0, 0, 1, 1},
13251
 
  {&__pyx_n_s__NOW, __pyx_k__NOW, sizeof(__pyx_k__NOW), 0, 0, 1, 1},
13252
 
  {&__pyx_n_s__RuntimeError, __pyx_k__RuntimeError, sizeof(__pyx_k__RuntimeError), 0, 0, 1, 1},
13253
 
  {&__pyx_n_s__UNKNOWN, __pyx_k__UNKNOWN, sizeof(__pyx_k__UNKNOWN), 0, 0, 1, 1},
13254
 
  {&__pyx_n_s__ValueError, __pyx_k__ValueError, sizeof(__pyx_k__ValueError), 0, 0, 1, 1},
13255
 
  {&__pyx_n_s__YES, __pyx_k__YES, sizeof(__pyx_k__YES), 0, 0, 1, 1},
13256
 
  {&__pyx_n_s____class__, __pyx_k____class__, sizeof(__pyx_k____class__), 0, 0, 1, 1},
13257
 
  {&__pyx_n_s____import__, __pyx_k____import__, sizeof(__pyx_k____import__), 0, 0, 1, 1},
13258
 
  {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
13259
 
  {&__pyx_n_s____metaclass__, __pyx_k____metaclass__, sizeof(__pyx_k____metaclass__), 0, 0, 1, 1},
13260
 
  {&__pyx_n_s____module__, __pyx_k____module__, sizeof(__pyx_k____module__), 0, 0, 1, 1},
13261
 
  {&__pyx_n_s____pyx_vtable__, __pyx_k____pyx_vtable__, sizeof(__pyx_k____pyx_vtable__), 0, 0, 1, 1},
13262
 
  {&__pyx_n_s____qualname__, __pyx_k____qualname__, sizeof(__pyx_k____qualname__), 0, 0, 1, 1},
13263
 
  {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
13264
 
  {&__pyx_n_s__adios, __pyx_k__adios, sizeof(__pyx_k__adios), 0, 0, 1, 1},
13265
 
  {&__pyx_n_s__all, __pyx_k__all, sizeof(__pyx_k__all), 0, 0, 1, 1},
13266
 
  {&__pyx_n_s__array, __pyx_k__array, sizeof(__pyx_k__array), 0, 0, 1, 1},
13267
 
  {&__pyx_n_s__attr_namelist, __pyx_k__attr_namelist, sizeof(__pyx_k__attr_namelist), 0, 0, 1, 1},
13268
 
  {&__pyx_n_s__attrs_count, __pyx_k__attrs_count, sizeof(__pyx_k__attrs_count), 0, 0, 1, 1},
13269
 
  {&__pyx_n_s__base_path, __pyx_k__base_path, sizeof(__pyx_k__base_path), 0, 0, 1, 1},
13270
 
  {&__pyx_n_s__buffer_size, __pyx_k__buffer_size, sizeof(__pyx_k__buffer_size), 0, 0, 1, 1},
13271
 
  {&__pyx_n_s__byte, __pyx_k__byte, sizeof(__pyx_k__byte), 0, 0, 1, 1},
13272
 
  {&__pyx_n_s__close, __pyx_k__close, sizeof(__pyx_k__close), 0, 0, 1, 1},
13273
 
  {&__pyx_n_s__comm, __pyx_k__comm, sizeof(__pyx_k__comm), 0, 0, 1, 1},
13274
 
  {&__pyx_n_s__complex, __pyx_k__complex, sizeof(__pyx_k__complex), 0, 0, 1, 1},
13275
 
  {&__pyx_n_s__complex128, __pyx_k__complex128, sizeof(__pyx_k__complex128), 0, 0, 1, 1},
13276
 
  {&__pyx_n_s__complex64, __pyx_k__complex64, sizeof(__pyx_k__complex64), 0, 0, 1, 1},
13277
 
  {&__pyx_n_s__config, __pyx_k__config, sizeof(__pyx_k__config), 0, 0, 1, 1},
13278
 
  {&__pyx_n_s__contiguous, __pyx_k__contiguous, sizeof(__pyx_k__contiguous), 0, 0, 1, 1},
13279
 
  {&__pyx_n_s__copy, __pyx_k__copy, sizeof(__pyx_k__copy), 0, 0, 1, 1},
13280
 
  {&__pyx_n_s__count, __pyx_k__count, sizeof(__pyx_k__count), 0, 0, 1, 1},
13281
 
  {&__pyx_n_s__data_size, __pyx_k__data_size, sizeof(__pyx_k__data_size), 0, 0, 1, 1},
13282
 
  {&__pyx_n_s__dimensions, __pyx_k__dimensions, sizeof(__pyx_k__dimensions), 0, 0, 1, 1},
13283
 
  {&__pyx_n_s__dims, __pyx_k__dims, sizeof(__pyx_k__dims), 0, 0, 1, 1},
13284
 
  {&__pyx_n_s__double, __pyx_k__double, sizeof(__pyx_k__double), 0, 0, 1, 1},
13285
 
  {&__pyx_n_s__double_complex, __pyx_k__double_complex, sizeof(__pyx_k__double_complex), 0, 0, 1, 1},
13286
 
  {&__pyx_n_s__dtype, __pyx_k__dtype, sizeof(__pyx_k__dtype), 0, 0, 1, 1},
13287
 
  {&__pyx_n_s__end, __pyx_k__end, sizeof(__pyx_k__end), 0, 0, 1, 1},
13288
 
  {&__pyx_n_s__endianness, __pyx_k__endianness, sizeof(__pyx_k__endianness), 0, 0, 1, 1},
13289
 
  {&__pyx_n_s__fd_p, __pyx_k__fd_p, sizeof(__pyx_k__fd_p), 0, 0, 1, 1},
13290
 
  {&__pyx_n_s__fh, __pyx_k__fh, sizeof(__pyx_k__fh), 0, 0, 1, 1},
13291
 
  {&__pyx_n_s__file, __pyx_k__file, sizeof(__pyx_k__file), 0, 0, 1, 1},
13292
 
  {&__pyx_n_s__file_size, __pyx_k__file_size, sizeof(__pyx_k__file_size), 0, 0, 1, 1},
13293
 
  {&__pyx_n_s__fill, __pyx_k__fill, sizeof(__pyx_k__fill), 0, 0, 1, 1},
13294
 
  {&__pyx_n_s__flags, __pyx_k__flags, sizeof(__pyx_k__flags), 0, 0, 1, 1},
13295
 
  {&__pyx_n_s__float128, __pyx_k__float128, sizeof(__pyx_k__float128), 0, 0, 1, 1},
13296
 
  {&__pyx_n_s__float32, __pyx_k__float32, sizeof(__pyx_k__float32), 0, 0, 1, 1},
13297
 
  {&__pyx_n_s__float64, __pyx_k__float64, sizeof(__pyx_k__float64), 0, 0, 1, 1},
13298
 
  {&__pyx_n_s__fname, __pyx_k__fname, sizeof(__pyx_k__fname), 0, 0, 1, 1},
13299
 
  {&__pyx_n_s__fp, __pyx_k__fp, sizeof(__pyx_k__fp), 0, 0, 1, 1},
13300
 
  {&__pyx_n_s__gh, __pyx_k__gh, sizeof(__pyx_k__gh), 0, 0, 1, 1},
13301
 
  {&__pyx_n_s__global_dimensions, __pyx_k__global_dimensions, sizeof(__pyx_k__global_dimensions), 0, 0, 1, 1},
13302
 
  {&__pyx_n_s__gp, __pyx_k__gp, sizeof(__pyx_k__gp), 0, 0, 1, 1},
13303
 
  {&__pyx_n_s__group, __pyx_k__group, sizeof(__pyx_k__group), 0, 0, 1, 1},
13304
 
  {&__pyx_n_s__group_id, __pyx_k__group_id, sizeof(__pyx_k__group_id), 0, 0, 1, 1},
13305
 
  {&__pyx_n_s__group_name, __pyx_k__group_name, sizeof(__pyx_k__group_name), 0, 0, 1, 1},
13306
 
  {&__pyx_n_s__group_namelist, __pyx_k__group_namelist, sizeof(__pyx_k__group_namelist), 0, 0, 1, 1},
13307
 
  {&__pyx_n_s__groups_count, __pyx_k__groups_count, sizeof(__pyx_k__groups_count), 0, 0, 1, 1},
13308
 
  {&__pyx_n_s__grpid, __pyx_k__grpid, sizeof(__pyx_k__grpid), 0, 0, 1, 1},
13309
 
  {&__pyx_n_s__int16, __pyx_k__int16, sizeof(__pyx_k__int16), 0, 0, 1, 1},
13310
 
  {&__pyx_n_s__int32, __pyx_k__int32, sizeof(__pyx_k__int32), 0, 0, 1, 1},
13311
 
  {&__pyx_n_s__int64, __pyx_k__int64, sizeof(__pyx_k__int64), 0, 0, 1, 1},
13312
 
  {&__pyx_n_s__int8, __pyx_k__int8, sizeof(__pyx_k__int8), 0, 0, 1, 1},
13313
 
  {&__pyx_n_s__integer, __pyx_k__integer, sizeof(__pyx_k__integer), 0, 0, 1, 1},
13314
 
  {&__pyx_n_s__itemsize, __pyx_k__itemsize, sizeof(__pyx_k__itemsize), 0, 0, 1, 1},
13315
 
  {&__pyx_n_s__local_offsets, __pyx_k__local_offsets, sizeof(__pyx_k__local_offsets), 0, 0, 1, 1},
13316
 
  {&__pyx_n_s__long, __pyx_k__long, sizeof(__pyx_k__long), 0, 0, 1, 1},
13317
 
  {&__pyx_n_s__long_double, __pyx_k__long_double, sizeof(__pyx_k__long_double), 0, 0, 1, 1},
13318
 
  {&__pyx_n_s__method, __pyx_k__method, sizeof(__pyx_k__method), 0, 0, 1, 1},
13319
 
  {&__pyx_n_s__mode, __pyx_k__mode, sizeof(__pyx_k__mode), 0, 0, 1, 1},
13320
 
  {&__pyx_n_s__mype, __pyx_k__mype, sizeof(__pyx_k__mype), 0, 0, 1, 1},
13321
 
  {&__pyx_n_s__name, __pyx_k__name, sizeof(__pyx_k__name), 0, 0, 1, 1},
13322
 
  {&__pyx_n_s__ndim, __pyx_k__ndim, sizeof(__pyx_k__ndim), 0, 0, 1, 1},
13323
 
  {&__pyx_n_s__np, __pyx_k__np, sizeof(__pyx_k__np), 0, 0, 1, 1},
13324
 
  {&__pyx_n_s__ntimesteps, __pyx_k__ntimesteps, sizeof(__pyx_k__ntimesteps), 0, 0, 1, 1},
13325
 
  {&__pyx_n_s__numpy, __pyx_k__numpy, sizeof(__pyx_k__numpy), 0, 0, 1, 1},
13326
 
  {&__pyx_n_s__object, __pyx_k__object, sizeof(__pyx_k__object), 0, 0, 1, 1},
13327
 
  {&__pyx_n_s__offset, __pyx_k__offset, sizeof(__pyx_k__offset), 0, 0, 1, 1},
13328
 
  {&__pyx_n_s__parameters, __pyx_k__parameters, sizeof(__pyx_k__parameters), 0, 0, 1, 1},
13329
 
  {&__pyx_n_s__path, __pyx_k__path, sizeof(__pyx_k__path), 0, 0, 1, 1},
13330
 
  {&__pyx_n_s__print, __pyx_k__print, sizeof(__pyx_k__print), 0, 0, 1, 1},
13331
 
  {&__pyx_n_s__printself, __pyx_k__printself, sizeof(__pyx_k__printself), 0, 0, 1, 1},
13332
 
  {&__pyx_n_s__range, __pyx_k__range, sizeof(__pyx_k__range), 0, 0, 1, 1},
13333
 
  {&__pyx_n_s__read, __pyx_k__read, sizeof(__pyx_k__read), 0, 0, 1, 1},
13334
 
  {&__pyx_n_s__real, __pyx_k__real, sizeof(__pyx_k__real), 0, 0, 1, 1},
13335
 
  {&__pyx_n_s__short, __pyx_k__short, sizeof(__pyx_k__short), 0, 0, 1, 1},
13336
 
  {&__pyx_n_s__size, __pyx_k__size, sizeof(__pyx_k__size), 0, 0, 1, 1},
13337
 
  {&__pyx_n_s__split, __pyx_k__split, sizeof(__pyx_k__split), 0, 0, 1, 1},
13338
 
  {&__pyx_n_s__stats, __pyx_k__stats, sizeof(__pyx_k__stats), 0, 0, 1, 1},
13339
 
  {&__pyx_n_s__string, __pyx_k__string, sizeof(__pyx_k__string), 0, 0, 1, 1},
13340
 
  {&__pyx_n_s__tidx_start, __pyx_k__tidx_start, sizeof(__pyx_k__tidx_start), 0, 0, 1, 1},
13341
 
  {&__pyx_n_s__time_index, __pyx_k__time_index, sizeof(__pyx_k__time_index), 0, 0, 1, 1},
13342
 
  {&__pyx_n_s__timedim, __pyx_k__timedim, sizeof(__pyx_k__timedim), 0, 0, 1, 1},
13343
 
  {&__pyx_n_s__type, __pyx_k__type, sizeof(__pyx_k__type), 0, 0, 1, 1},
13344
 
  {&__pyx_n_s__uint16, __pyx_k__uint16, sizeof(__pyx_k__uint16), 0, 0, 1, 1},
13345
 
  {&__pyx_n_s__uint32, __pyx_k__uint32, sizeof(__pyx_k__uint32), 0, 0, 1, 1},
13346
 
  {&__pyx_n_s__uint64, __pyx_k__uint64, sizeof(__pyx_k__uint64), 0, 0, 1, 1},
13347
 
  {&__pyx_n_s__uint8, __pyx_k__uint8, sizeof(__pyx_k__uint8), 0, 0, 1, 1},
13348
 
  {&__pyx_n_s__unknown, __pyx_k__unknown, sizeof(__pyx_k__unknown), 0, 0, 1, 1},
13349
 
  {&__pyx_n_s__unsigned_byte, __pyx_k__unsigned_byte, sizeof(__pyx_k__unsigned_byte), 0, 0, 1, 1},
13350
 
  {&__pyx_n_s__unsigned_integer, __pyx_k__unsigned_integer, sizeof(__pyx_k__unsigned_integer), 0, 0, 1, 1},
13351
 
  {&__pyx_n_s__unsigned_long, __pyx_k__unsigned_long, sizeof(__pyx_k__unsigned_long), 0, 0, 1, 1},
13352
 
  {&__pyx_n_s__unsigned_short, __pyx_k__unsigned_short, sizeof(__pyx_k__unsigned_short), 0, 0, 1, 1},
13353
 
  {&__pyx_n_s__val, __pyx_k__val, sizeof(__pyx_k__val), 0, 0, 1, 1},
13354
 
  {&__pyx_n_s__value, __pyx_k__value, sizeof(__pyx_k__value), 0, 0, 1, 1},
13355
 
  {&__pyx_n_s__values, __pyx_k__values, sizeof(__pyx_k__values), 0, 0, 1, 1},
13356
 
  {&__pyx_n_s__var, __pyx_k__var, sizeof(__pyx_k__var), 0, 0, 1, 1},
13357
 
  {&__pyx_n_s__var_namelist, __pyx_k__var_namelist, sizeof(__pyx_k__var_namelist), 0, 0, 1, 1},
13358
 
  {&__pyx_n_s__varid, __pyx_k__varid, sizeof(__pyx_k__varid), 0, 0, 1, 1},
13359
 
  {&__pyx_n_s__vars_count, __pyx_k__vars_count, sizeof(__pyx_k__vars_count), 0, 0, 1, 1},
13360
 
  {&__pyx_n_s__version, __pyx_k__version, sizeof(__pyx_k__version), 0, 0, 1, 1},
13361
 
  {&__pyx_n_s__vp, __pyx_k__vp, sizeof(__pyx_k__vp), 0, 0, 1, 1},
13362
 
  {&__pyx_n_s__when, __pyx_k__when, sizeof(__pyx_k__when), 0, 0, 1, 1},
13363
 
  {&__pyx_n_s__zeros, __pyx_k__zeros, sizeof(__pyx_k__zeros), 0, 0, 1, 1},
 
11877
  {&__pyx_kp_s_15s_d, __pyx_k_15s_d, sizeof(__pyx_k_15s_d), 0, 0, 1, 0},
 
11878
  {&__pyx_kp_s_15s_lu, __pyx_k_15s_lu, sizeof(__pyx_k_15s_lu), 0, 0, 1, 0},
 
11879
  {&__pyx_kp_s_15s_s, __pyx_k_15s_s, sizeof(__pyx_k_15s_s), 0, 0, 1, 0},
 
11880
  {&__pyx_kp_s_AdiosFile, __pyx_k_AdiosFile, sizeof(__pyx_k_AdiosFile), 0, 0, 1, 0},
 
11881
  {&__pyx_kp_s_AdiosVariable, __pyx_k_AdiosVariable, sizeof(__pyx_k_AdiosVariable), 0, 0, 1, 0},
 
11882
  {&__pyx_n_s_BUFFER_ALLOC_WHEN, __pyx_k_BUFFER_ALLOC_WHEN, sizeof(__pyx_k_BUFFER_ALLOC_WHEN), 0, 0, 1, 1},
 
11883
  {&__pyx_kp_s_Count_dimension_mismatch, __pyx_k_Count_dimension_mismatch, sizeof(__pyx_k_Count_dimension_mismatch), 0, 0, 1, 0},
 
11884
  {&__pyx_kp_s_Count_is_larger_than_shape, __pyx_k_Count_is_larger_than_shape, sizeof(__pyx_k_Count_is_larger_than_shape), 0, 0, 1, 0},
 
11885
  {&__pyx_n_s_DATATYPE, __pyx_k_DATATYPE, sizeof(__pyx_k_DATATYPE), 0, 0, 1, 1},
 
11886
  {&__pyx_kp_s_Data_type_is_not_supported_yet, __pyx_k_Data_type_is_not_supported_yet, sizeof(__pyx_k_Data_type_is_not_supported_yet), 0, 0, 1, 0},
 
11887
  {&__pyx_n_s_FLAG, __pyx_k_FLAG, sizeof(__pyx_k_FLAG), 0, 0, 1, 1},
 
11888
  {&__pyx_kp_u_Format_string_allocated_too_shor, __pyx_k_Format_string_allocated_too_shor, sizeof(__pyx_k_Format_string_allocated_too_shor), 0, 1, 0, 0},
 
11889
  {&__pyx_kp_u_Format_string_allocated_too_shor_2, __pyx_k_Format_string_allocated_too_shor_2, sizeof(__pyx_k_Format_string_allocated_too_shor_2), 0, 1, 0, 0},
 
11890
  {&__pyx_n_s_LATER, __pyx_k_LATER, sizeof(__pyx_k_LATER), 0, 0, 1, 1},
 
11891
  {&__pyx_n_s_NO, __pyx_k_NO, sizeof(__pyx_k_NO), 0, 0, 1, 1},
 
11892
  {&__pyx_n_s_NOW, __pyx_k_NOW, sizeof(__pyx_k_NOW), 0, 0, 1, 1},
 
11893
  {&__pyx_kp_s_No_valid_variable, __pyx_k_No_valid_variable, sizeof(__pyx_k_No_valid_variable), 0, 0, 1, 0},
 
11894
  {&__pyx_kp_u_Non_native_byte_order_not_suppor, __pyx_k_Non_native_byte_order_not_suppor, sizeof(__pyx_k_Non_native_byte_order_not_suppor), 0, 1, 0, 0},
 
11895
  {&__pyx_kp_s_Not_a_valid_var, __pyx_k_Not_a_valid_var, sizeof(__pyx_k_Not_a_valid_var), 0, 0, 1, 0},
 
11896
  {&__pyx_kp_s_Not_an_open_file, __pyx_k_Not_an_open_file, sizeof(__pyx_k_Not_an_open_file), 0, 0, 1, 0},
 
11897
  {&__pyx_kp_s_Not_an_open_var, __pyx_k_Not_an_open_var, sizeof(__pyx_k_Not_an_open_var), 0, 0, 1, 0},
 
11898
  {&__pyx_kp_s_Not_an_open_variable, __pyx_k_Not_an_open_variable, sizeof(__pyx_k_Not_an_open_variable), 0, 0, 1, 0},
 
11899
  {&__pyx_kp_s_Offset_dimension_mismatch, __pyx_k_Offset_dimension_mismatch, sizeof(__pyx_k_Offset_dimension_mismatch), 0, 0, 1, 0},
 
11900
  {&__pyx_kp_s_Only_contiguous_arrays_are_suppo, __pyx_k_Only_contiguous_arrays_are_suppo, sizeof(__pyx_k_Only_contiguous_arrays_are_suppo), 0, 0, 1, 0},
 
11901
  {&__pyx_kp_s_Reading, __pyx_k_Reading, sizeof(__pyx_k_Reading), 0, 0, 1, 0},
 
11902
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
 
11903
  {&__pyx_kp_s_Step_index_is_out_of_range, __pyx_k_Step_index_is_out_of_range, sizeof(__pyx_k_Step_index_is_out_of_range), 0, 0, 1, 0},
 
11904
  {&__pyx_n_s_UNKNOWN, __pyx_k_UNKNOWN, sizeof(__pyx_k_UNKNOWN), 0, 0, 1, 1},
 
11905
  {&__pyx_kp_s_Users_jyc_project_adios_devel_w, __pyx_k_Users_jyc_project_adios_devel_w, sizeof(__pyx_k_Users_jyc_project_adios_devel_w), 0, 0, 1, 0},
 
11906
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
 
11907
  {&__pyx_n_s_YES, __pyx_k_YES, sizeof(__pyx_k_YES), 0, 0, 1, 1},
 
11908
  {&__pyx_kp_s__10, __pyx_k__10, sizeof(__pyx_k__10), 0, 0, 1, 0},
 
11909
  {&__pyx_n_s_adios, __pyx_k_adios, sizeof(__pyx_k_adios), 0, 0, 1, 1},
 
11910
  {&__pyx_n_s_all, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1},
 
11911
  {&__pyx_n_s_array, __pyx_k_array, sizeof(__pyx_k_array), 0, 0, 1, 1},
 
11912
  {&__pyx_n_s_attr_namelist, __pyx_k_attr_namelist, sizeof(__pyx_k_attr_namelist), 0, 0, 1, 1},
 
11913
  {&__pyx_n_s_attrs, __pyx_k_attrs, sizeof(__pyx_k_attrs), 0, 0, 1, 1},
 
11914
  {&__pyx_n_s_base_path, __pyx_k_base_path, sizeof(__pyx_k_base_path), 0, 0, 1, 1},
 
11915
  {&__pyx_n_s_bpls, __pyx_k_bpls, sizeof(__pyx_k_bpls), 0, 0, 1, 1},
 
11916
  {&__pyx_n_s_buffer_size, __pyx_k_buffer_size, sizeof(__pyx_k_buffer_size), 0, 0, 1, 1},
 
11917
  {&__pyx_n_s_byte, __pyx_k_byte, sizeof(__pyx_k_byte), 0, 0, 1, 1},
 
11918
  {&__pyx_kp_s_bytes, __pyx_k_bytes, sizeof(__pyx_k_bytes), 0, 0, 1, 0},
 
11919
  {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1},
 
11920
  {&__pyx_n_s_comm, __pyx_k_comm, sizeof(__pyx_k_comm), 0, 0, 1, 1},
 
11921
  {&__pyx_n_s_complex, __pyx_k_complex, sizeof(__pyx_k_complex), 0, 0, 1, 1},
 
11922
  {&__pyx_n_s_complex128, __pyx_k_complex128, sizeof(__pyx_k_complex128), 0, 0, 1, 1},
 
11923
  {&__pyx_n_s_complex64, __pyx_k_complex64, sizeof(__pyx_k_complex64), 0, 0, 1, 1},
 
11924
  {&__pyx_n_s_config, __pyx_k_config, sizeof(__pyx_k_config), 0, 0, 1, 1},
 
11925
  {&__pyx_n_s_contiguous, __pyx_k_contiguous, sizeof(__pyx_k_contiguous), 0, 0, 1, 1},
 
11926
  {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1},
 
11927
  {&__pyx_n_s_count, __pyx_k_count, sizeof(__pyx_k_count), 0, 0, 1, 1},
 
11928
  {&__pyx_n_s_current_step, __pyx_k_current_step, sizeof(__pyx_k_current_step), 0, 0, 1, 1},
 
11929
  {&__pyx_n_s_data_size, __pyx_k_data_size, sizeof(__pyx_k_data_size), 0, 0, 1, 1},
 
11930
  {&__pyx_n_s_dimensions, __pyx_k_dimensions, sizeof(__pyx_k_dimensions), 0, 0, 1, 1},
 
11931
  {&__pyx_n_s_dims, __pyx_k_dims, sizeof(__pyx_k_dims), 0, 0, 1, 1},
 
11932
  {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1},
 
11933
  {&__pyx_n_s_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 0, 1, 1},
 
11934
  {&__pyx_n_s_double_complex, __pyx_k_double_complex, sizeof(__pyx_k_double_complex), 0, 0, 1, 1},
 
11935
  {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1},
 
11936
  {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1},
 
11937
  {&__pyx_n_s_endianness, __pyx_k_endianness, sizeof(__pyx_k_endianness), 0, 0, 1, 1},
 
11938
  {&__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1},
 
11939
  {&__pyx_n_s_fd_p, __pyx_k_fd_p, sizeof(__pyx_k_fd_p), 0, 0, 1, 1},
 
11940
  {&__pyx_n_s_fh, __pyx_k_fh, sizeof(__pyx_k_fh), 0, 0, 1, 1},
 
11941
  {&__pyx_n_s_file, __pyx_k_file, sizeof(__pyx_k_file), 0, 0, 1, 1},
 
11942
  {&__pyx_n_s_file_size, __pyx_k_file_size, sizeof(__pyx_k_file_size), 0, 0, 1, 1},
 
11943
  {&__pyx_n_s_fill, __pyx_k_fill, sizeof(__pyx_k_fill), 0, 0, 1, 1},
 
11944
  {&__pyx_n_s_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 0, 1, 1},
 
11945
  {&__pyx_n_s_float128, __pyx_k_float128, sizeof(__pyx_k_float128), 0, 0, 1, 1},
 
11946
  {&__pyx_n_s_float32, __pyx_k_float32, sizeof(__pyx_k_float32), 0, 0, 1, 1},
 
11947
  {&__pyx_n_s_float64, __pyx_k_float64, sizeof(__pyx_k_float64), 0, 0, 1, 1},
 
11948
  {&__pyx_n_s_fname, __pyx_k_fname, sizeof(__pyx_k_fname), 0, 0, 1, 1},
 
11949
  {&__pyx_n_s_fp, __pyx_k_fp, sizeof(__pyx_k_fp), 0, 0, 1, 1},
 
11950
  {&__pyx_n_s_from_steps, __pyx_k_from_steps, sizeof(__pyx_k_from_steps), 0, 0, 1, 1},
 
11951
  {&__pyx_n_s_global_dimensions, __pyx_k_global_dimensions, sizeof(__pyx_k_global_dimensions), 0, 0, 1, 1},
 
11952
  {&__pyx_n_s_group, __pyx_k_group, sizeof(__pyx_k_group), 0, 0, 1, 1},
 
11953
  {&__pyx_n_s_group_id, __pyx_k_group_id, sizeof(__pyx_k_group_id), 0, 0, 1, 1},
 
11954
  {&__pyx_n_s_group_name, __pyx_k_group_name, sizeof(__pyx_k_group_name), 0, 0, 1, 1},
 
11955
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
 
11956
  {&__pyx_n_s_int16, __pyx_k_int16, sizeof(__pyx_k_int16), 0, 0, 1, 1},
 
11957
  {&__pyx_n_s_int32, __pyx_k_int32, sizeof(__pyx_k_int32), 0, 0, 1, 1},
 
11958
  {&__pyx_n_s_int64, __pyx_k_int64, sizeof(__pyx_k_int64), 0, 0, 1, 1},
 
11959
  {&__pyx_n_s_int8, __pyx_k_int8, sizeof(__pyx_k_int8), 0, 0, 1, 1},
 
11960
  {&__pyx_n_s_integer, __pyx_k_integer, sizeof(__pyx_k_integer), 0, 0, 1, 1},
 
11961
  {&__pyx_n_s_itemsize, __pyx_k_itemsize, sizeof(__pyx_k_itemsize), 0, 0, 1, 1},
 
11962
  {&__pyx_n_s_iterkeys, __pyx_k_iterkeys, sizeof(__pyx_k_iterkeys), 0, 0, 1, 1},
 
11963
  {&__pyx_n_s_k, __pyx_k_k, sizeof(__pyx_k_k), 0, 0, 1, 1},
 
11964
  {&__pyx_n_s_last_step, __pyx_k_last_step, sizeof(__pyx_k_last_step), 0, 0, 1, 1},
 
11965
  {&__pyx_n_s_local_offsets, __pyx_k_local_offsets, sizeof(__pyx_k_local_offsets), 0, 0, 1, 1},
 
11966
  {&__pyx_n_s_long, __pyx_k_long, sizeof(__pyx_k_long), 0, 0, 1, 1},
 
11967
  {&__pyx_n_s_long_double, __pyx_k_long_double, sizeof(__pyx_k_long_double), 0, 0, 1, 1},
 
11968
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
 
11969
  {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
 
11970
  {&__pyx_n_s_method, __pyx_k_method, sizeof(__pyx_k_method), 0, 0, 1, 1},
 
11971
  {&__pyx_n_s_mode, __pyx_k_mode, sizeof(__pyx_k_mode), 0, 0, 1, 1},
 
11972
  {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1},
 
11973
  {&__pyx_n_s_mype, __pyx_k_mype, sizeof(__pyx_k_mype), 0, 0, 1, 1},
 
11974
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
 
11975
  {&__pyx_n_s_nattrs, __pyx_k_nattrs, sizeof(__pyx_k_nattrs), 0, 0, 1, 1},
 
11976
  {&__pyx_kp_u_ndarray_is_not_C_contiguous, __pyx_k_ndarray_is_not_C_contiguous, sizeof(__pyx_k_ndarray_is_not_C_contiguous), 0, 1, 0, 0},
 
11977
  {&__pyx_kp_u_ndarray_is_not_Fortran_contiguou, __pyx_k_ndarray_is_not_Fortran_contiguou, sizeof(__pyx_k_ndarray_is_not_Fortran_contiguou), 0, 1, 0, 0},
 
11978
  {&__pyx_n_s_ndim, __pyx_k_ndim, sizeof(__pyx_k_ndim), 0, 0, 1, 1},
 
11979
  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
 
11980
  {&__pyx_n_s_nsteps, __pyx_k_nsteps, sizeof(__pyx_k_nsteps), 0, 0, 1, 1},
 
11981
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
 
11982
  {&__pyx_n_s_nvars, __pyx_k_nvars, sizeof(__pyx_k_nvars), 0, 0, 1, 1},
 
11983
  {&__pyx_n_s_offset, __pyx_k_offset, sizeof(__pyx_k_offset), 0, 0, 1, 1},
 
11984
  {&__pyx_n_s_parameters, __pyx_k_parameters, sizeof(__pyx_k_parameters), 0, 0, 1, 1},
 
11985
  {&__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1},
 
11986
  {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1},
 
11987
  {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1},
 
11988
  {&__pyx_n_s_printself, __pyx_k_printself, sizeof(__pyx_k_printself), 0, 0, 1, 1},
 
11989
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
 
11990
  {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1},
 
11991
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
 
11992
  {&__pyx_n_s_read, __pyx_k_read, sizeof(__pyx_k_read), 0, 0, 1, 1},
 
11993
  {&__pyx_n_s_readvar, __pyx_k_readvar, sizeof(__pyx_k_readvar), 0, 0, 1, 1},
 
11994
  {&__pyx_n_s_real, __pyx_k_real, sizeof(__pyx_k_real), 0, 0, 1, 1},
 
11995
  {&__pyx_n_s_short, __pyx_k_short, sizeof(__pyx_k_short), 0, 0, 1, 1},
 
11996
  {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1},
 
11997
  {&__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1},
 
11998
  {&__pyx_n_s_stats, __pyx_k_stats, sizeof(__pyx_k_stats), 0, 0, 1, 1},
 
11999
  {&__pyx_n_s_string, __pyx_k_string, sizeof(__pyx_k_string), 0, 0, 1, 1},
 
12000
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
 
12001
  {&__pyx_n_s_time_index, __pyx_k_time_index, sizeof(__pyx_k_time_index), 0, 0, 1, 1},
 
12002
  {&__pyx_n_s_time_steps, __pyx_k_time_steps, sizeof(__pyx_k_time_steps), 0, 0, 1, 1},
 
12003
  {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
 
12004
  {&__pyx_n_s_uint16, __pyx_k_uint16, sizeof(__pyx_k_uint16), 0, 0, 1, 1},
 
12005
  {&__pyx_n_s_uint32, __pyx_k_uint32, sizeof(__pyx_k_uint32), 0, 0, 1, 1},
 
12006
  {&__pyx_n_s_uint64, __pyx_k_uint64, sizeof(__pyx_k_uint64), 0, 0, 1, 1},
 
12007
  {&__pyx_n_s_uint8, __pyx_k_uint8, sizeof(__pyx_k_uint8), 0, 0, 1, 1},
 
12008
  {&__pyx_n_s_unknown, __pyx_k_unknown, sizeof(__pyx_k_unknown), 0, 0, 1, 1},
 
12009
  {&__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_k_unknown_dtype_code_in_numpy_pxd, sizeof(__pyx_k_unknown_dtype_code_in_numpy_pxd), 0, 1, 0, 0},
 
12010
  {&__pyx_n_s_unsigned_byte, __pyx_k_unsigned_byte, sizeof(__pyx_k_unsigned_byte), 0, 0, 1, 1},
 
12011
  {&__pyx_n_s_unsigned_integer, __pyx_k_unsigned_integer, sizeof(__pyx_k_unsigned_integer), 0, 0, 1, 1},
 
12012
  {&__pyx_n_s_unsigned_long, __pyx_k_unsigned_long, sizeof(__pyx_k_unsigned_long), 0, 0, 1, 1},
 
12013
  {&__pyx_n_s_unsigned_short, __pyx_k_unsigned_short, sizeof(__pyx_k_unsigned_short), 0, 0, 1, 1},
 
12014
  {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1},
 
12015
  {&__pyx_n_s_val, __pyx_k_val, sizeof(__pyx_k_val), 0, 0, 1, 1},
 
12016
  {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
 
12017
  {&__pyx_n_s_var, __pyx_k_var, sizeof(__pyx_k_var), 0, 0, 1, 1},
 
12018
  {&__pyx_n_s_var_namelist, __pyx_k_var_namelist, sizeof(__pyx_k_var_namelist), 0, 0, 1, 1},
 
12019
  {&__pyx_n_s_varid, __pyx_k_varid, sizeof(__pyx_k_varid), 0, 0, 1, 1},
 
12020
  {&__pyx_n_s_varname, __pyx_k_varname, sizeof(__pyx_k_varname), 0, 0, 1, 1},
 
12021
  {&__pyx_n_s_vars, __pyx_k_vars, sizeof(__pyx_k_vars), 0, 0, 1, 1},
 
12022
  {&__pyx_n_s_version, __pyx_k_version, sizeof(__pyx_k_version), 0, 0, 1, 1},
 
12023
  {&__pyx_n_s_vp, __pyx_k_vp, sizeof(__pyx_k_vp), 0, 0, 1, 1},
 
12024
  {&__pyx_n_s_when, __pyx_k_when, sizeof(__pyx_k_when), 0, 0, 1, 1},
 
12025
  {&__pyx_n_s_zeros, __pyx_k_zeros, sizeof(__pyx_k_zeros), 0, 0, 1, 1},
13364
12026
  {0, 0, 0, 0, 0, 0, 0}
13365
12027
};
13366
12028
static int __Pyx_InitCachedBuiltins(void) {
13367
 
  __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s__object); if (!__pyx_builtin_object) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13368
 
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s__range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13369
 
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13370
 
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s__RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12029
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12030
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12031
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13371
12032
  return 0;
13372
12033
  __pyx_L1_error:;
13373
12034
  return -1;
13377
12038
  __Pyx_RefNannyDeclarations
13378
12039
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
13379
12040
 
13380
 
  /* "adios.pyx":447
 
12041
  /* "adios.pyx":458
13381
12042
 *         assert self.fp != NULL, 'Not an open file'
13382
12043
 * 
13383
 
 *         self.name         = fname.split('/')[-1]  ## basename             # <<<<<<<<<<<<<<
13384
 
 *         self.groups_count = self.fp.groups_count
13385
 
 *         self.vars_count   = self.fp.vars_count
 
12044
 *         self.name = fname.split('/')[-1]  ## basename             # <<<<<<<<<<<<<<
 
12045
 *         self.nvars = self.fp.nvars
 
12046
 *         self.nattrs = self.fp.nattrs
13386
12047
 */
13387
 
  __pyx_k_tuple_13 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_s_12)); if (unlikely(!__pyx_k_tuple_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13388
 
  __Pyx_GOTREF(__pyx_k_tuple_13);
13389
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_13));
 
12048
  __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s__10); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12049
  __Pyx_GOTREF(__pyx_tuple__11);
 
12050
  __Pyx_GIVEREF(__pyx_tuple__11);
13390
12051
 
13391
 
  /* "adios.pyx":577
 
12052
  /* "adios.pyx":530
13392
12053
 *         if len(offset) == 0:
13393
12054
 *             npoffset = npshape.copy()
13394
12055
 *             npoffset.fill(0)             # <<<<<<<<<<<<<<
13395
12056
 *         else:
13396
12057
 *             npoffset = np.array(offset, dtype=np.int64)
13397
12058
 */
13398
 
  __pyx_k_tuple_18 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_k_tuple_18)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13399
 
  __Pyx_GOTREF(__pyx_k_tuple_18);
13400
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_18));
 
12059
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12060
  __Pyx_GOTREF(__pyx_tuple__12);
 
12061
  __Pyx_GIVEREF(__pyx_tuple__12);
13401
12062
 
13402
 
  /* "numpy.pxd":215
 
12063
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":215
13403
12064
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
13404
12065
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
13405
12066
 *                 raise ValueError(u"ndarray is not C contiguous")             # <<<<<<<<<<<<<<
13406
12067
 * 
13407
12068
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
13408
12069
 */
13409
 
  __pyx_k_tuple_25 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_u_24)); if (unlikely(!__pyx_k_tuple_25)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13410
 
  __Pyx_GOTREF(__pyx_k_tuple_25);
13411
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_25));
 
12070
  __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12071
  __Pyx_GOTREF(__pyx_tuple__13);
 
12072
  __Pyx_GIVEREF(__pyx_tuple__13);
13412
12073
 
13413
 
  /* "numpy.pxd":219
 
12074
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":219
13414
12075
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
13415
12076
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
13416
12077
 *                 raise ValueError(u"ndarray is not Fortran contiguous")             # <<<<<<<<<<<<<<
13417
12078
 * 
13418
12079
 *             info.buf = PyArray_DATA(self)
13419
12080
 */
13420
 
  __pyx_k_tuple_27 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_u_26)); if (unlikely(!__pyx_k_tuple_27)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13421
 
  __Pyx_GOTREF(__pyx_k_tuple_27);
13422
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_27));
 
12081
  __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__14)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12082
  __Pyx_GOTREF(__pyx_tuple__14);
 
12083
  __Pyx_GIVEREF(__pyx_tuple__14);
13423
12084
 
13424
 
  /* "numpy.pxd":257
 
12085
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257
13425
12086
 *                 if ((descr.byteorder == c'>' and little_endian) or
13426
12087
 *                     (descr.byteorder == c'<' and not little_endian)):
13427
12088
 *                     raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
13428
12089
 *                 if   t == NPY_BYTE:        f = "b"
13429
12090
 *                 elif t == NPY_UBYTE:       f = "B"
13430
12091
 */
13431
 
  __pyx_k_tuple_29 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_u_28)); if (unlikely(!__pyx_k_tuple_29)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13432
 
  __Pyx_GOTREF(__pyx_k_tuple_29);
13433
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_29));
 
12092
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__15)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12093
  __Pyx_GOTREF(__pyx_tuple__15);
 
12094
  __Pyx_GIVEREF(__pyx_tuple__15);
13434
12095
 
13435
 
  /* "numpy.pxd":799
 
12096
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799
13436
12097
 * 
13437
 
 *         if (end - f) - (new_offset - offset[0]) < 15:
 
12098
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
13438
12099
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")             # <<<<<<<<<<<<<<
13439
12100
 * 
13440
12101
 *         if ((child.byteorder == c'>' and little_endian) or
13441
12102
 */
13442
 
  __pyx_k_tuple_32 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_u_31)); if (unlikely(!__pyx_k_tuple_32)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13443
 
  __Pyx_GOTREF(__pyx_k_tuple_32);
13444
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_32));
 
12103
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__16)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12104
  __Pyx_GOTREF(__pyx_tuple__16);
 
12105
  __Pyx_GIVEREF(__pyx_tuple__16);
13445
12106
 
13446
 
  /* "numpy.pxd":803
 
12107
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803
13447
12108
 *         if ((child.byteorder == c'>' and little_endian) or
13448
12109
 *             (child.byteorder == c'<' and not little_endian)):
13449
12110
 *             raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
13450
12111
 *             # One could encode it in the format string and have Cython
13451
12112
 *             # complain instead, BUT: < and > in format strings also imply
13452
12113
 */
13453
 
  __pyx_k_tuple_33 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_u_28)); if (unlikely(!__pyx_k_tuple_33)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13454
 
  __Pyx_GOTREF(__pyx_k_tuple_33);
13455
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_33));
 
12114
  __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__17)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12115
  __Pyx_GOTREF(__pyx_tuple__17);
 
12116
  __Pyx_GIVEREF(__pyx_tuple__17);
13456
12117
 
13457
 
  /* "numpy.pxd":823
 
12118
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823
13458
12119
 *             t = child.type_num
13459
12120
 *             if end - f < 5:
13460
12121
 *                 raise RuntimeError(u"Format string allocated too short.")             # <<<<<<<<<<<<<<
13461
12122
 * 
13462
12123
 *             # Until ticket #99 is fixed, use integers to avoid warnings
13463
12124
 */
13464
 
  __pyx_k_tuple_35 = PyTuple_Pack(1, ((PyObject *)__pyx_kp_u_34)); if (unlikely(!__pyx_k_tuple_35)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13465
 
  __Pyx_GOTREF(__pyx_k_tuple_35);
13466
 
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_35));
 
12125
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__18)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12126
  __Pyx_GOTREF(__pyx_tuple__18);
 
12127
  __Pyx_GIVEREF(__pyx_tuple__18);
 
12128
 
 
12129
  /* "adios.pyx":569
 
12130
 * ## ====================
 
12131
 * 
 
12132
 * def readvar(fname, varname):             # <<<<<<<<<<<<<<
 
12133
 *     f = file(fname)
 
12134
 *     if not f.var.has_key(varname):
 
12135
 */
 
12136
  __pyx_tuple__19 = PyTuple_Pack(4, __pyx_n_s_fname, __pyx_n_s_varname, __pyx_n_s_f, __pyx_n_s_v); if (unlikely(!__pyx_tuple__19)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12137
  __Pyx_GOTREF(__pyx_tuple__19);
 
12138
  __Pyx_GIVEREF(__pyx_tuple__19);
 
12139
  __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jyc_project_adios_devel_w, __pyx_n_s_readvar, 569, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12140
 
 
12141
  /* "adios.pyx":578
 
12142
 *     return v.read(from_steps=0, nsteps=v.nsteps)
 
12143
 * 
 
12144
 * def bpls(fname):             # <<<<<<<<<<<<<<
 
12145
 *     f = file(fname)
 
12146
 *     return {'nvars': f.nvars,
 
12147
 */
 
12148
  __pyx_tuple__21 = PyTuple_Pack(3, __pyx_n_s_fname, __pyx_n_s_f, __pyx_n_s_k); if (unlikely(!__pyx_tuple__21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12149
  __Pyx_GOTREF(__pyx_tuple__21);
 
12150
  __Pyx_GIVEREF(__pyx_tuple__21);
 
12151
  __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jyc_project_adios_devel_w, __pyx_n_s_bpls, 578, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13467
12152
  __Pyx_RefNannyFinishContext();
13468
12153
  return 0;
13469
12154
  __pyx_L1_error:;
13473
12158
 
13474
12159
static int __Pyx_InitGlobals(void) {
13475
12160
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13476
 
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13477
 
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13478
 
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13479
 
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13480
 
  __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13481
 
  __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13482
 
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13483
 
  __pyx_int_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13484
 
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13485
 
  __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13486
 
  __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13487
 
  __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13488
 
  __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13489
 
  __pyx_int_51 = PyInt_FromLong(51); if (unlikely(!__pyx_int_51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13490
 
  __pyx_int_52 = PyInt_FromLong(52); if (unlikely(!__pyx_int_52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
13491
 
  __pyx_int_54 = PyInt_FromLong(54); if (unlikely(!__pyx_int_54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
12161
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12162
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12163
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12164
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12165
  __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12166
  __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12167
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12168
  __pyx_int_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12169
  __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12170
  __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12171
  __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12172
  __pyx_int_51 = PyInt_FromLong(51); if (unlikely(!__pyx_int_51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12173
  __pyx_int_52 = PyInt_FromLong(52); if (unlikely(!__pyx_int_52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12174
  __pyx_int_54 = PyInt_FromLong(54); if (unlikely(!__pyx_int_54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12175
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13492
12176
  return 0;
13493
12177
  __pyx_L1_error:;
13494
12178
  return -1;
13504
12188
{
13505
12189
  PyObject *__pyx_t_1 = NULL;
13506
12190
  PyObject *__pyx_t_2 = NULL;
13507
 
  PyObject *__pyx_t_3 = NULL;
13508
12191
  int __pyx_lineno = 0;
13509
12192
  const char *__pyx_filename = NULL;
13510
12193
  int __pyx_clineno = 0;
13540
12223
  #endif
13541
12224
  /*--- Module creation code ---*/
13542
12225
  #if PY_MAJOR_VERSION < 3
13543
 
  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("adios"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_36), 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
 
12226
  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("adios"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_ADIOS_is_freely_available_under), 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
13544
12227
  #else
13545
12228
  __pyx_m = PyModule_Create(&__pyx_moduledef);
13546
12229
  #endif
13547
12230
  if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13548
12231
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13549
12232
  Py_INCREF(__pyx_d);
13550
 
  #if PY_MAJOR_VERSION >= 3
13551
 
  {
13552
 
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13553
 
    if (!PyDict_GetItemString(modules, "adios")) {
13554
 
      if (unlikely(PyDict_SetItemString(modules, "adios", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13555
 
    }
13556
 
  }
13557
 
  #endif
13558
12233
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13559
12234
  #if CYTHON_COMPILING_IN_PYPY
13560
12235
  Py_INCREF(__pyx_b);
13566
12241
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13567
12242
  #endif
13568
12243
  if (__pyx_module_is_main_adios) {
13569
 
    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;};
13570
 
  }
 
12244
    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;};
 
12245
  }
 
12246
  #if PY_MAJOR_VERSION >= 3
 
12247
  {
 
12248
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12249
    if (!PyDict_GetItemString(modules, "adios")) {
 
12250
      if (unlikely(PyDict_SetItemString(modules, "adios", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12251
    }
 
12252
  }
 
12253
  #endif
13571
12254
  /*--- Builtin init code ---*/
13572
12255
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13573
12256
  /*--- Constants init code ---*/
13576
12259
  /*--- Variable export code ---*/
13577
12260
  /*--- Function export code ---*/
13578
12261
  /*--- Type init code ---*/
13579
 
  __pyx_vtabptr_5adios_AdiosFile = &__pyx_vtable_5adios_AdiosFile;
13580
 
  __pyx_vtable_5adios_AdiosFile.close = (PyObject *(*)(struct __pyx_obj_5adios_AdiosFile *, int __pyx_skip_dispatch))__pyx_f_5adios_9AdiosFile_close;
13581
 
  __pyx_vtable_5adios_AdiosFile.printself = (PyObject *(*)(struct __pyx_obj_5adios_AdiosFile *, int __pyx_skip_dispatch))__pyx_f_5adios_9AdiosFile_printself;
13582
 
  if (PyType_Ready(&__pyx_type_5adios_AdiosFile) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13583
 
  if (__Pyx_SetVtable(__pyx_type_5adios_AdiosFile.tp_dict, __pyx_vtabptr_5adios_AdiosFile) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13584
 
  if (__Pyx_SetAttrString(__pyx_m, "AdiosFile", (PyObject *)&__pyx_type_5adios_AdiosFile) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13585
 
  __pyx_ptype_5adios_AdiosFile = &__pyx_type_5adios_AdiosFile;
13586
 
  __pyx_vtabptr_5adios_AdiosGroup = &__pyx_vtable_5adios_AdiosGroup;
13587
 
  __pyx_vtable_5adios_AdiosGroup.close = (PyObject *(*)(struct __pyx_obj_5adios_AdiosGroup *, int __pyx_skip_dispatch))__pyx_f_5adios_10AdiosGroup_close;
13588
 
  __pyx_vtable_5adios_AdiosGroup.printself = (PyObject *(*)(struct __pyx_obj_5adios_AdiosGroup *, int __pyx_skip_dispatch))__pyx_f_5adios_10AdiosGroup_printself;
13589
 
  if (PyType_Ready(&__pyx_type_5adios_AdiosGroup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13590
 
  if (__Pyx_SetVtable(__pyx_type_5adios_AdiosGroup.tp_dict, __pyx_vtabptr_5adios_AdiosGroup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13591
 
  if (__Pyx_SetAttrString(__pyx_m, "AdiosGroup", (PyObject *)&__pyx_type_5adios_AdiosGroup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13592
 
  __pyx_ptype_5adios_AdiosGroup = &__pyx_type_5adios_AdiosGroup;
13593
 
  __pyx_vtabptr_5adios_AdiosVariable = &__pyx_vtable_5adios_AdiosVariable;
13594
 
  __pyx_vtable_5adios_AdiosVariable.close = (PyObject *(*)(struct __pyx_obj_5adios_AdiosVariable *, int __pyx_skip_dispatch))__pyx_f_5adios_13AdiosVariable_close;
13595
 
  __pyx_vtable_5adios_AdiosVariable.read = (PyObject *(*)(struct __pyx_obj_5adios_AdiosVariable *, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_13AdiosVariable_read *__pyx_optional_args))__pyx_f_5adios_13AdiosVariable_read;
13596
 
  __pyx_vtable_5adios_AdiosVariable.printself = (PyObject *(*)(struct __pyx_obj_5adios_AdiosVariable *, int __pyx_skip_dispatch))__pyx_f_5adios_13AdiosVariable_printself;
13597
 
  if (PyType_Ready(&__pyx_type_5adios_AdiosVariable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13598
 
  if (__Pyx_SetVtable(__pyx_type_5adios_AdiosVariable.tp_dict, __pyx_vtabptr_5adios_AdiosVariable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13599
 
  if (__Pyx_SetAttrString(__pyx_m, "AdiosVariable", (PyObject *)&__pyx_type_5adios_AdiosVariable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13600
 
  __pyx_ptype_5adios_AdiosVariable = &__pyx_type_5adios_AdiosVariable;
 
12262
  __pyx_vtabptr_5adios_file = &__pyx_vtable_5adios_file;
 
12263
  __pyx_vtable_5adios_file.close = (PyObject *(*)(struct __pyx_obj_5adios_file *, int __pyx_skip_dispatch))__pyx_f_5adios_4file_close;
 
12264
  __pyx_vtable_5adios_file.printself = (PyObject *(*)(struct __pyx_obj_5adios_file *, int __pyx_skip_dispatch))__pyx_f_5adios_4file_printself;
 
12265
  if (PyType_Ready(&__pyx_type_5adios_file) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12266
  __pyx_type_5adios_file.tp_print = 0;
 
12267
  if (__Pyx_SetVtable(__pyx_type_5adios_file.tp_dict, __pyx_vtabptr_5adios_file) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12268
  if (__Pyx_SetAttrString(__pyx_m, "file", (PyObject *)&__pyx_type_5adios_file) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12269
  __pyx_ptype_5adios_file = &__pyx_type_5adios_file;
 
12270
  __pyx_vtabptr_5adios_var = &__pyx_vtable_5adios_var;
 
12271
  __pyx_vtable_5adios_var.close = (PyObject *(*)(struct __pyx_obj_5adios_var *, int __pyx_skip_dispatch))__pyx_f_5adios_3var_close;
 
12272
  __pyx_vtable_5adios_var.read = (PyObject *(*)(struct __pyx_obj_5adios_var *, int __pyx_skip_dispatch, struct __pyx_opt_args_5adios_3var_read *__pyx_optional_args))__pyx_f_5adios_3var_read;
 
12273
  __pyx_vtable_5adios_var.printself = (PyObject *(*)(struct __pyx_obj_5adios_var *, int __pyx_skip_dispatch))__pyx_f_5adios_3var_printself;
 
12274
  if (PyType_Ready(&__pyx_type_5adios_var) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12275
  __pyx_type_5adios_var.tp_print = 0;
 
12276
  if (__Pyx_SetVtable(__pyx_type_5adios_var.tp_dict, __pyx_vtabptr_5adios_var) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12277
  if (__Pyx_SetAttrString(__pyx_m, "var", (PyObject *)&__pyx_type_5adios_var) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12278
  __pyx_ptype_5adios_var = &__pyx_type_5adios_var;
13601
12279
  /*--- Type import code ---*/
13602
12280
  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type", 
13603
12281
  #if CYTHON_COMPILING_IN_PYPY
13611
12289
  __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13612
12290
  __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13613
12291
  __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13614
 
  __pyx_ptype_6mpi4py_3MPI_Status = __Pyx_ImportType("mpi4py.MPI", "Status", sizeof(struct PyMPIStatusObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Status)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13615
 
  __pyx_ptype_6mpi4py_3MPI_Datatype = __Pyx_ImportType("mpi4py.MPI", "Datatype", sizeof(struct PyMPIDatatypeObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Datatype)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13616
 
  __pyx_ptype_6mpi4py_3MPI_Request = __Pyx_ImportType("mpi4py.MPI", "Request", sizeof(struct PyMPIRequestObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Request)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13617
 
  __pyx_ptype_6mpi4py_3MPI_Prequest = __Pyx_ImportType("mpi4py.MPI", "Prequest", sizeof(struct PyMPIPrequestObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Prequest)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13618
 
  __pyx_ptype_6mpi4py_3MPI_Grequest = __Pyx_ImportType("mpi4py.MPI", "Grequest", sizeof(struct PyMPIGrequestObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Grequest)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13619
 
  __pyx_ptype_6mpi4py_3MPI_Op = __Pyx_ImportType("mpi4py.MPI", "Op", sizeof(struct PyMPIOpObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Op)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13620
 
  __pyx_ptype_6mpi4py_3MPI_Group = __Pyx_ImportType("mpi4py.MPI", "Group", sizeof(struct PyMPIGroupObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Group)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13621
 
  __pyx_ptype_6mpi4py_3MPI_Info = __Pyx_ImportType("mpi4py.MPI", "Info", sizeof(struct PyMPIInfoObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Info)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13622
 
  __pyx_ptype_6mpi4py_3MPI_Errhandler = __Pyx_ImportType("mpi4py.MPI", "Errhandler", sizeof(struct PyMPIErrhandlerObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Errhandler)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13623
 
  __pyx_ptype_6mpi4py_3MPI_Comm = __Pyx_ImportType("mpi4py.MPI", "Comm", sizeof(struct PyMPICommObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Comm)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13624
 
  __pyx_ptype_6mpi4py_3MPI_Intracomm = __Pyx_ImportType("mpi4py.MPI", "Intracomm", sizeof(struct PyMPIIntracommObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Intracomm)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13625
 
  __pyx_ptype_6mpi4py_3MPI_Cartcomm = __Pyx_ImportType("mpi4py.MPI", "Cartcomm", sizeof(struct PyMPICartcommObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Cartcomm)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13626
 
  __pyx_ptype_6mpi4py_3MPI_Graphcomm = __Pyx_ImportType("mpi4py.MPI", "Graphcomm", sizeof(struct PyMPIGraphcommObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Graphcomm)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13627
 
  __pyx_ptype_6mpi4py_3MPI_Distgraphcomm = __Pyx_ImportType("mpi4py.MPI", "Distgraphcomm", sizeof(struct PyMPIDistgraphcommObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Distgraphcomm)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13628
 
  __pyx_ptype_6mpi4py_3MPI_Intercomm = __Pyx_ImportType("mpi4py.MPI", "Intercomm", sizeof(struct PyMPIIntercommObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Intercomm)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13629
 
  __pyx_ptype_6mpi4py_3MPI_Win = __Pyx_ImportType("mpi4py.MPI", "Win", sizeof(struct PyMPIWinObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_Win)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13630
 
  __pyx_ptype_6mpi4py_3MPI_File = __Pyx_ImportType("mpi4py.MPI", "File", sizeof(struct PyMPIFileObject), 1); if (unlikely(!__pyx_ptype_6mpi4py_3MPI_File)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13631
12292
  /*--- Variable import code ---*/
13632
12293
  /*--- Function import code ---*/
13633
12294
  /*--- Execution code ---*/
13634
12295
 
13635
 
  /* "adios.pyx":8
 
12296
  /* "adios.pyx":12
13636
12297
 * """
13637
12298
 * 
13638
12299
 * import numpy as np             # <<<<<<<<<<<<<<
13639
12300
 * cimport numpy as np
13640
12301
 * 
13641
12302
 */
13642
 
  __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__numpy), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12303
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13643
12304
  __Pyx_GOTREF(__pyx_t_1);
13644
 
  if (PyDict_SetItem(__pyx_d, __pyx_n_s__np, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12305
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13645
12306
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13646
12307
 
13647
 
  /* "adios.pyx":11
13648
 
 * cimport numpy as np
13649
 
 * 
13650
 
 * import mpi4py.MPI as MPI             # <<<<<<<<<<<<<<
13651
 
 * cimport mpi4py.MPI as MPI
13652
 
 * 
13653
 
 */
13654
 
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13655
 
  __Pyx_GOTREF(__pyx_t_1);
13656
 
  __Pyx_INCREF(((PyObject *)__pyx_n_s_38));
13657
 
  PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s_38));
13658
 
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s_38));
13659
 
  __pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s_37), ((PyObject *)__pyx_t_1), -1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13660
 
  __Pyx_GOTREF(__pyx_t_2);
13661
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
13662
 
  if (PyDict_SetItem(__pyx_d, __pyx_n_s__MPI, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13663
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13664
 
 
13665
 
  /* "adios.pyx":180
13666
 
 * ## ==========
13667
 
 * 
13668
 
 * class DATATYPE(object):             # <<<<<<<<<<<<<<
 
12308
  /* "adios.pyx":225
 
12309
 * ## ====================
 
12310
 * 
 
12311
 * class DATATYPE:             # <<<<<<<<<<<<<<
13669
12312
 *     unknown = -1
13670
12313
 *     byte = 0
13671
12314
 */
13672
 
  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13673
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
12315
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_DATATYPE, __pyx_n_s_DATATYPE, (PyObject *) NULL, __pyx_n_s_adios, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12316
  __Pyx_GOTREF(__pyx_t_1);
13674
12317
 
13675
 
  /* "adios.pyx":181
 
12318
  /* "adios.pyx":226
13676
12319
 * 
13677
 
 * class DATATYPE(object):
 
12320
 * class DATATYPE:
13678
12321
 *     unknown = -1             # <<<<<<<<<<<<<<
13679
12322
 *     byte = 0
13680
12323
 *     short = 1
13681
12324
 */
13682
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__unknown, __pyx_int_neg_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12325
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unknown, __pyx_int_neg_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13683
12326
 
13684
 
  /* "adios.pyx":182
13685
 
 * class DATATYPE(object):
 
12327
  /* "adios.pyx":227
 
12328
 * class DATATYPE:
13686
12329
 *     unknown = -1
13687
12330
 *     byte = 0             # <<<<<<<<<<<<<<
13688
12331
 *     short = 1
13689
12332
 *     integer = 2
13690
12333
 */
13691
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__byte, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12334
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_byte, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13692
12335
 
13693
 
  /* "adios.pyx":183
 
12336
  /* "adios.pyx":228
13694
12337
 *     unknown = -1
13695
12338
 *     byte = 0
13696
12339
 *     short = 1             # <<<<<<<<<<<<<<
13697
12340
 *     integer = 2
13698
12341
 *     long = 4
13699
12342
 */
13700
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__short, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12343
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_short, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13701
12344
 
13702
 
  /* "adios.pyx":184
 
12345
  /* "adios.pyx":229
13703
12346
 *     byte = 0
13704
12347
 *     short = 1
13705
12348
 *     integer = 2             # <<<<<<<<<<<<<<
13706
12349
 *     long = 4
13707
12350
 *     unsigned_byte = 50
13708
12351
 */
13709
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__integer, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12352
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_integer, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13710
12353
 
13711
 
  /* "adios.pyx":185
 
12354
  /* "adios.pyx":230
13712
12355
 *     short = 1
13713
12356
 *     integer = 2
13714
12357
 *     long = 4             # <<<<<<<<<<<<<<
13715
12358
 *     unsigned_byte = 50
13716
12359
 *     unsigned_short = 51
13717
12360
 */
13718
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__long, __pyx_int_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12361
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_long, __pyx_int_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13719
12362
 
13720
 
  /* "adios.pyx":186
 
12363
  /* "adios.pyx":231
13721
12364
 *     integer = 2
13722
12365
 *     long = 4
13723
12366
 *     unsigned_byte = 50             # <<<<<<<<<<<<<<
13724
12367
 *     unsigned_short = 51
13725
12368
 *     unsigned_integer = 52
13726
12369
 */
13727
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__unsigned_byte, __pyx_int_50) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12370
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unsigned_byte, __pyx_int_50) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13728
12371
 
13729
 
  /* "adios.pyx":187
 
12372
  /* "adios.pyx":232
13730
12373
 *     long = 4
13731
12374
 *     unsigned_byte = 50
13732
12375
 *     unsigned_short = 51             # <<<<<<<<<<<<<<
13733
12376
 *     unsigned_integer = 52
13734
12377
 *     unsigned_long = 54
13735
12378
 */
13736
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__unsigned_short, __pyx_int_51) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12379
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unsigned_short, __pyx_int_51) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13737
12380
 
13738
 
  /* "adios.pyx":188
 
12381
  /* "adios.pyx":233
13739
12382
 *     unsigned_byte = 50
13740
12383
 *     unsigned_short = 51
13741
12384
 *     unsigned_integer = 52             # <<<<<<<<<<<<<<
13742
12385
 *     unsigned_long = 54
13743
12386
 *     real = 5
13744
12387
 */
13745
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__unsigned_integer, __pyx_int_52) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12388
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unsigned_integer, __pyx_int_52) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13746
12389
 
13747
 
  /* "adios.pyx":189
 
12390
  /* "adios.pyx":234
13748
12391
 *     unsigned_short = 51
13749
12392
 *     unsigned_integer = 52
13750
12393
 *     unsigned_long = 54             # <<<<<<<<<<<<<<
13751
12394
 *     real = 5
13752
12395
 *     double = 6
13753
12396
 */
13754
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__unsigned_long, __pyx_int_54) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 189; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12397
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unsigned_long, __pyx_int_54) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13755
12398
 
13756
 
  /* "adios.pyx":190
 
12399
  /* "adios.pyx":235
13757
12400
 *     unsigned_integer = 52
13758
12401
 *     unsigned_long = 54
13759
12402
 *     real = 5             # <<<<<<<<<<<<<<
13760
12403
 *     double = 6
13761
12404
 *     long_double = 7
13762
12405
 */
13763
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__real, __pyx_int_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12406
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_real, __pyx_int_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13764
12407
 
13765
 
  /* "adios.pyx":191
 
12408
  /* "adios.pyx":236
13766
12409
 *     unsigned_long = 54
13767
12410
 *     real = 5
13768
12411
 *     double = 6             # <<<<<<<<<<<<<<
13769
12412
 *     long_double = 7
13770
12413
 *     string = 9
13771
12414
 */
13772
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__double, __pyx_int_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12415
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_double, __pyx_int_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13773
12416
 
13774
 
  /* "adios.pyx":192
 
12417
  /* "adios.pyx":237
13775
12418
 *     real = 5
13776
12419
 *     double = 6
13777
12420
 *     long_double = 7             # <<<<<<<<<<<<<<
13778
12421
 *     string = 9
13779
12422
 *     complex = 10
13780
12423
 */
13781
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__long_double, __pyx_int_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12424
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_long_double, __pyx_int_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13782
12425
 
13783
 
  /* "adios.pyx":193
 
12426
  /* "adios.pyx":238
13784
12427
 *     double = 6
13785
12428
 *     long_double = 7
13786
12429
 *     string = 9             # <<<<<<<<<<<<<<
13787
12430
 *     complex = 10
13788
12431
 *     double_complex = 11
13789
12432
 */
13790
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__string, __pyx_int_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12433
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_string, __pyx_int_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13791
12434
 
13792
 
  /* "adios.pyx":194
 
12435
  /* "adios.pyx":239
13793
12436
 *     long_double = 7
13794
12437
 *     string = 9
13795
12438
 *     complex = 10             # <<<<<<<<<<<<<<
13796
12439
 *     double_complex = 11
13797
12440
 * 
13798
12441
 */
13799
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__complex, __pyx_int_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12442
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_complex, __pyx_int_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13800
12443
 
13801
 
  /* "adios.pyx":195
 
12444
  /* "adios.pyx":240
13802
12445
 *     string = 9
13803
12446
 *     complex = 10
13804
12447
 *     double_complex = 11             # <<<<<<<<<<<<<<
13805
12448
 * 
13806
 
 * class FLAG(object):
 
12449
 * class FLAG:
13807
12450
 */
13808
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__double_complex, __pyx_int_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12451
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_double_complex, __pyx_int_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13809
12452
 
13810
 
  /* "adios.pyx":180
13811
 
 * ## ==========
 
12453
  /* "adios.pyx":225
 
12454
 * ## ====================
13812
12455
 * 
13813
 
 * class DATATYPE(object):             # <<<<<<<<<<<<<<
 
12456
 * class DATATYPE:             # <<<<<<<<<<<<<<
13814
12457
 *     unknown = -1
13815
12458
 *     byte = 0
13816
12459
 */
13817
 
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12460
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_DATATYPE, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12461
  __Pyx_GOTREF(__pyx_t_2);
 
12462
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATATYPE, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12463
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12464
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
12465
 
 
12466
  /* "adios.pyx":242
 
12467
 *     double_complex = 11
 
12468
 * 
 
12469
 * class FLAG:             # <<<<<<<<<<<<<<
 
12470
 *     UNKNOWN = 0
 
12471
 *     YES = 1
 
12472
 */
 
12473
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_FLAG, __pyx_n_s_FLAG, (PyObject *) NULL, __pyx_n_s_adios, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13818
12474
  __Pyx_GOTREF(__pyx_t_1);
13819
 
  __Pyx_INCREF(__pyx_builtin_object);
13820
 
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_builtin_object);
13821
 
  __Pyx_GIVEREF(__pyx_builtin_object);
13822
 
  __pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_2), __pyx_n_s__DATATYPE, __pyx_n_s__DATATYPE, __pyx_n_s__adios); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13823
 
  __Pyx_GOTREF(__pyx_t_3);
13824
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
13825
 
  if (PyDict_SetItem(__pyx_d, __pyx_n_s__DATATYPE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13826
 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13827
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
13828
 
 
13829
 
  /* "adios.pyx":197
13830
 
 *     double_complex = 11
13831
 
 * 
13832
 
 * class FLAG(object):             # <<<<<<<<<<<<<<
13833
 
 *     UNKNOWN = 0
13834
 
 *     YES = 1
13835
 
 */
13836
 
  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13837
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
13838
 
 
13839
 
  /* "adios.pyx":198
13840
 
 * 
13841
 
 * class FLAG(object):
 
12475
 
 
12476
  /* "adios.pyx":243
 
12477
 * 
 
12478
 * class FLAG:
13842
12479
 *     UNKNOWN = 0             # <<<<<<<<<<<<<<
13843
12480
 *     YES = 1
13844
12481
 *     NO = 2
13845
12482
 */
13846
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__UNKNOWN, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12483
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_UNKNOWN, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13847
12484
 
13848
 
  /* "adios.pyx":199
13849
 
 * class FLAG(object):
 
12485
  /* "adios.pyx":244
 
12486
 * class FLAG:
13850
12487
 *     UNKNOWN = 0
13851
12488
 *     YES = 1             # <<<<<<<<<<<<<<
13852
12489
 *     NO = 2
13853
12490
 * 
13854
12491
 */
13855
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__YES, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12492
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_YES, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13856
12493
 
13857
 
  /* "adios.pyx":200
 
12494
  /* "adios.pyx":245
13858
12495
 *     UNKNOWN = 0
13859
12496
 *     YES = 1
13860
12497
 *     NO = 2             # <<<<<<<<<<<<<<
13861
12498
 * 
13862
 
 * class BUFFER_ALLOC_WHEN(object):
 
12499
 * class BUFFER_ALLOC_WHEN:
13863
12500
 */
13864
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__NO, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12501
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_NO, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13865
12502
 
13866
 
  /* "adios.pyx":197
 
12503
  /* "adios.pyx":242
13867
12504
 *     double_complex = 11
13868
12505
 * 
13869
 
 * class FLAG(object):             # <<<<<<<<<<<<<<
 
12506
 * class FLAG:             # <<<<<<<<<<<<<<
13870
12507
 *     UNKNOWN = 0
13871
12508
 *     YES = 1
13872
12509
 */
13873
 
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13874
 
  __Pyx_GOTREF(__pyx_t_3);
13875
 
  __Pyx_INCREF(__pyx_builtin_object);
13876
 
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_builtin_object);
13877
 
  __Pyx_GIVEREF(__pyx_builtin_object);
13878
 
  __pyx_t_1 = __Pyx_CreateClass(((PyObject *)__pyx_t_3), ((PyObject *)__pyx_t_2), __pyx_n_s__FLAG, __pyx_n_s__FLAG, __pyx_n_s__adios); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13879
 
  __Pyx_GOTREF(__pyx_t_1);
13880
 
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
13881
 
  if (PyDict_SetItem(__pyx_d, __pyx_n_s__FLAG, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12510
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_FLAG, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12511
  __Pyx_GOTREF(__pyx_t_2);
 
12512
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_FLAG, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12513
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13882
12514
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13883
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
13884
12515
 
13885
 
  /* "adios.pyx":202
 
12516
  /* "adios.pyx":247
13886
12517
 *     NO = 2
13887
12518
 * 
13888
 
 * class BUFFER_ALLOC_WHEN(object):             # <<<<<<<<<<<<<<
 
12519
 * class BUFFER_ALLOC_WHEN:             # <<<<<<<<<<<<<<
13889
12520
 *     UNKNOWN = 0
13890
12521
 *     NOW = 1
13891
12522
 */
13892
 
  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13893
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
12523
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_BUFFER_ALLOC_WHEN, __pyx_n_s_BUFFER_ALLOC_WHEN, (PyObject *) NULL, __pyx_n_s_adios, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12524
  __Pyx_GOTREF(__pyx_t_1);
13894
12525
 
13895
 
  /* "adios.pyx":203
 
12526
  /* "adios.pyx":248
13896
12527
 * 
13897
 
 * class BUFFER_ALLOC_WHEN(object):
 
12528
 * class BUFFER_ALLOC_WHEN:
13898
12529
 *     UNKNOWN = 0             # <<<<<<<<<<<<<<
13899
12530
 *     NOW = 1
13900
12531
 *     LATER = 2
13901
12532
 */
13902
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__UNKNOWN, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12533
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_UNKNOWN, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13903
12534
 
13904
 
  /* "adios.pyx":204
13905
 
 * class BUFFER_ALLOC_WHEN(object):
 
12535
  /* "adios.pyx":249
 
12536
 * class BUFFER_ALLOC_WHEN:
13906
12537
 *     UNKNOWN = 0
13907
12538
 *     NOW = 1             # <<<<<<<<<<<<<<
13908
12539
 *     LATER = 2
13909
12540
 * 
13910
12541
 */
13911
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__NOW, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12542
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_NOW, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13912
12543
 
13913
 
  /* "adios.pyx":205
 
12544
  /* "adios.pyx":250
13914
12545
 *     UNKNOWN = 0
13915
12546
 *     NOW = 1
13916
12547
 *     LATER = 2             # <<<<<<<<<<<<<<
13917
12548
 * 
13918
 
 * ## ==========
 
12549
 * ## ====================
13919
12550
 */
13920
 
  if (PyObject_SetItem(__pyx_t_2, __pyx_n_s__LATER, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12551
  if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_LATER, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13921
12552
 
13922
 
  /* "adios.pyx":202
 
12553
  /* "adios.pyx":247
13923
12554
 *     NO = 2
13924
12555
 * 
13925
 
 * class BUFFER_ALLOC_WHEN(object):             # <<<<<<<<<<<<<<
 
12556
 * class BUFFER_ALLOC_WHEN:             # <<<<<<<<<<<<<<
13926
12557
 *     UNKNOWN = 0
13927
12558
 *     NOW = 1
13928
12559
 */
13929
 
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13930
 
  __Pyx_GOTREF(__pyx_t_1);
13931
 
  __Pyx_INCREF(__pyx_builtin_object);
13932
 
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_builtin_object);
13933
 
  __Pyx_GIVEREF(__pyx_builtin_object);
13934
 
  __pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_2), __pyx_n_s__BUFFER_ALLOC_WHEN, __pyx_n_s__BUFFER_ALLOC_WHEN, __pyx_n_s__adios); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13935
 
  __Pyx_GOTREF(__pyx_t_3);
13936
 
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
13937
 
  if (PyDict_SetItem(__pyx_d, __pyx_n_s__BUFFER_ALLOC_WHEN, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13938
 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13939
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
13940
 
 
13941
 
  /* "adios.pyx":211
13942
 
 * ## ==========
13943
 
 * 
13944
 
 * cpdef init(char * config, MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
13945
 
 *     return adios_init(config, comm.ob_mpi)
13946
 
 * 
13947
 
 */
13948
 
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__MPI); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12560
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_BUFFER_ALLOC_WHEN, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13949
12561
  __Pyx_GOTREF(__pyx_t_2);
13950
 
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__COMM_WORLD); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13951
 
  __Pyx_GOTREF(__pyx_t_3);
 
12562
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_BUFFER_ALLOC_WHEN, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13952
12563
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13953
 
  if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_6mpi4py_3MPI_Comm))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13954
 
  __pyx_k_1 = ((struct PyMPICommObject *)__pyx_t_3);
13955
 
  __Pyx_GIVEREF(__pyx_t_3);
13956
 
  __pyx_t_3 = 0;
13957
 
 
13958
 
  /* "adios.pyx":217
 
12564
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
12565
 
 
12566
  /* "adios.pyx":256
 
12567
 * ## ====================
 
12568
 * 
 
12569
 * cpdef init(char * config, MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
12570
 *     return adios_init(config, comm)
 
12571
 * 
 
12572
 */
 
12573
  __pyx_k_ = MPI_COMM_WORLD;
 
12574
 
 
12575
  /* "adios.pyx":262
13959
12576
 *                    char * name,
13960
12577
 *                    char * mode,
13961
 
 *                    MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
 
12578
 *                    MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
13962
12579
 *     cdef int64_t fd
13963
12580
 *     cdef int result
13964
12581
 */
13965
 
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s__MPI); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13966
 
  __Pyx_GOTREF(__pyx_t_3);
13967
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s__COMM_WORLD); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13968
 
  __Pyx_GOTREF(__pyx_t_2);
13969
 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13970
 
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_6mpi4py_3MPI_Comm))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13971
 
  __pyx_k_2 = ((struct PyMPICommObject *)__pyx_t_2);
13972
 
  __Pyx_GIVEREF(__pyx_t_2);
13973
 
  __pyx_t_2 = 0;
 
12582
  __pyx_k__2 = MPI_COMM_WORLD;
13974
12583
 
13975
 
  /* "adios.pyx":261
 
12584
  /* "adios.pyx":306
13976
12585
 * ## ADIOS No-XML API
13977
 
 * ## ==========
13978
 
 * cpdef int init_noxml(MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
13979
 
 *     return adios_init_noxml(comm.ob_mpi)
13980
 
 * 
13981
 
 */
13982
 
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s__MPI); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13983
 
  __Pyx_GOTREF(__pyx_t_2);
13984
 
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s__COMM_WORLD); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13985
 
  __Pyx_GOTREF(__pyx_t_3);
13986
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13987
 
  if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_6mpi4py_3MPI_Comm))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13988
 
  __pyx_k_6 = ((struct PyMPICommObject *)__pyx_t_3);
13989
 
  __Pyx_GIVEREF(__pyx_t_3);
13990
 
  __pyx_t_3 = 0;
13991
 
 
13992
 
  /* "adios.pyx":440
13993
 
 *     cpdef public dict group
13994
 
 * 
13995
 
 *     def __init__(self, char * fname, MPI.Comm comm = MPI.COMM_WORLD):             # <<<<<<<<<<<<<<
13996
 
 *         self.fp = NULL
13997
 
 *         self.group = {}
13998
 
 */
13999
 
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s__MPI); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14000
 
  __Pyx_GOTREF(__pyx_t_3);
14001
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s__COMM_WORLD); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14002
 
  __Pyx_GOTREF(__pyx_t_2);
14003
 
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14004
 
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_6mpi4py_3MPI_Comm))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14005
 
  __pyx_k_10 = ((struct PyMPICommObject *)__pyx_t_2);
14006
 
  __Pyx_GIVEREF(__pyx_t_2);
14007
 
  __pyx_t_2 = 0;
 
12586
 * ## ====================
 
12587
 * cpdef int init_noxml(MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
12588
 *     return adios_init_noxml(comm)
 
12589
 * 
 
12590
 */
 
12591
  __pyx_k__3 = MPI_COMM_WORLD;
 
12592
 
 
12593
  /* "adios.pyx":422
 
12594
 * ## ====================
 
12595
 * 
 
12596
 * cpdef read_init(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,             # <<<<<<<<<<<<<<
 
12597
 *                 MPI_Comm comm = MPI_COMM_WORLD,
 
12598
 *                 char * parameters = ""):
 
12599
 */
 
12600
  __pyx_k__4 = ADIOS_READ_METHOD_BP;
 
12601
 
 
12602
  /* "adios.pyx":423
 
12603
 * 
 
12604
 * cpdef read_init(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,
 
12605
 *                 MPI_Comm comm = MPI_COMM_WORLD,             # <<<<<<<<<<<<<<
 
12606
 *                 char * parameters = ""):
 
12607
 *     return adios_read_init_method (method, comm, parameters)
 
12608
 */
 
12609
  __pyx_k__5 = MPI_COMM_WORLD;
 
12610
 
 
12611
  /* "adios.pyx":428
 
12612
 * 
 
12613
 * 
 
12614
 * cpdef read_finalize(ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP):             # <<<<<<<<<<<<<<
 
12615
 *     return adios_read_finalize_method (method)
 
12616
 * 
 
12617
 */
 
12618
  __pyx_k__7 = ADIOS_READ_METHOD_BP;
 
12619
 
 
12620
  /* "adios.pyx":449
 
12621
 * 
 
12622
 *     def __init__(self, char * fname,
 
12623
 *                  ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,             # <<<<<<<<<<<<<<
 
12624
 *                  MPI_Comm comm = MPI_COMM_WORLD):
 
12625
 *         self.fp = NULL
 
12626
 */
 
12627
  __pyx_k__8 = ADIOS_READ_METHOD_BP;
 
12628
 
 
12629
  /* "adios.pyx":450
 
12630
 *     def __init__(self, char * fname,
 
12631
 *                  ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP,
 
12632
 *                  MPI_Comm comm = MPI_COMM_WORLD):             # <<<<<<<<<<<<<<
 
12633
 *         self.fp = NULL
 
12634
 *         self.var = {}
 
12635
 */
 
12636
  __pyx_k__9 = MPI_COMM_WORLD;
 
12637
 
 
12638
  /* "adios.pyx":569
 
12639
 * ## ====================
 
12640
 * 
 
12641
 * def readvar(fname, varname):             # <<<<<<<<<<<<<<
 
12642
 *     f = file(fname)
 
12643
 *     if not f.var.has_key(varname):
 
12644
 */
 
12645
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5adios_37readvar, NULL, __pyx_n_s_adios); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12646
  __Pyx_GOTREF(__pyx_t_1);
 
12647
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_readvar, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12648
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
12649
 
 
12650
  /* "adios.pyx":578
 
12651
 *     return v.read(from_steps=0, nsteps=v.nsteps)
 
12652
 * 
 
12653
 * def bpls(fname):             # <<<<<<<<<<<<<<
 
12654
 *     f = file(fname)
 
12655
 *     return {'nvars': f.nvars,
 
12656
 */
 
12657
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5adios_39bpls, NULL, __pyx_n_s_adios); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12658
  __Pyx_GOTREF(__pyx_t_1);
 
12659
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_bpls, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12660
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14008
12661
 
14009
12662
  /* "adios.pyx":1
14010
12663
 * """             # <<<<<<<<<<<<<<
14011
12664
 *  ADIOS is freely available under the terms of the BSD license described
14012
12665
 *  in the COPYING file in the top level directory of this source distribution.
14013
12666
 */
14014
 
  __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14015
 
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
14016
 
  if (PyDict_SetItem(__pyx_d, __pyx_n_s____test__, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14017
 
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
12667
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12668
  __Pyx_GOTREF(__pyx_t_1);
 
12669
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12670
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14018
12671
 
14019
 
  /* "numpy.pxd":975
 
12672
  /* "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976
14020
12673
 *      arr.base = baseptr
14021
12674
 * 
14022
12675
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
14027
12680
  __pyx_L1_error:;
14028
12681
  __Pyx_XDECREF(__pyx_t_1);
14029
12682
  __Pyx_XDECREF(__pyx_t_2);
14030
 
  __Pyx_XDECREF(__pyx_t_3);
14031
12683
  if (__pyx_m) {
14032
12684
    __Pyx_AddTraceback("init adios", __pyx_clineno, __pyx_lineno, __pyx_filename);
14033
12685
    Py_DECREF(__pyx_m); __pyx_m = 0;
14067
12719
#if PY_MAJOR_VERSION >= 3
14068
12720
            "name '%U' is not defined", name);
14069
12721
#else
14070
 
            "name '%s' is not defined", PyString_AS_STRING(name));
 
12722
            "name '%.200s' is not defined", PyString_AS_STRING(name));
14071
12723
#endif
14072
12724
    }
14073
12725
    return result;
14172
12824
    goto bad;
14173
12825
invalid_keyword_type:
14174
12826
    PyErr_Format(PyExc_TypeError,
14175
 
        "%s() keywords must be strings", function_name);
 
12827
        "%.200s() keywords must be strings", function_name);
14176
12828
    goto bad;
14177
12829
invalid_keyword:
14178
12830
    PyErr_Format(PyExc_TypeError,
14179
12831
    #if PY_MAJOR_VERSION < 3
14180
 
        "%s() got an unexpected keyword argument '%s'",
 
12832
        "%.200s() got an unexpected keyword argument '%.200s'",
14181
12833
        function_name, PyString_AsString(key));
14182
12834
    #else
14183
12835
        "%s() got an unexpected keyword argument '%U'",
14207
12859
        more_or_less = "exactly";
14208
12860
    }
14209
12861
    PyErr_Format(PyExc_TypeError,
14210
 
                 "%s() takes %s %" CYTHON_FORMAT_SSIZE_T "d positional argument%s (%" CYTHON_FORMAT_SSIZE_T "d given)",
 
12862
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
14211
12863
                 func_name, more_or_less, num_expected,
14212
12864
                 (num_expected == 1) ? "" : "s", num_found);
14213
12865
}
14214
12866
 
14215
 
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
14216
 
    const char *name, int exact)
14217
 
{
14218
 
    if (!type) {
14219
 
        PyErr_Format(PyExc_SystemError, "Missing type object");
14220
 
        return 0;
14221
 
    }
14222
 
    if (none_allowed && obj == Py_None) return 1;
14223
 
    else if (exact) {
14224
 
        if (Py_TYPE(obj) == type) return 1;
14225
 
    }
14226
 
    else {
14227
 
        if (PyObject_TypeCheck(obj, type)) return 1;
14228
 
    }
14229
 
    PyErr_Format(PyExc_TypeError,
14230
 
        "Argument '%s' has incorrect type (expected %s, got %s)",
14231
 
        name, type->tp_name, Py_TYPE(obj)->tp_name);
14232
 
    return 0;
14233
 
}
14234
 
 
14235
12867
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
14236
12868
    PyObject *result;
14237
12869
#if CYTHON_COMPILING_IN_CPYTHON
14249
12881
    return result;
14250
12882
}
14251
12883
 
 
12884
#if CYTHON_COMPILING_IN_CPYTHON
 
12885
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
 
12886
    PyObject *result;
 
12887
    ternaryfunc call = func->ob_type->tp_call;
 
12888
    if (unlikely(!call))
 
12889
        return PyObject_Call(func, arg, kw);
 
12890
#if PY_VERSION_HEX >= 0x02060000
 
12891
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
 
12892
        return NULL;
 
12893
#endif
 
12894
    result = (*call)(func, arg, kw);
 
12895
#if PY_VERSION_HEX >= 0x02060000
 
12896
    Py_LeaveRecursiveCall();
 
12897
#endif
 
12898
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
 
12899
        PyErr_SetString(
 
12900
            PyExc_SystemError,
 
12901
            "NULL result without error in PyObject_Call");
 
12902
    }
 
12903
    return result;
 
12904
}
 
12905
#endif
 
12906
 
14252
12907
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
14253
12908
    if (unlikely(!type)) {
14254
 
        PyErr_Format(PyExc_SystemError, "Missing type object");
 
12909
        PyErr_SetString(PyExc_SystemError, "Missing type object");
14255
12910
        return 0;
14256
12911
    }
14257
12912
    if (likely(PyObject_TypeCheck(obj, type)))
14293
12948
}
14294
12949
 
14295
12950
static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
14296
 
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename) {
 
12951
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
 
12952
                                  int full_traceback) {
14297
12953
    PyObject *old_exc, *old_val, *old_tb;
14298
12954
    PyObject *ctx;
14299
12955
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
 
12956
    if (full_traceback) {
 
12957
        Py_XINCREF(old_exc);
 
12958
        Py_XINCREF(old_val);
 
12959
        Py_XINCREF(old_tb);
 
12960
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
 
12961
        PyErr_PrintEx(1);
 
12962
    }
14300
12963
    #if PY_MAJOR_VERSION < 3
14301
12964
    ctx = PyString_FromString(name);
14302
12965
    #else
14311
12974
    }
14312
12975
}
14313
12976
 
 
12977
static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) {
 
12978
    PyErr_Format(PyExc_TypeError,
 
12979
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
 
12980
        name, type->tp_name, Py_TYPE(obj)->tp_name);
 
12981
}
 
12982
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
 
12983
    const char *name, int exact)
 
12984
{
 
12985
    if (unlikely(!type)) {
 
12986
        PyErr_SetString(PyExc_SystemError, "Missing type object");
 
12987
        return 0;
 
12988
    }
 
12989
    if (none_allowed && obj == Py_None) return 1;
 
12990
    else if (exact) {
 
12991
        if (likely(Py_TYPE(obj) == type)) return 1;
 
12992
        #if PY_MAJOR_VERSION == 2
 
12993
        else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
 
12994
        #endif
 
12995
    }
 
12996
    else {
 
12997
        if (likely(PyObject_TypeCheck(obj, type))) return 1;
 
12998
    }
 
12999
    __Pyx_RaiseArgumentTypeInvalid(name, obj, type);
 
13000
    return 0;
 
13001
}
 
13002
 
14314
13003
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
14315
13004
    PyObject *r;
14316
13005
    if (!j) return NULL;
14389
13078
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
14390
13079
}
14391
13080
 
14392
 
#if PY_MAJOR_VERSION >= 3
14393
 
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
14394
 
    return PyObject_CallMethodObjArgs(d, __pyx_n_s__values, NULL);
14395
 
}
14396
 
#endif
 
13081
static CYTHON_INLINE int __Pyx_IterFinish(void) {
 
13082
#if CYTHON_COMPILING_IN_CPYTHON
 
13083
    PyThreadState *tstate = PyThreadState_GET();
 
13084
    PyObject* exc_type = tstate->curexc_type;
 
13085
    if (unlikely(exc_type)) {
 
13086
        if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) {
 
13087
            PyObject *exc_value, *exc_tb;
 
13088
            exc_value = tstate->curexc_value;
 
13089
            exc_tb = tstate->curexc_traceback;
 
13090
            tstate->curexc_type = 0;
 
13091
            tstate->curexc_value = 0;
 
13092
            tstate->curexc_traceback = 0;
 
13093
            Py_DECREF(exc_type);
 
13094
            Py_XDECREF(exc_value);
 
13095
            Py_XDECREF(exc_tb);
 
13096
            return 0;
 
13097
        } else {
 
13098
            return -1;
 
13099
        }
 
13100
    }
 
13101
    return 0;
 
13102
#else
 
13103
    if (unlikely(PyErr_Occurred())) {
 
13104
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
 
13105
            PyErr_Clear();
 
13106
            return 0;
 
13107
        } else {
 
13108
            return -1;
 
13109
        }
 
13110
    }
 
13111
    return 0;
 
13112
#endif
 
13113
}
 
13114
 
 
13115
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
 
13116
    PyErr_Format(PyExc_ValueError,
 
13117
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
 
13118
                 index, (index == 1) ? "" : "s");
 
13119
}
 
13120
 
 
13121
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
 
13122
    PyErr_Format(PyExc_ValueError,
 
13123
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
 
13124
}
 
13125
 
 
13126
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
 
13127
    if (unlikely(retval)) {
 
13128
        Py_DECREF(retval);
 
13129
        __Pyx_RaiseTooManyValuesError(expected);
 
13130
        return -1;
 
13131
    } else {
 
13132
        return __Pyx_IterFinish();
 
13133
    }
 
13134
    return 0;
 
13135
}
 
13136
 
 
13137
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
 
13138
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
 
13139
}
 
13140
 
 
13141
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
 
13142
    if (t == Py_None) {
 
13143
      __Pyx_RaiseNoneNotIterableError();
 
13144
    } else if (PyTuple_GET_SIZE(t) < index) {
 
13145
      __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t));
 
13146
    } else {
 
13147
      __Pyx_RaiseTooManyValuesError(index);
 
13148
    }
 
13149
}
 
13150
 
 
13151
static CYTHON_INLINE int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
 
13152
                                             int is_tuple, int has_known_size, int decref_tuple) {
 
13153
    Py_ssize_t index;
 
13154
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
 
13155
    if (!is_tuple && unlikely(!PyTuple_Check(tuple))) {
 
13156
        iternextfunc iternext;
 
13157
        iter = PyObject_GetIter(tuple);
 
13158
        if (unlikely(!iter)) goto bad;
 
13159
        if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
 
13160
        iternext = Py_TYPE(iter)->tp_iternext;
 
13161
        value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
 
13162
        value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
 
13163
        if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
 
13164
        Py_DECREF(iter);
 
13165
    } else {
 
13166
        if (!has_known_size && unlikely(PyTuple_GET_SIZE(tuple) != 2)) {
 
13167
            __Pyx_UnpackTupleError(tuple, 2);
 
13168
            goto bad;
 
13169
        }
 
13170
#if CYTHON_COMPILING_IN_PYPY
 
13171
        value1 = PySequence_ITEM(tuple, 0);
 
13172
        if (unlikely(!value1)) goto bad;
 
13173
        value2 = PySequence_ITEM(tuple, 1);
 
13174
        if (unlikely(!value2)) goto bad;
 
13175
#else
 
13176
        value1 = PyTuple_GET_ITEM(tuple, 0);
 
13177
        value2 = PyTuple_GET_ITEM(tuple, 1);
 
13178
        Py_INCREF(value1);
 
13179
        Py_INCREF(value2);
 
13180
#endif
 
13181
        if (decref_tuple) { Py_DECREF(tuple); }
 
13182
    }
 
13183
    *pvalue1 = value1;
 
13184
    *pvalue2 = value2;
 
13185
    return 0;
 
13186
unpacking_failed:
 
13187
    if (!has_known_size && __Pyx_IterFinish() == 0)
 
13188
        __Pyx_RaiseNeedMoreValuesError(index);
 
13189
bad:
 
13190
    Py_XDECREF(iter);
 
13191
    Py_XDECREF(value1);
 
13192
    Py_XDECREF(value2);
 
13193
    if (decref_tuple) { Py_XDECREF(tuple); }
 
13194
    return -1;
 
13195
}
 
13196
 
 
13197
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
 
13198
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
 
13199
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
 
13200
    *p_source_is_dict = is_dict;
 
13201
#if !CYTHON_COMPILING_IN_PYPY
 
13202
    if (is_dict) {
 
13203
        *p_orig_length = PyDict_Size(iterable);
 
13204
        Py_INCREF(iterable);
 
13205
        return iterable;
 
13206
    }
 
13207
#endif
 
13208
    *p_orig_length = 0;
 
13209
    if (method_name) {
 
13210
        PyObject* iter;
 
13211
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
 
13212
        if (!iterable)
 
13213
            return NULL;
 
13214
#if !CYTHON_COMPILING_IN_PYPY
 
13215
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
 
13216
            return iterable;
 
13217
#endif
 
13218
        iter = PyObject_GetIter(iterable);
 
13219
        Py_DECREF(iterable);
 
13220
        return iter;
 
13221
    }
 
13222
    return PyObject_GetIter(iterable);
 
13223
}
 
13224
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* iter_obj, Py_ssize_t orig_length, Py_ssize_t* ppos,
 
13225
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
 
13226
    PyObject* next_item;
 
13227
#if !CYTHON_COMPILING_IN_PYPY
 
13228
    if (source_is_dict) {
 
13229
        PyObject *key, *value;
 
13230
        if (unlikely(orig_length != PyDict_Size(iter_obj))) {
 
13231
            PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
 
13232
            return -1;
 
13233
        }
 
13234
        if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
 
13235
            return 0;
 
13236
        }
 
13237
        if (pitem) {
 
13238
            PyObject* tuple = PyTuple_New(2);
 
13239
            if (unlikely(!tuple)) {
 
13240
                return -1;
 
13241
            }
 
13242
            Py_INCREF(key);
 
13243
            Py_INCREF(value);
 
13244
            PyTuple_SET_ITEM(tuple, 0, key);
 
13245
            PyTuple_SET_ITEM(tuple, 1, value);
 
13246
            *pitem = tuple;
 
13247
        } else {
 
13248
            if (pkey) {
 
13249
                Py_INCREF(key);
 
13250
                *pkey = key;
 
13251
            }
 
13252
            if (pvalue) {
 
13253
                Py_INCREF(value);
 
13254
                *pvalue = value;
 
13255
            }
 
13256
        }
 
13257
        return 1;
 
13258
    } else if (PyTuple_CheckExact(iter_obj)) {
 
13259
        Py_ssize_t pos = *ppos;
 
13260
        if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0;
 
13261
        *ppos = pos + 1;
 
13262
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
 
13263
        Py_INCREF(next_item);
 
13264
    } else if (PyList_CheckExact(iter_obj)) {
 
13265
        Py_ssize_t pos = *ppos;
 
13266
        if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0;
 
13267
        *ppos = pos + 1;
 
13268
        next_item = PyList_GET_ITEM(iter_obj, pos);
 
13269
        Py_INCREF(next_item);
 
13270
    } else
 
13271
#endif
 
13272
    {
 
13273
        next_item = PyIter_Next(iter_obj);
 
13274
        if (unlikely(!next_item)) {
 
13275
            return __Pyx_IterFinish();
 
13276
        }
 
13277
    }
 
13278
    if (pitem) {
 
13279
        *pitem = next_item;
 
13280
    } else if (pkey && pvalue) {
 
13281
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
 
13282
            return -1;
 
13283
    } else if (pkey) {
 
13284
        *pkey = next_item;
 
13285
    } else {
 
13286
        *pvalue = next_item;
 
13287
    }
 
13288
    return 1;
 
13289
}
14397
13290
 
14398
13291
#if PY_MAJOR_VERSION < 3
14399
13292
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
14481
13374
        value = type;
14482
13375
        type = (PyObject*) Py_TYPE(value);
14483
13376
    } else if (PyExceptionClass_Check(type)) {
14484
 
        PyObject *args;
14485
 
        if (!value)
14486
 
            args = PyTuple_New(0);
14487
 
        else if (PyTuple_Check(value)) {
14488
 
            Py_INCREF(value);
14489
 
            args = value;
14490
 
        } else
14491
 
            args = PyTuple_Pack(1, value);
14492
 
        if (!args)
14493
 
            goto bad;
14494
 
        owned_instance = PyEval_CallObject(type, args);
14495
 
        Py_DECREF(args);
14496
 
        if (!owned_instance)
14497
 
            goto bad;
14498
 
        value = owned_instance;
14499
 
        if (!PyExceptionInstance_Check(value)) {
14500
 
            PyErr_Format(PyExc_TypeError,
14501
 
                         "calling %R should have returned an instance of "
14502
 
                         "BaseException, not %R",
14503
 
                         type, Py_TYPE(value));
14504
 
            goto bad;
 
13377
        PyObject *instance_class = NULL;
 
13378
        if (value && PyExceptionInstance_Check(value)) {
 
13379
            instance_class = (PyObject*) Py_TYPE(value);
 
13380
            if (instance_class != type) {
 
13381
                if (PyObject_IsSubclass(instance_class, type)) {
 
13382
                    type = instance_class;
 
13383
                } else {
 
13384
                    instance_class = NULL;
 
13385
                }
 
13386
            }
 
13387
        }
 
13388
        if (!instance_class) {
 
13389
            PyObject *args;
 
13390
            if (!value)
 
13391
                args = PyTuple_New(0);
 
13392
            else if (PyTuple_Check(value)) {
 
13393
                Py_INCREF(value);
 
13394
                args = value;
 
13395
            } else
 
13396
                args = PyTuple_Pack(1, value);
 
13397
            if (!args)
 
13398
                goto bad;
 
13399
            owned_instance = PyObject_Call(type, args, NULL);
 
13400
            Py_DECREF(args);
 
13401
            if (!owned_instance)
 
13402
                goto bad;
 
13403
            value = owned_instance;
 
13404
            if (!PyExceptionInstance_Check(value)) {
 
13405
                PyErr_Format(PyExc_TypeError,
 
13406
                             "calling %R should have returned an instance of "
 
13407
                             "BaseException, not %R",
 
13408
                             type, Py_TYPE(value));
 
13409
                goto bad;
 
13410
            }
14505
13411
        }
14506
13412
    } else {
14507
13413
        PyErr_SetString(PyExc_TypeError,
14547
13453
}
14548
13454
#endif
14549
13455
 
14550
 
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
14551
 
    PyErr_Format(PyExc_ValueError,
14552
 
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
14553
 
}
14554
 
 
14555
 
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
14556
 
    PyErr_Format(PyExc_ValueError,
14557
 
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%s to unpack",
14558
 
                 index, (index == 1) ? "" : "s");
14559
 
}
14560
 
 
14561
 
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
14562
 
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
14563
 
}
14564
 
 
14565
 
static CYTHON_INLINE int __Pyx_IterFinish(void) {
14566
 
#if CYTHON_COMPILING_IN_CPYTHON
14567
 
    PyThreadState *tstate = PyThreadState_GET();
14568
 
    PyObject* exc_type = tstate->curexc_type;
14569
 
    if (unlikely(exc_type)) {
14570
 
        if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) {
14571
 
            PyObject *exc_value, *exc_tb;
14572
 
            exc_value = tstate->curexc_value;
14573
 
            exc_tb = tstate->curexc_traceback;
14574
 
            tstate->curexc_type = 0;
14575
 
            tstate->curexc_value = 0;
14576
 
            tstate->curexc_traceback = 0;
14577
 
            Py_DECREF(exc_type);
14578
 
            Py_XDECREF(exc_value);
14579
 
            Py_XDECREF(exc_tb);
14580
 
            return 0;
14581
 
        } else {
14582
 
            return -1;
14583
 
        }
14584
 
    }
14585
 
    return 0;
14586
 
#else
14587
 
    if (unlikely(PyErr_Occurred())) {
14588
 
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
14589
 
            PyErr_Clear();
14590
 
            return 0;
14591
 
        } else {
14592
 
            return -1;
14593
 
        }
14594
 
    }
14595
 
    return 0;
14596
 
#endif
14597
 
}
14598
 
 
14599
 
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
14600
 
    if (unlikely(retval)) {
14601
 
        Py_DECREF(retval);
14602
 
        __Pyx_RaiseTooManyValuesError(expected);
14603
 
        return -1;
14604
 
    } else {
14605
 
        return __Pyx_IterFinish();
14606
 
    }
14607
 
    return 0;
14608
 
}
14609
 
 
14610
13456
static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
14611
13457
#if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION==3&&PY_MINOR_VERSION==0)
14612
13458
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
14615
13461
#endif
14616
13462
    if (!ob)
14617
13463
        goto bad;
14618
 
    if (PyDict_SetItem(dict, __pyx_n_s____pyx_vtable__, ob) < 0)
 
13464
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
14619
13465
        goto bad;
14620
13466
    Py_DECREF(ob);
14621
13467
    return 0;
14624
13470
    return -1;
14625
13471
}
14626
13472
 
 
13473
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
 
13474
    Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases);
 
13475
    for (i=0; i < nbases; i++) {
 
13476
        PyTypeObject *tmptype;
 
13477
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
 
13478
        tmptype = Py_TYPE(tmp);
 
13479
#if PY_MAJOR_VERSION < 3
 
13480
        if (tmptype == &PyClass_Type)
 
13481
            continue;
 
13482
#endif
 
13483
        if (!metaclass) {
 
13484
            metaclass = tmptype;
 
13485
            continue;
 
13486
        }
 
13487
        if (PyType_IsSubtype(metaclass, tmptype))
 
13488
            continue;
 
13489
        if (PyType_IsSubtype(tmptype, metaclass)) {
 
13490
            metaclass = tmptype;
 
13491
            continue;
 
13492
        }
 
13493
        PyErr_SetString(PyExc_TypeError,
 
13494
                        "metaclass conflict: "
 
13495
                        "the metaclass of a derived class "
 
13496
                        "must be a (non-strict) subclass "
 
13497
                        "of the metaclasses of all its bases");
 
13498
        return NULL;
 
13499
    }
 
13500
    if (!metaclass) {
 
13501
#if PY_MAJOR_VERSION < 3
 
13502
        metaclass = &PyClass_Type;
 
13503
#else
 
13504
        metaclass = &PyType_Type;
 
13505
#endif
 
13506
    }
 
13507
    Py_INCREF((PyObject*) metaclass);
 
13508
    return (PyObject*) metaclass;
 
13509
}
 
13510
 
 
13511
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
 
13512
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
 
13513
    PyObject *ns;
 
13514
    if (metaclass) {
 
13515
        PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare);
 
13516
        if (prep) {
 
13517
            PyObject *pargs = PyTuple_Pack(2, name, bases);
 
13518
            if (unlikely(!pargs)) {
 
13519
                Py_DECREF(prep);
 
13520
                return NULL;
 
13521
            }
 
13522
            ns = PyObject_Call(prep, pargs, mkw);
 
13523
            Py_DECREF(prep);
 
13524
            Py_DECREF(pargs);
 
13525
        } else {
 
13526
            if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError)))
 
13527
                return NULL;
 
13528
            PyErr_Clear();
 
13529
            ns = PyDict_New();
 
13530
        }
 
13531
    } else {
 
13532
        ns = PyDict_New();
 
13533
    }
 
13534
    if (unlikely(!ns))
 
13535
        return NULL;
 
13536
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad;
 
13537
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad;
 
13538
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad;
 
13539
    return ns;
 
13540
bad:
 
13541
    Py_DECREF(ns);
 
13542
    return NULL;
 
13543
}
 
13544
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
 
13545
                                      PyObject *dict, PyObject *mkw,
 
13546
                                      int calculate_metaclass, int allow_py2_metaclass) {
 
13547
    PyObject *result, *margs;
 
13548
    PyObject *owned_metaclass = NULL;
 
13549
    if (allow_py2_metaclass) {
 
13550
        owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass);
 
13551
        if (owned_metaclass) {
 
13552
            metaclass = owned_metaclass;
 
13553
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
 
13554
            PyErr_Clear();
 
13555
        } else {
 
13556
            return NULL;
 
13557
        }
 
13558
    }
 
13559
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
 
13560
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
 
13561
        Py_XDECREF(owned_metaclass);
 
13562
        if (unlikely(!metaclass))
 
13563
            return NULL;
 
13564
        owned_metaclass = metaclass;
 
13565
    }
 
13566
    margs = PyTuple_Pack(3, name, bases, dict);
 
13567
    if (unlikely(!margs)) {
 
13568
        result = NULL;
 
13569
    } else {
 
13570
        result = PyObject_Call(metaclass, margs, mkw);
 
13571
        Py_DECREF(margs);
 
13572
    }
 
13573
    Py_XDECREF(owned_metaclass);
 
13574
    return result;
 
13575
}
 
13576
 
 
13577
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
 
13578
    const int neg_one = (int) -1, const_zero = 0;
 
13579
    const int is_unsigned = neg_one > const_zero;
 
13580
    if (is_unsigned) {
 
13581
        if (sizeof(int) < sizeof(long)) {
 
13582
            return PyInt_FromLong((long) value);
 
13583
        } else if (sizeof(int) <= sizeof(unsigned long)) {
 
13584
            return PyLong_FromUnsignedLong((unsigned long) value);
 
13585
        } else if (sizeof(int) <= sizeof(unsigned long long)) {
 
13586
            return PyLong_FromUnsignedLongLong((unsigned long long) value);
 
13587
        }
 
13588
    } else {
 
13589
        if (sizeof(int) <= sizeof(long)) {
 
13590
            return PyInt_FromLong((long) value);
 
13591
        } else if (sizeof(int) <= sizeof(long long)) {
 
13592
            return PyLong_FromLongLong((long long) value);
 
13593
        }
 
13594
    }
 
13595
    {
 
13596
        int one = 1; int little = (int)*(unsigned char *)&one;
 
13597
        unsigned char *bytes = (unsigned char *)&value;
 
13598
        return _PyLong_FromByteArray(bytes, sizeof(int),
 
13599
                                     little, !is_unsigned);
 
13600
    }
 
13601
}
 
13602
 
 
13603
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func)             \
 
13604
    {                                                                     \
 
13605
        func_type value = func(x);                                        \
 
13606
        if (sizeof(target_type) < sizeof(func_type)) {                    \
 
13607
            if (unlikely(value != (func_type) (target_type) value)) {     \
 
13608
                func_type zero = 0;                                       \
 
13609
                PyErr_SetString(PyExc_OverflowError,                      \
 
13610
                    (is_unsigned && unlikely(value < zero)) ?             \
 
13611
                    "can't convert negative value to " #target_type :     \
 
13612
                    "value too large to convert to " #target_type);       \
 
13613
                return (target_type) -1;                                  \
 
13614
            }                                                             \
 
13615
        }                                                                 \
 
13616
        return (target_type) value;                                       \
 
13617
    }
 
13618
 
 
13619
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13620
 #if CYTHON_USE_PYLONG_INTERNALS
 
13621
  #include "longintrepr.h"
 
13622
 #endif
 
13623
#endif
 
13624
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
 
13625
    const int neg_one = (int) -1, const_zero = 0;
 
13626
    const int is_unsigned = neg_one > const_zero;
 
13627
#if PY_MAJOR_VERSION < 3
 
13628
    if (likely(PyInt_Check(x))) {
 
13629
        if (sizeof(int) < sizeof(long)) {
 
13630
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG)
 
13631
        } else {
 
13632
            long val = PyInt_AS_LONG(x);
 
13633
            if (is_unsigned && unlikely(val < 0)) {
 
13634
                PyErr_SetString(PyExc_OverflowError,
 
13635
                                "can't convert negative value to int");
 
13636
                return (int) -1;
 
13637
            }
 
13638
            return (int) val;
 
13639
        }
 
13640
    } else
 
13641
#endif
 
13642
    if (likely(PyLong_Check(x))) {
 
13643
        if (is_unsigned) {
 
13644
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13645
 #if CYTHON_USE_PYLONG_INTERNALS
 
13646
            if (sizeof(digit) <= sizeof(int)) {
 
13647
                switch (Py_SIZE(x)) {
 
13648
                    case  0: return 0;
 
13649
                    case  1: return (int) ((PyLongObject*)x)->ob_digit[0];
 
13650
                }
 
13651
            }
 
13652
 #endif
 
13653
#endif
 
13654
            if (unlikely(Py_SIZE(x) < 0)) {
 
13655
                PyErr_SetString(PyExc_OverflowError,
 
13656
                                "can't convert negative value to int");
 
13657
                return (int) -1;
 
13658
            }
 
13659
            if (sizeof(int) <= sizeof(unsigned long)) {
 
13660
                __PYX_VERIFY_RETURN_INT(int, unsigned long, PyLong_AsUnsignedLong)
 
13661
            } else if (sizeof(int) <= sizeof(unsigned long long)) {
 
13662
                __PYX_VERIFY_RETURN_INT(int, unsigned long long, PyLong_AsUnsignedLongLong)
 
13663
            }
 
13664
        } else {
 
13665
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13666
 #if CYTHON_USE_PYLONG_INTERNALS
 
13667
            if (sizeof(digit) <= sizeof(int)) {
 
13668
                switch (Py_SIZE(x)) {
 
13669
                    case  0: return 0;
 
13670
                    case  1: return +(int) ((PyLongObject*)x)->ob_digit[0];
 
13671
                    case -1: return -(int) ((PyLongObject*)x)->ob_digit[0];
 
13672
                }
 
13673
            }
 
13674
 #endif
 
13675
#endif
 
13676
            if (sizeof(int) <= sizeof(long)) {
 
13677
                __PYX_VERIFY_RETURN_INT(int, long, PyLong_AsLong)
 
13678
            } else if (sizeof(int) <= sizeof(long long)) {
 
13679
                __PYX_VERIFY_RETURN_INT(int, long long, PyLong_AsLongLong)
 
13680
            }
 
13681
        }
 
13682
        {
 
13683
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
 
13684
            PyErr_SetString(PyExc_RuntimeError,
 
13685
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
 
13686
#else
 
13687
            int val;
 
13688
            PyObject *v = __Pyx_PyNumber_Int(x);
 
13689
 #if PY_MAJOR_VERSION < 3
 
13690
            if (likely(v) && !PyLong_Check(v)) {
 
13691
                PyObject *tmp = v;
 
13692
                v = PyNumber_Long(tmp);
 
13693
                Py_DECREF(tmp);
 
13694
            }
 
13695
 #endif
 
13696
            if (likely(v)) {
 
13697
                int one = 1; int is_little = (int)*(unsigned char *)&one;
 
13698
                unsigned char *bytes = (unsigned char *)&val;
 
13699
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
 
13700
                                              bytes, sizeof(val),
 
13701
                                              is_little, !is_unsigned);
 
13702
                Py_DECREF(v);
 
13703
                if (likely(!ret))
 
13704
                    return val;
 
13705
            }
 
13706
#endif
 
13707
            return (int) -1;
 
13708
        }
 
13709
    } else {
 
13710
        int val;
 
13711
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
13712
        if (!tmp) return (int) -1;
 
13713
        val = __Pyx_PyInt_As_int(tmp);
 
13714
        Py_DECREF(tmp);
 
13715
        return val;
 
13716
    }
 
13717
}
 
13718
 
14627
13719
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
14628
13720
    PyObject *empty_list = 0;
14629
13721
    PyObject *module = 0;
14632
13724
    PyObject *list;
14633
13725
    #if PY_VERSION_HEX < 0x03030000
14634
13726
    PyObject *py_import;
14635
 
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s____import__);
 
13727
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
14636
13728
    if (!py_import)
14637
13729
        goto bad;
14638
13730
    #endif
14706
13798
    return module;
14707
13799
}
14708
13800
 
14709
 
static PyObject *__Pyx_FindPy2Metaclass(PyObject *bases) {
14710
 
    PyObject *metaclass;
14711
 
#if PY_MAJOR_VERSION < 3
14712
 
    if (PyTuple_Check(bases) && PyTuple_GET_SIZE(bases) > 0) {
14713
 
        PyObject *base = PyTuple_GET_ITEM(bases, 0);
14714
 
        metaclass = __Pyx_PyObject_GetAttrStr(base, __pyx_n_s____class__);
14715
 
        if (!metaclass) {
14716
 
            PyErr_Clear();
14717
 
            metaclass = (PyObject*) Py_TYPE(base);
14718
 
        }
14719
 
    } else {
14720
 
        metaclass = (PyObject *) &PyClass_Type;
14721
 
    }
14722
 
#else
14723
 
    if (PyTuple_Check(bases) && PyTuple_GET_SIZE(bases) > 0) {
14724
 
        PyObject *base = PyTuple_GET_ITEM(bases, 0);
14725
 
        metaclass = (PyObject*) Py_TYPE(base);
14726
 
    } else {
14727
 
        metaclass = (PyObject *) &PyType_Type;
14728
 
    }
14729
 
#endif
14730
 
    Py_INCREF(metaclass);
14731
 
    return metaclass;
14732
 
}
14733
 
 
14734
 
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name,
14735
 
                                   PyObject *qualname, PyObject *modname) {
14736
 
    PyObject *result;
14737
 
    PyObject *metaclass;
14738
 
    if (PyDict_SetItem(dict, __pyx_n_s____module__, modname) < 0)
14739
 
        return NULL;
14740
 
    if (PyDict_SetItem(dict, __pyx_n_s____qualname__, qualname) < 0)
14741
 
        return NULL;
14742
 
    metaclass = PyDict_GetItem(dict, __pyx_n_s____metaclass__);
14743
 
    if (metaclass) {
14744
 
        Py_INCREF(metaclass);
14745
 
    } else {
14746
 
        metaclass = __Pyx_FindPy2Metaclass(bases);
14747
 
    }
14748
 
    result = PyObject_CallFunctionObjArgs(metaclass, name, bases, dict, NULL);
14749
 
    Py_DECREF(metaclass);
14750
 
    return result;
14751
 
}
14752
 
 
14753
 
static CYTHON_INLINE int64_t __Pyx_PyInt_from_py_int64_t(PyObject* x) {
14754
 
    const int64_t neg_one = (int64_t)-1, const_zero = (int64_t)0;
14755
 
    const int is_unsigned = const_zero < neg_one;
14756
 
    if (sizeof(int64_t) == sizeof(char)) {
14757
 
        if (is_unsigned)
14758
 
            return (int64_t)__Pyx_PyInt_AsUnsignedChar(x);
14759
 
        else
14760
 
            return (int64_t)__Pyx_PyInt_AsSignedChar(x);
14761
 
    } else if (sizeof(int64_t) == sizeof(short)) {
14762
 
        if (is_unsigned)
14763
 
            return (int64_t)__Pyx_PyInt_AsUnsignedShort(x);
14764
 
        else
14765
 
            return (int64_t)__Pyx_PyInt_AsSignedShort(x);
14766
 
    } else if (sizeof(int64_t) == sizeof(int)) {
14767
 
        if (is_unsigned)
14768
 
            return (int64_t)__Pyx_PyInt_AsUnsignedInt(x);
14769
 
        else
14770
 
            return (int64_t)__Pyx_PyInt_AsSignedInt(x);
14771
 
    } else if (sizeof(int64_t) == sizeof(long)) {
14772
 
        if (is_unsigned)
14773
 
            return (int64_t)__Pyx_PyInt_AsUnsignedLong(x);
14774
 
        else
14775
 
            return (int64_t)__Pyx_PyInt_AsSignedLong(x);
14776
 
    } else if (sizeof(int64_t) == sizeof(PY_LONG_LONG)) {
14777
 
        if (is_unsigned)
14778
 
            return (int64_t)__Pyx_PyInt_AsUnsignedLongLong(x);
14779
 
        else
14780
 
            return (int64_t)__Pyx_PyInt_AsSignedLongLong(x);
14781
 
    }  else {
14782
 
        #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
14783
 
        PyErr_SetString(PyExc_RuntimeError,
14784
 
                        "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
14785
 
        #else
 
13801
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13802
 #if CYTHON_USE_PYLONG_INTERNALS
 
13803
  #include "longintrepr.h"
 
13804
 #endif
 
13805
#endif
 
13806
static CYTHON_INLINE MPI_Comm __Pyx_PyInt_As_MPI_Comm(PyObject *x) {
 
13807
    const MPI_Comm neg_one = (MPI_Comm) -1, const_zero = 0;
 
13808
    const int is_unsigned = neg_one > const_zero;
 
13809
#if PY_MAJOR_VERSION < 3
 
13810
    if (likely(PyInt_Check(x))) {
 
13811
        if (sizeof(MPI_Comm) < sizeof(long)) {
 
13812
            __PYX_VERIFY_RETURN_INT(MPI_Comm, long, PyInt_AS_LONG)
 
13813
        } else {
 
13814
            long val = PyInt_AS_LONG(x);
 
13815
            if (is_unsigned && unlikely(val < 0)) {
 
13816
                PyErr_SetString(PyExc_OverflowError,
 
13817
                                "can't convert negative value to MPI_Comm");
 
13818
                return (MPI_Comm) -1;
 
13819
            }
 
13820
            return (MPI_Comm) val;
 
13821
        }
 
13822
    } else
 
13823
#endif
 
13824
    if (likely(PyLong_Check(x))) {
 
13825
        if (is_unsigned) {
 
13826
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13827
 #if CYTHON_USE_PYLONG_INTERNALS
 
13828
            if (sizeof(digit) <= sizeof(MPI_Comm)) {
 
13829
                switch (Py_SIZE(x)) {
 
13830
                    case  0: return 0;
 
13831
                    case  1: return (MPI_Comm) ((PyLongObject*)x)->ob_digit[0];
 
13832
                }
 
13833
            }
 
13834
 #endif
 
13835
#endif
 
13836
            if (unlikely(Py_SIZE(x) < 0)) {
 
13837
                PyErr_SetString(PyExc_OverflowError,
 
13838
                                "can't convert negative value to MPI_Comm");
 
13839
                return (MPI_Comm) -1;
 
13840
            }
 
13841
            if (sizeof(MPI_Comm) <= sizeof(unsigned long)) {
 
13842
                __PYX_VERIFY_RETURN_INT(MPI_Comm, unsigned long, PyLong_AsUnsignedLong)
 
13843
            } else if (sizeof(MPI_Comm) <= sizeof(unsigned long long)) {
 
13844
                __PYX_VERIFY_RETURN_INT(MPI_Comm, unsigned long long, PyLong_AsUnsignedLongLong)
 
13845
            }
 
13846
        } else {
 
13847
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13848
 #if CYTHON_USE_PYLONG_INTERNALS
 
13849
            if (sizeof(digit) <= sizeof(MPI_Comm)) {
 
13850
                switch (Py_SIZE(x)) {
 
13851
                    case  0: return 0;
 
13852
                    case  1: return +(MPI_Comm) ((PyLongObject*)x)->ob_digit[0];
 
13853
                    case -1: return -(MPI_Comm) ((PyLongObject*)x)->ob_digit[0];
 
13854
                }
 
13855
            }
 
13856
 #endif
 
13857
#endif
 
13858
            if (sizeof(MPI_Comm) <= sizeof(long)) {
 
13859
                __PYX_VERIFY_RETURN_INT(MPI_Comm, long, PyLong_AsLong)
 
13860
            } else if (sizeof(MPI_Comm) <= sizeof(long long)) {
 
13861
                __PYX_VERIFY_RETURN_INT(MPI_Comm, long long, PyLong_AsLongLong)
 
13862
            }
 
13863
        }
 
13864
        {
 
13865
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
 
13866
            PyErr_SetString(PyExc_RuntimeError,
 
13867
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
 
13868
#else
 
13869
            MPI_Comm val;
 
13870
            PyObject *v = __Pyx_PyNumber_Int(x);
 
13871
 #if PY_MAJOR_VERSION < 3
 
13872
            if (likely(v) && !PyLong_Check(v)) {
 
13873
                PyObject *tmp = v;
 
13874
                v = PyNumber_Long(tmp);
 
13875
                Py_DECREF(tmp);
 
13876
            }
 
13877
 #endif
 
13878
            if (likely(v)) {
 
13879
                int one = 1; int is_little = (int)*(unsigned char *)&one;
 
13880
                unsigned char *bytes = (unsigned char *)&val;
 
13881
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
 
13882
                                              bytes, sizeof(val),
 
13883
                                              is_little, !is_unsigned);
 
13884
                Py_DECREF(v);
 
13885
                if (likely(!ret))
 
13886
                    return val;
 
13887
            }
 
13888
#endif
 
13889
            return (MPI_Comm) -1;
 
13890
        }
 
13891
    } else {
 
13892
        MPI_Comm val;
 
13893
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
13894
        if (!tmp) return (MPI_Comm) -1;
 
13895
        val = __Pyx_PyInt_As_MPI_Comm(tmp);
 
13896
        Py_DECREF(tmp);
 
13897
        return val;
 
13898
    }
 
13899
}
 
13900
 
 
13901
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13902
 #if CYTHON_USE_PYLONG_INTERNALS
 
13903
  #include "longintrepr.h"
 
13904
 #endif
 
13905
#endif
 
13906
static CYTHON_INLINE int64_t __Pyx_PyInt_As_int64_t(PyObject *x) {
 
13907
    const int64_t neg_one = (int64_t) -1, const_zero = 0;
 
13908
    const int is_unsigned = neg_one > const_zero;
 
13909
#if PY_MAJOR_VERSION < 3
 
13910
    if (likely(PyInt_Check(x))) {
 
13911
        if (sizeof(int64_t) < sizeof(long)) {
 
13912
            __PYX_VERIFY_RETURN_INT(int64_t, long, PyInt_AS_LONG)
 
13913
        } else {
 
13914
            long val = PyInt_AS_LONG(x);
 
13915
            if (is_unsigned && unlikely(val < 0)) {
 
13916
                PyErr_SetString(PyExc_OverflowError,
 
13917
                                "can't convert negative value to int64_t");
 
13918
                return (int64_t) -1;
 
13919
            }
 
13920
            return (int64_t) val;
 
13921
        }
 
13922
    } else
 
13923
#endif
 
13924
    if (likely(PyLong_Check(x))) {
 
13925
        if (is_unsigned) {
 
13926
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13927
 #if CYTHON_USE_PYLONG_INTERNALS
 
13928
            if (sizeof(digit) <= sizeof(int64_t)) {
 
13929
                switch (Py_SIZE(x)) {
 
13930
                    case  0: return 0;
 
13931
                    case  1: return (int64_t) ((PyLongObject*)x)->ob_digit[0];
 
13932
                }
 
13933
            }
 
13934
 #endif
 
13935
#endif
 
13936
            if (unlikely(Py_SIZE(x) < 0)) {
 
13937
                PyErr_SetString(PyExc_OverflowError,
 
13938
                                "can't convert negative value to int64_t");
 
13939
                return (int64_t) -1;
 
13940
            }
 
13941
            if (sizeof(int64_t) <= sizeof(unsigned long)) {
 
13942
                __PYX_VERIFY_RETURN_INT(int64_t, unsigned long, PyLong_AsUnsignedLong)
 
13943
            } else if (sizeof(int64_t) <= sizeof(unsigned long long)) {
 
13944
                __PYX_VERIFY_RETURN_INT(int64_t, unsigned long long, PyLong_AsUnsignedLongLong)
 
13945
            }
 
13946
        } else {
 
13947
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
13948
 #if CYTHON_USE_PYLONG_INTERNALS
 
13949
            if (sizeof(digit) <= sizeof(int64_t)) {
 
13950
                switch (Py_SIZE(x)) {
 
13951
                    case  0: return 0;
 
13952
                    case  1: return +(int64_t) ((PyLongObject*)x)->ob_digit[0];
 
13953
                    case -1: return -(int64_t) ((PyLongObject*)x)->ob_digit[0];
 
13954
                }
 
13955
            }
 
13956
 #endif
 
13957
#endif
 
13958
            if (sizeof(int64_t) <= sizeof(long)) {
 
13959
                __PYX_VERIFY_RETURN_INT(int64_t, long, PyLong_AsLong)
 
13960
            } else if (sizeof(int64_t) <= sizeof(long long)) {
 
13961
                __PYX_VERIFY_RETURN_INT(int64_t, long long, PyLong_AsLongLong)
 
13962
            }
 
13963
        }
 
13964
        {
 
13965
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
 
13966
            PyErr_SetString(PyExc_RuntimeError,
 
13967
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
 
13968
#else
 
13969
            int64_t val;
 
13970
            PyObject *v = __Pyx_PyNumber_Int(x);
 
13971
 #if PY_MAJOR_VERSION < 3
 
13972
            if (likely(v) && !PyLong_Check(v)) {
 
13973
                PyObject *tmp = v;
 
13974
                v = PyNumber_Long(tmp);
 
13975
                Py_DECREF(tmp);
 
13976
            }
 
13977
 #endif
 
13978
            if (likely(v)) {
 
13979
                int one = 1; int is_little = (int)*(unsigned char *)&one;
 
13980
                unsigned char *bytes = (unsigned char *)&val;
 
13981
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
 
13982
                                              bytes, sizeof(val),
 
13983
                                              is_little, !is_unsigned);
 
13984
                Py_DECREF(v);
 
13985
                if (likely(!ret))
 
13986
                    return val;
 
13987
            }
 
13988
#endif
 
13989
            return (int64_t) -1;
 
13990
        }
 
13991
    } else {
14786
13992
        int64_t val;
14787
 
        PyObject *v = __Pyx_PyNumber_Int(x);
14788
 
        #if PY_MAJOR_VERSION < 3
14789
 
        if (likely(v) && !PyLong_Check(v)) {
14790
 
            PyObject *tmp = v;
14791
 
            v = PyNumber_Long(tmp);
14792
 
            Py_DECREF(tmp);
14793
 
        }
14794
 
        #endif
14795
 
        if (likely(v)) {
14796
 
            int one = 1; int is_little = (int)*(unsigned char *)&one;
14797
 
            unsigned char *bytes = (unsigned char *)&val;
14798
 
            int ret = _PyLong_AsByteArray((PyLongObject *)v,
14799
 
                                          bytes, sizeof(val),
14800
 
                                          is_little, !is_unsigned);
14801
 
            Py_DECREF(v);
14802
 
            if (likely(!ret))
14803
 
                return val;
14804
 
        }
14805
 
        #endif
14806
 
        return (int64_t)-1;
 
13993
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
13994
        if (!tmp) return (int64_t) -1;
 
13995
        val = __Pyx_PyInt_As_int64_t(tmp);
 
13996
        Py_DECREF(tmp);
 
13997
        return val;
14807
13998
    }
14808
13999
}
14809
14000
 
14810
 
static CYTHON_INLINE uint64_t __Pyx_PyInt_from_py_uint64_t(PyObject* x) {
14811
 
    const uint64_t neg_one = (uint64_t)-1, const_zero = (uint64_t)0;
14812
 
    const int is_unsigned = const_zero < neg_one;
14813
 
    if (sizeof(uint64_t) == sizeof(char)) {
14814
 
        if (is_unsigned)
14815
 
            return (uint64_t)__Pyx_PyInt_AsUnsignedChar(x);
14816
 
        else
14817
 
            return (uint64_t)__Pyx_PyInt_AsSignedChar(x);
14818
 
    } else if (sizeof(uint64_t) == sizeof(short)) {
14819
 
        if (is_unsigned)
14820
 
            return (uint64_t)__Pyx_PyInt_AsUnsignedShort(x);
14821
 
        else
14822
 
            return (uint64_t)__Pyx_PyInt_AsSignedShort(x);
14823
 
    } else if (sizeof(uint64_t) == sizeof(int)) {
14824
 
        if (is_unsigned)
14825
 
            return (uint64_t)__Pyx_PyInt_AsUnsignedInt(x);
14826
 
        else
14827
 
            return (uint64_t)__Pyx_PyInt_AsSignedInt(x);
14828
 
    } else if (sizeof(uint64_t) == sizeof(long)) {
14829
 
        if (is_unsigned)
14830
 
            return (uint64_t)__Pyx_PyInt_AsUnsignedLong(x);
14831
 
        else
14832
 
            return (uint64_t)__Pyx_PyInt_AsSignedLong(x);
14833
 
    } else if (sizeof(uint64_t) == sizeof(PY_LONG_LONG)) {
14834
 
        if (is_unsigned)
14835
 
            return (uint64_t)__Pyx_PyInt_AsUnsignedLongLong(x);
14836
 
        else
14837
 
            return (uint64_t)__Pyx_PyInt_AsSignedLongLong(x);
14838
 
    }  else {
14839
 
        #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
14840
 
        PyErr_SetString(PyExc_RuntimeError,
14841
 
                        "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
14842
 
        #else
 
14001
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
14002
 #if CYTHON_USE_PYLONG_INTERNALS
 
14003
  #include "longintrepr.h"
 
14004
 #endif
 
14005
#endif
 
14006
static CYTHON_INLINE uint64_t __Pyx_PyInt_As_uint64_t(PyObject *x) {
 
14007
    const uint64_t neg_one = (uint64_t) -1, const_zero = 0;
 
14008
    const int is_unsigned = neg_one > const_zero;
 
14009
#if PY_MAJOR_VERSION < 3
 
14010
    if (likely(PyInt_Check(x))) {
 
14011
        if (sizeof(uint64_t) < sizeof(long)) {
 
14012
            __PYX_VERIFY_RETURN_INT(uint64_t, long, PyInt_AS_LONG)
 
14013
        } else {
 
14014
            long val = PyInt_AS_LONG(x);
 
14015
            if (is_unsigned && unlikely(val < 0)) {
 
14016
                PyErr_SetString(PyExc_OverflowError,
 
14017
                                "can't convert negative value to uint64_t");
 
14018
                return (uint64_t) -1;
 
14019
            }
 
14020
            return (uint64_t) val;
 
14021
        }
 
14022
    } else
 
14023
#endif
 
14024
    if (likely(PyLong_Check(x))) {
 
14025
        if (is_unsigned) {
 
14026
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
14027
 #if CYTHON_USE_PYLONG_INTERNALS
 
14028
            if (sizeof(digit) <= sizeof(uint64_t)) {
 
14029
                switch (Py_SIZE(x)) {
 
14030
                    case  0: return 0;
 
14031
                    case  1: return (uint64_t) ((PyLongObject*)x)->ob_digit[0];
 
14032
                }
 
14033
            }
 
14034
 #endif
 
14035
#endif
 
14036
            if (unlikely(Py_SIZE(x) < 0)) {
 
14037
                PyErr_SetString(PyExc_OverflowError,
 
14038
                                "can't convert negative value to uint64_t");
 
14039
                return (uint64_t) -1;
 
14040
            }
 
14041
            if (sizeof(uint64_t) <= sizeof(unsigned long)) {
 
14042
                __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, PyLong_AsUnsignedLong)
 
14043
            } else if (sizeof(uint64_t) <= sizeof(unsigned long long)) {
 
14044
                __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long long, PyLong_AsUnsignedLongLong)
 
14045
            }
 
14046
        } else {
 
14047
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
14048
 #if CYTHON_USE_PYLONG_INTERNALS
 
14049
            if (sizeof(digit) <= sizeof(uint64_t)) {
 
14050
                switch (Py_SIZE(x)) {
 
14051
                    case  0: return 0;
 
14052
                    case  1: return +(uint64_t) ((PyLongObject*)x)->ob_digit[0];
 
14053
                    case -1: return -(uint64_t) ((PyLongObject*)x)->ob_digit[0];
 
14054
                }
 
14055
            }
 
14056
 #endif
 
14057
#endif
 
14058
            if (sizeof(uint64_t) <= sizeof(long)) {
 
14059
                __PYX_VERIFY_RETURN_INT(uint64_t, long, PyLong_AsLong)
 
14060
            } else if (sizeof(uint64_t) <= sizeof(long long)) {
 
14061
                __PYX_VERIFY_RETURN_INT(uint64_t, long long, PyLong_AsLongLong)
 
14062
            }
 
14063
        }
 
14064
        {
 
14065
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
 
14066
            PyErr_SetString(PyExc_RuntimeError,
 
14067
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
 
14068
#else
 
14069
            uint64_t val;
 
14070
            PyObject *v = __Pyx_PyNumber_Int(x);
 
14071
 #if PY_MAJOR_VERSION < 3
 
14072
            if (likely(v) && !PyLong_Check(v)) {
 
14073
                PyObject *tmp = v;
 
14074
                v = PyNumber_Long(tmp);
 
14075
                Py_DECREF(tmp);
 
14076
            }
 
14077
 #endif
 
14078
            if (likely(v)) {
 
14079
                int one = 1; int is_little = (int)*(unsigned char *)&one;
 
14080
                unsigned char *bytes = (unsigned char *)&val;
 
14081
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
 
14082
                                              bytes, sizeof(val),
 
14083
                                              is_little, !is_unsigned);
 
14084
                Py_DECREF(v);
 
14085
                if (likely(!ret))
 
14086
                    return val;
 
14087
            }
 
14088
#endif
 
14089
            return (uint64_t) -1;
 
14090
        }
 
14091
    } else {
14843
14092
        uint64_t val;
14844
 
        PyObject *v = __Pyx_PyNumber_Int(x);
14845
 
        #if PY_MAJOR_VERSION < 3
14846
 
        if (likely(v) && !PyLong_Check(v)) {
14847
 
            PyObject *tmp = v;
14848
 
            v = PyNumber_Long(tmp);
14849
 
            Py_DECREF(tmp);
14850
 
        }
14851
 
        #endif
14852
 
        if (likely(v)) {
14853
 
            int one = 1; int is_little = (int)*(unsigned char *)&one;
14854
 
            unsigned char *bytes = (unsigned char *)&val;
14855
 
            int ret = _PyLong_AsByteArray((PyLongObject *)v,
14856
 
                                          bytes, sizeof(val),
14857
 
                                          is_little, !is_unsigned);
14858
 
            Py_DECREF(v);
14859
 
            if (likely(!ret))
14860
 
                return val;
14861
 
        }
14862
 
        #endif
14863
 
        return (uint64_t)-1;
14864
 
    }
14865
 
}
14866
 
 
14867
 
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_int64_t(int64_t val) {
14868
 
    const int64_t neg_one = (int64_t)-1, const_zero = (int64_t)0;
14869
 
    const int is_unsigned = const_zero < neg_one;
14870
 
    if ((sizeof(int64_t) == sizeof(char))  ||
14871
 
        (sizeof(int64_t) == sizeof(short))) {
14872
 
        return PyInt_FromLong((long)val);
14873
 
    } else if ((sizeof(int64_t) == sizeof(int)) ||
14874
 
               (sizeof(int64_t) == sizeof(long))) {
14875
 
        if (is_unsigned)
14876
 
            return PyLong_FromUnsignedLong((unsigned long)val);
14877
 
        else
14878
 
            return PyInt_FromLong((long)val);
14879
 
    } else if (sizeof(int64_t) == sizeof(PY_LONG_LONG)) {
14880
 
        if (is_unsigned)
14881
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val);
14882
 
        else
14883
 
            return PyLong_FromLongLong((PY_LONG_LONG)val);
14884
 
    } else {
 
14093
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
14094
        if (!tmp) return (uint64_t) -1;
 
14095
        val = __Pyx_PyInt_As_uint64_t(tmp);
 
14096
        Py_DECREF(tmp);
 
14097
        return val;
 
14098
    }
 
14099
}
 
14100
 
 
14101
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
14102
 #if CYTHON_USE_PYLONG_INTERNALS
 
14103
  #include "longintrepr.h"
 
14104
 #endif
 
14105
#endif
 
14106
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
 
14107
    const long neg_one = (long) -1, const_zero = 0;
 
14108
    const int is_unsigned = neg_one > const_zero;
 
14109
#if PY_MAJOR_VERSION < 3
 
14110
    if (likely(PyInt_Check(x))) {
 
14111
        if (sizeof(long) < sizeof(long)) {
 
14112
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG)
 
14113
        } else {
 
14114
            long val = PyInt_AS_LONG(x);
 
14115
            if (is_unsigned && unlikely(val < 0)) {
 
14116
                PyErr_SetString(PyExc_OverflowError,
 
14117
                                "can't convert negative value to long");
 
14118
                return (long) -1;
 
14119
            }
 
14120
            return (long) val;
 
14121
        }
 
14122
    } else
 
14123
#endif
 
14124
    if (likely(PyLong_Check(x))) {
 
14125
        if (is_unsigned) {
 
14126
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
14127
 #if CYTHON_USE_PYLONG_INTERNALS
 
14128
            if (sizeof(digit) <= sizeof(long)) {
 
14129
                switch (Py_SIZE(x)) {
 
14130
                    case  0: return 0;
 
14131
                    case  1: return (long) ((PyLongObject*)x)->ob_digit[0];
 
14132
                }
 
14133
            }
 
14134
 #endif
 
14135
#endif
 
14136
            if (unlikely(Py_SIZE(x) < 0)) {
 
14137
                PyErr_SetString(PyExc_OverflowError,
 
14138
                                "can't convert negative value to long");
 
14139
                return (long) -1;
 
14140
            }
 
14141
            if (sizeof(long) <= sizeof(unsigned long)) {
 
14142
                __PYX_VERIFY_RETURN_INT(long, unsigned long, PyLong_AsUnsignedLong)
 
14143
            } else if (sizeof(long) <= sizeof(unsigned long long)) {
 
14144
                __PYX_VERIFY_RETURN_INT(long, unsigned long long, PyLong_AsUnsignedLongLong)
 
14145
            }
 
14146
        } else {
 
14147
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
14148
 #if CYTHON_USE_PYLONG_INTERNALS
 
14149
            if (sizeof(digit) <= sizeof(long)) {
 
14150
                switch (Py_SIZE(x)) {
 
14151
                    case  0: return 0;
 
14152
                    case  1: return +(long) ((PyLongObject*)x)->ob_digit[0];
 
14153
                    case -1: return -(long) ((PyLongObject*)x)->ob_digit[0];
 
14154
                }
 
14155
            }
 
14156
 #endif
 
14157
#endif
 
14158
            if (sizeof(long) <= sizeof(long)) {
 
14159
                __PYX_VERIFY_RETURN_INT(long, long, PyLong_AsLong)
 
14160
            } else if (sizeof(long) <= sizeof(long long)) {
 
14161
                __PYX_VERIFY_RETURN_INT(long, long long, PyLong_AsLongLong)
 
14162
            }
 
14163
        }
 
14164
        {
 
14165
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
 
14166
            PyErr_SetString(PyExc_RuntimeError,
 
14167
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
 
14168
#else
 
14169
            long val;
 
14170
            PyObject *v = __Pyx_PyNumber_Int(x);
 
14171
 #if PY_MAJOR_VERSION < 3
 
14172
            if (likely(v) && !PyLong_Check(v)) {
 
14173
                PyObject *tmp = v;
 
14174
                v = PyNumber_Long(tmp);
 
14175
                Py_DECREF(tmp);
 
14176
            }
 
14177
 #endif
 
14178
            if (likely(v)) {
 
14179
                int one = 1; int is_little = (int)*(unsigned char *)&one;
 
14180
                unsigned char *bytes = (unsigned char *)&val;
 
14181
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
 
14182
                                              bytes, sizeof(val),
 
14183
                                              is_little, !is_unsigned);
 
14184
                Py_DECREF(v);
 
14185
                if (likely(!ret))
 
14186
                    return val;
 
14187
            }
 
14188
#endif
 
14189
            return (long) -1;
 
14190
        }
 
14191
    } else {
 
14192
        long val;
 
14193
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
14194
        if (!tmp) return (long) -1;
 
14195
        val = __Pyx_PyInt_As_long(tmp);
 
14196
        Py_DECREF(tmp);
 
14197
        return val;
 
14198
    }
 
14199
}
 
14200
 
 
14201
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int64_t(int64_t value) {
 
14202
    const int64_t neg_one = (int64_t) -1, const_zero = 0;
 
14203
    const int is_unsigned = neg_one > const_zero;
 
14204
    if (is_unsigned) {
 
14205
        if (sizeof(int64_t) < sizeof(long)) {
 
14206
            return PyInt_FromLong((long) value);
 
14207
        } else if (sizeof(int64_t) <= sizeof(unsigned long)) {
 
14208
            return PyLong_FromUnsignedLong((unsigned long) value);
 
14209
        } else if (sizeof(int64_t) <= sizeof(unsigned long long)) {
 
14210
            return PyLong_FromUnsignedLongLong((unsigned long long) value);
 
14211
        }
 
14212
    } else {
 
14213
        if (sizeof(int64_t) <= sizeof(long)) {
 
14214
            return PyInt_FromLong((long) value);
 
14215
        } else if (sizeof(int64_t) <= sizeof(long long)) {
 
14216
            return PyLong_FromLongLong((long long) value);
 
14217
        }
 
14218
    }
 
14219
    {
14885
14220
        int one = 1; int little = (int)*(unsigned char *)&one;
14886
 
        unsigned char *bytes = (unsigned char *)&val;
 
14221
        unsigned char *bytes = (unsigned char *)&value;
14887
14222
        return _PyLong_FromByteArray(bytes, sizeof(int64_t),
14888
14223
                                     little, !is_unsigned);
14889
14224
    }
14916
14251
        if (PyString_Check(v)) {
14917
14252
            char *s = PyString_AsString(v);
14918
14253
            Py_ssize_t len = PyString_Size(v);
14919
 
            if (len > 0 &&
14920
 
                isspace(Py_CHARMASK(s[len-1])) &&
14921
 
                s[len-1] != ' ')
14922
 
                    PyFile_SoftSpace(f, 0);
 
14254
            if (len > 0) {
 
14255
                switch (s[len-1]) {
 
14256
                    case ' ': break;
 
14257
                    case '\f': case '\r': case '\n': case '\t': case '\v':
 
14258
                        PyFile_SoftSpace(f, 0);
 
14259
                        break;
 
14260
                    default:  break;
 
14261
                }
 
14262
            }
14923
14263
        }
14924
14264
    }
14925
14265
    if (newline) {
14939
14279
    PyObject* result = 0;
14940
14280
    PyObject* end_string;
14941
14281
    if (unlikely(!__pyx_print)) {
14942
 
        __pyx_print = PyObject_GetAttr(__pyx_b, __pyx_n_s__print);
 
14282
        __pyx_print = PyObject_GetAttr(__pyx_b, __pyx_n_s_print);
14943
14283
        if (!__pyx_print)
14944
14284
            return -1;
14945
14285
    }
14947
14287
        kwargs = PyDict_New();
14948
14288
        if (unlikely(!kwargs))
14949
14289
            return -1;
14950
 
        if (unlikely(PyDict_SetItem(kwargs, __pyx_n_s__file, stream) < 0))
 
14290
        if (unlikely(PyDict_SetItem(kwargs, __pyx_n_s_file, stream) < 0))
14951
14291
            goto bad;
14952
14292
        if (!newline) {
14953
14293
            end_string = PyUnicode_FromStringAndSize(" ", 1);
14954
14294
            if (unlikely(!end_string))
14955
14295
                goto bad;
14956
 
            if (PyDict_SetItem(kwargs, __pyx_n_s__end, end_string) < 0) {
 
14296
            if (PyDict_SetItem(kwargs, __pyx_n_s_end, end_string) < 0) {
14957
14297
                Py_DECREF(end_string);
14958
14298
                goto bad;
14959
14299
            }
14967
14307
            end_string = PyUnicode_FromStringAndSize(" ", 1);
14968
14308
            if (unlikely(!end_string))
14969
14309
                return -1;
14970
 
            if (PyDict_SetItem(__pyx_print_kwargs, __pyx_n_s__end, end_string) < 0) {
 
14310
            if (PyDict_SetItem(__pyx_print_kwargs, __pyx_n_s_end, end_string) < 0) {
14971
14311
                Py_DECREF(end_string);
14972
14312
                return -1;
14973
14313
            }
14989
14329
}
14990
14330
#endif
14991
14331
 
14992
 
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_uint64_t(uint64_t val) {
14993
 
    const uint64_t neg_one = (uint64_t)-1, const_zero = (uint64_t)0;
14994
 
    const int is_unsigned = const_zero < neg_one;
14995
 
    if ((sizeof(uint64_t) == sizeof(char))  ||
14996
 
        (sizeof(uint64_t) == sizeof(short))) {
14997
 
        return PyInt_FromLong((long)val);
14998
 
    } else if ((sizeof(uint64_t) == sizeof(int)) ||
14999
 
               (sizeof(uint64_t) == sizeof(long))) {
15000
 
        if (is_unsigned)
15001
 
            return PyLong_FromUnsignedLong((unsigned long)val);
15002
 
        else
15003
 
            return PyInt_FromLong((long)val);
15004
 
    } else if (sizeof(uint64_t) == sizeof(PY_LONG_LONG)) {
15005
 
        if (is_unsigned)
15006
 
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val);
15007
 
        else
15008
 
            return PyLong_FromLongLong((PY_LONG_LONG)val);
 
14332
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint64_t(uint64_t value) {
 
14333
    const uint64_t neg_one = (uint64_t) -1, const_zero = 0;
 
14334
    const int is_unsigned = neg_one > const_zero;
 
14335
    if (is_unsigned) {
 
14336
        if (sizeof(uint64_t) < sizeof(long)) {
 
14337
            return PyInt_FromLong((long) value);
 
14338
        } else if (sizeof(uint64_t) <= sizeof(unsigned long)) {
 
14339
            return PyLong_FromUnsignedLong((unsigned long) value);
 
14340
        } else if (sizeof(uint64_t) <= sizeof(unsigned long long)) {
 
14341
            return PyLong_FromUnsignedLongLong((unsigned long long) value);
 
14342
        }
15009
14343
    } else {
 
14344
        if (sizeof(uint64_t) <= sizeof(long)) {
 
14345
            return PyInt_FromLong((long) value);
 
14346
        } else if (sizeof(uint64_t) <= sizeof(long long)) {
 
14347
            return PyLong_FromLongLong((long long) value);
 
14348
        }
 
14349
    }
 
14350
    {
15010
14351
        int one = 1; int little = (int)*(unsigned char *)&one;
15011
 
        unsigned char *bytes = (unsigned char *)&val;
 
14352
        unsigned char *bytes = (unsigned char *)&value;
15012
14353
        return _PyLong_FromByteArray(bytes, sizeof(uint64_t),
15013
14354
                                     little, !is_unsigned);
15014
14355
    }
15050
14391
}
15051
14392
#endif
15052
14393
 
 
14394
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
 
14395
    const long neg_one = (long) -1, const_zero = 0;
 
14396
    const int is_unsigned = neg_one > const_zero;
 
14397
    if (is_unsigned) {
 
14398
        if (sizeof(long) < sizeof(long)) {
 
14399
            return PyInt_FromLong((long) value);
 
14400
        } else if (sizeof(long) <= sizeof(unsigned long)) {
 
14401
            return PyLong_FromUnsignedLong((unsigned long) value);
 
14402
        } else if (sizeof(long) <= sizeof(unsigned long long)) {
 
14403
            return PyLong_FromUnsignedLongLong((unsigned long long) value);
 
14404
        }
 
14405
    } else {
 
14406
        if (sizeof(long) <= sizeof(long)) {
 
14407
            return PyInt_FromLong((long) value);
 
14408
        } else if (sizeof(long) <= sizeof(long long)) {
 
14409
            return PyLong_FromLongLong((long long) value);
 
14410
        }
 
14411
    }
 
14412
    {
 
14413
        int one = 1; int little = (int)*(unsigned char *)&one;
 
14414
        unsigned char *bytes = (unsigned char *)&value;
 
14415
        return _PyLong_FromByteArray(bytes, sizeof(long),
 
14416
                                     little, !is_unsigned);
 
14417
    }
 
14418
}
 
14419
 
 
14420
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_long(unsigned long value) {
 
14421
    const unsigned long neg_one = (unsigned long) -1, const_zero = 0;
 
14422
    const int is_unsigned = neg_one > const_zero;
 
14423
    if (is_unsigned) {
 
14424
        if (sizeof(unsigned long) < sizeof(long)) {
 
14425
            return PyInt_FromLong((long) value);
 
14426
        } else if (sizeof(unsigned long) <= sizeof(unsigned long)) {
 
14427
            return PyLong_FromUnsignedLong((unsigned long) value);
 
14428
        } else if (sizeof(unsigned long) <= sizeof(unsigned long long)) {
 
14429
            return PyLong_FromUnsignedLongLong((unsigned long long) value);
 
14430
        }
 
14431
    } else {
 
14432
        if (sizeof(unsigned long) <= sizeof(long)) {
 
14433
            return PyInt_FromLong((long) value);
 
14434
        } else if (sizeof(unsigned long) <= sizeof(long long)) {
 
14435
            return PyLong_FromLongLong((long long) value);
 
14436
        }
 
14437
    }
 
14438
    {
 
14439
        int one = 1; int little = (int)*(unsigned char *)&one;
 
14440
        unsigned char *bytes = (unsigned char *)&value;
 
14441
        return _PyLong_FromByteArray(bytes, sizeof(unsigned long),
 
14442
                                     little, !is_unsigned);
 
14443
    }
 
14444
}
 
14445
 
15053
14446
#if CYTHON_CCOMPLEX
15054
14447
  #ifdef __cplusplus
15055
14448
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
15290
14683
    #endif
15291
14684
#endif
15292
14685
 
15293
 
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
15294
 
    const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
15295
 
    const int is_unsigned = neg_one > const_zero;
15296
 
    if (sizeof(unsigned char) < sizeof(long)) {
15297
 
        long val = __Pyx_PyInt_AsLong(x);
15298
 
        if (unlikely(val != (long)(unsigned char)val)) {
15299
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15300
 
                PyErr_SetString(PyExc_OverflowError,
15301
 
                    (is_unsigned && unlikely(val < 0)) ?
15302
 
                    "can't convert negative value to unsigned char" :
15303
 
                    "value too large to convert to unsigned char");
15304
 
            }
15305
 
            return (unsigned char)-1;
15306
 
        }
15307
 
        return (unsigned char)val;
15308
 
    }
15309
 
    return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
15310
 
}
15311
 
 
15312
 
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
15313
 
    const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
15314
 
    const int is_unsigned = neg_one > const_zero;
15315
 
    if (sizeof(unsigned short) < sizeof(long)) {
15316
 
        long val = __Pyx_PyInt_AsLong(x);
15317
 
        if (unlikely(val != (long)(unsigned short)val)) {
15318
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15319
 
                PyErr_SetString(PyExc_OverflowError,
15320
 
                    (is_unsigned && unlikely(val < 0)) ?
15321
 
                    "can't convert negative value to unsigned short" :
15322
 
                    "value too large to convert to unsigned short");
15323
 
            }
15324
 
            return (unsigned short)-1;
15325
 
        }
15326
 
        return (unsigned short)val;
15327
 
    }
15328
 
    return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
15329
 
}
15330
 
 
15331
 
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
15332
 
    const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
15333
 
    const int is_unsigned = neg_one > const_zero;
15334
 
    if (sizeof(unsigned int) < sizeof(long)) {
15335
 
        long val = __Pyx_PyInt_AsLong(x);
15336
 
        if (unlikely(val != (long)(unsigned int)val)) {
15337
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15338
 
                PyErr_SetString(PyExc_OverflowError,
15339
 
                    (is_unsigned && unlikely(val < 0)) ?
15340
 
                    "can't convert negative value to unsigned int" :
15341
 
                    "value too large to convert to unsigned int");
15342
 
            }
15343
 
            return (unsigned int)-1;
15344
 
        }
15345
 
        return (unsigned int)val;
15346
 
    }
15347
 
    return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
15348
 
}
15349
 
 
15350
 
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
15351
 
    const char neg_one = (char)-1, const_zero = 0;
15352
 
    const int is_unsigned = neg_one > const_zero;
15353
 
    if (sizeof(char) < sizeof(long)) {
15354
 
        long val = __Pyx_PyInt_AsLong(x);
15355
 
        if (unlikely(val != (long)(char)val)) {
15356
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15357
 
                PyErr_SetString(PyExc_OverflowError,
15358
 
                    (is_unsigned && unlikely(val < 0)) ?
15359
 
                    "can't convert negative value to char" :
15360
 
                    "value too large to convert to char");
15361
 
            }
15362
 
            return (char)-1;
15363
 
        }
15364
 
        return (char)val;
15365
 
    }
15366
 
    return (char)__Pyx_PyInt_AsLong(x);
15367
 
}
15368
 
 
15369
 
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
15370
 
    const short neg_one = (short)-1, const_zero = 0;
15371
 
    const int is_unsigned = neg_one > const_zero;
15372
 
    if (sizeof(short) < sizeof(long)) {
15373
 
        long val = __Pyx_PyInt_AsLong(x);
15374
 
        if (unlikely(val != (long)(short)val)) {
15375
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15376
 
                PyErr_SetString(PyExc_OverflowError,
15377
 
                    (is_unsigned && unlikely(val < 0)) ?
15378
 
                    "can't convert negative value to short" :
15379
 
                    "value too large to convert to short");
15380
 
            }
15381
 
            return (short)-1;
15382
 
        }
15383
 
        return (short)val;
15384
 
    }
15385
 
    return (short)__Pyx_PyInt_AsLong(x);
15386
 
}
15387
 
 
15388
 
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
15389
 
    const int neg_one = (int)-1, const_zero = 0;
15390
 
    const int is_unsigned = neg_one > const_zero;
15391
 
    if (sizeof(int) < sizeof(long)) {
15392
 
        long val = __Pyx_PyInt_AsLong(x);
15393
 
        if (unlikely(val != (long)(int)val)) {
15394
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15395
 
                PyErr_SetString(PyExc_OverflowError,
15396
 
                    (is_unsigned && unlikely(val < 0)) ?
15397
 
                    "can't convert negative value to int" :
15398
 
                    "value too large to convert to int");
15399
 
            }
15400
 
            return (int)-1;
15401
 
        }
15402
 
        return (int)val;
15403
 
    }
15404
 
    return (int)__Pyx_PyInt_AsLong(x);
15405
 
}
15406
 
 
15407
 
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
15408
 
    const signed char neg_one = (signed char)-1, const_zero = 0;
15409
 
    const int is_unsigned = neg_one > const_zero;
15410
 
    if (sizeof(signed char) < sizeof(long)) {
15411
 
        long val = __Pyx_PyInt_AsLong(x);
15412
 
        if (unlikely(val != (long)(signed char)val)) {
15413
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15414
 
                PyErr_SetString(PyExc_OverflowError,
15415
 
                    (is_unsigned && unlikely(val < 0)) ?
15416
 
                    "can't convert negative value to signed char" :
15417
 
                    "value too large to convert to signed char");
15418
 
            }
15419
 
            return (signed char)-1;
15420
 
        }
15421
 
        return (signed char)val;
15422
 
    }
15423
 
    return (signed char)__Pyx_PyInt_AsSignedLong(x);
15424
 
}
15425
 
 
15426
 
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
15427
 
    const signed short neg_one = (signed short)-1, const_zero = 0;
15428
 
    const int is_unsigned = neg_one > const_zero;
15429
 
    if (sizeof(signed short) < sizeof(long)) {
15430
 
        long val = __Pyx_PyInt_AsLong(x);
15431
 
        if (unlikely(val != (long)(signed short)val)) {
15432
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15433
 
                PyErr_SetString(PyExc_OverflowError,
15434
 
                    (is_unsigned && unlikely(val < 0)) ?
15435
 
                    "can't convert negative value to signed short" :
15436
 
                    "value too large to convert to signed short");
15437
 
            }
15438
 
            return (signed short)-1;
15439
 
        }
15440
 
        return (signed short)val;
15441
 
    }
15442
 
    return (signed short)__Pyx_PyInt_AsSignedLong(x);
15443
 
}
15444
 
 
15445
 
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
15446
 
    const signed int neg_one = (signed int)-1, const_zero = 0;
15447
 
    const int is_unsigned = neg_one > const_zero;
15448
 
    if (sizeof(signed int) < sizeof(long)) {
15449
 
        long val = __Pyx_PyInt_AsLong(x);
15450
 
        if (unlikely(val != (long)(signed int)val)) {
15451
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15452
 
                PyErr_SetString(PyExc_OverflowError,
15453
 
                    (is_unsigned && unlikely(val < 0)) ?
15454
 
                    "can't convert negative value to signed int" :
15455
 
                    "value too large to convert to signed int");
15456
 
            }
15457
 
            return (signed int)-1;
15458
 
        }
15459
 
        return (signed int)val;
15460
 
    }
15461
 
    return (signed int)__Pyx_PyInt_AsSignedLong(x);
15462
 
}
15463
 
 
15464
 
static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
15465
 
    const int neg_one = (int)-1, const_zero = 0;
15466
 
    const int is_unsigned = neg_one > const_zero;
15467
 
    if (sizeof(int) < sizeof(long)) {
15468
 
        long val = __Pyx_PyInt_AsLong(x);
15469
 
        if (unlikely(val != (long)(int)val)) {
15470
 
            if (!unlikely(val == -1 && PyErr_Occurred())) {
15471
 
                PyErr_SetString(PyExc_OverflowError,
15472
 
                    (is_unsigned && unlikely(val < 0)) ?
15473
 
                    "can't convert negative value to int" :
15474
 
                    "value too large to convert to int");
15475
 
            }
15476
 
            return (int)-1;
15477
 
        }
15478
 
        return (int)val;
15479
 
    }
15480
 
    return (int)__Pyx_PyInt_AsLong(x);
15481
 
}
15482
 
 
15483
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15484
 
#if CYTHON_USE_PYLONG_INTERNALS
15485
 
#include "longintrepr.h"
15486
 
#endif
15487
 
#endif
15488
 
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
15489
 
    const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
15490
 
    const int is_unsigned = neg_one > const_zero;
15491
 
#if PY_MAJOR_VERSION < 3
15492
 
    if (likely(PyInt_Check(x))) {
15493
 
        long val = PyInt_AS_LONG(x);
15494
 
        if (is_unsigned && unlikely(val < 0)) {
15495
 
            PyErr_SetString(PyExc_OverflowError,
15496
 
                            "can't convert negative value to unsigned long");
15497
 
            return (unsigned long)-1;
15498
 
        }
15499
 
        return (unsigned long)val;
15500
 
    } else
15501
 
#endif
15502
 
    if (likely(PyLong_Check(x))) {
15503
 
        if (is_unsigned) {
15504
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15505
 
#if CYTHON_USE_PYLONG_INTERNALS
15506
 
            if (sizeof(digit) <= sizeof(unsigned long)) {
15507
 
                switch (Py_SIZE(x)) {
15508
 
                    case  0: return 0;
15509
 
                    case  1: return (unsigned long) ((PyLongObject*)x)->ob_digit[0];
15510
 
                }
15511
 
            }
15512
 
#endif
15513
 
#endif
15514
 
            if (unlikely(Py_SIZE(x) < 0)) {
15515
 
                PyErr_SetString(PyExc_OverflowError,
15516
 
                                "can't convert negative value to unsigned long");
15517
 
                return (unsigned long)-1;
15518
 
            }
15519
 
            return (unsigned long)PyLong_AsUnsignedLong(x);
15520
 
        } else {
15521
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15522
 
#if CYTHON_USE_PYLONG_INTERNALS
15523
 
            if (sizeof(digit) <= sizeof(unsigned long)) {
15524
 
                switch (Py_SIZE(x)) {
15525
 
                    case  0: return 0;
15526
 
                    case  1: return +(unsigned long) ((PyLongObject*)x)->ob_digit[0];
15527
 
                    case -1: return -(unsigned long) ((PyLongObject*)x)->ob_digit[0];
15528
 
                }
15529
 
            }
15530
 
#endif
15531
 
#endif
15532
 
            return (unsigned long)PyLong_AsLong(x);
15533
 
        }
15534
 
    } else {
15535
 
        unsigned long val;
15536
 
        PyObject *tmp = __Pyx_PyNumber_Int(x);
15537
 
        if (!tmp) return (unsigned long)-1;
15538
 
        val = __Pyx_PyInt_AsUnsignedLong(tmp);
15539
 
        Py_DECREF(tmp);
15540
 
        return val;
15541
 
    }
15542
 
}
15543
 
 
15544
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15545
 
#if CYTHON_USE_PYLONG_INTERNALS
15546
 
#include "longintrepr.h"
15547
 
#endif
15548
 
#endif
15549
 
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
15550
 
    const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
15551
 
    const int is_unsigned = neg_one > const_zero;
15552
 
#if PY_MAJOR_VERSION < 3
15553
 
    if (likely(PyInt_Check(x))) {
15554
 
        long val = PyInt_AS_LONG(x);
15555
 
        if (is_unsigned && unlikely(val < 0)) {
15556
 
            PyErr_SetString(PyExc_OverflowError,
15557
 
                            "can't convert negative value to unsigned PY_LONG_LONG");
15558
 
            return (unsigned PY_LONG_LONG)-1;
15559
 
        }
15560
 
        return (unsigned PY_LONG_LONG)val;
15561
 
    } else
15562
 
#endif
15563
 
    if (likely(PyLong_Check(x))) {
15564
 
        if (is_unsigned) {
15565
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15566
 
#if CYTHON_USE_PYLONG_INTERNALS
15567
 
            if (sizeof(digit) <= sizeof(unsigned PY_LONG_LONG)) {
15568
 
                switch (Py_SIZE(x)) {
15569
 
                    case  0: return 0;
15570
 
                    case  1: return (unsigned PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15571
 
                }
15572
 
            }
15573
 
#endif
15574
 
#endif
15575
 
            if (unlikely(Py_SIZE(x) < 0)) {
15576
 
                PyErr_SetString(PyExc_OverflowError,
15577
 
                                "can't convert negative value to unsigned PY_LONG_LONG");
15578
 
                return (unsigned PY_LONG_LONG)-1;
15579
 
            }
15580
 
            return (unsigned PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
15581
 
        } else {
15582
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15583
 
#if CYTHON_USE_PYLONG_INTERNALS
15584
 
            if (sizeof(digit) <= sizeof(unsigned PY_LONG_LONG)) {
15585
 
                switch (Py_SIZE(x)) {
15586
 
                    case  0: return 0;
15587
 
                    case  1: return +(unsigned PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15588
 
                    case -1: return -(unsigned PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15589
 
                }
15590
 
            }
15591
 
#endif
15592
 
#endif
15593
 
            return (unsigned PY_LONG_LONG)PyLong_AsLongLong(x);
15594
 
        }
15595
 
    } else {
15596
 
        unsigned PY_LONG_LONG val;
15597
 
        PyObject *tmp = __Pyx_PyNumber_Int(x);
15598
 
        if (!tmp) return (unsigned PY_LONG_LONG)-1;
15599
 
        val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
15600
 
        Py_DECREF(tmp);
15601
 
        return val;
15602
 
    }
15603
 
}
15604
 
 
15605
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15606
 
#if CYTHON_USE_PYLONG_INTERNALS
15607
 
#include "longintrepr.h"
15608
 
#endif
15609
 
#endif
15610
 
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
15611
 
    const long neg_one = (long)-1, const_zero = 0;
15612
 
    const int is_unsigned = neg_one > const_zero;
15613
 
#if PY_MAJOR_VERSION < 3
15614
 
    if (likely(PyInt_Check(x))) {
15615
 
        long val = PyInt_AS_LONG(x);
15616
 
        if (is_unsigned && unlikely(val < 0)) {
15617
 
            PyErr_SetString(PyExc_OverflowError,
15618
 
                            "can't convert negative value to long");
15619
 
            return (long)-1;
15620
 
        }
15621
 
        return (long)val;
15622
 
    } else
15623
 
#endif
15624
 
    if (likely(PyLong_Check(x))) {
15625
 
        if (is_unsigned) {
15626
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15627
 
#if CYTHON_USE_PYLONG_INTERNALS
15628
 
            if (sizeof(digit) <= sizeof(long)) {
15629
 
                switch (Py_SIZE(x)) {
15630
 
                    case  0: return 0;
15631
 
                    case  1: return (long) ((PyLongObject*)x)->ob_digit[0];
15632
 
                }
15633
 
            }
15634
 
#endif
15635
 
#endif
15636
 
            if (unlikely(Py_SIZE(x) < 0)) {
15637
 
                PyErr_SetString(PyExc_OverflowError,
15638
 
                                "can't convert negative value to long");
15639
 
                return (long)-1;
15640
 
            }
15641
 
            return (long)PyLong_AsUnsignedLong(x);
15642
 
        } else {
15643
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15644
 
#if CYTHON_USE_PYLONG_INTERNALS
15645
 
            if (sizeof(digit) <= sizeof(long)) {
15646
 
                switch (Py_SIZE(x)) {
15647
 
                    case  0: return 0;
15648
 
                    case  1: return +(long) ((PyLongObject*)x)->ob_digit[0];
15649
 
                    case -1: return -(long) ((PyLongObject*)x)->ob_digit[0];
15650
 
                }
15651
 
            }
15652
 
#endif
15653
 
#endif
15654
 
            return (long)PyLong_AsLong(x);
15655
 
        }
15656
 
    } else {
15657
 
        long val;
15658
 
        PyObject *tmp = __Pyx_PyNumber_Int(x);
15659
 
        if (!tmp) return (long)-1;
15660
 
        val = __Pyx_PyInt_AsLong(tmp);
15661
 
        Py_DECREF(tmp);
15662
 
        return val;
15663
 
    }
15664
 
}
15665
 
 
15666
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15667
 
#if CYTHON_USE_PYLONG_INTERNALS
15668
 
#include "longintrepr.h"
15669
 
#endif
15670
 
#endif
15671
 
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
15672
 
    const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
15673
 
    const int is_unsigned = neg_one > const_zero;
15674
 
#if PY_MAJOR_VERSION < 3
15675
 
    if (likely(PyInt_Check(x))) {
15676
 
        long val = PyInt_AS_LONG(x);
15677
 
        if (is_unsigned && unlikely(val < 0)) {
15678
 
            PyErr_SetString(PyExc_OverflowError,
15679
 
                            "can't convert negative value to PY_LONG_LONG");
15680
 
            return (PY_LONG_LONG)-1;
15681
 
        }
15682
 
        return (PY_LONG_LONG)val;
15683
 
    } else
15684
 
#endif
15685
 
    if (likely(PyLong_Check(x))) {
15686
 
        if (is_unsigned) {
15687
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15688
 
#if CYTHON_USE_PYLONG_INTERNALS
15689
 
            if (sizeof(digit) <= sizeof(PY_LONG_LONG)) {
15690
 
                switch (Py_SIZE(x)) {
15691
 
                    case  0: return 0;
15692
 
                    case  1: return (PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15693
 
                }
15694
 
            }
15695
 
#endif
15696
 
#endif
15697
 
            if (unlikely(Py_SIZE(x) < 0)) {
15698
 
                PyErr_SetString(PyExc_OverflowError,
15699
 
                                "can't convert negative value to PY_LONG_LONG");
15700
 
                return (PY_LONG_LONG)-1;
15701
 
            }
15702
 
            return (PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
15703
 
        } else {
15704
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15705
 
#if CYTHON_USE_PYLONG_INTERNALS
15706
 
            if (sizeof(digit) <= sizeof(PY_LONG_LONG)) {
15707
 
                switch (Py_SIZE(x)) {
15708
 
                    case  0: return 0;
15709
 
                    case  1: return +(PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15710
 
                    case -1: return -(PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15711
 
                }
15712
 
            }
15713
 
#endif
15714
 
#endif
15715
 
            return (PY_LONG_LONG)PyLong_AsLongLong(x);
15716
 
        }
15717
 
    } else {
15718
 
        PY_LONG_LONG val;
15719
 
        PyObject *tmp = __Pyx_PyNumber_Int(x);
15720
 
        if (!tmp) return (PY_LONG_LONG)-1;
15721
 
        val = __Pyx_PyInt_AsLongLong(tmp);
15722
 
        Py_DECREF(tmp);
15723
 
        return val;
15724
 
    }
15725
 
}
15726
 
 
15727
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15728
 
#if CYTHON_USE_PYLONG_INTERNALS
15729
 
#include "longintrepr.h"
15730
 
#endif
15731
 
#endif
15732
 
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
15733
 
    const signed long neg_one = (signed long)-1, const_zero = 0;
15734
 
    const int is_unsigned = neg_one > const_zero;
15735
 
#if PY_MAJOR_VERSION < 3
15736
 
    if (likely(PyInt_Check(x))) {
15737
 
        long val = PyInt_AS_LONG(x);
15738
 
        if (is_unsigned && unlikely(val < 0)) {
15739
 
            PyErr_SetString(PyExc_OverflowError,
15740
 
                            "can't convert negative value to signed long");
15741
 
            return (signed long)-1;
15742
 
        }
15743
 
        return (signed long)val;
15744
 
    } else
15745
 
#endif
15746
 
    if (likely(PyLong_Check(x))) {
15747
 
        if (is_unsigned) {
15748
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15749
 
#if CYTHON_USE_PYLONG_INTERNALS
15750
 
            if (sizeof(digit) <= sizeof(signed long)) {
15751
 
                switch (Py_SIZE(x)) {
15752
 
                    case  0: return 0;
15753
 
                    case  1: return (signed long) ((PyLongObject*)x)->ob_digit[0];
15754
 
                }
15755
 
            }
15756
 
#endif
15757
 
#endif
15758
 
            if (unlikely(Py_SIZE(x) < 0)) {
15759
 
                PyErr_SetString(PyExc_OverflowError,
15760
 
                                "can't convert negative value to signed long");
15761
 
                return (signed long)-1;
15762
 
            }
15763
 
            return (signed long)PyLong_AsUnsignedLong(x);
15764
 
        } else {
15765
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15766
 
#if CYTHON_USE_PYLONG_INTERNALS
15767
 
            if (sizeof(digit) <= sizeof(signed long)) {
15768
 
                switch (Py_SIZE(x)) {
15769
 
                    case  0: return 0;
15770
 
                    case  1: return +(signed long) ((PyLongObject*)x)->ob_digit[0];
15771
 
                    case -1: return -(signed long) ((PyLongObject*)x)->ob_digit[0];
15772
 
                }
15773
 
            }
15774
 
#endif
15775
 
#endif
15776
 
            return (signed long)PyLong_AsLong(x);
15777
 
        }
15778
 
    } else {
15779
 
        signed long val;
15780
 
        PyObject *tmp = __Pyx_PyNumber_Int(x);
15781
 
        if (!tmp) return (signed long)-1;
15782
 
        val = __Pyx_PyInt_AsSignedLong(tmp);
15783
 
        Py_DECREF(tmp);
15784
 
        return val;
15785
 
    }
15786
 
}
15787
 
 
15788
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15789
 
#if CYTHON_USE_PYLONG_INTERNALS
15790
 
#include "longintrepr.h"
15791
 
#endif
15792
 
#endif
15793
 
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
15794
 
    const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
15795
 
    const int is_unsigned = neg_one > const_zero;
15796
 
#if PY_MAJOR_VERSION < 3
15797
 
    if (likely(PyInt_Check(x))) {
15798
 
        long val = PyInt_AS_LONG(x);
15799
 
        if (is_unsigned && unlikely(val < 0)) {
15800
 
            PyErr_SetString(PyExc_OverflowError,
15801
 
                            "can't convert negative value to signed PY_LONG_LONG");
15802
 
            return (signed PY_LONG_LONG)-1;
15803
 
        }
15804
 
        return (signed PY_LONG_LONG)val;
15805
 
    } else
15806
 
#endif
15807
 
    if (likely(PyLong_Check(x))) {
15808
 
        if (is_unsigned) {
15809
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15810
 
#if CYTHON_USE_PYLONG_INTERNALS
15811
 
            if (sizeof(digit) <= sizeof(signed PY_LONG_LONG)) {
15812
 
                switch (Py_SIZE(x)) {
15813
 
                    case  0: return 0;
15814
 
                    case  1: return (signed PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15815
 
                }
15816
 
            }
15817
 
#endif
15818
 
#endif
15819
 
            if (unlikely(Py_SIZE(x) < 0)) {
15820
 
                PyErr_SetString(PyExc_OverflowError,
15821
 
                                "can't convert negative value to signed PY_LONG_LONG");
15822
 
                return (signed PY_LONG_LONG)-1;
15823
 
            }
15824
 
            return (signed PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
15825
 
        } else {
15826
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
15827
 
#if CYTHON_USE_PYLONG_INTERNALS
15828
 
            if (sizeof(digit) <= sizeof(signed PY_LONG_LONG)) {
15829
 
                switch (Py_SIZE(x)) {
15830
 
                    case  0: return 0;
15831
 
                    case  1: return +(signed PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15832
 
                    case -1: return -(signed PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
15833
 
                }
15834
 
            }
15835
 
#endif
15836
 
#endif
15837
 
            return (signed PY_LONG_LONG)PyLong_AsLongLong(x);
15838
 
        }
15839
 
    } else {
15840
 
        signed PY_LONG_LONG val;
15841
 
        PyObject *tmp = __Pyx_PyNumber_Int(x);
15842
 
        if (!tmp) return (signed PY_LONG_LONG)-1;
15843
 
        val = __Pyx_PyInt_AsSignedLongLong(tmp);
15844
 
        Py_DECREF(tmp);
15845
 
        return val;
15846
 
    }
15847
 
}
15848
 
 
15849
14686
static int __Pyx_check_binary_version(void) {
15850
14687
    char ctversion[4], rtversion[4];
15851
14688
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
15910
14747
        goto bad;
15911
14748
    if (!PyType_Check(result)) {
15912
14749
        PyErr_Format(PyExc_TypeError,
15913
 
            "%s.%s is not a type object",
 
14750
            "%.200s.%.200s is not a type object",
15914
14751
            module_name, class_name);
15915
14752
        goto bad;
15916
14753
    }
15938
14775
    }
15939
14776
    else if ((size_t)basicsize != size) {
15940
14777
        PyErr_Format(PyExc_ValueError,
15941
 
            "%s.%s has the wrong size, try recompiling",
 
14778
            "%.200s.%.200s has the wrong size, try recompiling",
15942
14779
            module_name, class_name);
15943
14780
        goto bad;
15944
14781
    }
16191
15028
#endif /* PY_VERSION_HEX < 0x03030000 */
16192
15029
    } else
16193
15030
#endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII  || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT */
 
15031
#if !CYTHON_COMPILING_IN_PYPY
 
15032
#if PY_VERSION_HEX >= 0x02060000
 
15033
    if (PyByteArray_Check(o)) {
 
15034
        *length = PyByteArray_GET_SIZE(o);
 
15035
        return PyByteArray_AS_STRING(o);
 
15036
    } else
 
15037
#endif
 
15038
#endif
16194
15039
    {
16195
15040
        char* result;
16196
15041
        int r = PyBytes_AsStringAndSize(o, &result, length);
16197
 
        if (r < 0) {
 
15042
        if (unlikely(r < 0)) {
16198
15043
            return NULL;
16199
15044
        } else {
16200
15045
            return result;
16239
15084
    if (!PyLong_Check(res)) {
16240
15085
#endif
16241
15086
      PyErr_Format(PyExc_TypeError,
16242
 
                   "__%s__ returned non-%s (type %.200s)",
 
15087
                   "__%.4s__ returned non-%.4s (type %.200s)",
16243
15088
                   name, name, Py_TYPE(res)->tp_name);
16244
15089
      Py_DECREF(res);
16245
15090
      return NULL;
16251
15096
  }
16252
15097
  return res;
16253
15098
}
 
15099
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
15100
 #if CYTHON_USE_PYLONG_INTERNALS
 
15101
  #include "longintrepr.h"
 
15102
 #endif
 
15103
#endif
16254
15104
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
16255
15105
  Py_ssize_t ival;
16256
 
  PyObject* x = PyNumber_Index(b);
 
15106
  PyObject *x;
 
15107
#if PY_MAJOR_VERSION < 3
 
15108
  if (likely(PyInt_CheckExact(b)))
 
15109
      return PyInt_AS_LONG(b);
 
15110
#endif
 
15111
  if (likely(PyLong_CheckExact(b))) {
 
15112
    #if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
 
15113
     #if CYTHON_USE_PYLONG_INTERNALS
 
15114
       switch (Py_SIZE(b)) {
 
15115
       case -1: return -(sdigit)((PyLongObject*)b)->ob_digit[0];
 
15116
       case  0: return 0;
 
15117
       case  1: return ((PyLongObject*)b)->ob_digit[0];
 
15118
       }
 
15119
     #endif
 
15120
    #endif
 
15121
  #if PY_VERSION_HEX < 0x02060000
 
15122
    return PyInt_AsSsize_t(b);
 
15123
  #else
 
15124
    return PyLong_AsSsize_t(b);
 
15125
  #endif
 
15126
  }
 
15127
  x = PyNumber_Index(b);
16257
15128
  if (!x) return -1;
16258
15129
  ival = PyInt_AsSsize_t(x);
16259
15130
  Py_DECREF(x);
16272
15143
   return PyInt_FromSize_t(ival);
16273
15144
#endif
16274
15145
}
16275
 
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
16276
 
   unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
16277
 
   if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
16278
 
       if ((val != (unsigned PY_LONG_LONG)-1) || !PyErr_Occurred())
16279
 
           PyErr_SetString(PyExc_OverflowError,
16280
 
                           "value too large to convert to size_t");
16281
 
       return (size_t)-1;
16282
 
   }
16283
 
   return (size_t)val;
16284
 
}
16285
15146
 
16286
15147
 
16287
15148
#endif /* Py_PYTHON_H */