From b63e8d2a24952c34c1857b427dea0046f9135ba1 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 18 Mar 2024 15:57:08 -0700 Subject: [PATCH] reading atomics --- setup.py | 2 +- src/rds2py/__init__.py | 12 +- src/rds2py/atomics.py | 22 - src/rds2py/generics.py | 21 +- src/rds2py/lib/parser.cpp | 5429 +++++++++-------- src/rds2py/lib/parser.pxd | 2 +- src/rds2py/lib/parser.pyx | 58 +- .../{rds_parser.cpp => rds2cpp_wrapper.cpp} | 2 +- src/rds2py/{rds_interface.py => rdsutils.py} | 8 +- src/rds2py/read_atomic_vector.py | 42 + tests/data/atomic_ints_with_names.rds | Bin 0 -> 264 bytes tests/test_atomic-attr.py | 21 +- tests/test_atomic-bool.py | 21 +- tests/test_atomic-double.py | 22 +- tests/test_atomic-int.py | 30 +- tests/test_atomic-str.py | 33 +- 16 files changed, 2933 insertions(+), 2792 deletions(-) delete mode 100644 src/rds2py/atomics.py rename src/rds2py/lib/{rds_parser.cpp => rds2cpp_wrapper.cpp} (99%) rename src/rds2py/{rds_interface.py => rdsutils.py} (89%) create mode 100644 src/rds2py/read_atomic_vector.py create mode 100644 tests/data/atomic_ints_with_names.rds diff --git a/setup.py b/setup.py index 4765bd8..2b74187 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ [ Extension( "rds2py.core", - ["src/rds2py/lib/rds_parser.cpp", "src/rds2py/lib/parser.pyx"], + ["src/rds2py/lib/rds2cpp_wrapper.cpp", "src/rds2py/lib/parser.pyx"], include_dirs=[ "extern/rds2cpp/include", "extern/rds2cpp/_deps/byteme-src/include", diff --git a/src/rds2py/__init__.py b/src/rds2py/__init__.py index 3c38d8f..45d8b17 100644 --- a/src/rds2py/__init__.py +++ b/src/rds2py/__init__.py @@ -15,13 +15,5 @@ finally: del version, PackageNotFoundError -# from .core import * - -from .interface import ( - as_dense_matrix, - as_sparse_matrix, - as_pandas, - as_summarized_experiment, -) - -from .rds_interface import read_rds, get_class +from .generics import read_rds, save_rds +from .read_atomic_vector import parse_boolean_vector, parse_double_vector, parse_integer_vector, parse_string_vector diff --git a/src/rds2py/atomics.py b/src/rds2py/atomics.py deleted file mode 100644 index 7cc4144..0000000 --- a/src/rds2py/atomics.py +++ /dev/null @@ -1,22 +0,0 @@ -from .generics import REGISTRY, save_rds - -from biocutils import BooleanList - -__author__ = "jkanche" -__copyright__ = "jkanche" -__license__ = "MIT" - - -def load_boolean_objects(robj: dict): - _keys = list(robj.keys()) - - if list(_keys) == 1 and list(_keys) == ["data"]: - return BooleanList(robj["data"]) - - -REGISTRY["boolean"] = load_boolean_objects - - -@save_rds -def save_atomics_objects(x: list): - pass diff --git a/src/rds2py/generics.py b/src/rds2py/generics.py index e7fc8be..66f291f 100644 --- a/src/rds2py/generics.py +++ b/src/rds2py/generics.py @@ -1,13 +1,20 @@ from functools import singledispatch from importlib import import_module -from .rds_interface import get_class, load_rds +# from .atomics import parse_integer_vector +from .rdsutils import get_class, parse_rds __author__ = "jkanche" __copyright__ = "jkanche" __license__ = "MIT" -REGISTRY = {} +REGISTRY = { + "integer_vector": "rds2py.parse_integer_vector", + "boolean_vector": "rds2py.parse_boolean_vector", + "string_vector": "rds2py.parse_string_vector", + "double_vector": "rds2py.parse_double_vector", + +} @singledispatch @@ -39,12 +46,16 @@ def read_rds(path: str, **kwargs): Returns: Some kind of object. """ - _robj = load_rds(path=path) + _robj = parse_rds(path=path) _class_name = get_class(_robj) + print("in READ_RDS") + print(_robj) + print(_class_name) + if _class_name not in REGISTRY: raise NotImplementedError( - "no `read_rds` method implemented for '{_class_name}' objects." + f"no `read_rds` method implemented for '{_class_name}' objects." ) # from Aaron's dolomite-base package @@ -55,4 +66,4 @@ def read_rds(path: str, **kwargs): command = getattr(mod, command[first_period + 1 :]) REGISTRY[_class_name] = command - return command(path, **kwargs) + return command(_robj, **kwargs) diff --git a/src/rds2py/lib/parser.cpp b/src/rds2py/lib/parser.cpp index d968f1d..2356fc8 100644 --- a/src/rds2py/lib/parser.cpp +++ b/src/rds2py/lib/parser.cpp @@ -1,15 +1,15 @@ -/* Generated by Cython 3.0.7 */ +/* Generated by Cython 3.0.9 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ - "/Users/kancherj/Projects/public/BiocPy/rds2py/.tox/.pkg/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h", - "/Users/kancherj/Projects/public/BiocPy/rds2py/.tox/.pkg/lib/python3.9/site-packages/numpy/core/include/numpy/arrayscalars.h", - "/Users/kancherj/Projects/public/BiocPy/rds2py/.tox/.pkg/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h", - "/Users/kancherj/Projects/public/BiocPy/rds2py/.tox/.pkg/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h", - "/Users/kancherj/Projects/public/BiocPy/rds2py/.tox/.pkg/lib/python3.9/site-packages/numpy/core/include/numpy/ufuncobject.h", - "src/rds2py/lib/rds_parser.cpp" + "/opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h", + "/opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/core/include/numpy/arrayscalars.h", + "/opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h", + "/opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h", + "/opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/core/include/numpy/ufuncobject.h", + "src/rds2py/lib/rds2cpp_wrapper.cpp" ], "extra_compile_args": [ "-std=c++17" @@ -21,13 +21,13 @@ "src/rds2py/lib", "extern/rds2cpp/include", "extern/rds2cpp/_deps/byteme-src/include", - "/Users/kancherj/Projects/public/BiocPy/rds2py/.tox/.pkg/lib/python3.9/site-packages/numpy/core/include" + "/opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/core/include" ], "language": "c++", "name": "rds2py.core", "sources": [ "src/rds2py/lib/parser.pyx", - "src/rds2py/lib/rds_parser.cpp" + "src/rds2py/lib/rds2cpp_wrapper.cpp" ] }, "module_name": "rds2py.core" @@ -58,10 +58,10 @@ END: Cython Metadata */ #else #define __PYX_EXTRA_ABI_MODULE_NAME "" #endif -#define CYTHON_ABI "3_0_7" __PYX_EXTRA_ABI_MODULE_NAME +#define CYTHON_ABI "3_0_9" __PYX_EXTRA_ABI_MODULE_NAME #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "." -#define CYTHON_HEX_VERSION 0x030007F0 +#define CYTHON_HEX_VERSION 0x030009F0 #define CYTHON_FUTURE_DIVISION 1 #include #ifndef offsetof @@ -619,14 +619,14 @@ class __Pyx_FakeReference { PyObject *exception_table = NULL; PyObject *types_module=NULL, *code_type=NULL, *result=NULL; #if __PYX_LIMITED_VERSION_HEX < 0x030B0000 - PyObject *version_info; // borrowed + PyObject *version_info; PyObject *py_minor_version = NULL; #endif long minor_version = 0; PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); #if __PYX_LIMITED_VERSION_HEX >= 0x030B0000 - minor_version = 11; // we don't yet need to distinguish between versions > 11 + minor_version = 11; #else if (!(version_info = PySys_GetObject("version_info"))) goto end; if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end; @@ -684,7 +684,7 @@ class __Pyx_FakeReference { PyObject *fv, PyObject *cell, PyObject* fn, PyObject *name, int fline, PyObject *lnos) { PyCodeObject *result; - PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); // we don't have access to __pyx_empty_bytes here + PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); if (!empty_bytes) return NULL; result = #if PY_VERSION_HEX >= 0x030C0000 @@ -770,8 +770,13 @@ class __Pyx_FakeReference { typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else - #define __Pyx_PyCFunctionFast _PyCFunctionFast - #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #if PY_VERSION_HEX >= 0x030d00A4 + # define __Pyx_PyCFunctionFast PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords + #else + # define __Pyx_PyCFunctionFast _PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #endif #endif #if CYTHON_METH_FASTCALL #define __Pyx_METH_FASTCALL METH_FASTCALL @@ -1123,7 +1128,7 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o) #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o) #endif -#if PY_VERSION_HEX >= 0x030d00A1 +#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) #else static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { @@ -1210,7 +1215,7 @@ static CYTHON_INLINE float __PYX_NAN() { #endif #define __PYX_MARK_ERR_POS(f_index, lineno) \ - { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } + { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } #define __PYX_ERR(f_index, lineno, Ln_error) \ { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; } @@ -1250,12 +1255,12 @@ static CYTHON_INLINE float __PYX_NAN() { } #endif - -#include "rds_parser.cpp" + +#include "rds2cpp_wrapper.cpp" #include /* Using NumPy API declarations from "numpy/__init__.cython-30.pxd" */ - + #include "numpy/arrayobject.h" #include "numpy/ndarrayobject.h" #include "numpy/ndarraytypes.h" @@ -1342,24 +1347,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) -#if CYTHON_COMPILING_IN_LIMITED_API -static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u) -{ - const wchar_t *u_end = u; - while (*u_end++) ; - return (size_t)(u_end - u - 1); -} -#else -static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) -{ - const Py_UNICODE *u_end = u; - while (*u_end++) ; - return (size_t)(u_end - u - 1); -} -#endif #define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o) -#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) -#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) @@ -1409,7 +1397,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); #endif typedef Py_ssize_t __Pyx_compact_pylong; typedef size_t __Pyx_compact_upylong; - #else // Py < 3.12 + #else #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0) #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0) #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0) @@ -1552,8 +1540,8 @@ static const char *__pyx_filename; static const char *__pyx_f[] = { "", "src/rds2py/lib/parser.pyx", - ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd", - ".tox/.pkg/lib/python3.9/site-packages/Cython/Includes/cpython/type.pxd", + "__init__.cython-30.pxd", + "type.pxd", }; /* #### Code section: utility_code_proto_before_types ### */ /* ForceInitThreads.proto */ @@ -1699,17 +1687,17 @@ typedef struct { /* #### Code section: numeric_typedefs ### */ -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":730 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":730 * # in Cython to enable them only on the right systems. - * + * * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<< * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t */ typedef npy_int8 __pyx_t_5numpy_int8_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":731 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":731 + * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< * ctypedef npy_int32 int32_t @@ -1717,7 +1705,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t; */ typedef npy_int16 __pyx_t_5numpy_int16_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":732 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":732 * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<< @@ -1726,7 +1714,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t; */ typedef npy_int32 __pyx_t_5numpy_int32_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":733 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":733 * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<< @@ -1735,17 +1723,17 @@ typedef npy_int32 __pyx_t_5numpy_int32_t; */ typedef npy_int64 __pyx_t_5numpy_int64_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":737 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":737 * #ctypedef npy_int128 int128_t - * + * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t */ typedef npy_uint8 __pyx_t_5numpy_uint8_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":738 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":738 + * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< * ctypedef npy_uint32 uint32_t @@ -1753,7 +1741,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t; */ typedef npy_uint16 __pyx_t_5numpy_uint16_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":739 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":739 * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<< @@ -1762,7 +1750,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t; */ typedef npy_uint32 __pyx_t_5numpy_uint32_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":740 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":740 * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<< @@ -1771,17 +1759,17 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t; */ typedef npy_uint64 __pyx_t_5numpy_uint64_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":744 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":744 * #ctypedef npy_uint128 uint128_t - * + * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< * ctypedef npy_float64 float64_t * #ctypedef npy_float80 float80_t */ typedef npy_float32 __pyx_t_5numpy_float32_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":745 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":745 + * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< * #ctypedef npy_float80 float80_t @@ -1789,83 +1777,83 @@ typedef npy_float32 __pyx_t_5numpy_float32_t; */ typedef npy_float64 __pyx_t_5numpy_float64_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":754 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":754 * # The int types are mapped a bit surprising -- * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t # <<<<<<<<<<<<<< * ctypedef npy_longlong longlong_t - * + * */ typedef npy_long __pyx_t_5numpy_int_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":755 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":755 * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< - * + * * ctypedef npy_ulong uint_t */ typedef npy_longlong __pyx_t_5numpy_longlong_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":757 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":757 * ctypedef npy_longlong longlong_t - * + * * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<< * ctypedef npy_ulonglong ulonglong_t - * + * */ typedef npy_ulong __pyx_t_5numpy_uint_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":758 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":758 + * * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< - * + * * ctypedef npy_intp intp_t */ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":760 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":760 * ctypedef npy_ulonglong ulonglong_t - * + * * ctypedef npy_intp intp_t # <<<<<<<<<<<<<< * ctypedef npy_uintp uintp_t - * + * */ typedef npy_intp __pyx_t_5numpy_intp_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":761 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":761 + * * ctypedef npy_intp intp_t * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<< - * + * * ctypedef npy_double float_t */ typedef npy_uintp __pyx_t_5numpy_uintp_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":763 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":763 * ctypedef npy_uintp uintp_t - * + * * ctypedef npy_double float_t # <<<<<<<<<<<<<< * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t */ typedef npy_double __pyx_t_5numpy_float_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":764 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":764 + * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< * ctypedef npy_longdouble longdouble_t - * + * */ typedef npy_double __pyx_t_5numpy_double_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":765 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":765 * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< - * + * * ctypedef npy_cfloat cfloat_t */ typedef npy_longdouble __pyx_t_5numpy_longdouble_t; @@ -1904,48 +1892,48 @@ struct __pyx_MemviewEnum_obj; struct __pyx_memoryview_obj; struct __pyx_memoryviewslice_obj; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":767 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":767 * ctypedef npy_longdouble longdouble_t - * + * * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<< * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t */ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":768 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":768 + * * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<< * ctypedef npy_clongdouble clongdouble_t - * + * */ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":769 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":769 * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<< - * + * * ctypedef npy_cdouble complex_t */ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":771 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":771 * ctypedef npy_clongdouble clongdouble_t - * + * * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<< - * + * * cdef inline object PyArray_MultiIterNew1(a): */ typedef npy_cdouble __pyx_t_5numpy_complex_t; /* "src/rds2py/lib/parser.pyx":25 * import numpy as np - * + * * cdef class PyParsedObject: # <<<<<<<<<<<<<< * cdef uintptr_t ptr - * + * */ struct __pyx_obj_6rds2py_4core_PyParsedObject { PyObject_HEAD @@ -1955,7 +1943,7 @@ struct __pyx_obj_6rds2py_4core_PyParsedObject { /* "src/rds2py/lib/parser.pyx":40 * return np.asarray(my_array) - * + * * cdef class PyRObject: # <<<<<<<<<<<<<< * cdef uintptr_t ptr * cdef string_c rtype @@ -1972,7 +1960,7 @@ struct __pyx_obj_6rds2py_4core_PyRObject { * @cython.collection_type("sequence") * @cname("__pyx_array") * cdef class array: # <<<<<<<<<<<<<< - * + * * cdef: */ struct __pyx_array_obj { @@ -1994,7 +1982,7 @@ struct __pyx_array_obj { /* "View.MemoryView":302 - * + * * @cname('__pyx_MemviewEnum') * cdef class Enum(object): # <<<<<<<<<<<<<< * cdef object name @@ -2007,10 +1995,10 @@ struct __pyx_MemviewEnum_obj { /* "View.MemoryView":337 - * + * * @cname('__pyx_memoryview') * cdef class memoryview: # <<<<<<<<<<<<<< - * + * * cdef object obj */ struct __pyx_memoryview_obj { @@ -2033,7 +2021,7 @@ struct __pyx_memoryview_obj { * @cname('__pyx_memoryviewslice') * cdef class _memoryviewslice(memoryview): # <<<<<<<<<<<<<< * "Internal class for passing memoryview slices to Python" - * + * */ struct __pyx_memoryviewslice_obj { struct __pyx_memoryview_obj __pyx_base; @@ -2049,7 +2037,7 @@ struct __pyx_memoryviewslice_obj { * @cython.collection_type("sequence") * @cname("__pyx_array") * cdef class array: # <<<<<<<<<<<<<< - * + * * cdef: */ @@ -2060,10 +2048,10 @@ static struct __pyx_vtabstruct_array *__pyx_vtabptr_array; /* "View.MemoryView":337 - * + * * @cname('__pyx_memoryview') * cdef class memoryview: # <<<<<<<<<<<<<< - * + * * cdef object obj */ @@ -2085,7 +2073,7 @@ static struct __pyx_vtabstruct_memoryview *__pyx_vtabptr_memoryview; * @cname('__pyx_memoryviewslice') * cdef class _memoryviewslice(memoryview): # <<<<<<<<<<<<<< * "Internal class for passing memoryview slices to Python" - * + * */ struct __pyx_vtabstruct__memoryviewslice { @@ -2265,8 +2253,8 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg) #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg) #else - #define __Pyx_Arg_NewRef_VARARGS(arg) arg // no-op - #define __Pyx_Arg_XDECREF_VARARGS(arg) // no-op - arg is borrowed + #define __Pyx_Arg_NewRef_VARARGS(arg) arg + #define __Pyx_Arg_XDECREF_VARARGS(arg) #endif #define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds) #define __Pyx_KwValues_VARARGS(args, nargs) NULL @@ -2282,8 +2270,9 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #else #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw) #endif - #define __Pyx_Arg_NewRef_FASTCALL(arg) arg // no-op, __Pyx_Arg_FASTCALL is direct and this needs - #define __Pyx_Arg_XDECREF_FASTCALL(arg) // no-op - arg was returned from array + #define __Pyx_Arg_NewRef_FASTCALL(arg) arg /* no-op, __Pyx_Arg_FASTCALL is direct and this needs + to have the same reference counting */ + #define __Pyx_Arg_XDECREF_FASTCALL(arg) #else #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS @@ -2817,22 +2806,22 @@ static int __Pyx_MergeVtables(PyTypeObject *type); #endif /* TypeImport.proto */ -#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_7 -#define __PYX_HAVE_RT_ImportType_proto_3_0_7 +#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_9 +#define __PYX_HAVE_RT_ImportType_proto_3_0_9 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L #include #endif #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L -#define __PYX_GET_STRUCT_ALIGNMENT_3_0_7(s) alignof(s) +#define __PYX_GET_STRUCT_ALIGNMENT_3_0_9(s) alignof(s) #else -#define __PYX_GET_STRUCT_ALIGNMENT_3_0_7(s) sizeof(void*) +#define __PYX_GET_STRUCT_ALIGNMENT_3_0_9(s) sizeof(void*) #endif -enum __Pyx_ImportType_CheckSize_3_0_7 { - __Pyx_ImportType_CheckSize_Error_3_0_7 = 0, - __Pyx_ImportType_CheckSize_Warn_3_0_7 = 1, - __Pyx_ImportType_CheckSize_Ignore_3_0_7 = 2 +enum __Pyx_ImportType_CheckSize_3_0_9 { + __Pyx_ImportType_CheckSize_Error_3_0_9 = 0, + __Pyx_ImportType_CheckSize_Warn_3_0_9 = 1, + __Pyx_ImportType_CheckSize_Ignore_3_0_9 = 2 }; -static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_7 check_size); +static PyTypeObject *__Pyx_ImportType_3_0_9(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_9 check_size); #endif /* FetchSharedCythonModule.proto */ @@ -2925,7 +2914,7 @@ typedef struct { #endif void *defaults; int defaults_pyobjects; - size_t defaults_size; // used by FusedFunction for copying defaults + size_t defaults_size; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; @@ -3312,12 +3301,12 @@ static PyObject *indirect_contiguous = 0; static int __pyx_memoryview_thread_locks_used; static PyThread_type_lock __pyx_memoryview_thread_locks[8]; static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t, PyObject *, PyObject *, PyObject *); /*proto*/ -static std::string __pyx_convert_string_from_py_std__in_string(PyObject *); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &); /*proto*/ +static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(PyObject *); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector const &); /*proto*/ static PyObject *__pyx_convert_pair_to_py_int____int(std::pair const &); /*proto*/ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *); /*proto*/ @@ -3390,7 +3379,7 @@ static const char __pyx_k_f8[] = "f8"; static const char __pyx_k_gc[] = "gc"; static const char __pyx_k_id[] = "id"; static const char __pyx_k_np[] = "np"; -static const char __pyx_k__59[] = "?"; +static const char __pyx_k__58[] = "?"; static const char __pyx_k_abc[] = "abc"; static const char __pyx_k_and[] = " and "; static const char __pyx_k_got[] = " (got "; @@ -3491,16 +3480,21 @@ static const char __pyx_k_pyx_checksum[] = "__pyx_checksum"; static const char __pyx_k_stringsource[] = ""; static const char __pyx_k_version_info[] = "version_info"; static const char __pyx_k_class_getitem[] = "__class_getitem__"; +static const char __pyx_k_double_vector[] = "double_vector"; static const char __pyx_k_realize_value[] = "realize_value"; static const char __pyx_k_reduce_cython[] = "__reduce_cython__"; +static const char __pyx_k_string_vector[] = "string_vector"; static const char __pyx_k_AssertionError[] = "AssertionError"; +static const char __pyx_k_Cannot_realize[] = "Cannot realize "; static const char __pyx_k_PyParsedObject[] = "PyParsedObject"; +static const char __pyx_k_boolean_vector[] = "boolean_vector"; static const char __pyx_k_find_attribute[] = "find_attribute"; static const char __pyx_k_get_class_name[] = "get_class_name"; static const char __pyx_k_get_dimensions[] = "get_dimensions"; static const char __pyx_k_get_double_arr[] = "_get_double_arr"; static const char __pyx_k_get_string_arr[] = "_get_string_arr"; static const char __pyx_k_get_vector_arr[] = "_get_vector_arr"; +static const char __pyx_k_integer_vector[] = "integer_vector"; static const char __pyx_k_View_MemoryView[] = "View.MemoryView"; static const char __pyx_k_allocate_buffer[] = "allocate_buffer"; static const char __pyx_k_collections_abc[] = "collections.abc"; @@ -3568,7 +3562,6 @@ static const char __pyx_k_PyRObject_load_attribute_by_inde[] = "PyRObject.load_a static const char __pyx_k_PyRObject_load_attribute_by_name[] = "PyRObject.load_attribute_by_name"; static const char __pyx_k_PyRObject_shennanigans_to_py_rep[] = "PyRObject.shennanigans_to_py_reprs"; static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object"; -static const char __pyx_k_class_name_does_not_exist_on_non[] = "class name does not exist on non-S4 classes"; static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension "; static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__"; static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import"; @@ -3746,6 +3739,7 @@ typedef struct { PyObject *__pyx_kp_s_Cannot_assign_to_read_only_memor; PyObject *__pyx_kp_s_Cannot_create_writable_memory_vi; PyObject *__pyx_kp_u_Cannot_index_with_type; + PyObject *__pyx_kp_u_Cannot_realize; PyObject *__pyx_kp_s_Cannot_transpose_memoryview_with; PyObject *__pyx_kp_s_Dimension_d_is_not_direct; PyObject *__pyx_n_s_Ellipsis; @@ -3797,7 +3791,7 @@ typedef struct { PyObject *__pyx_n_s_View_MemoryView; PyObject *__pyx_kp_u__2; PyObject *__pyx_n_s__3; - PyObject *__pyx_n_s__59; + PyObject *__pyx_n_s__58; PyObject *__pyx_kp_u__6; PyObject *__pyx_kp_u__7; PyObject *__pyx_n_s_abc; @@ -3810,12 +3804,12 @@ typedef struct { PyObject *__pyx_n_u_attributes; PyObject *__pyx_n_s_base; PyObject *__pyx_n_u_boolean; + PyObject *__pyx_n_u_boolean_vector; PyObject *__pyx_n_s_c; PyObject *__pyx_n_u_c; PyObject *__pyx_n_s_class; PyObject *__pyx_n_s_class_getitem; PyObject *__pyx_n_u_class_name; - PyObject *__pyx_kp_u_class_name_does_not_exist_on_non; PyObject *__pyx_n_s_cline_in_traceback; PyObject *__pyx_n_s_collections; PyObject *__pyx_kp_s_collections_abc; @@ -3828,6 +3822,7 @@ typedef struct { PyObject *__pyx_n_s_dict; PyObject *__pyx_kp_u_disable; PyObject *__pyx_n_u_double; + PyObject *__pyx_n_u_double_vector; PyObject *__pyx_n_s_dtype; PyObject *__pyx_n_s_dtype_is_object; PyObject *__pyx_n_s_empty; @@ -3864,6 +3859,7 @@ typedef struct { PyObject *__pyx_n_s_index; PyObject *__pyx_n_s_initializing; PyObject *__pyx_n_u_integer; + PyObject *__pyx_n_u_integer_vector; PyObject *__pyx_n_s_is_coroutine; PyObject *__pyx_kp_u_isenabled; PyObject *__pyx_n_s_itemsize; @@ -3925,6 +3921,7 @@ typedef struct { PyObject *__pyx_kp_s_strided_and_direct_or_indirect; PyObject *__pyx_kp_s_strided_and_indirect; PyObject *__pyx_n_u_string; + PyObject *__pyx_n_u_string_vector; PyObject *__pyx_kp_s_stringsource; PyObject *__pyx_n_s_struct; PyObject *__pyx_n_s_sys; @@ -3964,43 +3961,42 @@ typedef struct { PyObject *__pyx_tuple__19; PyObject *__pyx_tuple__20; PyObject *__pyx_tuple__21; - PyObject *__pyx_tuple__22; - PyObject *__pyx_tuple__24; - PyObject *__pyx_tuple__26; - PyObject *__pyx_tuple__28; - PyObject *__pyx_tuple__32; - PyObject *__pyx_tuple__34; - PyObject *__pyx_tuple__36; - PyObject *__pyx_tuple__38; - PyObject *__pyx_tuple__41; - PyObject *__pyx_tuple__44; - PyObject *__pyx_tuple__46; - PyObject *__pyx_tuple__48; - PyObject *__pyx_tuple__50; - PyObject *__pyx_tuple__55; - PyObject *__pyx_codeobj__23; - PyObject *__pyx_codeobj__25; - PyObject *__pyx_codeobj__27; + PyObject *__pyx_tuple__23; + PyObject *__pyx_tuple__25; + PyObject *__pyx_tuple__27; + PyObject *__pyx_tuple__31; + PyObject *__pyx_tuple__33; + PyObject *__pyx_tuple__35; + PyObject *__pyx_tuple__37; + PyObject *__pyx_tuple__40; + PyObject *__pyx_tuple__43; + PyObject *__pyx_tuple__45; + PyObject *__pyx_tuple__47; + PyObject *__pyx_tuple__49; + PyObject *__pyx_tuple__54; + PyObject *__pyx_codeobj__22; + PyObject *__pyx_codeobj__24; + PyObject *__pyx_codeobj__26; + PyObject *__pyx_codeobj__28; PyObject *__pyx_codeobj__29; PyObject *__pyx_codeobj__30; - PyObject *__pyx_codeobj__31; - PyObject *__pyx_codeobj__33; - PyObject *__pyx_codeobj__35; - PyObject *__pyx_codeobj__37; + PyObject *__pyx_codeobj__32; + PyObject *__pyx_codeobj__34; + PyObject *__pyx_codeobj__36; + PyObject *__pyx_codeobj__38; PyObject *__pyx_codeobj__39; - PyObject *__pyx_codeobj__40; + PyObject *__pyx_codeobj__41; PyObject *__pyx_codeobj__42; - PyObject *__pyx_codeobj__43; - PyObject *__pyx_codeobj__45; - PyObject *__pyx_codeobj__47; - PyObject *__pyx_codeobj__49; + PyObject *__pyx_codeobj__44; + PyObject *__pyx_codeobj__46; + PyObject *__pyx_codeobj__48; + PyObject *__pyx_codeobj__50; PyObject *__pyx_codeobj__51; PyObject *__pyx_codeobj__52; PyObject *__pyx_codeobj__53; - PyObject *__pyx_codeobj__54; + PyObject *__pyx_codeobj__55; PyObject *__pyx_codeobj__56; PyObject *__pyx_codeobj__57; - PyObject *__pyx_codeobj__58; } __pyx_mstate; #if CYTHON_USE_MODULE_STATE @@ -4080,6 +4076,7 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_kp_s_Cannot_assign_to_read_only_memor); Py_CLEAR(clear_module_state->__pyx_kp_s_Cannot_create_writable_memory_vi); Py_CLEAR(clear_module_state->__pyx_kp_u_Cannot_index_with_type); + Py_CLEAR(clear_module_state->__pyx_kp_u_Cannot_realize); Py_CLEAR(clear_module_state->__pyx_kp_s_Cannot_transpose_memoryview_with); Py_CLEAR(clear_module_state->__pyx_kp_s_Dimension_d_is_not_direct); Py_CLEAR(clear_module_state->__pyx_n_s_Ellipsis); @@ -4131,7 +4128,7 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_n_s_View_MemoryView); Py_CLEAR(clear_module_state->__pyx_kp_u__2); Py_CLEAR(clear_module_state->__pyx_n_s__3); - Py_CLEAR(clear_module_state->__pyx_n_s__59); + Py_CLEAR(clear_module_state->__pyx_n_s__58); Py_CLEAR(clear_module_state->__pyx_kp_u__6); Py_CLEAR(clear_module_state->__pyx_kp_u__7); Py_CLEAR(clear_module_state->__pyx_n_s_abc); @@ -4144,12 +4141,12 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_n_u_attributes); Py_CLEAR(clear_module_state->__pyx_n_s_base); Py_CLEAR(clear_module_state->__pyx_n_u_boolean); + Py_CLEAR(clear_module_state->__pyx_n_u_boolean_vector); Py_CLEAR(clear_module_state->__pyx_n_s_c); Py_CLEAR(clear_module_state->__pyx_n_u_c); Py_CLEAR(clear_module_state->__pyx_n_s_class); Py_CLEAR(clear_module_state->__pyx_n_s_class_getitem); Py_CLEAR(clear_module_state->__pyx_n_u_class_name); - Py_CLEAR(clear_module_state->__pyx_kp_u_class_name_does_not_exist_on_non); Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback); Py_CLEAR(clear_module_state->__pyx_n_s_collections); Py_CLEAR(clear_module_state->__pyx_kp_s_collections_abc); @@ -4162,6 +4159,7 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_n_s_dict); Py_CLEAR(clear_module_state->__pyx_kp_u_disable); Py_CLEAR(clear_module_state->__pyx_n_u_double); + Py_CLEAR(clear_module_state->__pyx_n_u_double_vector); Py_CLEAR(clear_module_state->__pyx_n_s_dtype); Py_CLEAR(clear_module_state->__pyx_n_s_dtype_is_object); Py_CLEAR(clear_module_state->__pyx_n_s_empty); @@ -4198,6 +4196,7 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_n_s_index); Py_CLEAR(clear_module_state->__pyx_n_s_initializing); Py_CLEAR(clear_module_state->__pyx_n_u_integer); + Py_CLEAR(clear_module_state->__pyx_n_u_integer_vector); Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine); Py_CLEAR(clear_module_state->__pyx_kp_u_isenabled); Py_CLEAR(clear_module_state->__pyx_n_s_itemsize); @@ -4259,6 +4258,7 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_kp_s_strided_and_direct_or_indirect); Py_CLEAR(clear_module_state->__pyx_kp_s_strided_and_indirect); Py_CLEAR(clear_module_state->__pyx_n_u_string); + Py_CLEAR(clear_module_state->__pyx_n_u_string_vector); Py_CLEAR(clear_module_state->__pyx_kp_s_stringsource); Py_CLEAR(clear_module_state->__pyx_n_s_struct); Py_CLEAR(clear_module_state->__pyx_n_s_sys); @@ -4298,43 +4298,42 @@ static int __pyx_m_clear(PyObject *m) { Py_CLEAR(clear_module_state->__pyx_tuple__19); Py_CLEAR(clear_module_state->__pyx_tuple__20); Py_CLEAR(clear_module_state->__pyx_tuple__21); - Py_CLEAR(clear_module_state->__pyx_tuple__22); - Py_CLEAR(clear_module_state->__pyx_tuple__24); - Py_CLEAR(clear_module_state->__pyx_tuple__26); - Py_CLEAR(clear_module_state->__pyx_tuple__28); - Py_CLEAR(clear_module_state->__pyx_tuple__32); - Py_CLEAR(clear_module_state->__pyx_tuple__34); - Py_CLEAR(clear_module_state->__pyx_tuple__36); - Py_CLEAR(clear_module_state->__pyx_tuple__38); - Py_CLEAR(clear_module_state->__pyx_tuple__41); - Py_CLEAR(clear_module_state->__pyx_tuple__44); - Py_CLEAR(clear_module_state->__pyx_tuple__46); - Py_CLEAR(clear_module_state->__pyx_tuple__48); - Py_CLEAR(clear_module_state->__pyx_tuple__50); - Py_CLEAR(clear_module_state->__pyx_tuple__55); - Py_CLEAR(clear_module_state->__pyx_codeobj__23); - Py_CLEAR(clear_module_state->__pyx_codeobj__25); - Py_CLEAR(clear_module_state->__pyx_codeobj__27); + Py_CLEAR(clear_module_state->__pyx_tuple__23); + Py_CLEAR(clear_module_state->__pyx_tuple__25); + Py_CLEAR(clear_module_state->__pyx_tuple__27); + Py_CLEAR(clear_module_state->__pyx_tuple__31); + Py_CLEAR(clear_module_state->__pyx_tuple__33); + Py_CLEAR(clear_module_state->__pyx_tuple__35); + Py_CLEAR(clear_module_state->__pyx_tuple__37); + Py_CLEAR(clear_module_state->__pyx_tuple__40); + Py_CLEAR(clear_module_state->__pyx_tuple__43); + Py_CLEAR(clear_module_state->__pyx_tuple__45); + Py_CLEAR(clear_module_state->__pyx_tuple__47); + Py_CLEAR(clear_module_state->__pyx_tuple__49); + Py_CLEAR(clear_module_state->__pyx_tuple__54); + Py_CLEAR(clear_module_state->__pyx_codeobj__22); + Py_CLEAR(clear_module_state->__pyx_codeobj__24); + Py_CLEAR(clear_module_state->__pyx_codeobj__26); + Py_CLEAR(clear_module_state->__pyx_codeobj__28); Py_CLEAR(clear_module_state->__pyx_codeobj__29); Py_CLEAR(clear_module_state->__pyx_codeobj__30); - Py_CLEAR(clear_module_state->__pyx_codeobj__31); - Py_CLEAR(clear_module_state->__pyx_codeobj__33); - Py_CLEAR(clear_module_state->__pyx_codeobj__35); - Py_CLEAR(clear_module_state->__pyx_codeobj__37); + Py_CLEAR(clear_module_state->__pyx_codeobj__32); + Py_CLEAR(clear_module_state->__pyx_codeobj__34); + Py_CLEAR(clear_module_state->__pyx_codeobj__36); + Py_CLEAR(clear_module_state->__pyx_codeobj__38); Py_CLEAR(clear_module_state->__pyx_codeobj__39); - Py_CLEAR(clear_module_state->__pyx_codeobj__40); + Py_CLEAR(clear_module_state->__pyx_codeobj__41); Py_CLEAR(clear_module_state->__pyx_codeobj__42); - Py_CLEAR(clear_module_state->__pyx_codeobj__43); - Py_CLEAR(clear_module_state->__pyx_codeobj__45); - Py_CLEAR(clear_module_state->__pyx_codeobj__47); - Py_CLEAR(clear_module_state->__pyx_codeobj__49); + Py_CLEAR(clear_module_state->__pyx_codeobj__44); + Py_CLEAR(clear_module_state->__pyx_codeobj__46); + Py_CLEAR(clear_module_state->__pyx_codeobj__48); + Py_CLEAR(clear_module_state->__pyx_codeobj__50); Py_CLEAR(clear_module_state->__pyx_codeobj__51); Py_CLEAR(clear_module_state->__pyx_codeobj__52); Py_CLEAR(clear_module_state->__pyx_codeobj__53); - Py_CLEAR(clear_module_state->__pyx_codeobj__54); + Py_CLEAR(clear_module_state->__pyx_codeobj__55); Py_CLEAR(clear_module_state->__pyx_codeobj__56); Py_CLEAR(clear_module_state->__pyx_codeobj__57); - Py_CLEAR(clear_module_state->__pyx_codeobj__58); return 0; } #endif @@ -4392,6 +4391,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_kp_s_Cannot_assign_to_read_only_memor); Py_VISIT(traverse_module_state->__pyx_kp_s_Cannot_create_writable_memory_vi); Py_VISIT(traverse_module_state->__pyx_kp_u_Cannot_index_with_type); + Py_VISIT(traverse_module_state->__pyx_kp_u_Cannot_realize); Py_VISIT(traverse_module_state->__pyx_kp_s_Cannot_transpose_memoryview_with); Py_VISIT(traverse_module_state->__pyx_kp_s_Dimension_d_is_not_direct); Py_VISIT(traverse_module_state->__pyx_n_s_Ellipsis); @@ -4443,7 +4443,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_n_s_View_MemoryView); Py_VISIT(traverse_module_state->__pyx_kp_u__2); Py_VISIT(traverse_module_state->__pyx_n_s__3); - Py_VISIT(traverse_module_state->__pyx_n_s__59); + Py_VISIT(traverse_module_state->__pyx_n_s__58); Py_VISIT(traverse_module_state->__pyx_kp_u__6); Py_VISIT(traverse_module_state->__pyx_kp_u__7); Py_VISIT(traverse_module_state->__pyx_n_s_abc); @@ -4456,12 +4456,12 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_n_u_attributes); Py_VISIT(traverse_module_state->__pyx_n_s_base); Py_VISIT(traverse_module_state->__pyx_n_u_boolean); + Py_VISIT(traverse_module_state->__pyx_n_u_boolean_vector); Py_VISIT(traverse_module_state->__pyx_n_s_c); Py_VISIT(traverse_module_state->__pyx_n_u_c); Py_VISIT(traverse_module_state->__pyx_n_s_class); Py_VISIT(traverse_module_state->__pyx_n_s_class_getitem); Py_VISIT(traverse_module_state->__pyx_n_u_class_name); - Py_VISIT(traverse_module_state->__pyx_kp_u_class_name_does_not_exist_on_non); Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback); Py_VISIT(traverse_module_state->__pyx_n_s_collections); Py_VISIT(traverse_module_state->__pyx_kp_s_collections_abc); @@ -4474,6 +4474,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_n_s_dict); Py_VISIT(traverse_module_state->__pyx_kp_u_disable); Py_VISIT(traverse_module_state->__pyx_n_u_double); + Py_VISIT(traverse_module_state->__pyx_n_u_double_vector); Py_VISIT(traverse_module_state->__pyx_n_s_dtype); Py_VISIT(traverse_module_state->__pyx_n_s_dtype_is_object); Py_VISIT(traverse_module_state->__pyx_n_s_empty); @@ -4510,6 +4511,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_n_s_index); Py_VISIT(traverse_module_state->__pyx_n_s_initializing); Py_VISIT(traverse_module_state->__pyx_n_u_integer); + Py_VISIT(traverse_module_state->__pyx_n_u_integer_vector); Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine); Py_VISIT(traverse_module_state->__pyx_kp_u_isenabled); Py_VISIT(traverse_module_state->__pyx_n_s_itemsize); @@ -4571,6 +4573,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_kp_s_strided_and_direct_or_indirect); Py_VISIT(traverse_module_state->__pyx_kp_s_strided_and_indirect); Py_VISIT(traverse_module_state->__pyx_n_u_string); + Py_VISIT(traverse_module_state->__pyx_n_u_string_vector); Py_VISIT(traverse_module_state->__pyx_kp_s_stringsource); Py_VISIT(traverse_module_state->__pyx_n_s_struct); Py_VISIT(traverse_module_state->__pyx_n_s_sys); @@ -4610,43 +4613,42 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { Py_VISIT(traverse_module_state->__pyx_tuple__19); Py_VISIT(traverse_module_state->__pyx_tuple__20); Py_VISIT(traverse_module_state->__pyx_tuple__21); - Py_VISIT(traverse_module_state->__pyx_tuple__22); - Py_VISIT(traverse_module_state->__pyx_tuple__24); - Py_VISIT(traverse_module_state->__pyx_tuple__26); - Py_VISIT(traverse_module_state->__pyx_tuple__28); - Py_VISIT(traverse_module_state->__pyx_tuple__32); - Py_VISIT(traverse_module_state->__pyx_tuple__34); - Py_VISIT(traverse_module_state->__pyx_tuple__36); - Py_VISIT(traverse_module_state->__pyx_tuple__38); - Py_VISIT(traverse_module_state->__pyx_tuple__41); - Py_VISIT(traverse_module_state->__pyx_tuple__44); - Py_VISIT(traverse_module_state->__pyx_tuple__46); - Py_VISIT(traverse_module_state->__pyx_tuple__48); - Py_VISIT(traverse_module_state->__pyx_tuple__50); - Py_VISIT(traverse_module_state->__pyx_tuple__55); - Py_VISIT(traverse_module_state->__pyx_codeobj__23); - Py_VISIT(traverse_module_state->__pyx_codeobj__25); - Py_VISIT(traverse_module_state->__pyx_codeobj__27); + Py_VISIT(traverse_module_state->__pyx_tuple__23); + Py_VISIT(traverse_module_state->__pyx_tuple__25); + Py_VISIT(traverse_module_state->__pyx_tuple__27); + Py_VISIT(traverse_module_state->__pyx_tuple__31); + Py_VISIT(traverse_module_state->__pyx_tuple__33); + Py_VISIT(traverse_module_state->__pyx_tuple__35); + Py_VISIT(traverse_module_state->__pyx_tuple__37); + Py_VISIT(traverse_module_state->__pyx_tuple__40); + Py_VISIT(traverse_module_state->__pyx_tuple__43); + Py_VISIT(traverse_module_state->__pyx_tuple__45); + Py_VISIT(traverse_module_state->__pyx_tuple__47); + Py_VISIT(traverse_module_state->__pyx_tuple__49); + Py_VISIT(traverse_module_state->__pyx_tuple__54); + Py_VISIT(traverse_module_state->__pyx_codeobj__22); + Py_VISIT(traverse_module_state->__pyx_codeobj__24); + Py_VISIT(traverse_module_state->__pyx_codeobj__26); + Py_VISIT(traverse_module_state->__pyx_codeobj__28); Py_VISIT(traverse_module_state->__pyx_codeobj__29); Py_VISIT(traverse_module_state->__pyx_codeobj__30); - Py_VISIT(traverse_module_state->__pyx_codeobj__31); - Py_VISIT(traverse_module_state->__pyx_codeobj__33); - Py_VISIT(traverse_module_state->__pyx_codeobj__35); - Py_VISIT(traverse_module_state->__pyx_codeobj__37); + Py_VISIT(traverse_module_state->__pyx_codeobj__32); + Py_VISIT(traverse_module_state->__pyx_codeobj__34); + Py_VISIT(traverse_module_state->__pyx_codeobj__36); + Py_VISIT(traverse_module_state->__pyx_codeobj__38); Py_VISIT(traverse_module_state->__pyx_codeobj__39); - Py_VISIT(traverse_module_state->__pyx_codeobj__40); + Py_VISIT(traverse_module_state->__pyx_codeobj__41); Py_VISIT(traverse_module_state->__pyx_codeobj__42); - Py_VISIT(traverse_module_state->__pyx_codeobj__43); - Py_VISIT(traverse_module_state->__pyx_codeobj__45); - Py_VISIT(traverse_module_state->__pyx_codeobj__47); - Py_VISIT(traverse_module_state->__pyx_codeobj__49); + Py_VISIT(traverse_module_state->__pyx_codeobj__44); + Py_VISIT(traverse_module_state->__pyx_codeobj__46); + Py_VISIT(traverse_module_state->__pyx_codeobj__48); + Py_VISIT(traverse_module_state->__pyx_codeobj__50); Py_VISIT(traverse_module_state->__pyx_codeobj__51); Py_VISIT(traverse_module_state->__pyx_codeobj__52); Py_VISIT(traverse_module_state->__pyx_codeobj__53); - Py_VISIT(traverse_module_state->__pyx_codeobj__54); + Py_VISIT(traverse_module_state->__pyx_codeobj__55); Py_VISIT(traverse_module_state->__pyx_codeobj__56); Py_VISIT(traverse_module_state->__pyx_codeobj__57); - Py_VISIT(traverse_module_state->__pyx_codeobj__58); return 0; } #endif @@ -4748,6 +4750,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_kp_s_Cannot_assign_to_read_only_memor __pyx_mstate_global->__pyx_kp_s_Cannot_assign_to_read_only_memor #define __pyx_kp_s_Cannot_create_writable_memory_vi __pyx_mstate_global->__pyx_kp_s_Cannot_create_writable_memory_vi #define __pyx_kp_u_Cannot_index_with_type __pyx_mstate_global->__pyx_kp_u_Cannot_index_with_type +#define __pyx_kp_u_Cannot_realize __pyx_mstate_global->__pyx_kp_u_Cannot_realize #define __pyx_kp_s_Cannot_transpose_memoryview_with __pyx_mstate_global->__pyx_kp_s_Cannot_transpose_memoryview_with #define __pyx_kp_s_Dimension_d_is_not_direct __pyx_mstate_global->__pyx_kp_s_Dimension_d_is_not_direct #define __pyx_n_s_Ellipsis __pyx_mstate_global->__pyx_n_s_Ellipsis @@ -4799,7 +4802,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_n_s_View_MemoryView __pyx_mstate_global->__pyx_n_s_View_MemoryView #define __pyx_kp_u__2 __pyx_mstate_global->__pyx_kp_u__2 #define __pyx_n_s__3 __pyx_mstate_global->__pyx_n_s__3 -#define __pyx_n_s__59 __pyx_mstate_global->__pyx_n_s__59 +#define __pyx_n_s__58 __pyx_mstate_global->__pyx_n_s__58 #define __pyx_kp_u__6 __pyx_mstate_global->__pyx_kp_u__6 #define __pyx_kp_u__7 __pyx_mstate_global->__pyx_kp_u__7 #define __pyx_n_s_abc __pyx_mstate_global->__pyx_n_s_abc @@ -4812,12 +4815,12 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_n_u_attributes __pyx_mstate_global->__pyx_n_u_attributes #define __pyx_n_s_base __pyx_mstate_global->__pyx_n_s_base #define __pyx_n_u_boolean __pyx_mstate_global->__pyx_n_u_boolean +#define __pyx_n_u_boolean_vector __pyx_mstate_global->__pyx_n_u_boolean_vector #define __pyx_n_s_c __pyx_mstate_global->__pyx_n_s_c #define __pyx_n_u_c __pyx_mstate_global->__pyx_n_u_c #define __pyx_n_s_class __pyx_mstate_global->__pyx_n_s_class #define __pyx_n_s_class_getitem __pyx_mstate_global->__pyx_n_s_class_getitem #define __pyx_n_u_class_name __pyx_mstate_global->__pyx_n_u_class_name -#define __pyx_kp_u_class_name_does_not_exist_on_non __pyx_mstate_global->__pyx_kp_u_class_name_does_not_exist_on_non #define __pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback #define __pyx_n_s_collections __pyx_mstate_global->__pyx_n_s_collections #define __pyx_kp_s_collections_abc __pyx_mstate_global->__pyx_kp_s_collections_abc @@ -4830,6 +4833,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_n_s_dict __pyx_mstate_global->__pyx_n_s_dict #define __pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable #define __pyx_n_u_double __pyx_mstate_global->__pyx_n_u_double +#define __pyx_n_u_double_vector __pyx_mstate_global->__pyx_n_u_double_vector #define __pyx_n_s_dtype __pyx_mstate_global->__pyx_n_s_dtype #define __pyx_n_s_dtype_is_object __pyx_mstate_global->__pyx_n_s_dtype_is_object #define __pyx_n_s_empty __pyx_mstate_global->__pyx_n_s_empty @@ -4866,6 +4870,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_n_s_index __pyx_mstate_global->__pyx_n_s_index #define __pyx_n_s_initializing __pyx_mstate_global->__pyx_n_s_initializing #define __pyx_n_u_integer __pyx_mstate_global->__pyx_n_u_integer +#define __pyx_n_u_integer_vector __pyx_mstate_global->__pyx_n_u_integer_vector #define __pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine #define __pyx_kp_u_isenabled __pyx_mstate_global->__pyx_kp_u_isenabled #define __pyx_n_s_itemsize __pyx_mstate_global->__pyx_n_s_itemsize @@ -4927,6 +4932,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_kp_s_strided_and_direct_or_indirect __pyx_mstate_global->__pyx_kp_s_strided_and_direct_or_indirect #define __pyx_kp_s_strided_and_indirect __pyx_mstate_global->__pyx_kp_s_strided_and_indirect #define __pyx_n_u_string __pyx_mstate_global->__pyx_n_u_string +#define __pyx_n_u_string_vector __pyx_mstate_global->__pyx_n_u_string_vector #define __pyx_kp_s_stringsource __pyx_mstate_global->__pyx_kp_s_stringsource #define __pyx_n_s_struct __pyx_mstate_global->__pyx_n_s_struct #define __pyx_n_s_sys __pyx_mstate_global->__pyx_n_s_sys @@ -4966,54 +4972,53 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { #define __pyx_tuple__19 __pyx_mstate_global->__pyx_tuple__19 #define __pyx_tuple__20 __pyx_mstate_global->__pyx_tuple__20 #define __pyx_tuple__21 __pyx_mstate_global->__pyx_tuple__21 -#define __pyx_tuple__22 __pyx_mstate_global->__pyx_tuple__22 -#define __pyx_tuple__24 __pyx_mstate_global->__pyx_tuple__24 -#define __pyx_tuple__26 __pyx_mstate_global->__pyx_tuple__26 -#define __pyx_tuple__28 __pyx_mstate_global->__pyx_tuple__28 -#define __pyx_tuple__32 __pyx_mstate_global->__pyx_tuple__32 -#define __pyx_tuple__34 __pyx_mstate_global->__pyx_tuple__34 -#define __pyx_tuple__36 __pyx_mstate_global->__pyx_tuple__36 -#define __pyx_tuple__38 __pyx_mstate_global->__pyx_tuple__38 -#define __pyx_tuple__41 __pyx_mstate_global->__pyx_tuple__41 -#define __pyx_tuple__44 __pyx_mstate_global->__pyx_tuple__44 -#define __pyx_tuple__46 __pyx_mstate_global->__pyx_tuple__46 -#define __pyx_tuple__48 __pyx_mstate_global->__pyx_tuple__48 -#define __pyx_tuple__50 __pyx_mstate_global->__pyx_tuple__50 -#define __pyx_tuple__55 __pyx_mstate_global->__pyx_tuple__55 -#define __pyx_codeobj__23 __pyx_mstate_global->__pyx_codeobj__23 -#define __pyx_codeobj__25 __pyx_mstate_global->__pyx_codeobj__25 -#define __pyx_codeobj__27 __pyx_mstate_global->__pyx_codeobj__27 +#define __pyx_tuple__23 __pyx_mstate_global->__pyx_tuple__23 +#define __pyx_tuple__25 __pyx_mstate_global->__pyx_tuple__25 +#define __pyx_tuple__27 __pyx_mstate_global->__pyx_tuple__27 +#define __pyx_tuple__31 __pyx_mstate_global->__pyx_tuple__31 +#define __pyx_tuple__33 __pyx_mstate_global->__pyx_tuple__33 +#define __pyx_tuple__35 __pyx_mstate_global->__pyx_tuple__35 +#define __pyx_tuple__37 __pyx_mstate_global->__pyx_tuple__37 +#define __pyx_tuple__40 __pyx_mstate_global->__pyx_tuple__40 +#define __pyx_tuple__43 __pyx_mstate_global->__pyx_tuple__43 +#define __pyx_tuple__45 __pyx_mstate_global->__pyx_tuple__45 +#define __pyx_tuple__47 __pyx_mstate_global->__pyx_tuple__47 +#define __pyx_tuple__49 __pyx_mstate_global->__pyx_tuple__49 +#define __pyx_tuple__54 __pyx_mstate_global->__pyx_tuple__54 +#define __pyx_codeobj__22 __pyx_mstate_global->__pyx_codeobj__22 +#define __pyx_codeobj__24 __pyx_mstate_global->__pyx_codeobj__24 +#define __pyx_codeobj__26 __pyx_mstate_global->__pyx_codeobj__26 +#define __pyx_codeobj__28 __pyx_mstate_global->__pyx_codeobj__28 #define __pyx_codeobj__29 __pyx_mstate_global->__pyx_codeobj__29 #define __pyx_codeobj__30 __pyx_mstate_global->__pyx_codeobj__30 -#define __pyx_codeobj__31 __pyx_mstate_global->__pyx_codeobj__31 -#define __pyx_codeobj__33 __pyx_mstate_global->__pyx_codeobj__33 -#define __pyx_codeobj__35 __pyx_mstate_global->__pyx_codeobj__35 -#define __pyx_codeobj__37 __pyx_mstate_global->__pyx_codeobj__37 +#define __pyx_codeobj__32 __pyx_mstate_global->__pyx_codeobj__32 +#define __pyx_codeobj__34 __pyx_mstate_global->__pyx_codeobj__34 +#define __pyx_codeobj__36 __pyx_mstate_global->__pyx_codeobj__36 +#define __pyx_codeobj__38 __pyx_mstate_global->__pyx_codeobj__38 #define __pyx_codeobj__39 __pyx_mstate_global->__pyx_codeobj__39 -#define __pyx_codeobj__40 __pyx_mstate_global->__pyx_codeobj__40 +#define __pyx_codeobj__41 __pyx_mstate_global->__pyx_codeobj__41 #define __pyx_codeobj__42 __pyx_mstate_global->__pyx_codeobj__42 -#define __pyx_codeobj__43 __pyx_mstate_global->__pyx_codeobj__43 -#define __pyx_codeobj__45 __pyx_mstate_global->__pyx_codeobj__45 -#define __pyx_codeobj__47 __pyx_mstate_global->__pyx_codeobj__47 -#define __pyx_codeobj__49 __pyx_mstate_global->__pyx_codeobj__49 +#define __pyx_codeobj__44 __pyx_mstate_global->__pyx_codeobj__44 +#define __pyx_codeobj__46 __pyx_mstate_global->__pyx_codeobj__46 +#define __pyx_codeobj__48 __pyx_mstate_global->__pyx_codeobj__48 +#define __pyx_codeobj__50 __pyx_mstate_global->__pyx_codeobj__50 #define __pyx_codeobj__51 __pyx_mstate_global->__pyx_codeobj__51 #define __pyx_codeobj__52 __pyx_mstate_global->__pyx_codeobj__52 #define __pyx_codeobj__53 __pyx_mstate_global->__pyx_codeobj__53 -#define __pyx_codeobj__54 __pyx_mstate_global->__pyx_codeobj__54 +#define __pyx_codeobj__55 __pyx_mstate_global->__pyx_codeobj__55 #define __pyx_codeobj__56 __pyx_mstate_global->__pyx_codeobj__56 #define __pyx_codeobj__57 __pyx_mstate_global->__pyx_codeobj__57 -#define __pyx_codeobj__58 __pyx_mstate_global->__pyx_codeobj__58 /* #### Code section: module_code ### */ /* "string.from_py":13 - * - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ -static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v_o) { +static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(PyObject *__pyx_v_o) { Py_ssize_t __pyx_v_length; char const *__pyx_v_data; std::string __pyx_r; @@ -5024,8 +5029,8 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v int __pyx_clineno = 0; /* "string.from_py":14 - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 # <<<<<<<<<<<<<< * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) @@ -5033,11 +5038,11 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v __pyx_v_length = 0; /* "string.from_py":15 - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< * return string(data, length) - * + * */ __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == ((char const *)NULL))) __PYX_ERR(0, 15, __pyx_L1_error) __pyx_v_data = __pyx_t_1; @@ -5046,8 +5051,8 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) # <<<<<<<<<<<<<< - * - * + * + * */ try { __pyx_t_2 = std::string(__pyx_v_data, __pyx_v_length); @@ -5059,41 +5064,41 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v goto __pyx_L0; /* "string.from_py":13 - * - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ /* function exit code */ __pyx_L1_error:; - __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; return __pyx_r; } /* "string.to_py":31 - * - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":32 - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyUnicode_FromStringAndSize(const char*, size_t) @@ -5106,9 +5111,9 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin goto __pyx_L0; /* "string.to_py":31 - * - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -5116,7 +5121,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -5125,25 +5130,25 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin } /* "string.to_py":37 - * - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":38 - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyStr_FromStringAndSize(const char*, size_t) @@ -5156,9 +5161,9 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri goto __pyx_L0; /* "string.to_py":37 - * - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -5166,7 +5171,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -5175,25 +5180,25 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri } /* "string.to_py":43 - * - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":44 - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyBytes_FromStringAndSize(const char*, size_t) @@ -5206,9 +5211,9 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s goto __pyx_L0; /* "string.to_py":43 - * - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -5216,7 +5221,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -5225,25 +5230,25 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s } /* "string.to_py":49 - * - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":50 - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyByteArray_FromStringAndSize(const char*, size_t) @@ -5256,9 +5261,9 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string goto __pyx_L0; /* "string.to_py":49 - * - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -5266,7 +5271,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -5275,27 +5280,27 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string } /* "string.to_py":55 - * - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) - * + * */ -static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":56 - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< - * + * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyByteArray_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error) @@ -5305,17 +5310,17 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st goto __pyx_L0; /* "string.to_py":55 - * - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) - * + * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -5324,7 +5329,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st } /* "vector.to_py":66 - * + * * @cname("__pyx_convert_vector_to_py_std_3a__3a_string") * cdef object __pyx_convert_vector_to_py_std_3a__3a_string(const vector[X]& v): # <<<<<<<<<<<<<< * if v.size() > PY_SSIZE_T_MAX: @@ -5363,7 +5368,7 @@ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector PY_SSIZE_T_MAX: * raise MemoryError() # <<<<<<<<<<<<<< * v_size_signed = v.size() - * + * */ PyErr_NoMemory(); __PYX_ERR(0, 68, __pyx_L1_error) @@ -5380,16 +5385,16 @@ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector PY_SSIZE_T_MAX: * raise MemoryError() * v_size_signed = v.size() # <<<<<<<<<<<<<< - * + * * o = PyList_New(v_size_signed) */ __pyx_v_v_size_signed = ((Py_ssize_t)__pyx_v_v.size()); /* "vector.to_py":71 * v_size_signed = v.size() - * + * * o = PyList_New(v_size_signed) # <<<<<<<<<<<<<< - * + * * cdef Py_ssize_t i */ __pyx_t_2 = PyList_New(__pyx_v_v_size_signed); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error) @@ -5399,7 +5404,7 @@ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector PY_SSIZE_T_MAX: @@ -5473,11 +5478,11 @@ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector const &__pyx_v_p) { @@ -5495,8 +5500,8 @@ static PyObject *__pyx_convert_pair_to_py_int____int(std::pair const & * @cname("__pyx_convert_pair_to_py_int____int") * cdef object __pyx_convert_pair_to_py_int____int(const pair[X,Y]& p): * return p.first, p.second # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_p.first); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 191, __pyx_L1_error) @@ -5516,11 +5521,11 @@ static PyObject *__pyx_convert_pair_to_py_int____int(std::pair const & goto __pyx_L0; /* "pair.to_py":190 - * + * * @cname("__pyx_convert_pair_to_py_int____int") * cdef object __pyx_convert_pair_to_py_int____int(const pair[X,Y]& p): # <<<<<<<<<<<<<< * return p.first, p.second - * + * */ /* function exit code */ @@ -5538,10 +5543,10 @@ static PyObject *__pyx_convert_pair_to_py_int____int(std::pair const & /* "View.MemoryView":131 * cdef bint dtype_is_object - * + * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, # <<<<<<<<<<<<<< * mode="c", bint allocate_buffer=True): - * + * */ /* Python wrapper */ @@ -5656,10 +5661,10 @@ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, P } else { /* "View.MemoryView":132 - * + * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, * mode="c", bint allocate_buffer=True): # <<<<<<<<<<<<<< - * + * * cdef int idx */ __pyx_v_allocate_buffer = ((int)1); @@ -5689,10 +5694,10 @@ static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, P /* "View.MemoryView":131 * cdef bint dtype_is_object - * + * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, # <<<<<<<<<<<<<< * mode="c", bint allocate_buffer=True): - * + * */ /* function exit code */ @@ -5734,10 +5739,10 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":137 * cdef Py_ssize_t dim - * + * * self.ndim = len(shape) # <<<<<<<<<<<<<< * self.itemsize = itemsize - * + * */ if (unlikely(__pyx_v_shape == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); @@ -5747,29 +5752,29 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ __pyx_v_self->ndim = ((int)__pyx_t_1); /* "View.MemoryView":138 - * + * * self.ndim = len(shape) * self.itemsize = itemsize # <<<<<<<<<<<<<< - * + * * if not self.ndim: */ __pyx_v_self->itemsize = __pyx_v_itemsize; /* "View.MemoryView":140 * self.itemsize = itemsize - * + * * if not self.ndim: # <<<<<<<<<<<<<< * raise ValueError, "Empty shape tuple for cython.array" - * + * */ __pyx_t_2 = (!(__pyx_v_self->ndim != 0)); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":141 - * + * * if not self.ndim: * raise ValueError, "Empty shape tuple for cython.array" # <<<<<<<<<<<<<< - * + * * if itemsize <= 0: */ __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_Empty_shape_tuple_for_cython_arr, 0, 0); @@ -5777,28 +5782,28 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":140 * self.itemsize = itemsize - * + * * if not self.ndim: # <<<<<<<<<<<<<< * raise ValueError, "Empty shape tuple for cython.array" - * + * */ } /* "View.MemoryView":143 * raise ValueError, "Empty shape tuple for cython.array" - * + * * if itemsize <= 0: # <<<<<<<<<<<<<< * raise ValueError, "itemsize <= 0 for cython.array" - * + * */ __pyx_t_2 = (__pyx_v_itemsize <= 0); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":144 - * + * * if itemsize <= 0: * raise ValueError, "itemsize <= 0 for cython.array" # <<<<<<<<<<<<<< - * + * * if not isinstance(format, bytes): */ __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_itemsize_0_for_cython_array, 0, 0); @@ -5806,26 +5811,26 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":143 * raise ValueError, "Empty shape tuple for cython.array" - * + * * if itemsize <= 0: # <<<<<<<<<<<<<< * raise ValueError, "itemsize <= 0 for cython.array" - * + * */ } /* "View.MemoryView":146 * raise ValueError, "itemsize <= 0 for cython.array" - * + * * if not isinstance(format, bytes): # <<<<<<<<<<<<<< * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string */ - __pyx_t_2 = PyBytes_Check(__pyx_v_format); + __pyx_t_2 = PyBytes_Check(__pyx_v_format); __pyx_t_3 = (!__pyx_t_2); if (__pyx_t_3) { /* "View.MemoryView":147 - * + * * if not isinstance(format, bytes): * format = format.encode('ASCII') # <<<<<<<<<<<<<< * self._format = format # keep a reference to the byte string @@ -5860,7 +5865,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":146 * raise ValueError, "itemsize <= 0 for cython.array" - * + * * if not isinstance(format, bytes): # <<<<<<<<<<<<<< * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string @@ -5872,7 +5877,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string # <<<<<<<<<<<<<< * self.format = self._format - * + * */ if (!(likely(PyBytes_CheckExact(__pyx_v_format))||((__pyx_v_format) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_v_format))) __PYX_ERR(0, 148, __pyx_L1_error) __pyx_t_4 = __pyx_v_format; @@ -5887,8 +5892,8 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * format = format.encode('ASCII') * self._format = format # keep a reference to the byte string * self.format = self._format # <<<<<<<<<<<<<< - * - * + * + * */ if (unlikely(__pyx_v_self->_format == Py_None)) { PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found"); @@ -5898,55 +5903,55 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ __pyx_v_self->format = __pyx_t_8; /* "View.MemoryView":152 - * - * + * + * * self._shape = PyObject_Malloc(sizeof(Py_ssize_t)*self.ndim*2) # <<<<<<<<<<<<<< * self._strides = self._shape + self.ndim - * + * */ __pyx_v_self->_shape = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * __pyx_v_self->ndim) * 2))); /* "View.MemoryView":153 - * + * * self._shape = PyObject_Malloc(sizeof(Py_ssize_t)*self.ndim*2) * self._strides = self._shape + self.ndim # <<<<<<<<<<<<<< - * + * * if not self._shape: */ __pyx_v_self->_strides = (__pyx_v_self->_shape + __pyx_v_self->ndim); /* "View.MemoryView":155 * self._strides = self._shape + self.ndim - * + * * if not self._shape: # <<<<<<<<<<<<<< * raise MemoryError, "unable to allocate shape and strides." - * + * */ __pyx_t_3 = (!(__pyx_v_self->_shape != 0)); if (unlikely(__pyx_t_3)) { /* "View.MemoryView":156 - * + * * if not self._shape: * raise MemoryError, "unable to allocate shape and strides." # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_Raise(__pyx_builtin_MemoryError, __pyx_kp_s_unable_to_allocate_shape_and_str, 0, 0); __PYX_ERR(0, 156, __pyx_L1_error) /* "View.MemoryView":155 * self._strides = self._shape + self.ndim - * + * * if not self._shape: # <<<<<<<<<<<<<< * raise MemoryError, "unable to allocate shape and strides." - * + * */ } /* "View.MemoryView":159 - * - * + * + * * for idx, dim in enumerate(shape): # <<<<<<<<<<<<<< * if dim <= 0: * raise ValueError, f"Invalid shape in axis {idx}: {dim}." @@ -5975,7 +5980,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ __pyx_t_7 = (__pyx_t_7 + 1); /* "View.MemoryView":160 - * + * * for idx, dim in enumerate(shape): * if dim <= 0: # <<<<<<<<<<<<<< * raise ValueError, f"Invalid shape in axis {idx}: {dim}." @@ -5989,7 +5994,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * if dim <= 0: * raise ValueError, f"Invalid shape in axis {idx}: {dim}." # <<<<<<<<<<<<<< * self._shape[idx] = dim - * + * */ __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -6027,7 +6032,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ __PYX_ERR(0, 161, __pyx_L1_error) /* "View.MemoryView":160 - * + * * for idx, dim in enumerate(shape): * if dim <= 0: # <<<<<<<<<<<<<< * raise ValueError, f"Invalid shape in axis {idx}: {dim}." @@ -6039,14 +6044,14 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * if dim <= 0: * raise ValueError, f"Invalid shape in axis {idx}: {dim}." * self._shape[idx] = dim # <<<<<<<<<<<<<< - * + * * cdef char order */ (__pyx_v_self->_shape[__pyx_v_idx]) = __pyx_v_dim; /* "View.MemoryView":159 - * - * + * + * * for idx, dim in enumerate(shape): # <<<<<<<<<<<<<< * if dim <= 0: * raise ValueError, f"Invalid shape in axis {idx}: {dim}." @@ -6055,7 +6060,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "View.MemoryView":165 - * + * * cdef char order * if mode == 'c': # <<<<<<<<<<<<<< * order = b'C' @@ -6087,7 +6092,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ __pyx_v_self->mode = __pyx_n_u_c; /* "View.MemoryView":165 - * + * * cdef char order * if mode == 'c': # <<<<<<<<<<<<<< * order = b'C' @@ -6142,7 +6147,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * self.mode = u'fortran' * else: * raise ValueError, f"Invalid mode, expected 'c' or 'fortran', got {mode}" # <<<<<<<<<<<<<< - * + * * self.len = fill_contig_strides_array(self._shape, self._strides, itemsize, self.ndim, order) */ /*else*/ { @@ -6159,27 +6164,27 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":174 * raise ValueError, f"Invalid mode, expected 'c' or 'fortran', got {mode}" - * + * * self.len = fill_contig_strides_array(self._shape, self._strides, itemsize, self.ndim, order) # <<<<<<<<<<<<<< - * + * * self.free_data = allocate_buffer */ __pyx_v_self->len = __pyx_fill_contig_strides_array(__pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_itemsize, __pyx_v_self->ndim, __pyx_v_order); /* "View.MemoryView":176 * self.len = fill_contig_strides_array(self._shape, self._strides, itemsize, self.ndim, order) - * + * * self.free_data = allocate_buffer # <<<<<<<<<<<<<< * self.dtype_is_object = format == b'O' - * + * */ __pyx_v_self->free_data = __pyx_v_allocate_buffer; /* "View.MemoryView":177 - * + * * self.free_data = allocate_buffer * self.dtype_is_object = format == b'O' # <<<<<<<<<<<<<< - * + * * if allocate_buffer: */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_format, __pyx_n_b_O, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 177, __pyx_L1_error) @@ -6189,37 +6194,37 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":179 * self.dtype_is_object = format == b'O' - * + * * if allocate_buffer: # <<<<<<<<<<<<<< * _allocate_buffer(self) - * + * */ if (__pyx_v_allocate_buffer) { /* "View.MemoryView":180 - * + * * if allocate_buffer: * _allocate_buffer(self) # <<<<<<<<<<<<<< - * + * * @cname('getbuffer') */ __pyx_t_7 = __pyx_array_allocate_buffer(__pyx_v_self); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 180, __pyx_L1_error) /* "View.MemoryView":179 * self.dtype_is_object = format == b'O' - * + * * if allocate_buffer: # <<<<<<<<<<<<<< * _allocate_buffer(self) - * + * */ } /* "View.MemoryView":131 * cdef bint dtype_is_object - * + * * def __cinit__(array self, tuple shape, Py_ssize_t itemsize, format not None, # <<<<<<<<<<<<<< * mode="c", bint allocate_buffer=True): - * + * */ /* function exit code */ @@ -6239,7 +6244,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ /* "View.MemoryView":182 * _allocate_buffer(self) - * + * * @cname('getbuffer') # <<<<<<<<<<<<<< * def __getbuffer__(self, Py_buffer *info, int flags): * cdef int bufmode = -1 @@ -6400,7 +6405,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * raise ValueError, "Can only create a buffer that is contiguous in memory." * info.buf = self.data # <<<<<<<<<<<<<< * info.len = self.len - * + * */ __pyx_t_2 = __pyx_v_self->data; __pyx_v_info->buf = __pyx_t_2; @@ -6409,7 +6414,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * raise ValueError, "Can only create a buffer that is contiguous in memory." * info.buf = self.data * info.len = self.len # <<<<<<<<<<<<<< - * + * * if flags & PyBUF_STRIDES: */ __pyx_t_3 = __pyx_v_self->len; @@ -6417,7 +6422,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru /* "View.MemoryView":195 * info.len = self.len - * + * * if flags & PyBUF_STRIDES: # <<<<<<<<<<<<<< * info.ndim = self.ndim * info.shape = self._shape @@ -6426,7 +6431,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru if (__pyx_t_1) { /* "View.MemoryView":196 - * + * * if flags & PyBUF_STRIDES: * info.ndim = self.ndim # <<<<<<<<<<<<<< * info.shape = self._shape @@ -6457,7 +6462,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru /* "View.MemoryView":195 * info.len = self.len - * + * * if flags & PyBUF_STRIDES: # <<<<<<<<<<<<<< * info.ndim = self.ndim * info.shape = self._shape @@ -6480,7 +6485,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * info.ndim = 1 * info.shape = &self.len if flags & PyBUF_ND else NULL # <<<<<<<<<<<<<< * info.strides = NULL - * + * */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_ND) != 0); if (__pyx_t_1) { @@ -6494,7 +6499,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * info.ndim = 1 * info.shape = &self.len if flags & PyBUF_ND else NULL * info.strides = NULL # <<<<<<<<<<<<<< - * + * * info.suboffsets = NULL */ __pyx_v_info->strides = NULL; @@ -6503,7 +6508,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru /* "View.MemoryView":204 * info.strides = NULL - * + * * info.suboffsets = NULL # <<<<<<<<<<<<<< * info.itemsize = self.itemsize * info.readonly = 0 @@ -6511,7 +6516,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru __pyx_v_info->suboffsets = NULL; /* "View.MemoryView":205 - * + * * info.suboffsets = NULL * info.itemsize = self.itemsize # <<<<<<<<<<<<<< * info.readonly = 0 @@ -6534,7 +6539,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * info.readonly = 0 * info.format = self.format if flags & PyBUF_FORMAT else NULL # <<<<<<<<<<<<<< * info.obj = self - * + * */ __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0); if (__pyx_t_1) { @@ -6548,7 +6553,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * info.readonly = 0 * info.format = self.format if flags & PyBUF_FORMAT else NULL * info.obj = self # <<<<<<<<<<<<<< - * + * * def __dealloc__(array self): */ __Pyx_INCREF((PyObject *)__pyx_v_self); @@ -6559,7 +6564,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru /* "View.MemoryView":182 * _allocate_buffer(self) - * + * * @cname('getbuffer') # <<<<<<<<<<<<<< * def __getbuffer__(self, Py_buffer *info, int flags): * cdef int bufmode = -1 @@ -6588,7 +6593,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru /* "View.MemoryView":210 * info.obj = self - * + * * def __dealloc__(array self): # <<<<<<<<<<<<<< * if self.callback_free_data != NULL: * self.callback_free_data(self.data) @@ -6612,7 +6617,7 @@ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struc int __pyx_t_2; /* "View.MemoryView":211 - * + * * def __dealloc__(array self): * if self.callback_free_data != NULL: # <<<<<<<<<<<<<< * self.callback_free_data(self.data) @@ -6631,7 +6636,7 @@ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struc __pyx_v_self->callback_free_data(__pyx_v_self->data); /* "View.MemoryView":211 - * + * * def __dealloc__(array self): * if self.callback_free_data != NULL: # <<<<<<<<<<<<<< * self.callback_free_data(self.data) @@ -6689,7 +6694,7 @@ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struc * refcount_objects_in_slice(self.data, self._shape, self._strides, self.ndim, inc=False) * free(self.data) # <<<<<<<<<<<<<< * PyObject_Free(self._shape) - * + * */ free(__pyx_v_self->data); @@ -6707,14 +6712,14 @@ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struc * refcount_objects_in_slice(self.data, self._shape, self._strides, self.ndim, inc=False) * free(self.data) * PyObject_Free(self._shape) # <<<<<<<<<<<<<< - * + * * @property */ PyObject_Free(__pyx_v_self->_shape); /* "View.MemoryView":210 * info.obj = self - * + * * def __dealloc__(array self): # <<<<<<<<<<<<<< * if self.callback_free_data != NULL: * self.callback_free_data(self.data) @@ -6725,7 +6730,7 @@ static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struc /* "View.MemoryView":219 * PyObject_Free(self._shape) - * + * * @property # <<<<<<<<<<<<<< * def memview(self): * return self.get_memview() @@ -6759,7 +6764,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct _ * @property * def memview(self): * return self.get_memview() # <<<<<<<<<<<<<< - * + * * @cname('get_memview') */ __Pyx_XDECREF(__pyx_r); @@ -6771,7 +6776,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct _ /* "View.MemoryView":219 * PyObject_Free(self._shape) - * + * * @property # <<<<<<<<<<<<<< * def memview(self): * return self.get_memview() @@ -6789,7 +6794,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct _ } /* "View.MemoryView":224 - * + * * @cname('get_memview') * cdef get_memview(self): # <<<<<<<<<<<<<< * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE @@ -6813,7 +6818,7 @@ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) { * cdef get_memview(self): * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE # <<<<<<<<<<<<<< * return memoryview(self, flags, self.dtype_is_object) - * + * */ __pyx_v_flags = ((PyBUF_ANY_CONTIGUOUS | PyBUF_FORMAT) | PyBUF_WRITABLE); @@ -6821,7 +6826,7 @@ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) { * cdef get_memview(self): * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE * return memoryview(self, flags, self.dtype_is_object) # <<<<<<<<<<<<<< - * + * * def __len__(self): */ __Pyx_XDECREF(__pyx_r); @@ -6848,7 +6853,7 @@ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) { goto __pyx_L0; /* "View.MemoryView":224 - * + * * @cname('get_memview') * cdef get_memview(self): # <<<<<<<<<<<<<< * flags = PyBUF_ANY_CONTIGUOUS|PyBUF_FORMAT|PyBUF_WRITABLE @@ -6870,10 +6875,10 @@ static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self) { /* "View.MemoryView":228 * return memoryview(self, flags, self.dtype_is_object) - * + * * def __len__(self): # <<<<<<<<<<<<<< * return self._shape[0] - * + * */ /* Python wrapper */ @@ -6895,10 +6900,10 @@ static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(str Py_ssize_t __pyx_r; /* "View.MemoryView":229 - * + * * def __len__(self): * return self._shape[0] # <<<<<<<<<<<<<< - * + * * def __getattr__(self, attr): */ __pyx_r = (__pyx_v_self->_shape[0]); @@ -6906,10 +6911,10 @@ static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(str /* "View.MemoryView":228 * return memoryview(self, flags, self.dtype_is_object) - * + * * def __len__(self): # <<<<<<<<<<<<<< * return self._shape[0] - * + * */ /* function exit code */ @@ -6919,10 +6924,10 @@ static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(str /* "View.MemoryView":231 * return self._shape[0] - * + * * def __getattr__(self, attr): # <<<<<<<<<<<<<< * return getattr(self.memview, attr) - * + * */ /* Python wrapper */ @@ -6951,10 +6956,10 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__( __Pyx_RefNannySetupContext("__getattr__", 1); /* "View.MemoryView":232 - * + * * def __getattr__(self, attr): * return getattr(self.memview, attr) # <<<<<<<<<<<<<< - * + * * def __getitem__(self, item): */ __Pyx_XDECREF(__pyx_r); @@ -6969,10 +6974,10 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__( /* "View.MemoryView":231 * return self._shape[0] - * + * * def __getattr__(self, attr): # <<<<<<<<<<<<<< * return getattr(self.memview, attr) - * + * */ /* function exit code */ @@ -6989,10 +6994,10 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__( /* "View.MemoryView":234 * return getattr(self.memview, attr) - * + * * def __getitem__(self, item): # <<<<<<<<<<<<<< * return self.memview[item] - * + * */ /* Python wrapper */ @@ -7021,10 +7026,10 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__ __Pyx_RefNannySetupContext("__getitem__", 1); /* "View.MemoryView":235 - * + * * def __getitem__(self, item): * return self.memview[item] # <<<<<<<<<<<<<< - * + * * def __setitem__(self, item, value): */ __Pyx_XDECREF(__pyx_r); @@ -7039,10 +7044,10 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__ /* "View.MemoryView":234 * return getattr(self.memview, attr) - * + * * def __getitem__(self, item): # <<<<<<<<<<<<<< * return self.memview[item] - * + * */ /* function exit code */ @@ -7059,10 +7064,10 @@ static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__ /* "View.MemoryView":237 * return self.memview[item] - * + * * def __setitem__(self, item, value): # <<<<<<<<<<<<<< * self.memview[item] = value - * + * */ /* Python wrapper */ @@ -7090,11 +7095,11 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struc __Pyx_RefNannySetupContext("__setitem__", 1); /* "View.MemoryView":238 - * + * * def __setitem__(self, item, value): * self.memview[item] = value # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); @@ -7103,10 +7108,10 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struc /* "View.MemoryView":237 * return self.memview[item] - * + * * def __setitem__(self, item, value): # <<<<<<<<<<<<<< * self.memview[item] = value - * + * */ /* function exit code */ @@ -7128,14 +7133,14 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struc */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -7207,14 +7212,14 @@ static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __p */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -7334,11 +7339,11 @@ static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct } /* "View.MemoryView":248 - * + * * @cname("__pyx_array_allocate_buffer") * cdef int _allocate_buffer(array self) except -1: # <<<<<<<<<<<<<< - * - * + * + * */ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { @@ -7355,7 +7360,7 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { /* "View.MemoryView":254 * cdef PyObject **p - * + * * self.free_data = True # <<<<<<<<<<<<<< * self.data = malloc(self.len) * if not self.data: @@ -7363,7 +7368,7 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { __pyx_v_self->free_data = 1; /* "View.MemoryView":255 - * + * * self.free_data = True * self.data = malloc(self.len) # <<<<<<<<<<<<<< * if not self.data: @@ -7376,7 +7381,7 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { * self.data = malloc(self.len) * if not self.data: # <<<<<<<<<<<<<< * raise MemoryError, "unable to allocate array data." - * + * */ __pyx_t_1 = (!(__pyx_v_self->data != 0)); if (unlikely(__pyx_t_1)) { @@ -7385,7 +7390,7 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { * self.data = malloc(self.len) * if not self.data: * raise MemoryError, "unable to allocate array data." # <<<<<<<<<<<<<< - * + * * if self.dtype_is_object: */ __Pyx_Raise(__pyx_builtin_MemoryError, __pyx_kp_s_unable_to_allocate_array_data, 0, 0); @@ -7396,13 +7401,13 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { * self.data = malloc(self.len) * if not self.data: # <<<<<<<<<<<<<< * raise MemoryError, "unable to allocate array data." - * + * */ } /* "View.MemoryView":259 * raise MemoryError, "unable to allocate array data." - * + * * if self.dtype_is_object: # <<<<<<<<<<<<<< * p = self.data * for i in range(self.len // self.itemsize): @@ -7410,7 +7415,7 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { if (__pyx_v_self->dtype_is_object) { /* "View.MemoryView":260 - * + * * if self.dtype_is_object: * p = self.data # <<<<<<<<<<<<<< * for i in range(self.len // self.itemsize): @@ -7452,14 +7457,14 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { * p[i] = Py_None * Py_INCREF(Py_None) # <<<<<<<<<<<<<< * return 0 - * + * */ Py_INCREF(Py_None); } /* "View.MemoryView":259 * raise MemoryError, "unable to allocate array data." - * + * * if self.dtype_is_object: # <<<<<<<<<<<<<< * p = self.data * for i in range(self.len // self.itemsize): @@ -7470,18 +7475,18 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { * p[i] = Py_None * Py_INCREF(Py_None) * return 0 # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":248 - * + * * @cname("__pyx_array_allocate_buffer") * cdef int _allocate_buffer(array self) except -1: # <<<<<<<<<<<<<< - * - * + * + * */ /* function exit code */ @@ -7493,7 +7498,7 @@ static int __pyx_array_allocate_buffer(struct __pyx_array_obj *__pyx_v_self) { } /* "View.MemoryView":268 - * + * * @cname("__pyx_array_new") * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, char *c_mode, char *buf): # <<<<<<<<<<<<<< * cdef array result @@ -7518,7 +7523,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, char *c_mode, char *buf): * cdef array result * cdef str mode = "fortran" if c_mode[0] == b'f' else "c" # this often comes from a constant C string. # <<<<<<<<<<<<<< - * + * * if buf is NULL: */ __pyx_t_2 = ((__pyx_v_c_mode[0]) == 'f'); @@ -7534,7 +7539,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize /* "View.MemoryView":272 * cdef str mode = "fortran" if c_mode[0] == b'f' else "c" # this often comes from a constant C string. - * + * * if buf is NULL: # <<<<<<<<<<<<<< * result = array.__new__(array, shape, itemsize, format, mode) * else: @@ -7543,7 +7548,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize if (__pyx_t_2) { /* "View.MemoryView":273 - * + * * if buf is NULL: * result = array.__new__(array, shape, itemsize, format, mode) # <<<<<<<<<<<<<< * else: @@ -7575,7 +7580,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize /* "View.MemoryView":272 * cdef str mode = "fortran" if c_mode[0] == b'f' else "c" # this often comes from a constant C string. - * + * * if buf is NULL: # <<<<<<<<<<<<<< * result = array.__new__(array, shape, itemsize, format, mode) * else: @@ -7588,7 +7593,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize * else: * result = array.__new__(array, shape, itemsize, format, mode, allocate_buffer=False) # <<<<<<<<<<<<<< * result.data = buf - * + * */ /*else*/ { __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_itemsize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error) @@ -7623,7 +7628,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize * else: * result = array.__new__(array, shape, itemsize, format, mode, allocate_buffer=False) * result.data = buf # <<<<<<<<<<<<<< - * + * * return result */ __pyx_v_result->data = __pyx_v_buf; @@ -7632,10 +7637,10 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize /* "View.MemoryView":278 * result.data = buf - * + * * return result # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_XDECREF((PyObject *)__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_result); @@ -7643,7 +7648,7 @@ static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize goto __pyx_L0; /* "View.MemoryView":268 - * + * * @cname("__pyx_array_new") * cdef array array_cwrapper(tuple shape, Py_ssize_t itemsize, char *format, char *c_mode, char *buf): # <<<<<<<<<<<<<< * cdef array result @@ -7789,7 +7794,7 @@ static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struc * self.name = name * def __repr__(self): # <<<<<<<<<<<<<< * return self.name - * + * */ /* Python wrapper */ @@ -7816,7 +7821,7 @@ static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr_ * self.name = name * def __repr__(self): * return self.name # <<<<<<<<<<<<<< - * + * * cdef generic = Enum("") */ __Pyx_XDECREF(__pyx_r); @@ -7829,7 +7834,7 @@ static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr_ * self.name = name * def __repr__(self): # <<<<<<<<<<<<<< * return self.name - * + * */ /* function exit code */ @@ -7846,14 +7851,14 @@ static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr_ */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -8105,14 +8110,14 @@ static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_Memvi */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -8240,7 +8245,7 @@ static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_Me /* "View.MemoryView":349 * cdef __Pyx_TypeInfo *typeinfo - * + * * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): # <<<<<<<<<<<<<< * self.obj = obj * self.flags = flags @@ -8373,7 +8378,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ __Pyx_RefNannySetupContext("__cinit__", 1); /* "View.MemoryView":350 - * + * * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): * self.obj = obj # <<<<<<<<<<<<<< * self.flags = flags @@ -8436,7 +8441,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * if self.view.obj == NULL: * (<__pyx_buffer *> &self.view).obj = Py_None # <<<<<<<<<<<<<< * Py_INCREF(Py_None) - * + * */ ((Py_buffer *)(&__pyx_v_self->view))->obj = Py_None; @@ -8444,7 +8449,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * if self.view.obj == NULL: * (<__pyx_buffer *> &self.view).obj = Py_None * Py_INCREF(Py_None) # <<<<<<<<<<<<<< - * + * * if not __PYX_CYTHON_ATOMICS_ENABLED(): */ Py_INCREF(Py_None); @@ -8469,7 +8474,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ /* "View.MemoryView":358 * Py_INCREF(Py_None) - * + * * if not __PYX_CYTHON_ATOMICS_ENABLED(): # <<<<<<<<<<<<<< * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < 8: @@ -8538,7 +8543,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * self.lock = PyThread_allocate_lock() * if self.lock is NULL: # <<<<<<<<<<<<<< * raise MemoryError - * + * */ __pyx_t_1 = (__pyx_v_self->lock == NULL); if (unlikely(__pyx_t_1)) { @@ -8547,7 +8552,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * self.lock = PyThread_allocate_lock() * if self.lock is NULL: * raise MemoryError # <<<<<<<<<<<<<< - * + * * if flags & PyBUF_FORMAT: */ PyErr_NoMemory(); __PYX_ERR(0, 366, __pyx_L1_error) @@ -8557,7 +8562,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * self.lock = PyThread_allocate_lock() * if self.lock is NULL: # <<<<<<<<<<<<<< * raise MemoryError - * + * */ } @@ -8572,7 +8577,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ /* "View.MemoryView":358 * Py_INCREF(Py_None) - * + * * if not __PYX_CYTHON_ATOMICS_ENABLED(): # <<<<<<<<<<<<<< * global __pyx_memoryview_thread_locks_used * if __pyx_memoryview_thread_locks_used < 8: @@ -8581,7 +8586,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ /* "View.MemoryView":368 * raise MemoryError - * + * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') * else: @@ -8590,7 +8595,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ if (__pyx_t_1) { /* "View.MemoryView":369 - * + * * if flags & PyBUF_FORMAT: * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') # <<<<<<<<<<<<<< * else: @@ -8609,7 +8614,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ /* "View.MemoryView":368 * raise MemoryError - * + * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') * else: @@ -8621,7 +8626,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * self.dtype_is_object = (self.view.format[0] == b'O' and self.view.format[1] == b'\0') * else: * self.dtype_is_object = dtype_is_object # <<<<<<<<<<<<<< - * + * * assert (&self.acquisition_count) % sizeof(__pyx_atomic_int_type) == 0 */ /*else*/ { @@ -8631,10 +8636,10 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ /* "View.MemoryView":373 * self.dtype_is_object = dtype_is_object - * + * * assert (&self.acquisition_count) % sizeof(__pyx_atomic_int_type) == 0 # <<<<<<<<<<<<<< * self.typeinfo = NULL - * + * */ #ifndef CYTHON_WITHOUT_ASSERTIONS if (unlikely(__pyx_assertions_enabled())) { @@ -8655,17 +8660,17 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ #endif /* "View.MemoryView":374 - * + * * assert (&self.acquisition_count) % sizeof(__pyx_atomic_int_type) == 0 * self.typeinfo = NULL # <<<<<<<<<<<<<< - * + * * def __dealloc__(memoryview self): */ __pyx_v_self->typeinfo = NULL; /* "View.MemoryView":349 * cdef __Pyx_TypeInfo *typeinfo - * + * * def __cinit__(memoryview self, object obj, int flags, bint dtype_is_object=False): # <<<<<<<<<<<<<< * self.obj = obj * self.flags = flags @@ -8684,7 +8689,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ /* "View.MemoryView":376 * self.typeinfo = NULL - * + * * def __dealloc__(memoryview self): # <<<<<<<<<<<<<< * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) @@ -8713,7 +8718,7 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal PyThread_type_lock __pyx_t_6; /* "View.MemoryView":377 - * + * * def __dealloc__(memoryview self): * if self.obj is not None: # <<<<<<<<<<<<<< * __Pyx_ReleaseBuffer(&self.view) @@ -8727,12 +8732,12 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) # <<<<<<<<<<<<<< * elif (<__pyx_buffer *> &self.view).obj == Py_None: - * + * */ __Pyx_ReleaseBuffer((&__pyx_v_self->view)); /* "View.MemoryView":377 - * + * * def __dealloc__(memoryview self): * if self.obj is not None: # <<<<<<<<<<<<<< * __Pyx_ReleaseBuffer(&self.view) @@ -8745,7 +8750,7 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) * elif (<__pyx_buffer *> &self.view).obj == Py_None: # <<<<<<<<<<<<<< - * + * * (<__pyx_buffer *> &self.view).obj = NULL */ __pyx_t_1 = (((Py_buffer *)(&__pyx_v_self->view))->obj == Py_None); @@ -8753,18 +8758,18 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal /* "View.MemoryView":381 * elif (<__pyx_buffer *> &self.view).obj == Py_None: - * + * * (<__pyx_buffer *> &self.view).obj = NULL # <<<<<<<<<<<<<< * Py_DECREF(Py_None) - * + * */ ((Py_buffer *)(&__pyx_v_self->view))->obj = NULL; /* "View.MemoryView":382 - * + * * (<__pyx_buffer *> &self.view).obj = NULL * Py_DECREF(Py_None) # <<<<<<<<<<<<<< - * + * * cdef int i */ Py_DECREF(Py_None); @@ -8773,7 +8778,7 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) * elif (<__pyx_buffer *> &self.view).obj == Py_None: # <<<<<<<<<<<<<< - * + * * (<__pyx_buffer *> &self.view).obj = NULL */ } @@ -8883,7 +8888,7 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal * break * else: * PyThread_free_lock(self.lock) # <<<<<<<<<<<<<< - * + * * cdef char *get_item_pointer(memoryview self, object index) except NULL: */ PyThread_free_lock(__pyx_v_self->lock); @@ -8901,7 +8906,7 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal /* "View.MemoryView":376 * self.typeinfo = NULL - * + * * def __dealloc__(memoryview self): # <<<<<<<<<<<<<< * if self.obj is not None: * __Pyx_ReleaseBuffer(&self.view) @@ -8912,7 +8917,7 @@ static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__deal /* "View.MemoryView":397 * PyThread_free_lock(self.lock) - * + * * cdef char *get_item_pointer(memoryview self, object index) except NULL: # <<<<<<<<<<<<<< * cdef Py_ssize_t dim * cdef char *itemp = self.view.buf @@ -8940,17 +8945,17 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py * cdef char *get_item_pointer(memoryview self, object index) except NULL: * cdef Py_ssize_t dim * cdef char *itemp = self.view.buf # <<<<<<<<<<<<<< - * + * * for dim, idx in enumerate(index): */ __pyx_v_itemp = ((char *)__pyx_v_self->view.buf); /* "View.MemoryView":401 * cdef char *itemp = self.view.buf - * + * * for dim, idx in enumerate(index): # <<<<<<<<<<<<<< * itemp = pybuffer_index(&self.view, itemp, idx, dim) - * + * */ __pyx_t_1 = 0; if (likely(PyList_CheckExact(__pyx_v_index)) || PyTuple_CheckExact(__pyx_v_index)) { @@ -9011,10 +9016,10 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py __pyx_t_1 = (__pyx_t_1 + 1); /* "View.MemoryView":402 - * + * * for dim, idx in enumerate(index): * itemp = pybuffer_index(&self.view, itemp, idx, dim) # <<<<<<<<<<<<<< - * + * * return itemp */ __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 402, __pyx_L1_error) @@ -9023,27 +9028,27 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py /* "View.MemoryView":401 * cdef char *itemp = self.view.buf - * + * * for dim, idx in enumerate(index): # <<<<<<<<<<<<<< * itemp = pybuffer_index(&self.view, itemp, idx, dim) - * + * */ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "View.MemoryView":404 * itemp = pybuffer_index(&self.view, itemp, idx, dim) - * + * * return itemp # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = __pyx_v_itemp; goto __pyx_L0; /* "View.MemoryView":397 * PyThread_free_lock(self.lock) - * + * * cdef char *get_item_pointer(memoryview self, object index) except NULL: # <<<<<<<<<<<<<< * cdef Py_ssize_t dim * cdef char *itemp = self.view.buf @@ -9062,8 +9067,8 @@ static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__py } /* "View.MemoryView":407 - * - * + * + * * def __getitem__(memoryview self, object index): # <<<<<<<<<<<<<< * if index is Ellipsis: * return self @@ -9101,11 +9106,11 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ __Pyx_RefNannySetupContext("__getitem__", 1); /* "View.MemoryView":408 - * + * * def __getitem__(memoryview self, object index): * if index is Ellipsis: # <<<<<<<<<<<<<< * return self - * + * */ __pyx_t_1 = (__pyx_v_index == __pyx_builtin_Ellipsis); if (__pyx_t_1) { @@ -9114,7 +9119,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ * def __getitem__(memoryview self, object index): * if index is Ellipsis: * return self # <<<<<<<<<<<<<< - * + * * have_slices, indices = _unellipsify(index, self.view.ndim) */ __Pyx_XDECREF(__pyx_r); @@ -9123,19 +9128,19 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ goto __pyx_L0; /* "View.MemoryView":408 - * + * * def __getitem__(memoryview self, object index): * if index is Ellipsis: # <<<<<<<<<<<<<< * return self - * + * */ } /* "View.MemoryView":411 * return self - * + * * have_slices, indices = _unellipsify(index, self.view.ndim) # <<<<<<<<<<<<<< - * + * * cdef char *itemp */ __pyx_t_2 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 411, __pyx_L1_error) @@ -9149,8 +9154,8 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ __PYX_ERR(0, 411, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); - __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); #else @@ -9169,7 +9174,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ __pyx_t_4 = 0; /* "View.MemoryView":414 - * + * * cdef char *itemp * if have_slices: # <<<<<<<<<<<<<< * return memview_slice(self, indices) @@ -9193,7 +9198,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ goto __pyx_L0; /* "View.MemoryView":414 - * + * * cdef char *itemp * if have_slices: # <<<<<<<<<<<<<< * return memview_slice(self, indices) @@ -9206,7 +9211,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ * else: * itemp = self.get_item_pointer(indices) # <<<<<<<<<<<<<< * return self.convert_item_to_object(itemp) - * + * */ /*else*/ { __pyx_t_5 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_indices); if (unlikely(__pyx_t_5 == ((char *)NULL))) __PYX_ERR(0, 417, __pyx_L1_error) @@ -9216,7 +9221,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ * else: * itemp = self.get_item_pointer(indices) * return self.convert_item_to_object(itemp) # <<<<<<<<<<<<<< - * + * * def __setitem__(memoryview self, object index, object value): */ __Pyx_XDECREF(__pyx_r); @@ -9228,8 +9233,8 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ } /* "View.MemoryView":407 - * - * + * + * * def __getitem__(memoryview self, object index): # <<<<<<<<<<<<<< * if index is Ellipsis: * return self @@ -9252,7 +9257,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4_ /* "View.MemoryView":420 * return self.convert_item_to_object(itemp) - * + * * def __setitem__(memoryview self, object index, object value): # <<<<<<<<<<<<<< * if self.view.readonly: * raise TypeError, "Cannot assign to read-only memoryview" @@ -9289,11 +9294,11 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit __Pyx_INCREF(__pyx_v_index); /* "View.MemoryView":421 - * + * * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: # <<<<<<<<<<<<<< * raise TypeError, "Cannot assign to read-only memoryview" - * + * */ if (unlikely(__pyx_v_self->view.readonly)) { @@ -9301,26 +9306,26 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: * raise TypeError, "Cannot assign to read-only memoryview" # <<<<<<<<<<<<<< - * + * * have_slices, index = _unellipsify(index, self.view.ndim) */ __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_s_Cannot_assign_to_read_only_memor, 0, 0); __PYX_ERR(0, 422, __pyx_L1_error) /* "View.MemoryView":421 - * + * * def __setitem__(memoryview self, object index, object value): * if self.view.readonly: # <<<<<<<<<<<<<< * raise TypeError, "Cannot assign to read-only memoryview" - * + * */ } /* "View.MemoryView":424 * raise TypeError, "Cannot assign to read-only memoryview" - * + * * have_slices, index = _unellipsify(index, self.view.ndim) # <<<<<<<<<<<<<< - * + * * if have_slices: */ __pyx_t_1 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 424, __pyx_L1_error) @@ -9334,8 +9339,8 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit __PYX_ERR(0, 424, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); #else @@ -9355,7 +9360,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit /* "View.MemoryView":426 * have_slices, index = _unellipsify(index, self.view.ndim) - * + * * if have_slices: # <<<<<<<<<<<<<< * obj = self.is_slice(value) * if obj: @@ -9364,7 +9369,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit if (__pyx_t_4) { /* "View.MemoryView":427 - * + * * if have_slices: * obj = self.is_slice(value) # <<<<<<<<<<<<<< * if obj: @@ -9429,7 +9434,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit /* "View.MemoryView":426 * have_slices, index = _unellipsify(index, self.view.ndim) - * + * * if have_slices: # <<<<<<<<<<<<<< * obj = self.is_slice(value) * if obj: @@ -9441,7 +9446,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit * self.setitem_slice_assign_scalar(self[index], value) * else: * self.setitem_indexed(index, value) # <<<<<<<<<<<<<< - * + * * cdef is_slice(self, obj): */ /*else*/ { @@ -9453,7 +9458,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit /* "View.MemoryView":420 * return self.convert_item_to_object(itemp) - * + * * def __setitem__(memoryview self, object index, object value): # <<<<<<<<<<<<<< * if self.view.readonly: * raise TypeError, "Cannot assign to read-only memoryview" @@ -9478,7 +9483,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit /* "View.MemoryView":435 * self.setitem_indexed(index, value) - * + * * cdef is_slice(self, obj): # <<<<<<<<<<<<<< * if not isinstance(obj, memoryview): * try: @@ -9503,13 +9508,13 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ __Pyx_INCREF(__pyx_v_obj); /* "View.MemoryView":436 - * + * * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): # <<<<<<<<<<<<<< * try: * obj = memoryview(obj, self.flags & ~PyBUF_WRITABLE | PyBUF_ANY_CONTIGUOUS, */ - __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_memoryview_type); + __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_memoryview_type); __pyx_t_2 = (!__pyx_t_1); if (__pyx_t_2) { @@ -9595,7 +9600,7 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ * self.dtype_is_object) * except TypeError: # <<<<<<<<<<<<<< * return None - * + * */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError); if (__pyx_t_9) { @@ -9609,7 +9614,7 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ * self.dtype_is_object) * except TypeError: * return None # <<<<<<<<<<<<<< - * + * * return obj */ __Pyx_XDECREF(__pyx_r); @@ -9644,7 +9649,7 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ } /* "View.MemoryView":436 - * + * * cdef is_slice(self, obj): * if not isinstance(obj, memoryview): # <<<<<<<<<<<<<< * try: @@ -9654,9 +9659,9 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ /* "View.MemoryView":443 * return None - * + * * return obj # <<<<<<<<<<<<<< - * + * * cdef setitem_slice_assignment(self, dst, src): */ __Pyx_XDECREF(__pyx_r); @@ -9666,7 +9671,7 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ /* "View.MemoryView":435 * self.setitem_indexed(index, value) - * + * * cdef is_slice(self, obj): # <<<<<<<<<<<<<< * if not isinstance(obj, memoryview): * try: @@ -9688,7 +9693,7 @@ static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_ /* "View.MemoryView":445 * return obj - * + * * cdef setitem_slice_assignment(self, dst, src): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice dst_slice * cdef __Pyx_memviewslice src_slice @@ -9716,7 +9721,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryvi * cdef __Pyx_memviewslice src_slice * cdef __Pyx_memviewslice msrc = get_slice_from_memview(src, &src_slice)[0] # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice mdst = get_slice_from_memview(dst, &dst_slice)[0] - * + * */ if (!(likely(((__pyx_v_src) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_src, __pyx_memoryview_type))))) __PYX_ERR(0, 448, __pyx_L1_error) __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(((struct __pyx_memoryview_obj *)__pyx_v_src), (&__pyx_v_src_slice)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(0, 448, __pyx_L1_error) @@ -9726,7 +9731,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryvi * cdef __Pyx_memviewslice src_slice * cdef __Pyx_memviewslice msrc = get_slice_from_memview(src, &src_slice)[0] * cdef __Pyx_memviewslice mdst = get_slice_from_memview(dst, &dst_slice)[0] # <<<<<<<<<<<<<< - * + * * memoryview_copy_contents(msrc, mdst, src.ndim, dst.ndim, self.dtype_is_object) */ if (!(likely(((__pyx_v_dst) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dst, __pyx_memoryview_type))))) __PYX_ERR(0, 449, __pyx_L1_error) @@ -9735,9 +9740,9 @@ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryvi /* "View.MemoryView":451 * cdef __Pyx_memviewslice mdst = get_slice_from_memview(dst, &dst_slice)[0] - * + * * memoryview_copy_contents(msrc, mdst, src.ndim, dst.ndim, self.dtype_is_object) # <<<<<<<<<<<<<< - * + * * cdef setitem_slice_assign_scalar(self, memoryview dst, value): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_src, __pyx_n_s_ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 451, __pyx_L1_error) @@ -9752,7 +9757,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryvi /* "View.MemoryView":445 * return obj - * + * * cdef setitem_slice_assignment(self, dst, src): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice dst_slice * cdef __Pyx_memviewslice src_slice @@ -9773,7 +9778,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryvi /* "View.MemoryView":453 * memoryview_copy_contents(msrc, mdst, src.ndim, dst.ndim, self.dtype_is_object) - * + * * cdef setitem_slice_assign_scalar(self, memoryview dst, value): # <<<<<<<<<<<<<< * cdef int array[128] * cdef void *tmp = NULL @@ -9809,7 +9814,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor * cdef int array[128] * cdef void *tmp = NULL # <<<<<<<<<<<<<< * cdef void *item - * + * */ __pyx_v_tmp = NULL; @@ -9817,7 +9822,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor * cdef __Pyx_memviewslice *dst_slice * cdef __Pyx_memviewslice tmp_slice * dst_slice = get_slice_from_memview(dst, &tmp_slice) # <<<<<<<<<<<<<< - * + * * if self.view.itemsize > sizeof(array): */ __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_dst, (&__pyx_v_tmp_slice)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(0, 460, __pyx_L1_error) @@ -9825,7 +9830,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor /* "View.MemoryView":462 * dst_slice = get_slice_from_memview(dst, &tmp_slice) - * + * * if self.view.itemsize > sizeof(array): # <<<<<<<<<<<<<< * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: @@ -9834,7 +9839,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor if (__pyx_t_2) { /* "View.MemoryView":463 - * + * * if self.view.itemsize > sizeof(array): * tmp = PyMem_Malloc(self.view.itemsize) # <<<<<<<<<<<<<< * if tmp == NULL: @@ -9881,7 +9886,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor /* "View.MemoryView":462 * dst_slice = get_slice_from_memview(dst, &tmp_slice) - * + * * if self.view.itemsize > sizeof(array): # <<<<<<<<<<<<<< * tmp = PyMem_Malloc(self.view.itemsize) * if tmp == NULL: @@ -9893,7 +9898,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor * item = tmp * else: * item = array # <<<<<<<<<<<<<< - * + * * try: */ /*else*/ { @@ -9903,7 +9908,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor /* "View.MemoryView":470 * item = array - * + * * try: # <<<<<<<<<<<<<< * if self.dtype_is_object: * ( item)[0] = value @@ -9911,7 +9916,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor /*try:*/ { /* "View.MemoryView":471 - * + * * try: * if self.dtype_is_object: # <<<<<<<<<<<<<< * ( item)[0] = value @@ -9929,7 +9934,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor (((PyObject **)__pyx_v_item)[0]) = ((PyObject *)__pyx_v_value); /* "View.MemoryView":471 - * + * * try: * if self.dtype_is_object: # <<<<<<<<<<<<<< * ( item)[0] = value @@ -9942,8 +9947,8 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor * ( item)[0] = value * else: * self.assign_item_from_object( item, value) # <<<<<<<<<<<<<< - * - * + * + * */ /*else*/ { __pyx_t_3 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, ((char *)__pyx_v_item), __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 474, __pyx_L6_error) @@ -9953,8 +9958,8 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor __pyx_L8:; /* "View.MemoryView":478 - * - * + * + * * if self.view.suboffsets != NULL: # <<<<<<<<<<<<<< * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, @@ -9963,7 +9968,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor if (__pyx_t_2) { /* "View.MemoryView":479 - * + * * if self.view.suboffsets != NULL: * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) # <<<<<<<<<<<<<< * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, @@ -9972,8 +9977,8 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor __pyx_t_4 = assert_direct_dimensions(__pyx_v_self->view.suboffsets, __pyx_v_self->view.ndim); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 479, __pyx_L6_error) /* "View.MemoryView":478 - * - * + * + * * if self.view.suboffsets != NULL: # <<<<<<<<<<<<<< * assert_direct_dimensions(self.view.suboffsets, self.view.ndim) * slice_assign_scalar(dst_slice, dst.view.ndim, self.view.itemsize, @@ -9994,7 +9999,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor * item, self.dtype_is_object) * finally: * PyMem_Free(tmp) # <<<<<<<<<<<<<< - * + * * cdef setitem_indexed(self, index, value): */ /*finally:*/ { @@ -10039,7 +10044,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor /* "View.MemoryView":453 * memoryview_copy_contents(msrc, mdst, src.ndim, dst.ndim, self.dtype_is_object) - * + * * cdef setitem_slice_assign_scalar(self, memoryview dst, value): # <<<<<<<<<<<<<< * cdef int array[128] * cdef void *tmp = NULL @@ -10060,7 +10065,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor /* "View.MemoryView":485 * PyMem_Free(tmp) - * + * * cdef setitem_indexed(self, index, value): # <<<<<<<<<<<<<< * cdef char *itemp = self.get_item_pointer(index) * self.assign_item_from_object(itemp, value) @@ -10078,11 +10083,11 @@ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *_ __Pyx_RefNannySetupContext("setitem_indexed", 1); /* "View.MemoryView":486 - * + * * cdef setitem_indexed(self, index, value): * cdef char *itemp = self.get_item_pointer(index) # <<<<<<<<<<<<<< * self.assign_item_from_object(itemp, value) - * + * */ __pyx_t_1 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_index); if (unlikely(__pyx_t_1 == ((char *)NULL))) __PYX_ERR(0, 486, __pyx_L1_error) __pyx_v_itemp = __pyx_t_1; @@ -10091,7 +10096,7 @@ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *_ * cdef setitem_indexed(self, index, value): * cdef char *itemp = self.get_item_pointer(index) * self.assign_item_from_object(itemp, value) # <<<<<<<<<<<<<< - * + * * cdef convert_item_to_object(self, char *itemp): */ __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, __pyx_v_itemp, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error) @@ -10100,7 +10105,7 @@ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *_ /* "View.MemoryView":485 * PyMem_Free(tmp) - * + * * cdef setitem_indexed(self, index, value): # <<<<<<<<<<<<<< * cdef char *itemp = self.get_item_pointer(index) * self.assign_item_from_object(itemp, value) @@ -10121,7 +10126,7 @@ static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *_ /* "View.MemoryView":489 * self.assign_item_from_object(itemp, value) - * + * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" @@ -10153,7 +10158,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview * know how to convert the type""" * import struct # <<<<<<<<<<<<<< * cdef bytes bytesitem - * + * */ __pyx_t_1 = __Pyx_ImportDottedModule(__pyx_n_s_struct, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); @@ -10162,7 +10167,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview /* "View.MemoryView":495 * cdef bytes bytesitem - * + * * bytesitem = itemp[:self.view.itemsize] # <<<<<<<<<<<<<< * try: * result = struct.unpack(self.view.format, bytesitem) @@ -10173,7 +10178,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview __pyx_t_1 = 0; /* "View.MemoryView":496 - * + * * bytesitem = itemp[:self.view.itemsize] * try: # <<<<<<<<<<<<<< * result = struct.unpack(self.view.format, bytesitem) @@ -10226,7 +10231,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview __pyx_t_1 = 0; /* "View.MemoryView":496 - * + * * bytesitem = itemp[:self.view.itemsize] * try: # <<<<<<<<<<<<<< * result = struct.unpack(self.view.format, bytesitem) @@ -10251,7 +10256,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview * if len(self.view.format) == 1: * return result[0] # <<<<<<<<<<<<<< * return result - * + * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_result, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 502, __pyx_L5_except_error) @@ -10273,7 +10278,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview * if len(self.view.format) == 1: * return result[0] * return result # <<<<<<<<<<<<<< - * + * * cdef assign_item_from_object(self, char *itemp, object value): */ __Pyx_XDECREF(__pyx_r); @@ -10321,7 +10326,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview goto __pyx_L5_except_error; /* "View.MemoryView":496 - * + * * bytesitem = itemp[:self.view.itemsize] * try: # <<<<<<<<<<<<<< * result = struct.unpack(self.view.format, bytesitem) @@ -10343,7 +10348,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview /* "View.MemoryView":489 * self.assign_item_from_object(itemp, value) - * + * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" @@ -10368,7 +10373,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview /* "View.MemoryView":505 * return result - * + * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" @@ -10412,16 +10417,16 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie /* "View.MemoryView":513 * cdef Py_ssize_t i - * + * * if isinstance(value, tuple): # <<<<<<<<<<<<<< * bytesvalue = struct.pack(self.view.format, *value) * else: */ - __pyx_t_2 = PyTuple_Check(__pyx_v_value); + __pyx_t_2 = PyTuple_Check(__pyx_v_value); if (__pyx_t_2) { /* "View.MemoryView":514 - * + * * if isinstance(value, tuple): * bytesvalue = struct.pack(self.view.format, *value) # <<<<<<<<<<<<<< * else: @@ -10452,7 +10457,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie /* "View.MemoryView":513 * cdef Py_ssize_t i - * + * * if isinstance(value, tuple): # <<<<<<<<<<<<<< * bytesvalue = struct.pack(self.view.format, *value) * else: @@ -10464,7 +10469,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie * bytesvalue = struct.pack(self.view.format, *value) * else: * bytesvalue = struct.pack(self.view.format, value) # <<<<<<<<<<<<<< - * + * * for i, c in enumerate(bytesvalue): */ /*else*/ { @@ -10503,10 +10508,10 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie /* "View.MemoryView":518 * bytesvalue = struct.pack(self.view.format, value) - * + * * for i, c in enumerate(bytesvalue): # <<<<<<<<<<<<<< * itemp[i] = c - * + * */ __pyx_t_7 = 0; if (unlikely(__pyx_v_bytesvalue == Py_None)) { @@ -10522,28 +10527,28 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie __pyx_v_c = (__pyx_t_9[0]); /* "View.MemoryView":519 - * + * * for i, c in enumerate(bytesvalue): * itemp[i] = c # <<<<<<<<<<<<<< - * + * * @cname('getbuffer') */ __pyx_v_i = __pyx_t_7; /* "View.MemoryView":518 * bytesvalue = struct.pack(self.view.format, value) - * + * * for i, c in enumerate(bytesvalue): # <<<<<<<<<<<<<< * itemp[i] = c - * + * */ __pyx_t_7 = (__pyx_t_7 + 1); /* "View.MemoryView":519 - * + * * for i, c in enumerate(bytesvalue): * itemp[i] = c # <<<<<<<<<<<<<< - * + * * @cname('getbuffer') */ (__pyx_v_itemp[__pyx_v_i]) = __pyx_v_c; @@ -10552,7 +10557,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie /* "View.MemoryView":505 * return result - * + * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * """Only used if instantiated manually by the user, or if Cython doesn't * know how to convert the type""" @@ -10579,7 +10584,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie /* "View.MemoryView":521 * itemp[i] = c - * + * * @cname('getbuffer') # <<<<<<<<<<<<<< * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: @@ -10626,7 +10631,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: # <<<<<<<<<<<<<< * raise ValueError, "Cannot create writable memory view from read-only memoryview" - * + * */ __pyx_t_2 = ((__pyx_v_flags & PyBUF_WRITABLE) != 0); if (__pyx_t_2) { @@ -10642,7 +10647,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: * raise ValueError, "Cannot create writable memory view from read-only memoryview" # <<<<<<<<<<<<<< - * + * * if flags & PyBUF_ND: */ __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_Cannot_create_writable_memory_vi, 0, 0); @@ -10653,13 +10658,13 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: # <<<<<<<<<<<<<< * raise ValueError, "Cannot create writable memory view from read-only memoryview" - * + * */ } /* "View.MemoryView":526 * raise ValueError, "Cannot create writable memory view from read-only memoryview" - * + * * if flags & PyBUF_ND: # <<<<<<<<<<<<<< * info.shape = self.view.shape * else: @@ -10668,7 +10673,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu if (__pyx_t_1) { /* "View.MemoryView":527 - * + * * if flags & PyBUF_ND: * info.shape = self.view.shape # <<<<<<<<<<<<<< * else: @@ -10679,7 +10684,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":526 * raise ValueError, "Cannot create writable memory view from read-only memoryview" - * + * * if flags & PyBUF_ND: # <<<<<<<<<<<<<< * info.shape = self.view.shape * else: @@ -10691,7 +10696,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * info.shape = self.view.shape * else: * info.shape = NULL # <<<<<<<<<<<<<< - * + * * if flags & PyBUF_STRIDES: */ /*else*/ { @@ -10701,7 +10706,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":531 * info.shape = NULL - * + * * if flags & PyBUF_STRIDES: # <<<<<<<<<<<<<< * info.strides = self.view.strides * else: @@ -10710,7 +10715,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu if (__pyx_t_1) { /* "View.MemoryView":532 - * + * * if flags & PyBUF_STRIDES: * info.strides = self.view.strides # <<<<<<<<<<<<<< * else: @@ -10721,7 +10726,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":531 * info.shape = NULL - * + * * if flags & PyBUF_STRIDES: # <<<<<<<<<<<<<< * info.strides = self.view.strides * else: @@ -10733,7 +10738,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * info.strides = self.view.strides * else: * info.strides = NULL # <<<<<<<<<<<<<< - * + * * if flags & PyBUF_INDIRECT: */ /*else*/ { @@ -10743,7 +10748,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":536 * info.strides = NULL - * + * * if flags & PyBUF_INDIRECT: # <<<<<<<<<<<<<< * info.suboffsets = self.view.suboffsets * else: @@ -10752,7 +10757,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu if (__pyx_t_1) { /* "View.MemoryView":537 - * + * * if flags & PyBUF_INDIRECT: * info.suboffsets = self.view.suboffsets # <<<<<<<<<<<<<< * else: @@ -10763,7 +10768,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":536 * info.strides = NULL - * + * * if flags & PyBUF_INDIRECT: # <<<<<<<<<<<<<< * info.suboffsets = self.view.suboffsets * else: @@ -10775,7 +10780,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * info.suboffsets = self.view.suboffsets * else: * info.suboffsets = NULL # <<<<<<<<<<<<<< - * + * * if flags & PyBUF_FORMAT: */ /*else*/ { @@ -10785,7 +10790,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":541 * info.suboffsets = NULL - * + * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * info.format = self.view.format * else: @@ -10794,7 +10799,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu if (__pyx_t_1) { /* "View.MemoryView":542 - * + * * if flags & PyBUF_FORMAT: * info.format = self.view.format # <<<<<<<<<<<<<< * else: @@ -10805,7 +10810,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":541 * info.suboffsets = NULL - * + * * if flags & PyBUF_FORMAT: # <<<<<<<<<<<<<< * info.format = self.view.format * else: @@ -10817,7 +10822,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * info.format = self.view.format * else: * info.format = NULL # <<<<<<<<<<<<<< - * + * * info.buf = self.view.buf */ /*else*/ { @@ -10827,7 +10832,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":546 * info.format = NULL - * + * * info.buf = self.view.buf # <<<<<<<<<<<<<< * info.ndim = self.view.ndim * info.itemsize = self.view.itemsize @@ -10836,7 +10841,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu __pyx_v_info->buf = __pyx_t_5; /* "View.MemoryView":547 - * + * * info.buf = self.view.buf * info.ndim = self.view.ndim # <<<<<<<<<<<<<< * info.itemsize = self.view.itemsize @@ -10870,7 +10875,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * info.len = self.view.len * info.readonly = self.view.readonly # <<<<<<<<<<<<<< * info.obj = self - * + * */ __pyx_t_1 = __pyx_v_self->view.readonly; __pyx_v_info->readonly = __pyx_t_1; @@ -10879,8 +10884,8 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * info.len = self.view.len * info.readonly = self.view.readonly * info.obj = self # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_INCREF((PyObject *)__pyx_v_self); __Pyx_GIVEREF((PyObject *)__pyx_v_self); @@ -10890,7 +10895,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu /* "View.MemoryView":521 * itemp[i] = c - * + * * @cname('getbuffer') # <<<<<<<<<<<<<< * def __getbuffer__(self, Py_buffer *info, int flags): * if flags & PyBUF_WRITABLE and self.view.readonly: @@ -10918,8 +10923,8 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu } /* "View.MemoryView":554 - * - * + * + * * @property # <<<<<<<<<<<<<< * def T(self): * cdef _memoryviewslice result = memoryview_copy(self) @@ -10969,7 +10974,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct _ * cdef _memoryviewslice result = memoryview_copy(self) * transpose_memslice(&result.from_slice) # <<<<<<<<<<<<<< * return result - * + * */ __pyx_t_2 = __pyx_memslice_transpose((&__pyx_v_result->from_slice)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 557, __pyx_L1_error) @@ -10977,7 +10982,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct _ * cdef _memoryviewslice result = memoryview_copy(self) * transpose_memslice(&result.from_slice) * return result # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -10986,8 +10991,8 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct _ goto __pyx_L0; /* "View.MemoryView":554 - * - * + * + * * @property # <<<<<<<<<<<<<< * def T(self): * cdef _memoryviewslice result = memoryview_copy(self) @@ -11007,7 +11012,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct _ /* "View.MemoryView":560 * return result - * + * * @property # <<<<<<<<<<<<<< * def base(self): * return self._get_base() @@ -11041,7 +11046,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struc * @property * def base(self): * return self._get_base() # <<<<<<<<<<<<<< - * + * * cdef _get_base(self): */ __Pyx_XDECREF(__pyx_r); @@ -11053,7 +11058,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struc /* "View.MemoryView":560 * return result - * + * * @property # <<<<<<<<<<<<<< * def base(self): * return self._get_base() @@ -11072,10 +11077,10 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struc /* "View.MemoryView":564 * return self._get_base() - * + * * cdef _get_base(self): # <<<<<<<<<<<<<< * return self.obj - * + * */ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v_self) { @@ -11084,10 +11089,10 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v __Pyx_RefNannySetupContext("_get_base", 1); /* "View.MemoryView":565 - * + * * cdef _get_base(self): * return self.obj # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11097,10 +11102,10 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v /* "View.MemoryView":564 * return self._get_base() - * + * * cdef _get_base(self): # <<<<<<<<<<<<<< * return self.obj - * + * */ /* function exit code */ @@ -11112,7 +11117,7 @@ static PyObject *__pyx_memoryview__get_base(struct __pyx_memoryview_obj *__pyx_v /* "View.MemoryView":567 * return self.obj - * + * * @property # <<<<<<<<<<<<<< * def shape(self): * return tuple([length for length in self.view.shape[:self.view.ndim]]) @@ -11151,7 +11156,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(stru * @property * def shape(self): * return tuple([length for length in self.view.shape[:self.view.ndim]]) # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11177,7 +11182,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(stru /* "View.MemoryView":567 * return self.obj - * + * * @property # <<<<<<<<<<<<<< * def shape(self): * return tuple([length for length in self.view.shape[:self.view.ndim]]) @@ -11197,7 +11202,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(stru /* "View.MemoryView":571 * return tuple([length for length in self.view.shape[:self.view.ndim]]) - * + * * @property # <<<<<<<<<<<<<< * def strides(self): * if self.view.strides == NULL: @@ -11237,7 +11242,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st * @property * def strides(self): * if self.view.strides == NULL: # <<<<<<<<<<<<<< - * + * * raise ValueError, "Buffer view does not expose strides" */ __pyx_t_1 = (__pyx_v_self->view.strides == NULL); @@ -11245,9 +11250,9 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st /* "View.MemoryView":575 * if self.view.strides == NULL: - * + * * raise ValueError, "Buffer view does not expose strides" # <<<<<<<<<<<<<< - * + * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) */ __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_Buffer_view_does_not_expose_stri, 0, 0); @@ -11257,16 +11262,16 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st * @property * def strides(self): * if self.view.strides == NULL: # <<<<<<<<<<<<<< - * + * * raise ValueError, "Buffer view does not expose strides" */ } /* "View.MemoryView":577 * raise ValueError, "Buffer view does not expose strides" - * + * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11292,7 +11297,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st /* "View.MemoryView":571 * return tuple([length for length in self.view.shape[:self.view.ndim]]) - * + * * @property # <<<<<<<<<<<<<< * def strides(self): * if self.view.strides == NULL: @@ -11312,7 +11317,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st /* "View.MemoryView":579 * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) - * + * * @property # <<<<<<<<<<<<<< * def suboffsets(self): * if self.view.suboffsets == NULL: @@ -11353,7 +11358,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_ * def suboffsets(self): * if self.view.suboffsets == NULL: # <<<<<<<<<<<<<< * return (-1,) * self.view.ndim - * + * */ __pyx_t_1 = (__pyx_v_self->view.suboffsets == NULL); if (__pyx_t_1) { @@ -11362,7 +11367,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_ * def suboffsets(self): * if self.view.suboffsets == NULL: * return (-1,) * self.view.ndim # <<<<<<<<<<<<<< - * + * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) */ __Pyx_XDECREF(__pyx_r); @@ -11377,15 +11382,15 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_ * def suboffsets(self): * if self.view.suboffsets == NULL: # <<<<<<<<<<<<<< * return (-1,) * self.view.ndim - * + * */ } /* "View.MemoryView":584 * return (-1,) * self.view.ndim - * + * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11411,7 +11416,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_ /* "View.MemoryView":579 * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) - * + * * @property # <<<<<<<<<<<<<< * def suboffsets(self): * if self.view.suboffsets == NULL: @@ -11431,7 +11436,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_ /* "View.MemoryView":586 * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) - * + * * @property # <<<<<<<<<<<<<< * def ndim(self): * return self.view.ndim @@ -11465,7 +11470,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struc * @property * def ndim(self): * return self.view.ndim # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11477,7 +11482,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struc /* "View.MemoryView":586 * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) - * + * * @property # <<<<<<<<<<<<<< * def ndim(self): * return self.view.ndim @@ -11496,7 +11501,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struc /* "View.MemoryView":590 * return self.view.ndim - * + * * @property # <<<<<<<<<<<<<< * def itemsize(self): * return self.view.itemsize @@ -11530,7 +11535,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(s * @property * def itemsize(self): * return self.view.itemsize # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11542,7 +11547,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(s /* "View.MemoryView":590 * return self.view.ndim - * + * * @property # <<<<<<<<<<<<<< * def itemsize(self): * return self.view.itemsize @@ -11561,7 +11566,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(s /* "View.MemoryView":594 * return self.view.itemsize - * + * * @property # <<<<<<<<<<<<<< * def nbytes(self): * return self.size * self.view.itemsize @@ -11597,7 +11602,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(str * @property * def nbytes(self): * return self.size * self.view.itemsize # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -11615,7 +11620,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(str /* "View.MemoryView":594 * return self.view.itemsize - * + * * @property # <<<<<<<<<<<<<< * def nbytes(self): * return self.size * self.view.itemsize @@ -11636,7 +11641,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(str /* "View.MemoryView":598 * return self.size * self.view.itemsize - * + * * @property # <<<<<<<<<<<<<< * def size(self): * if self._size is None: @@ -11677,7 +11682,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc * def size(self): * if self._size is None: # <<<<<<<<<<<<<< * result = 1 - * + * */ __pyx_t_1 = (__pyx_v_self->_size == Py_None); if (__pyx_t_1) { @@ -11686,7 +11691,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc * def size(self): * if self._size is None: * result = 1 # <<<<<<<<<<<<<< - * + * * for length in self.view.shape[:self.view.ndim]: */ __Pyx_INCREF(__pyx_int_1); @@ -11694,10 +11699,10 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc /* "View.MemoryView":603 * result = 1 - * + * * for length in self.view.shape[:self.view.ndim]: # <<<<<<<<<<<<<< * result *= length - * + * */ __pyx_t_3 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim); for (__pyx_t_4 = __pyx_v_self->view.shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { @@ -11708,10 +11713,10 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc __pyx_t_5 = 0; /* "View.MemoryView":604 - * + * * for length in self.view.shape[:self.view.ndim]: * result *= length # <<<<<<<<<<<<<< - * + * * self._size = result */ __pyx_t_5 = PyNumber_InPlaceMultiply(__pyx_v_result, __pyx_v_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 604, __pyx_L1_error) @@ -11722,9 +11727,9 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc /* "View.MemoryView":606 * result *= length - * + * * self._size = result # <<<<<<<<<<<<<< - * + * * return self._size */ __Pyx_INCREF(__pyx_v_result); @@ -11738,15 +11743,15 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc * def size(self): * if self._size is None: # <<<<<<<<<<<<<< * result = 1 - * + * */ } /* "View.MemoryView":608 * self._size = result - * + * * return self._size # <<<<<<<<<<<<<< - * + * * def __len__(self): */ __Pyx_XDECREF(__pyx_r); @@ -11756,7 +11761,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc /* "View.MemoryView":598 * return self.size * self.view.itemsize - * + * * @property # <<<<<<<<<<<<<< * def size(self): * if self._size is None: @@ -11777,7 +11782,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struc /* "View.MemoryView":610 * return self._size - * + * * def __len__(self): # <<<<<<<<<<<<<< * if self.view.ndim >= 1: * return self.view.shape[0] @@ -11803,11 +11808,11 @@ static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_1 int __pyx_t_1; /* "View.MemoryView":611 - * + * * def __len__(self): * if self.view.ndim >= 1: # <<<<<<<<<<<<<< * return self.view.shape[0] - * + * */ __pyx_t_1 = (__pyx_v_self->view.ndim >= 1); if (__pyx_t_1) { @@ -11816,26 +11821,26 @@ static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_1 * def __len__(self): * if self.view.ndim >= 1: * return self.view.shape[0] # <<<<<<<<<<<<<< - * + * * return 0 */ __pyx_r = (__pyx_v_self->view.shape[0]); goto __pyx_L0; /* "View.MemoryView":611 - * + * * def __len__(self): * if self.view.ndim >= 1: # <<<<<<<<<<<<<< * return self.view.shape[0] - * + * */ } /* "View.MemoryView":614 * return self.view.shape[0] - * + * * return 0 # <<<<<<<<<<<<<< - * + * * def __repr__(self): */ __pyx_r = 0; @@ -11843,7 +11848,7 @@ static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_1 /* "View.MemoryView":610 * return self._size - * + * * def __len__(self): # <<<<<<<<<<<<<< * if self.view.ndim >= 1: * return self.view.shape[0] @@ -11856,7 +11861,7 @@ static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_1 /* "View.MemoryView":616 * return 0 - * + * * def __repr__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__, * id(self)) @@ -11889,11 +11894,11 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12 __Pyx_RefNannySetupContext("__repr__", 1); /* "View.MemoryView":617 - * + * * def __repr__(self): * return "" % (self.base.__class__.__name__, # <<<<<<<<<<<<<< * id(self)) - * + * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error) @@ -11909,18 +11914,18 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12 * def __repr__(self): * return "" % (self.base.__class__.__name__, * id(self)) # <<<<<<<<<<<<<< - * + * * def __str__(self): */ __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); /* "View.MemoryView":617 - * + * * def __repr__(self): * return "" % (self.base.__class__.__name__, # <<<<<<<<<<<<<< * id(self)) - * + * */ __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -11939,7 +11944,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12 /* "View.MemoryView":616 * return 0 - * + * * def __repr__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__, * id(self)) @@ -11960,10 +11965,10 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12 /* "View.MemoryView":620 * id(self)) - * + * * def __str__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__,) - * + * */ /* Python wrapper */ @@ -11992,11 +11997,11 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14 __Pyx_RefNannySetupContext("__str__", 1); /* "View.MemoryView":621 - * + * * def __str__(self): * return "" % (self.base.__class__.__name__,) # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 621, __pyx_L1_error) @@ -12021,10 +12026,10 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14 /* "View.MemoryView":620 * id(self)) - * + * * def __str__(self): # <<<<<<<<<<<<<< * return "" % (self.base.__class__.__name__,) - * + * */ /* function exit code */ @@ -12040,22 +12045,22 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14 } /* "View.MemoryView":624 - * - * + * + * * def is_c_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp */ /* Python wrapper */ -static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -12104,7 +12109,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16 * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) # <<<<<<<<<<<<<< * return slice_is_contig(mslice[0], 'C', self.view.ndim) - * + * */ __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(0, 627, __pyx_L1_error) __pyx_v_mslice = __pyx_t_1; @@ -12113,7 +12118,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16 * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) * return slice_is_contig(mslice[0], 'C', self.view.ndim) # <<<<<<<<<<<<<< - * + * * def is_f_contig(self): */ __Pyx_XDECREF(__pyx_r); @@ -12124,8 +12129,8 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16 goto __pyx_L0; /* "View.MemoryView":624 - * - * + * + * * def is_c_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp @@ -12144,21 +12149,21 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16 /* "View.MemoryView":630 * return slice_is_contig(mslice[0], 'C', self.view.ndim) - * + * * def is_f_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp */ /* Python wrapper */ -static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -12207,7 +12212,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18 * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) # <<<<<<<<<<<<<< * return slice_is_contig(mslice[0], 'F', self.view.ndim) - * + * */ __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp)); if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(0, 633, __pyx_L1_error) __pyx_v_mslice = __pyx_t_1; @@ -12216,7 +12221,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18 * cdef __Pyx_memviewslice tmp * mslice = get_slice_from_memview(self, &tmp) * return slice_is_contig(mslice[0], 'F', self.view.ndim) # <<<<<<<<<<<<<< - * + * * def copy(self): */ __Pyx_XDECREF(__pyx_r); @@ -12228,7 +12233,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18 /* "View.MemoryView":630 * return slice_is_contig(mslice[0], 'C', self.view.ndim) - * + * * def is_f_contig(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice *mslice * cdef __Pyx_memviewslice tmp @@ -12247,21 +12252,21 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18 /* "View.MemoryView":636 * return slice_is_contig(mslice[0], 'F', self.view.ndim) - * + * * def copy(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice mslice * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS */ /* Python wrapper */ -static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -12309,14 +12314,14 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20 * def copy(self): * cdef __Pyx_memviewslice mslice * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS # <<<<<<<<<<<<<< - * + * * slice_copy(self, &mslice) */ __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_F_CONTIGUOUS)); /* "View.MemoryView":640 * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS - * + * * slice_copy(self, &mslice) # <<<<<<<<<<<<<< * mslice = slice_copy_contig(&mslice, "c", self.view.ndim, * self.view.itemsize, @@ -12324,7 +12329,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20 __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_mslice)); /* "View.MemoryView":641 - * + * * slice_copy(self, &mslice) * mslice = slice_copy_contig(&mslice, "c", self.view.ndim, # <<<<<<<<<<<<<< * self.view.itemsize, @@ -12335,9 +12340,9 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20 /* "View.MemoryView":646 * self.dtype_is_object) - * + * * return memoryview_copy_from_slice(self, &mslice) # <<<<<<<<<<<<<< - * + * * def copy_fortran(self): */ __Pyx_XDECREF(__pyx_r); @@ -12349,7 +12354,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20 /* "View.MemoryView":636 * return slice_is_contig(mslice[0], 'F', self.view.ndim) - * + * * def copy(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice mslice * cdef int flags = self.flags & ~PyBUF_F_CONTIGUOUS @@ -12368,21 +12373,21 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20 /* "View.MemoryView":648 * return memoryview_copy_from_slice(self, &mslice) - * + * * def copy_fortran(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice src, dst * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS */ /* Python wrapper */ -static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, +static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -12431,14 +12436,14 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22 * def copy_fortran(self): * cdef __Pyx_memviewslice src, dst * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS # <<<<<<<<<<<<<< - * + * * slice_copy(self, &src) */ __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_C_CONTIGUOUS)); /* "View.MemoryView":652 * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS - * + * * slice_copy(self, &src) # <<<<<<<<<<<<<< * dst = slice_copy_contig(&src, "fortran", self.view.ndim, * self.view.itemsize, @@ -12446,7 +12451,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22 __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_src)); /* "View.MemoryView":653 - * + * * slice_copy(self, &src) * dst = slice_copy_contig(&src, "fortran", self.view.ndim, # <<<<<<<<<<<<<< * self.view.itemsize, @@ -12457,10 +12462,10 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22 /* "View.MemoryView":658 * self.dtype_is_object) - * + * * return memoryview_copy_from_slice(self, &dst) # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_dst)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 658, __pyx_L1_error) @@ -12471,7 +12476,7 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22 /* "View.MemoryView":648 * return memoryview_copy_from_slice(self, &mslice) - * + * * def copy_fortran(self): # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice src, dst * cdef int flags = self.flags & ~PyBUF_C_CONTIGUOUS @@ -12495,14 +12500,14 @@ static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22 */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -12574,14 +12579,14 @@ static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struc */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -12701,7 +12706,7 @@ static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED st } /* "View.MemoryView":662 - * + * * @cname('__pyx_memoryview_new') * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo): # <<<<<<<<<<<<<< * cdef memoryview result = memoryview(o, flags, dtype_is_object) @@ -12753,7 +12758,7 @@ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, in * cdef memoryview result = memoryview(o, flags, dtype_is_object) * result.typeinfo = typeinfo # <<<<<<<<<<<<<< * return result - * + * */ __pyx_v_result->typeinfo = __pyx_v_typeinfo; @@ -12761,7 +12766,7 @@ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, in * cdef memoryview result = memoryview(o, flags, dtype_is_object) * result.typeinfo = typeinfo * return result # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_check') */ __Pyx_XDECREF(__pyx_r); @@ -12770,7 +12775,7 @@ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, in goto __pyx_L0; /* "View.MemoryView":662 - * + * * @cname('__pyx_memoryview_new') * cdef memoryview_cwrapper(object o, int flags, bint dtype_is_object, __Pyx_TypeInfo *typeinfo): # <<<<<<<<<<<<<< * cdef memoryview result = memoryview(o, flags, dtype_is_object) @@ -12792,11 +12797,11 @@ static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o, int __pyx_v_flags, in } /* "View.MemoryView":668 - * + * * @cname('__pyx_memoryview_check') * cdef inline bint memoryview_check(object o) noexcept: # <<<<<<<<<<<<<< * return isinstance(o, memoryview) - * + * */ static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) { @@ -12807,19 +12812,19 @@ static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) { * @cname('__pyx_memoryview_check') * cdef inline bint memoryview_check(object o) noexcept: * return isinstance(o, memoryview) # <<<<<<<<<<<<<< - * + * * cdef tuple _unellipsify(object index, int ndim): */ - __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_o, __pyx_memoryview_type); + __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_o, __pyx_memoryview_type); __pyx_r = __pyx_t_1; goto __pyx_L0; /* "View.MemoryView":668 - * + * * @cname('__pyx_memoryview_check') * cdef inline bint memoryview_check(object o) noexcept: # <<<<<<<<<<<<<< * return isinstance(o, memoryview) - * + * */ /* function exit code */ @@ -12829,7 +12834,7 @@ static CYTHON_INLINE int __pyx_memoryview_check(PyObject *__pyx_v_o) { /* "View.MemoryView":671 * return isinstance(o, memoryview) - * + * * cdef tuple _unellipsify(object index, int ndim): # <<<<<<<<<<<<<< * """ * Replace all ellipses with full slices and fill incomplete indices with @@ -12861,10 +12866,10 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { * """ * cdef Py_ssize_t idx * tup = index if isinstance(index, tuple) else (index,) # <<<<<<<<<<<<<< - * + * * result = [slice(None)] * ndim */ - __pyx_t_2 = PyTuple_Check(__pyx_v_index); + __pyx_t_2 = PyTuple_Check(__pyx_v_index); if (__pyx_t_2) { __Pyx_INCREF(((PyObject*)__pyx_v_index)); __pyx_t_1 = __pyx_v_index; @@ -12882,7 +12887,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { /* "View.MemoryView":679 * tup = index if isinstance(index, tuple) else (index,) - * + * * result = [slice(None)] * ndim # <<<<<<<<<<<<<< * have_slices = False * seen_ellipsis = False @@ -12900,7 +12905,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { __pyx_t_1 = 0; /* "View.MemoryView":680 - * + * * result = [slice(None)] * ndim * have_slices = False # <<<<<<<<<<<<<< * seen_ellipsis = False @@ -13035,7 +13040,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { * elif not PyIndex_Check(item): */ /*else*/ { - __pyx_t_2 = PySlice_Check(__pyx_v_item); + __pyx_t_2 = PySlice_Check(__pyx_v_item); if (__pyx_t_2) { /* "View.MemoryView":691 @@ -13115,7 +13120,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { * raise TypeError, f"Cannot index with type '{type(item)}'" * result[idx] = item # <<<<<<<<<<<<<< * idx += 1 - * + * */ if (unlikely((__Pyx_SetItemInt(__pyx_v_result, __pyx_v_idx, __pyx_v_item, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0))) __PYX_ERR(0, 694, __pyx_L1_error) } @@ -13125,7 +13130,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { * raise TypeError, f"Cannot index with type '{type(item)}'" * result[idx] = item * idx += 1 # <<<<<<<<<<<<<< - * + * * nslices = ndim - idx */ __pyx_v_idx = (__pyx_v_idx + 1); @@ -13142,18 +13147,18 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { /* "View.MemoryView":697 * idx += 1 - * + * * nslices = ndim - idx # <<<<<<<<<<<<<< * return have_slices or nslices, tuple(result) - * + * */ __pyx_v_nslices = (__pyx_v_ndim - __pyx_v_idx); /* "View.MemoryView":698 - * + * * nslices = ndim - idx * return have_slices or nslices, tuple(result) # <<<<<<<<<<<<<< - * + * * cdef int assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim) except -1: */ __Pyx_XDECREF(__pyx_r); @@ -13186,7 +13191,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { /* "View.MemoryView":671 * return isinstance(o, memoryview) - * + * * cdef tuple _unellipsify(object index, int ndim): # <<<<<<<<<<<<<< * """ * Replace all ellipses with full slices and fill incomplete indices with @@ -13210,7 +13215,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { /* "View.MemoryView":700 * return have_slices or nslices, tuple(result) - * + * * cdef int assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim) except -1: # <<<<<<<<<<<<<< * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: @@ -13228,7 +13233,7 @@ static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ int __pyx_clineno = 0; /* "View.MemoryView":701 - * + * * cdef int assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim) except -1: * for suboffset in suboffsets[:ndim]: # <<<<<<<<<<<<<< * if suboffset >= 0: @@ -13254,7 +13259,7 @@ static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ * if suboffset >= 0: * raise ValueError, "Indirect dimensions not supported" # <<<<<<<<<<<<<< * return 0 # return type just used as an error flag - * + * */ __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_Indirect_dimensions_not_supporte, 0, 0); __PYX_ERR(0, 703, __pyx_L1_error) @@ -13273,15 +13278,15 @@ static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ * if suboffset >= 0: * raise ValueError, "Indirect dimensions not supported" * return 0 # return type just used as an error flag # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":700 * return have_slices or nslices, tuple(result) - * + * * cdef int assert_direct_dimensions(Py_ssize_t *suboffsets, int ndim) except -1: # <<<<<<<<<<<<<< * for suboffset in suboffsets[:ndim]: * if suboffset >= 0: @@ -13296,7 +13301,7 @@ static int assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __pyx_v_ } /* "View.MemoryView":711 - * + * * @cname('__pyx_memview_slice') * cdef memoryview memview_slice(memoryview memview, object indices): # <<<<<<<<<<<<<< * cdef int new_ndim = 0, suboffset_dim = -1, dim @@ -13350,19 +13355,19 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ __pyx_v_suboffset_dim = -1; /* "View.MemoryView":719 - * - * + * + * * memset(&dst, 0, sizeof(dst)) # <<<<<<<<<<<<<< - * + * * cdef _memoryviewslice memviewsliceobj */ (void)(memset((&__pyx_v_dst), 0, (sizeof(__pyx_v_dst)))); /* "View.MemoryView":723 * cdef _memoryviewslice memviewsliceobj - * + * * assert memview.view.ndim > 0 # <<<<<<<<<<<<<< - * + * * if isinstance(memview, _memoryviewslice): */ #ifndef CYTHON_WITHOUT_ASSERTIONS @@ -13379,16 +13384,16 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":725 * assert memview.view.ndim > 0 - * + * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * memviewsliceobj = memview * p_src = &memviewsliceobj.from_slice */ - __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); + __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); if (__pyx_t_1) { /* "View.MemoryView":726 - * + * * if isinstance(memview, _memoryviewslice): * memviewsliceobj = memview # <<<<<<<<<<<<<< * p_src = &memviewsliceobj.from_slice @@ -13411,7 +13416,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":725 * assert memview.view.ndim > 0 - * + * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * memviewsliceobj = memview * p_src = &memviewsliceobj.from_slice @@ -13424,7 +13429,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * else: * slice_copy(memview, &src) # <<<<<<<<<<<<<< * p_src = &src - * + * */ /*else*/ { __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_src)); @@ -13433,36 +13438,36 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * else: * slice_copy(memview, &src) * p_src = &src # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_v_p_src = (&__pyx_v_src); } __pyx_L3:; /* "View.MemoryView":736 - * - * + * + * * dst.memview = p_src.memview # <<<<<<<<<<<<<< * dst.data = p_src.data - * + * */ __pyx_t_3 = __pyx_v_p_src->memview; __pyx_v_dst.memview = __pyx_t_3; /* "View.MemoryView":737 - * + * * dst.memview = p_src.memview * dst.data = p_src.data # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_4 = __pyx_v_p_src->data; __pyx_v_dst.data = __pyx_t_4; /* "View.MemoryView":742 - * - * + * + * * cdef __Pyx_memviewslice *p_dst = &dst # <<<<<<<<<<<<<< * cdef int *p_suboffset_dim = &suboffset_dim * cdef Py_ssize_t start, stop, step, cindex @@ -13470,7 +13475,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ __pyx_v_p_dst = (&__pyx_v_dst); /* "View.MemoryView":743 - * + * * cdef __Pyx_memviewslice *p_dst = &dst * cdef int *p_suboffset_dim = &suboffset_dim # <<<<<<<<<<<<<< * cdef Py_ssize_t start, stop, step, cindex @@ -13480,7 +13485,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":747 * cdef bint have_start, have_stop, have_step - * + * * for dim, index in enumerate(indices): # <<<<<<<<<<<<<< * if PyIndex_Check(index): * cindex = index @@ -13544,7 +13549,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ __pyx_t_5 = (__pyx_t_5 + 1); /* "View.MemoryView":748 - * + * * for dim, index in enumerate(indices): * if PyIndex_Check(index): # <<<<<<<<<<<<<< * cindex = index @@ -13573,7 +13578,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ __pyx_t_10 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_v_cindex, 0, 0, 0, 0, 0, 0); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 750, __pyx_L1_error) /* "View.MemoryView":748 - * + * * for dim, index in enumerate(indices): * if PyIndex_Check(index): # <<<<<<<<<<<<<< * cindex = index @@ -13666,7 +13671,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * start = index.start or 0 * stop = index.stop or 0 # <<<<<<<<<<<<<< * step = index.step or 0 - * + * */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); @@ -13687,7 +13692,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * start = index.start or 0 * stop = index.stop or 0 * step = index.step or 0 # <<<<<<<<<<<<<< - * + * * have_start = index.start is not None */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 764, __pyx_L1_error) @@ -13707,7 +13712,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":766 * step = index.step or 0 - * + * * have_start = index.start is not None # <<<<<<<<<<<<<< * have_stop = index.stop is not None * have_step = index.step is not None @@ -13719,11 +13724,11 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ __pyx_v_have_start = __pyx_t_1; /* "View.MemoryView":767 - * + * * have_start = index.start is not None * have_stop = index.stop is not None # <<<<<<<<<<<<<< * have_step = index.step is not None - * + * */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); @@ -13735,7 +13740,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * have_start = index.start is not None * have_stop = index.stop is not None * have_step = index.step is not None # <<<<<<<<<<<<<< - * + * * slice_memviewslice( */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 768, __pyx_L1_error) @@ -13746,7 +13751,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":770 * have_step = index.step is not None - * + * * slice_memviewslice( # <<<<<<<<<<<<<< * p_dst, p_src.shape[dim], p_src.strides[dim], p_src.suboffsets[dim], * dim, new_ndim, p_suboffset_dim, @@ -13757,7 +13762,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * have_start, have_stop, have_step, * True) * new_ndim += 1 # <<<<<<<<<<<<<< - * + * * if isinstance(memview, _memoryviewslice): */ __pyx_v_new_ndim = (__pyx_v_new_ndim + 1); @@ -13766,7 +13771,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":747 * cdef bint have_start, have_stop, have_step - * + * * for dim, index in enumerate(indices): # <<<<<<<<<<<<<< * if PyIndex_Check(index): * cindex = index @@ -13776,16 +13781,16 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":778 * new_ndim += 1 - * + * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * return memoryview_fromslice(dst, new_ndim, * memviewsliceobj.to_object_func, */ - __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); + __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); if (__pyx_t_1) { /* "View.MemoryView":779 - * + * * if isinstance(memview, _memoryviewslice): * return memoryview_fromslice(dst, new_ndim, # <<<<<<<<<<<<<< * memviewsliceobj.to_object_func, @@ -13812,7 +13817,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError("memviewsliceobj"); __PYX_ERR(0, 781, __pyx_L1_error) } /* "View.MemoryView":779 - * + * * if isinstance(memview, _memoryviewslice): * return memoryview_fromslice(dst, new_ndim, # <<<<<<<<<<<<<< * memviewsliceobj.to_object_func, @@ -13827,7 +13832,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ /* "View.MemoryView":778 * new_ndim += 1 - * + * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * return memoryview_fromslice(dst, new_ndim, * memviewsliceobj.to_object_func, @@ -13839,7 +13844,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * else: * return memoryview_fromslice(dst, new_ndim, NULL, NULL, # <<<<<<<<<<<<<< * memview.dtype_is_object) - * + * */ /*else*/ { __Pyx_XDECREF((PyObject *)__pyx_r); @@ -13848,8 +13853,8 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * else: * return memoryview_fromslice(dst, new_ndim, NULL, NULL, * memview.dtype_is_object) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, NULL, NULL, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -13859,7 +13864,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ * else: * return memoryview_fromslice(dst, new_ndim, NULL, NULL, # <<<<<<<<<<<<<< * memview.dtype_is_object) - * + * */ if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_memoryview_type))))) __PYX_ERR(0, 784, __pyx_L1_error) __pyx_r = ((struct __pyx_memoryview_obj *)__pyx_t_2); @@ -13868,7 +13873,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ } /* "View.MemoryView":711 - * + * * @cname('__pyx_memview_slice') * cdef memoryview memview_slice(memoryview memview, object indices): # <<<<<<<<<<<<<< * cdef int new_ndim = 0, suboffset_dim = -1, dim @@ -13890,7 +13895,7 @@ static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_ } /* "View.MemoryView":793 - * + * * @cname('__pyx_memoryview_slice_memviewslice') * cdef int slice_memviewslice( # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, @@ -13913,9 +13918,9 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":813 * cdef bint negative_step - * + * * if not is_slice: # <<<<<<<<<<<<<< - * + * * if start < 0: */ __pyx_t_1 = (!__pyx_v_is_slice); @@ -13923,7 +13928,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":815 * if not is_slice: - * + * * if start < 0: # <<<<<<<<<<<<<< * start += shape * if not 0 <= start < shape: @@ -13932,7 +13937,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, if (__pyx_t_1) { /* "View.MemoryView":816 - * + * * if start < 0: * start += shape # <<<<<<<<<<<<<< * if not 0 <= start < shape: @@ -13942,7 +13947,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":815 * if not is_slice: - * + * * if start < 0: # <<<<<<<<<<<<<< * start += shape * if not 0 <= start < shape: @@ -13968,7 +13973,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * if not 0 <= start < shape: * _err_dim(PyExc_IndexError, "Index out of bounds (axis %d)", dim) # <<<<<<<<<<<<<< * else: - * + * */ __pyx_t_3 = __pyx_memoryview_err_dim(PyExc_IndexError, __pyx_kp_s_Index_out_of_bounds_axis_d, __pyx_v_dim); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 818, __pyx_L1_error) @@ -13983,9 +13988,9 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":813 * cdef bint negative_step - * + * * if not is_slice: # <<<<<<<<<<<<<< - * + * * if start < 0: */ goto __pyx_L3; @@ -13993,7 +13998,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":821 * else: - * + * * if have_step: # <<<<<<<<<<<<<< * negative_step = step < 0 * if step == 0: @@ -14003,7 +14008,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, if (__pyx_t_2) { /* "View.MemoryView":822 - * + * * if have_step: * negative_step = step < 0 # <<<<<<<<<<<<<< * if step == 0: @@ -14041,7 +14046,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":821 * else: - * + * * if have_step: # <<<<<<<<<<<<<< * negative_step = step < 0 * if step == 0: @@ -14054,7 +14059,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * else: * negative_step = False # <<<<<<<<<<<<<< * step = 1 - * + * */ /*else*/ { __pyx_v_negative_step = 0; @@ -14063,16 +14068,16 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * else: * negative_step = False * step = 1 # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_v_step = 1; } __pyx_L6:; /* "View.MemoryView":830 - * - * + * + * * if have_start: # <<<<<<<<<<<<<< * if start < 0: * start += shape @@ -14081,7 +14086,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, if (__pyx_t_2) { /* "View.MemoryView":831 - * + * * if have_start: * if start < 0: # <<<<<<<<<<<<<< * start += shape @@ -14128,7 +14133,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, } /* "View.MemoryView":831 - * + * * if have_start: * if start < 0: # <<<<<<<<<<<<<< * start += shape @@ -14198,8 +14203,8 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, __pyx_L9:; /* "View.MemoryView":830 - * - * + * + * * if have_start: # <<<<<<<<<<<<<< * if start < 0: * start += shape @@ -14240,7 +14245,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * start = shape - 1 * else: * start = 0 # <<<<<<<<<<<<<< - * + * * if have_stop: */ /*else*/ { @@ -14252,7 +14257,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":846 * start = 0 - * + * * if have_stop: # <<<<<<<<<<<<<< * if stop < 0: * stop += shape @@ -14261,7 +14266,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, if (__pyx_t_2) { /* "View.MemoryView":847 - * + * * if have_stop: * if stop < 0: # <<<<<<<<<<<<<< * stop += shape @@ -14308,7 +14313,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, } /* "View.MemoryView":847 - * + * * if have_stop: * if stop < 0: # <<<<<<<<<<<<<< * stop += shape @@ -14348,7 +14353,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":846 * start = 0 - * + * * if have_stop: # <<<<<<<<<<<<<< * if stop < 0: * stop += shape @@ -14389,8 +14394,8 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * stop = -1 * else: * stop = shape # <<<<<<<<<<<<<< - * - * + * + * */ /*else*/ { __pyx_v_stop = __pyx_v_shape; @@ -14400,73 +14405,73 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, __pyx_L13:; /* "View.MemoryView":861 - * + * * with cython.cdivision(True): * new_shape = (stop - start) // step # <<<<<<<<<<<<<< - * + * * if (stop - start) - step * new_shape: */ __pyx_v_new_shape = ((__pyx_v_stop - __pyx_v_start) / __pyx_v_step); /* "View.MemoryView":863 * new_shape = (stop - start) // step - * + * * if (stop - start) - step * new_shape: # <<<<<<<<<<<<<< * new_shape += 1 - * + * */ __pyx_t_2 = (((__pyx_v_stop - __pyx_v_start) - (__pyx_v_step * __pyx_v_new_shape)) != 0); if (__pyx_t_2) { /* "View.MemoryView":864 - * + * * if (stop - start) - step * new_shape: * new_shape += 1 # <<<<<<<<<<<<<< - * + * * if new_shape < 0: */ __pyx_v_new_shape = (__pyx_v_new_shape + 1); /* "View.MemoryView":863 * new_shape = (stop - start) // step - * + * * if (stop - start) - step * new_shape: # <<<<<<<<<<<<<< * new_shape += 1 - * + * */ } /* "View.MemoryView":866 * new_shape += 1 - * + * * if new_shape < 0: # <<<<<<<<<<<<<< * new_shape = 0 - * + * */ __pyx_t_2 = (__pyx_v_new_shape < 0); if (__pyx_t_2) { /* "View.MemoryView":867 - * + * * if new_shape < 0: * new_shape = 0 # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_v_new_shape = 0; /* "View.MemoryView":866 * new_shape += 1 - * + * * if new_shape < 0: # <<<<<<<<<<<<<< * new_shape = 0 - * + * */ } /* "View.MemoryView":870 - * - * + * + * * dst.strides[new_ndim] = stride * step # <<<<<<<<<<<<<< * dst.shape[new_ndim] = new_shape * dst.suboffsets[new_ndim] = suboffset @@ -14474,11 +14479,11 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, (__pyx_v_dst->strides[__pyx_v_new_ndim]) = (__pyx_v_stride * __pyx_v_step); /* "View.MemoryView":871 - * + * * dst.strides[new_ndim] = stride * step * dst.shape[new_ndim] = new_shape # <<<<<<<<<<<<<< * dst.suboffsets[new_ndim] = suboffset - * + * */ (__pyx_v_dst->shape[__pyx_v_new_ndim]) = __pyx_v_new_shape; @@ -14486,16 +14491,16 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * dst.strides[new_ndim] = stride * step * dst.shape[new_ndim] = new_shape * dst.suboffsets[new_ndim] = suboffset # <<<<<<<<<<<<<< - * - * + * + * */ (__pyx_v_dst->suboffsets[__pyx_v_new_ndim]) = __pyx_v_suboffset; } __pyx_L3:; /* "View.MemoryView":875 - * - * + * + * * if suboffset_dim[0] < 0: # <<<<<<<<<<<<<< * dst.data += start * stride * else: @@ -14504,7 +14509,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, if (__pyx_t_2) { /* "View.MemoryView":876 - * + * * if suboffset_dim[0] < 0: * dst.data += start * stride # <<<<<<<<<<<<<< * else: @@ -14513,8 +14518,8 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, __pyx_v_dst->data = (__pyx_v_dst->data + (__pyx_v_start * __pyx_v_stride)); /* "View.MemoryView":875 - * - * + * + * * if suboffset_dim[0] < 0: # <<<<<<<<<<<<<< * dst.data += start * stride * else: @@ -14526,7 +14531,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * dst.data += start * stride * else: * dst.suboffsets[suboffset_dim[0]] += start * stride # <<<<<<<<<<<<<< - * + * * if suboffset >= 0: */ /*else*/ { @@ -14537,7 +14542,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":880 * dst.suboffsets[suboffset_dim[0]] += start * stride - * + * * if suboffset >= 0: # <<<<<<<<<<<<<< * if not is_slice: * if new_ndim == 0: @@ -14546,7 +14551,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, if (__pyx_t_2) { /* "View.MemoryView":881 - * + * * if suboffset >= 0: * if not is_slice: # <<<<<<<<<<<<<< * if new_ndim == 0: @@ -14605,7 +14610,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, __pyx_L22:; /* "View.MemoryView":881 - * + * * if suboffset >= 0: * if not is_slice: # <<<<<<<<<<<<<< * if new_ndim == 0: @@ -14618,7 +14623,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * "must be indexed and not sliced", dim) * else: * suboffset_dim[0] = new_ndim # <<<<<<<<<<<<<< - * + * * return 0 */ /*else*/ { @@ -14628,7 +14633,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":880 * dst.suboffsets[suboffset_dim[0]] += start * stride - * + * * if suboffset >= 0: # <<<<<<<<<<<<<< * if not is_slice: * if new_ndim == 0: @@ -14637,16 +14642,16 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, /* "View.MemoryView":890 * suboffset_dim[0] = new_ndim - * + * * return 0 # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":793 - * + * * @cname('__pyx_memoryview_slice_memviewslice') * cdef int slice_memviewslice( # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, @@ -14668,7 +14673,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, } /* "View.MemoryView":896 - * + * * @cname('__pyx_pybuffer_index') * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index, # <<<<<<<<<<<<<< * Py_ssize_t dim) except NULL: @@ -14707,14 +14712,14 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * cdef Py_ssize_t shape, stride, suboffset = -1 * cdef Py_ssize_t itemsize = view.itemsize # <<<<<<<<<<<<<< * cdef char *resultp - * + * */ __pyx_t_1 = __pyx_v_view->itemsize; __pyx_v_itemsize = __pyx_t_1; /* "View.MemoryView":902 * cdef char *resultp - * + * * if view.ndim == 0: # <<<<<<<<<<<<<< * shape = view.len // itemsize * stride = itemsize @@ -14723,7 +14728,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P if (__pyx_t_2) { /* "View.MemoryView":903 - * + * * if view.ndim == 0: * shape = view.len // itemsize # <<<<<<<<<<<<<< * stride = itemsize @@ -14750,7 +14755,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P /* "View.MemoryView":902 * cdef char *resultp - * + * * if view.ndim == 0: # <<<<<<<<<<<<<< * shape = view.len // itemsize * stride = itemsize @@ -14782,7 +14787,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * stride = view.strides[dim] * if view.suboffsets != NULL: # <<<<<<<<<<<<<< * suboffset = view.suboffsets[dim] - * + * */ __pyx_t_2 = (__pyx_v_view->suboffsets != NULL); if (__pyx_t_2) { @@ -14791,7 +14796,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * stride = view.strides[dim] * if view.suboffsets != NULL: * suboffset = view.suboffsets[dim] # <<<<<<<<<<<<<< - * + * * if index < 0: */ __pyx_v_suboffset = (__pyx_v_view->suboffsets[__pyx_v_dim]); @@ -14801,7 +14806,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * stride = view.strides[dim] * if view.suboffsets != NULL: # <<<<<<<<<<<<<< * suboffset = view.suboffsets[dim] - * + * */ } } @@ -14809,7 +14814,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P /* "View.MemoryView":911 * suboffset = view.suboffsets[dim] - * + * * if index < 0: # <<<<<<<<<<<<<< * index += view.shape[dim] * if index < 0: @@ -14818,7 +14823,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P if (__pyx_t_2) { /* "View.MemoryView":912 - * + * * if index < 0: * index += view.shape[dim] # <<<<<<<<<<<<<< * if index < 0: @@ -14831,7 +14836,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * index += view.shape[dim] * if index < 0: # <<<<<<<<<<<<<< * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * */ __pyx_t_2 = (__pyx_v_index < 0); if (unlikely(__pyx_t_2)) { @@ -14840,7 +14845,7 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * index += view.shape[dim] * if index < 0: * raise IndexError, f"Out of bounds on buffer access (axis {dim})" # <<<<<<<<<<<<<< - * + * * if index >= shape: */ __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 914, __pyx_L1_error) @@ -14873,13 +14878,13 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * index += view.shape[dim] * if index < 0: # <<<<<<<<<<<<<< * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * */ } /* "View.MemoryView":911 * suboffset = view.suboffsets[dim] - * + * * if index < 0: # <<<<<<<<<<<<<< * index += view.shape[dim] * if index < 0: @@ -14888,19 +14893,19 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P /* "View.MemoryView":916 * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * * if index >= shape: # <<<<<<<<<<<<<< * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * */ __pyx_t_2 = (__pyx_v_index >= __pyx_v_shape); if (unlikely(__pyx_t_2)) { /* "View.MemoryView":917 - * + * * if index >= shape: * raise IndexError, f"Out of bounds on buffer access (axis {dim})" # <<<<<<<<<<<<<< - * + * * resultp = bufp + index * stride */ __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 917, __pyx_L1_error) @@ -14930,16 +14935,16 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P /* "View.MemoryView":916 * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * * if index >= shape: # <<<<<<<<<<<<<< * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * */ } /* "View.MemoryView":919 * raise IndexError, f"Out of bounds on buffer access (axis {dim})" - * + * * resultp = bufp + index * stride # <<<<<<<<<<<<<< * if suboffset >= 0: * resultp = ( resultp)[0] + suboffset @@ -14947,11 +14952,11 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P __pyx_v_resultp = (__pyx_v_bufp + (__pyx_v_index * __pyx_v_stride)); /* "View.MemoryView":920 - * + * * resultp = bufp + index * stride * if suboffset >= 0: # <<<<<<<<<<<<<< * resultp = ( resultp)[0] + suboffset - * + * */ __pyx_t_2 = (__pyx_v_suboffset >= 0); if (__pyx_t_2) { @@ -14960,32 +14965,32 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P * resultp = bufp + index * stride * if suboffset >= 0: * resultp = ( resultp)[0] + suboffset # <<<<<<<<<<<<<< - * + * * return resultp */ __pyx_v_resultp = ((((char **)__pyx_v_resultp)[0]) + __pyx_v_suboffset); /* "View.MemoryView":920 - * + * * resultp = bufp + index * stride * if suboffset >= 0: # <<<<<<<<<<<<<< * resultp = ( resultp)[0] + suboffset - * + * */ } /* "View.MemoryView":923 * resultp = ( resultp)[0] + suboffset - * + * * return resultp # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = __pyx_v_resultp; goto __pyx_L0; /* "View.MemoryView":896 - * + * * @cname('__pyx_pybuffer_index') * cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index, # <<<<<<<<<<<<<< * Py_ssize_t dim) except NULL: @@ -15004,11 +15009,11 @@ static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view, char *__pyx_v_bufp, P } /* "View.MemoryView":929 - * + * * @cname('__pyx_memslice_transpose') * cdef int transpose_memslice(__Pyx_memviewslice *memslice) except -1 nogil: # <<<<<<<<<<<<<< * cdef int ndim = memslice.memview.view.ndim - * + * */ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { @@ -15038,7 +15043,7 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { * @cname('__pyx_memslice_transpose') * cdef int transpose_memslice(__Pyx_memviewslice *memslice) except -1 nogil: * cdef int ndim = memslice.memview.view.ndim # <<<<<<<<<<<<<< - * + * * cdef Py_ssize_t *shape = memslice.shape */ __pyx_t_1 = __pyx_v_memslice->memview->view.ndim; @@ -15046,26 +15051,26 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { /* "View.MemoryView":932 * cdef int ndim = memslice.memview.view.ndim - * + * * cdef Py_ssize_t *shape = memslice.shape # <<<<<<<<<<<<<< * cdef Py_ssize_t *strides = memslice.strides - * + * */ __pyx_t_2 = __pyx_v_memslice->shape; __pyx_v_shape = __pyx_t_2; /* "View.MemoryView":933 - * + * * cdef Py_ssize_t *shape = memslice.shape * cdef Py_ssize_t *strides = memslice.strides # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_2 = __pyx_v_memslice->strides; __pyx_v_strides = __pyx_t_2; /* "View.MemoryView":937 - * + * * cdef int i, j * for i in range(ndim // 2): # <<<<<<<<<<<<<< * j = ndim - 1 - i @@ -15090,7 +15095,7 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { * j = ndim - 1 - i * strides[i], strides[j] = strides[j], strides[i] # <<<<<<<<<<<<<< * shape[i], shape[j] = shape[j], shape[i] - * + * */ __pyx_t_5 = (__pyx_v_strides[__pyx_v_j]); __pyx_t_6 = (__pyx_v_strides[__pyx_v_i]); @@ -15101,7 +15106,7 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { * j = ndim - 1 - i * strides[i], strides[j] = strides[j], strides[i] * shape[i], shape[j] = shape[j], shape[i] # <<<<<<<<<<<<<< - * + * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: */ __pyx_t_6 = (__pyx_v_shape[__pyx_v_j]); @@ -15111,10 +15116,10 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { /* "View.MemoryView":942 * shape[i], shape[j] = shape[j], shape[i] - * + * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: # <<<<<<<<<<<<<< * _err(PyExc_ValueError, "Cannot transpose memoryview with indirect dimensions") - * + * */ __pyx_t_8 = ((__pyx_v_memslice->suboffsets[__pyx_v_i]) >= 0); if (!__pyx_t_8) { @@ -15128,40 +15133,40 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { if (__pyx_t_7) { /* "View.MemoryView":943 - * + * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: * _err(PyExc_ValueError, "Cannot transpose memoryview with indirect dimensions") # <<<<<<<<<<<<<< - * + * * return 0 */ __pyx_t_9 = __pyx_memoryview_err(PyExc_ValueError, __pyx_kp_s_Cannot_transpose_memoryview_with); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 943, __pyx_L1_error) /* "View.MemoryView":942 * shape[i], shape[j] = shape[j], shape[i] - * + * * if memslice.suboffsets[i] >= 0 or memslice.suboffsets[j] >= 0: # <<<<<<<<<<<<<< * _err(PyExc_ValueError, "Cannot transpose memoryview with indirect dimensions") - * + * */ } } /* "View.MemoryView":945 * _err(PyExc_ValueError, "Cannot transpose memoryview with indirect dimensions") - * + * * return 0 # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":929 - * + * * @cname('__pyx_memslice_transpose') * cdef int transpose_memslice(__Pyx_memviewslice *memslice) except -1 nogil: # <<<<<<<<<<<<<< * cdef int ndim = memslice.memview.view.ndim - * + * */ /* function exit code */ @@ -15180,10 +15185,10 @@ static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) { /* "View.MemoryView":963 * cdef int (*to_dtype_func)(char *, object) except 0 - * + * * def __dealloc__(self): # <<<<<<<<<<<<<< * __PYX_XCLEAR_MEMVIEW(&self.from_slice, 1) - * + * */ /* Python wrapper */ @@ -15202,20 +15207,20 @@ static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self) { static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self) { /* "View.MemoryView":964 - * + * * def __dealloc__(self): * __PYX_XCLEAR_MEMVIEW(&self.from_slice, 1) # <<<<<<<<<<<<<< - * + * * cdef convert_item_to_object(self, char *itemp): */ __PYX_XCLEAR_MEMVIEW((&__pyx_v_self->from_slice), 1); /* "View.MemoryView":963 * cdef int (*to_dtype_func)(char *, object) except 0 - * + * * def __dealloc__(self): # <<<<<<<<<<<<<< * __PYX_XCLEAR_MEMVIEW(&self.from_slice, 1) - * + * */ /* function exit code */ @@ -15223,7 +15228,7 @@ static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewsl /* "View.MemoryView":966 * __PYX_XCLEAR_MEMVIEW(&self.from_slice, 1) - * + * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * if self.to_object_func != NULL: * return self.to_object_func(itemp) @@ -15240,7 +15245,7 @@ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memor __Pyx_RefNannySetupContext("convert_item_to_object", 1); /* "View.MemoryView":967 - * + * * cdef convert_item_to_object(self, char *itemp): * if self.to_object_func != NULL: # <<<<<<<<<<<<<< * return self.to_object_func(itemp) @@ -15264,7 +15269,7 @@ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memor goto __pyx_L0; /* "View.MemoryView":967 - * + * * cdef convert_item_to_object(self, char *itemp): * if self.to_object_func != NULL: # <<<<<<<<<<<<<< * return self.to_object_func(itemp) @@ -15276,7 +15281,7 @@ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memor * return self.to_object_func(itemp) * else: * return memoryview.convert_item_to_object(self, itemp) # <<<<<<<<<<<<<< - * + * * cdef assign_item_from_object(self, char *itemp, object value): */ /*else*/ { @@ -15290,7 +15295,7 @@ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memor /* "View.MemoryView":966 * __PYX_XCLEAR_MEMVIEW(&self.from_slice, 1) - * + * * cdef convert_item_to_object(self, char *itemp): # <<<<<<<<<<<<<< * if self.to_object_func != NULL: * return self.to_object_func(itemp) @@ -15309,7 +15314,7 @@ static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memor /* "View.MemoryView":972 * return memoryview.convert_item_to_object(self, itemp) - * + * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * if self.to_dtype_func != NULL: * self.to_dtype_func(itemp, value) @@ -15327,7 +15332,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo __Pyx_RefNannySetupContext("assign_item_from_object", 1); /* "View.MemoryView":973 - * + * * cdef assign_item_from_object(self, char *itemp, object value): * if self.to_dtype_func != NULL: # <<<<<<<<<<<<<< * self.to_dtype_func(itemp, value) @@ -15346,7 +15351,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo __pyx_t_2 = __pyx_v_self->to_dtype_func(__pyx_v_itemp, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(0, 974, __pyx_L1_error) /* "View.MemoryView":973 - * + * * cdef assign_item_from_object(self, char *itemp, object value): * if self.to_dtype_func != NULL: # <<<<<<<<<<<<<< * self.to_dtype_func(itemp, value) @@ -15359,7 +15364,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo * self.to_dtype_func(itemp, value) * else: * memoryview.assign_item_from_object(self, itemp, value) # <<<<<<<<<<<<<< - * + * * cdef _get_base(self): */ /*else*/ { @@ -15371,7 +15376,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo /* "View.MemoryView":972 * return memoryview.convert_item_to_object(self, itemp) - * + * * cdef assign_item_from_object(self, char *itemp, object value): # <<<<<<<<<<<<<< * if self.to_dtype_func != NULL: * self.to_dtype_func(itemp, value) @@ -15392,10 +15397,10 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo /* "View.MemoryView":978 * memoryview.assign_item_from_object(self, itemp, value) - * + * * cdef _get_base(self): # <<<<<<<<<<<<<< * return self.from_object - * + * */ static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_obj *__pyx_v_self) { @@ -15404,11 +15409,11 @@ static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_ob __Pyx_RefNannySetupContext("_get_base", 1); /* "View.MemoryView":979 - * + * * cdef _get_base(self): * return self.from_object # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->from_object); @@ -15417,10 +15422,10 @@ static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_ob /* "View.MemoryView":978 * memoryview.assign_item_from_object(self, itemp, value) - * + * * cdef _get_base(self): # <<<<<<<<<<<<<< * return self.from_object - * + * */ /* function exit code */ @@ -15437,14 +15442,14 @@ static PyObject *__pyx_memoryviewslice__get_base(struct __pyx_memoryviewslice_ob */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -15516,14 +15521,14 @@ static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED */ /* Python wrapper */ -static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ -static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -15643,7 +15648,7 @@ static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUS } /* "View.MemoryView":999 - * + * * @cname('__pyx_memoryview_fromslice') * cdef memoryview_fromslice(__Pyx_memviewslice memviewslice, # <<<<<<<<<<<<<< * int ndim, @@ -15672,20 +15677,20 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1007 * cdef _memoryviewslice result - * + * * if memviewslice.memview == Py_None: # <<<<<<<<<<<<<< * return None - * + * */ __pyx_t_1 = (((PyObject *)__pyx_v_memviewslice.memview) == Py_None); if (__pyx_t_1) { /* "View.MemoryView":1008 - * + * * if memviewslice.memview == Py_None: * return None # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); @@ -15693,18 +15698,18 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1007 * cdef _memoryviewslice result - * + * * if memviewslice.memview == Py_None: # <<<<<<<<<<<<<< * return None - * + * */ } /* "View.MemoryView":1013 - * - * + * + * * result = _memoryviewslice.__new__(_memoryviewslice, None, 0, dtype_is_object) # <<<<<<<<<<<<<< - * + * * result.from_slice = memviewslice */ __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1013, __pyx_L1_error) @@ -15728,28 +15733,28 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1015 * result = _memoryviewslice.__new__(_memoryviewslice, None, 0, dtype_is_object) - * + * * result.from_slice = memviewslice # <<<<<<<<<<<<<< * __PYX_INC_MEMVIEW(&memviewslice, 1) - * + * */ __pyx_v_result->from_slice = __pyx_v_memviewslice; /* "View.MemoryView":1016 - * + * * result.from_slice = memviewslice * __PYX_INC_MEMVIEW(&memviewslice, 1) # <<<<<<<<<<<<<< - * + * * result.from_object = ( memviewslice.memview)._get_base() */ __PYX_INC_MEMVIEW((&__pyx_v_memviewslice), 1); /* "View.MemoryView":1018 * __PYX_INC_MEMVIEW(&memviewslice, 1) - * + * * result.from_object = ( memviewslice.memview)._get_base() # <<<<<<<<<<<<<< * result.typeinfo = memviewslice.memview.typeinfo - * + * */ __pyx_t_2 = ((struct __pyx_vtabstruct_memoryview *)((struct __pyx_memoryview_obj *)__pyx_v_memviewslice.memview)->__pyx_vtab)->_get_base(((struct __pyx_memoryview_obj *)__pyx_v_memviewslice.memview)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -15760,10 +15765,10 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl __pyx_t_2 = 0; /* "View.MemoryView":1019 - * + * * result.from_object = ( memviewslice.memview)._get_base() * result.typeinfo = memviewslice.memview.typeinfo # <<<<<<<<<<<<<< - * + * * result.view = memviewslice.memview.view */ __pyx_t_4 = __pyx_v_memviewslice.memview->typeinfo; @@ -15771,7 +15776,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1021 * result.typeinfo = memviewslice.memview.typeinfo - * + * * result.view = memviewslice.memview.view # <<<<<<<<<<<<<< * result.view.buf = memviewslice.data * result.view.ndim = ndim @@ -15780,7 +15785,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl __pyx_v_result->__pyx_base.view = __pyx_t_5; /* "View.MemoryView":1022 - * + * * result.view = memviewslice.memview.view * result.view.buf = memviewslice.data # <<<<<<<<<<<<<< * result.view.ndim = ndim @@ -15802,7 +15807,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl * result.view.ndim = ndim * (<__pyx_buffer *> &result.view).obj = Py_None # <<<<<<<<<<<<<< * Py_INCREF(Py_None) - * + * */ ((Py_buffer *)(&__pyx_v_result->__pyx_base.view))->obj = Py_None; @@ -15810,14 +15815,14 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl * result.view.ndim = ndim * (<__pyx_buffer *> &result.view).obj = Py_None * Py_INCREF(Py_None) # <<<<<<<<<<<<<< - * + * * if (memviewslice.memview).flags & PyBUF_WRITABLE: */ Py_INCREF(Py_None); /* "View.MemoryView":1027 * Py_INCREF(Py_None) - * + * * if (memviewslice.memview).flags & PyBUF_WRITABLE: # <<<<<<<<<<<<<< * result.flags = PyBUF_RECORDS * else: @@ -15826,7 +15831,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl if (__pyx_t_1) { /* "View.MemoryView":1028 - * + * * if (memviewslice.memview).flags & PyBUF_WRITABLE: * result.flags = PyBUF_RECORDS # <<<<<<<<<<<<<< * else: @@ -15836,7 +15841,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1027 * Py_INCREF(Py_None) - * + * * if (memviewslice.memview).flags & PyBUF_WRITABLE: # <<<<<<<<<<<<<< * result.flags = PyBUF_RECORDS * else: @@ -15848,7 +15853,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl * result.flags = PyBUF_RECORDS * else: * result.flags = PyBUF_RECORDS_RO # <<<<<<<<<<<<<< - * + * * result.view.shape = result.from_slice.shape */ /*else*/ { @@ -15858,25 +15863,25 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1032 * result.flags = PyBUF_RECORDS_RO - * + * * result.view.shape = result.from_slice.shape # <<<<<<<<<<<<<< * result.view.strides = result.from_slice.strides - * + * */ __pyx_v_result->__pyx_base.view.shape = ((Py_ssize_t *)__pyx_v_result->from_slice.shape); /* "View.MemoryView":1033 - * + * * result.view.shape = result.from_slice.shape * result.view.strides = result.from_slice.strides # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_v_result->__pyx_base.view.strides = ((Py_ssize_t *)__pyx_v_result->from_slice.strides); /* "View.MemoryView":1036 - * - * + * + * * result.view.suboffsets = NULL # <<<<<<<<<<<<<< * for suboffset in result.from_slice.suboffsets[:ndim]: * if suboffset >= 0: @@ -15884,7 +15889,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl __pyx_v_result->__pyx_base.view.suboffsets = NULL; /* "View.MemoryView":1037 - * + * * result.view.suboffsets = NULL * for suboffset in result.from_slice.suboffsets[:ndim]: # <<<<<<<<<<<<<< * if suboffset >= 0: @@ -15910,7 +15915,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl * if suboffset >= 0: * result.view.suboffsets = result.from_slice.suboffsets # <<<<<<<<<<<<<< * break - * + * */ __pyx_v_result->__pyx_base.view.suboffsets = ((Py_ssize_t *)__pyx_v_result->from_slice.suboffsets); @@ -15918,7 +15923,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl * if suboffset >= 0: * result.view.suboffsets = result.from_slice.suboffsets * break # <<<<<<<<<<<<<< - * + * * result.view.len = result.view.itemsize */ goto __pyx_L6_break; @@ -15936,7 +15941,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1042 * break - * + * * result.view.len = result.view.itemsize # <<<<<<<<<<<<<< * for length in result.view.shape[:ndim]: * result.view.len *= length @@ -15945,11 +15950,11 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl __pyx_v_result->__pyx_base.view.len = __pyx_t_9; /* "View.MemoryView":1043 - * + * * result.view.len = result.view.itemsize * for length in result.view.shape[:ndim]: # <<<<<<<<<<<<<< * result.view.len *= length - * + * */ __pyx_t_7 = (__pyx_v_result->__pyx_base.view.shape + __pyx_v_ndim); for (__pyx_t_8 = __pyx_v_result->__pyx_base.view.shape; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) { @@ -15963,7 +15968,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl * result.view.len = result.view.itemsize * for length in result.view.shape[:ndim]: * result.view.len *= length # <<<<<<<<<<<<<< - * + * * result.to_object_func = to_object_func */ __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_result->__pyx_base.view.len); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1044, __pyx_L1_error) @@ -15978,27 +15983,27 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl /* "View.MemoryView":1046 * result.view.len *= length - * + * * result.to_object_func = to_object_func # <<<<<<<<<<<<<< * result.to_dtype_func = to_dtype_func - * + * */ __pyx_v_result->to_object_func = __pyx_v_to_object_func; /* "View.MemoryView":1047 - * + * * result.to_object_func = to_object_func * result.to_dtype_func = to_dtype_func # <<<<<<<<<<<<<< - * + * * return result */ __pyx_v_result->to_dtype_func = __pyx_v_to_dtype_func; /* "View.MemoryView":1049 * result.to_dtype_func = to_dtype_func - * + * * return result # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_get_slice_from_memoryview') */ __Pyx_XDECREF(__pyx_r); @@ -16007,7 +16012,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl goto __pyx_L0; /* "View.MemoryView":999 - * + * * @cname('__pyx_memoryview_fromslice') * cdef memoryview_fromslice(__Pyx_memviewslice memviewslice, # <<<<<<<<<<<<<< * int ndim, @@ -16029,7 +16034,7 @@ static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewsl } /* "View.MemoryView":1052 - * + * * @cname('__pyx_memoryview_get_slice_from_memoryview') * cdef __Pyx_memviewslice *get_slice_from_memview(memoryview memview, # <<<<<<<<<<<<<< * __Pyx_memviewslice *mslice) except NULL: @@ -16054,7 +16059,7 @@ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __p * obj = memview * return &obj.from_slice */ - __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); + __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); if (__pyx_t_1) { /* "View.MemoryView":1056 @@ -16094,7 +16099,7 @@ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __p * else: * slice_copy(memview, mslice) # <<<<<<<<<<<<<< * return mslice - * + * */ /*else*/ { __pyx_memoryview_slice_copy(__pyx_v_memview, __pyx_v_mslice); @@ -16103,7 +16108,7 @@ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __p * else: * slice_copy(memview, mslice) * return mslice # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_slice_copy') */ __pyx_r = __pyx_v_mslice; @@ -16111,7 +16116,7 @@ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __p } /* "View.MemoryView":1052 - * + * * @cname('__pyx_memoryview_get_slice_from_memoryview') * cdef __Pyx_memviewslice *get_slice_from_memview(memoryview memview, # <<<<<<<<<<<<<< * __Pyx_memviewslice *mslice) except NULL: @@ -16130,7 +16135,7 @@ static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __p } /* "View.MemoryView":1063 - * + * * @cname('__pyx_memoryview_slice_copy') * cdef void slice_copy(memoryview memview, __Pyx_memviewslice *dst) noexcept: # <<<<<<<<<<<<<< * cdef int dim @@ -16151,7 +16156,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem /* "View.MemoryView":1067 * cdef (Py_ssize_t*) shape, strides, suboffsets - * + * * shape = memview.view.shape # <<<<<<<<<<<<<< * strides = memview.view.strides * suboffsets = memview.view.suboffsets @@ -16160,11 +16165,11 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem __pyx_v_shape = __pyx_t_1; /* "View.MemoryView":1068 - * + * * shape = memview.view.shape * strides = memview.view.strides # <<<<<<<<<<<<<< * suboffsets = memview.view.suboffsets - * + * */ __pyx_t_1 = __pyx_v_memview->view.strides; __pyx_v_strides = __pyx_t_1; @@ -16173,7 +16178,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem * shape = memview.view.shape * strides = memview.view.strides * suboffsets = memview.view.suboffsets # <<<<<<<<<<<<<< - * + * * dst.memview = <__pyx_memoryview *> memview */ __pyx_t_1 = __pyx_v_memview->view.suboffsets; @@ -16181,25 +16186,25 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem /* "View.MemoryView":1071 * suboffsets = memview.view.suboffsets - * + * * dst.memview = <__pyx_memoryview *> memview # <<<<<<<<<<<<<< * dst.data = memview.view.buf - * + * */ __pyx_v_dst->memview = ((struct __pyx_memoryview_obj *)__pyx_v_memview); /* "View.MemoryView":1072 - * + * * dst.memview = <__pyx_memoryview *> memview * dst.data = memview.view.buf # <<<<<<<<<<<<<< - * + * * for dim in range(memview.view.ndim): */ __pyx_v_dst->data = ((char *)__pyx_v_memview->view.buf); /* "View.MemoryView":1074 * dst.data = memview.view.buf - * + * * for dim in range(memview.view.ndim): # <<<<<<<<<<<<<< * dst.shape[dim] = shape[dim] * dst.strides[dim] = strides[dim] @@ -16210,7 +16215,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem __pyx_v_dim = __pyx_t_4; /* "View.MemoryView":1075 - * + * * for dim in range(memview.view.ndim): * dst.shape[dim] = shape[dim] # <<<<<<<<<<<<<< * dst.strides[dim] = strides[dim] @@ -16223,7 +16228,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem * dst.shape[dim] = shape[dim] * dst.strides[dim] = strides[dim] # <<<<<<<<<<<<<< * dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1 - * + * */ (__pyx_v_dst->strides[__pyx_v_dim]) = (__pyx_v_strides[__pyx_v_dim]); @@ -16231,7 +16236,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem * dst.shape[dim] = shape[dim] * dst.strides[dim] = strides[dim] * dst.suboffsets[dim] = suboffsets[dim] if suboffsets else -1 # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_copy_object') */ __pyx_t_6 = (__pyx_v_suboffsets != 0); @@ -16244,7 +16249,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem } /* "View.MemoryView":1063 - * + * * @cname('__pyx_memoryview_slice_copy') * cdef void slice_copy(memoryview memview, __Pyx_memviewslice *dst) noexcept: # <<<<<<<<<<<<<< * cdef int dim @@ -16255,7 +16260,7 @@ static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *__pyx_v_mem } /* "View.MemoryView":1080 - * + * * @cname('__pyx_memoryview_copy_object') * cdef memoryview_copy(memoryview memview): # <<<<<<<<<<<<<< * "Create a new memoryview object" @@ -16277,7 +16282,7 @@ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx * cdef __Pyx_memviewslice memviewslice * slice_copy(memview, &memviewslice) # <<<<<<<<<<<<<< * return memoryview_copy_from_slice(memview, &memviewslice) - * + * */ __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_memviewslice)); @@ -16285,7 +16290,7 @@ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx * cdef __Pyx_memviewslice memviewslice * slice_copy(memview, &memviewslice) * return memoryview_copy_from_slice(memview, &memviewslice) # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_copy_object_from_slice') */ __Pyx_XDECREF(__pyx_r); @@ -16296,7 +16301,7 @@ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx goto __pyx_L0; /* "View.MemoryView":1080 - * + * * @cname('__pyx_memoryview_copy_object') * cdef memoryview_copy(memoryview memview): # <<<<<<<<<<<<<< * "Create a new memoryview object" @@ -16315,7 +16320,7 @@ static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *__pyx } /* "View.MemoryView":1087 - * + * * @cname('__pyx_memoryview_copy_object_from_slice') * cdef memoryview_copy_from_slice(memoryview memview, __Pyx_memviewslice *memviewslice): # <<<<<<<<<<<<<< * """ @@ -16338,16 +16343,16 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview /* "View.MemoryView":1094 * cdef int (*to_dtype_func)(char *, object) except 0 - * + * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * to_object_func = (<_memoryviewslice> memview).to_object_func * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func */ - __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); + __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type); if (__pyx_t_1) { /* "View.MemoryView":1095 - * + * * if isinstance(memview, _memoryviewslice): * to_object_func = (<_memoryviewslice> memview).to_object_func # <<<<<<<<<<<<<< * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func @@ -16368,7 +16373,7 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview /* "View.MemoryView":1094 * cdef int (*to_dtype_func)(char *, object) except 0 - * + * * if isinstance(memview, _memoryviewslice): # <<<<<<<<<<<<<< * to_object_func = (<_memoryviewslice> memview).to_object_func * to_dtype_func = (<_memoryviewslice> memview).to_dtype_func @@ -16381,7 +16386,7 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview * else: * to_object_func = NULL # <<<<<<<<<<<<<< * to_dtype_func = NULL - * + * */ /*else*/ { __pyx_v_to_object_func = NULL; @@ -16390,7 +16395,7 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview * else: * to_object_func = NULL * to_dtype_func = NULL # <<<<<<<<<<<<<< - * + * * return memoryview_fromslice(memviewslice[0], memview.view.ndim, */ __pyx_v_to_dtype_func = NULL; @@ -16399,7 +16404,7 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview /* "View.MemoryView":1101 * to_dtype_func = NULL - * + * * return memoryview_fromslice(memviewslice[0], memview.view.ndim, # <<<<<<<<<<<<<< * to_object_func, to_dtype_func, * memview.dtype_is_object) @@ -16410,8 +16415,8 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview * return memoryview_fromslice(memviewslice[0], memview.view.ndim, * to_object_func, to_dtype_func, * memview.dtype_is_object) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_4 = __pyx_memoryview_fromslice((__pyx_v_memviewslice[0]), __pyx_v_memview->view.ndim, __pyx_v_to_object_func, __pyx_v_to_dtype_func, __pyx_v_memview->dtype_is_object); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); @@ -16420,7 +16425,7 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview goto __pyx_L0; /* "View.MemoryView":1087 - * + * * @cname('__pyx_memoryview_copy_object_from_slice') * cdef memoryview_copy_from_slice(memoryview memview, __Pyx_memviewslice *memviewslice): # <<<<<<<<<<<<<< * """ @@ -16439,11 +16444,11 @@ static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview } /* "View.MemoryView":1109 - * - * + * + * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) noexcept nogil: # <<<<<<<<<<<<<< * return -arg if arg < 0 else arg - * + * */ static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) { @@ -16452,10 +16457,10 @@ static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) { int __pyx_t_2; /* "View.MemoryView":1110 - * + * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) noexcept nogil: * return -arg if arg < 0 else arg # <<<<<<<<<<<<<< - * + * * @cname('__pyx_get_best_slice_order') */ __pyx_t_2 = (__pyx_v_arg < 0); @@ -16468,11 +16473,11 @@ static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) { goto __pyx_L0; /* "View.MemoryView":1109 - * - * + * + * * cdef Py_ssize_t abs_py_ssize_t(Py_ssize_t arg) noexcept nogil: # <<<<<<<<<<<<<< * return -arg if arg < 0 else arg - * + * */ /* function exit code */ @@ -16481,7 +16486,7 @@ static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) { } /* "View.MemoryView":1113 - * + * * @cname('__pyx_get_best_slice_order') * cdef char get_best_order(__Pyx_memviewslice *mslice, int ndim) noexcept nogil: # <<<<<<<<<<<<<< * """ @@ -16503,7 +16508,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * cdef int i * cdef Py_ssize_t c_stride = 0 # <<<<<<<<<<<<<< * cdef Py_ssize_t f_stride = 0 - * + * */ __pyx_v_c_stride = 0; @@ -16511,14 +16516,14 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * cdef int i * cdef Py_ssize_t c_stride = 0 * cdef Py_ssize_t f_stride = 0 # <<<<<<<<<<<<<< - * + * * for i in range(ndim - 1, -1, -1): */ __pyx_v_f_stride = 0; /* "View.MemoryView":1121 * cdef Py_ssize_t f_stride = 0 - * + * * for i in range(ndim - 1, -1, -1): # <<<<<<<<<<<<<< * if mslice.shape[i] > 1: * c_stride = mslice.strides[i] @@ -16527,7 +16532,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ __pyx_v_i = __pyx_t_1; /* "View.MemoryView":1122 - * + * * for i in range(ndim - 1, -1, -1): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * c_stride = mslice.strides[i] @@ -16541,7 +16546,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * if mslice.shape[i] > 1: * c_stride = mslice.strides[i] # <<<<<<<<<<<<<< * break - * + * */ __pyx_v_c_stride = (__pyx_v_mslice->strides[__pyx_v_i]); @@ -16549,13 +16554,13 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * if mslice.shape[i] > 1: * c_stride = mslice.strides[i] * break # <<<<<<<<<<<<<< - * + * * for i in range(ndim): */ goto __pyx_L4_break; /* "View.MemoryView":1122 - * + * * for i in range(ndim - 1, -1, -1): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * c_stride = mslice.strides[i] @@ -16567,7 +16572,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ /* "View.MemoryView":1126 * break - * + * * for i in range(ndim): # <<<<<<<<<<<<<< * if mslice.shape[i] > 1: * f_stride = mslice.strides[i] @@ -16578,7 +16583,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ __pyx_v_i = __pyx_t_4; /* "View.MemoryView":1127 - * + * * for i in range(ndim): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * f_stride = mslice.strides[i] @@ -16592,7 +16597,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * if mslice.shape[i] > 1: * f_stride = mslice.strides[i] # <<<<<<<<<<<<<< * break - * + * */ __pyx_v_f_stride = (__pyx_v_mslice->strides[__pyx_v_i]); @@ -16600,13 +16605,13 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * if mslice.shape[i] > 1: * f_stride = mslice.strides[i] * break # <<<<<<<<<<<<<< - * + * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): */ goto __pyx_L7_break; /* "View.MemoryView":1127 - * + * * for i in range(ndim): * if mslice.shape[i] > 1: # <<<<<<<<<<<<<< * f_stride = mslice.strides[i] @@ -16618,7 +16623,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ /* "View.MemoryView":1131 * break - * + * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): # <<<<<<<<<<<<<< * return 'C' * else: @@ -16627,7 +16632,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ if (__pyx_t_2) { /* "View.MemoryView":1132 - * + * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): * return 'C' # <<<<<<<<<<<<<< * else: @@ -16638,7 +16643,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ /* "View.MemoryView":1131 * break - * + * * if abs_py_ssize_t(c_stride) <= abs_py_ssize_t(f_stride): # <<<<<<<<<<<<<< * return 'C' * else: @@ -16649,7 +16654,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * return 'C' * else: * return 'F' # <<<<<<<<<<<<<< - * + * * @cython.cdivision(True) */ /*else*/ { @@ -16658,7 +16663,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ } /* "View.MemoryView":1113 - * + * * @cname('__pyx_get_best_slice_order') * cdef char get_best_order(__Pyx_memviewslice *mslice, int ndim) noexcept nogil: # <<<<<<<<<<<<<< * """ @@ -16671,7 +16676,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ } /* "View.MemoryView":1137 - * + * * @cython.cdivision(True) * cdef void _copy_strided_to_strided(char *src_data, Py_ssize_t *src_strides, # <<<<<<<<<<<<<< * char *dst_data, Py_ssize_t *dst_strides, @@ -16691,7 +16696,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v Py_ssize_t __pyx_t_5; /* "View.MemoryView":1144 - * + * * cdef Py_ssize_t i * cdef Py_ssize_t src_extent = src_shape[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t dst_extent = dst_shape[0] @@ -16713,7 +16718,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v * cdef Py_ssize_t dst_extent = dst_shape[0] * cdef Py_ssize_t src_stride = src_strides[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t dst_stride = dst_strides[0] - * + * */ __pyx_v_src_stride = (__pyx_v_src_strides[0]); @@ -16721,14 +16726,14 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v * cdef Py_ssize_t dst_extent = dst_shape[0] * cdef Py_ssize_t src_stride = src_strides[0] * cdef Py_ssize_t dst_stride = dst_strides[0] # <<<<<<<<<<<<<< - * + * * if ndim == 1: */ __pyx_v_dst_stride = (__pyx_v_dst_strides[0]); /* "View.MemoryView":1149 * cdef Py_ssize_t dst_stride = dst_strides[0] - * + * * if ndim == 1: # <<<<<<<<<<<<<< * if (src_stride > 0 and dst_stride > 0 and * src_stride == itemsize == dst_stride): @@ -16737,7 +16742,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v if (__pyx_t_1) { /* "View.MemoryView":1150 - * + * * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and # <<<<<<<<<<<<<< * src_stride == itemsize == dst_stride): @@ -16771,7 +16776,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v __pyx_L5_bool_binop_done:; /* "View.MemoryView":1150 - * + * * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and # <<<<<<<<<<<<<< * src_stride == itemsize == dst_stride): @@ -16789,7 +16794,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, (__pyx_v_itemsize * __pyx_v_dst_extent))); /* "View.MemoryView":1150 - * + * * if ndim == 1: * if (src_stride > 0 and dst_stride > 0 and # <<<<<<<<<<<<<< * src_stride == itemsize == dst_stride): @@ -16843,7 +16848,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v /* "View.MemoryView":1149 * cdef Py_ssize_t dst_stride = dst_strides[0] - * + * * if ndim == 1: # <<<<<<<<<<<<<< * if (src_stride > 0 and dst_stride > 0 and * src_stride == itemsize == dst_stride): @@ -16878,7 +16883,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v * ndim - 1, itemsize) * src_data += src_stride # <<<<<<<<<<<<<< * dst_data += dst_stride - * + * */ __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride); @@ -16886,7 +16891,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v * ndim - 1, itemsize) * src_data += src_stride * dst_data += dst_stride # <<<<<<<<<<<<<< - * + * * cdef void copy_strided_to_strided(__Pyx_memviewslice *src, */ __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride); @@ -16895,7 +16900,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v __pyx_L3:; /* "View.MemoryView":1137 - * + * * @cython.cdivision(True) * cdef void _copy_strided_to_strided(char *src_data, Py_ssize_t *src_strides, # <<<<<<<<<<<<<< * char *dst_data, Py_ssize_t *dst_strides, @@ -16907,7 +16912,7 @@ static void _copy_strided_to_strided(char *__pyx_v_src_data, Py_ssize_t *__pyx_v /* "View.MemoryView":1167 * dst_data += dst_stride - * + * * cdef void copy_strided_to_strided(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, * int ndim, size_t itemsize) noexcept nogil: @@ -16920,13 +16925,13 @@ static void copy_strided_to_strided(__Pyx_memviewslice *__pyx_v_src, __Pyx_memvi * int ndim, size_t itemsize) noexcept nogil: * _copy_strided_to_strided(src.data, src.strides, dst.data, dst.strides, # <<<<<<<<<<<<<< * src.shape, dst.shape, ndim, itemsize) - * + * */ _copy_strided_to_strided(__pyx_v_src->data, __pyx_v_src->strides, __pyx_v_dst->data, __pyx_v_dst->strides, __pyx_v_src->shape, __pyx_v_dst->shape, __pyx_v_ndim, __pyx_v_itemsize); /* "View.MemoryView":1167 * dst_data += dst_stride - * + * * cdef void copy_strided_to_strided(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *dst, * int ndim, size_t itemsize) noexcept nogil: @@ -16936,7 +16941,7 @@ static void copy_strided_to_strided(__Pyx_memviewslice *__pyx_v_src, __Pyx_memvi } /* "View.MemoryView":1174 - * + * * @cname('__pyx_memoryview_slice_get_size') * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) noexcept nogil: # <<<<<<<<<<<<<< * "Return the size of the memory occupied by the slice in number of bytes" @@ -16956,7 +16961,7 @@ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_sr * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) noexcept nogil: * "Return the size of the memory occupied by the slice in number of bytes" * cdef Py_ssize_t shape, size = src.memview.view.itemsize # <<<<<<<<<<<<<< - * + * * for shape in src.shape[:ndim]: */ __pyx_t_1 = __pyx_v_src->memview->view.itemsize; @@ -16964,10 +16969,10 @@ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_sr /* "View.MemoryView":1178 * cdef Py_ssize_t shape, size = src.memview.view.itemsize - * + * * for shape in src.shape[:ndim]: # <<<<<<<<<<<<<< * size *= shape - * + * */ __pyx_t_3 = (__pyx_v_src->shape + __pyx_v_ndim); for (__pyx_t_4 = __pyx_v_src->shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { @@ -16975,10 +16980,10 @@ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_sr __pyx_v_shape = (__pyx_t_2[0]); /* "View.MemoryView":1179 - * + * * for shape in src.shape[:ndim]: * size *= shape # <<<<<<<<<<<<<< - * + * * return size */ __pyx_v_size = (__pyx_v_size * __pyx_v_shape); @@ -16986,16 +16991,16 @@ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_sr /* "View.MemoryView":1181 * size *= shape - * + * * return size # <<<<<<<<<<<<<< - * + * * @cname('__pyx_fill_contig_strides_array') */ __pyx_r = __pyx_v_size; goto __pyx_L0; /* "View.MemoryView":1174 - * + * * @cname('__pyx_memoryview_slice_get_size') * cdef Py_ssize_t slice_get_size(__Pyx_memviewslice *src, int ndim) noexcept nogil: # <<<<<<<<<<<<<< * "Return the size of the memory occupied by the slice in number of bytes" @@ -17008,7 +17013,7 @@ static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_sr } /* "View.MemoryView":1184 - * + * * @cname('__pyx_fill_contig_strides_array') * cdef Py_ssize_t fill_contig_strides_array( # <<<<<<<<<<<<<< * Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t stride, @@ -17025,7 +17030,7 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ /* "View.MemoryView":1193 * cdef int idx - * + * * if order == 'F': # <<<<<<<<<<<<<< * for idx in range(ndim): * strides[idx] = stride @@ -17034,7 +17039,7 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ if (__pyx_t_1) { /* "View.MemoryView":1194 - * + * * if order == 'F': * for idx in range(ndim): # <<<<<<<<<<<<<< * strides[idx] = stride @@ -17066,7 +17071,7 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ /* "View.MemoryView":1193 * cdef int idx - * + * * if order == 'F': # <<<<<<<<<<<<<< * for idx in range(ndim): * strides[idx] = stride @@ -17090,7 +17095,7 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ * for idx in range(ndim - 1, -1, -1): * strides[idx] = stride # <<<<<<<<<<<<<< * stride *= shape[idx] - * + * */ (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride; @@ -17098,7 +17103,7 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ * for idx in range(ndim - 1, -1, -1): * strides[idx] = stride * stride *= shape[idx] # <<<<<<<<<<<<<< - * + * * return stride */ __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx])); @@ -17108,16 +17113,16 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ /* "View.MemoryView":1202 * stride *= shape[idx] - * + * * return stride # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_copy_data_to_temp') */ __pyx_r = __pyx_v_stride; goto __pyx_L0; /* "View.MemoryView":1184 - * + * * @cname('__pyx_fill_contig_strides_array') * cdef Py_ssize_t fill_contig_strides_array( # <<<<<<<<<<<<<< * Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t stride, @@ -17130,7 +17135,7 @@ static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ } /* "View.MemoryView":1205 - * + * * @cname('__pyx_memoryview_copy_data_to_temp') * cdef void *copy_data_to_temp(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *tmpslice, @@ -17158,26 +17163,26 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, /* "View.MemoryView":1216 * cdef void *result - * + * * cdef size_t itemsize = src.memview.view.itemsize # <<<<<<<<<<<<<< * cdef size_t size = slice_get_size(src, ndim) - * + * */ __pyx_t_1 = __pyx_v_src->memview->view.itemsize; __pyx_v_itemsize = __pyx_t_1; /* "View.MemoryView":1217 - * + * * cdef size_t itemsize = src.memview.view.itemsize * cdef size_t size = slice_get_size(src, ndim) # <<<<<<<<<<<<<< - * + * * result = malloc(size) */ __pyx_v_size = __pyx_memoryview_slice_get_size(__pyx_v_src, __pyx_v_ndim); /* "View.MemoryView":1219 * cdef size_t size = slice_get_size(src, ndim) - * + * * result = malloc(size) # <<<<<<<<<<<<<< * if not result: * _err_no_memory() @@ -17185,11 +17190,11 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __pyx_v_result = malloc(__pyx_v_size); /* "View.MemoryView":1220 - * + * * result = malloc(size) * if not result: # <<<<<<<<<<<<<< * _err_no_memory() - * + * */ __pyx_t_2 = (!(__pyx_v_result != 0)); if (__pyx_t_2) { @@ -17198,23 +17203,23 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, * result = malloc(size) * if not result: * _err_no_memory() # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_3 = __pyx_memoryview_err_no_memory(); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1221, __pyx_L1_error) /* "View.MemoryView":1220 - * + * * result = malloc(size) * if not result: # <<<<<<<<<<<<<< * _err_no_memory() - * + * */ } /* "View.MemoryView":1224 - * - * + * + * * tmpslice.data = result # <<<<<<<<<<<<<< * tmpslice.memview = src.memview * for i in range(ndim): @@ -17222,7 +17227,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __pyx_v_tmpslice->data = ((char *)__pyx_v_result); /* "View.MemoryView":1225 - * + * * tmpslice.data = result * tmpslice.memview = src.memview # <<<<<<<<<<<<<< * for i in range(ndim): @@ -17248,7 +17253,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, * for i in range(ndim): * tmpslice.shape[i] = src.shape[i] # <<<<<<<<<<<<<< * tmpslice.suboffsets[i] = -1 - * + * */ (__pyx_v_tmpslice->shape[__pyx_v_i]) = (__pyx_v_src->shape[__pyx_v_i]); @@ -17256,7 +17261,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, * for i in range(ndim): * tmpslice.shape[i] = src.shape[i] * tmpslice.suboffsets[i] = -1 # <<<<<<<<<<<<<< - * + * * fill_contig_strides_array(&tmpslice.shape[0], &tmpslice.strides[0], itemsize, ndim, order) */ (__pyx_v_tmpslice->suboffsets[__pyx_v_i]) = -1L; @@ -17264,16 +17269,16 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, /* "View.MemoryView":1230 * tmpslice.suboffsets[i] = -1 - * + * * fill_contig_strides_array(&tmpslice.shape[0], &tmpslice.strides[0], itemsize, ndim, order) # <<<<<<<<<<<<<< - * - * + * + * */ (void)(__pyx_fill_contig_strides_array((&(__pyx_v_tmpslice->shape[0])), (&(__pyx_v_tmpslice->strides[0])), __pyx_v_itemsize, __pyx_v_ndim, __pyx_v_order)); /* "View.MemoryView":1233 - * - * + * + * * for i in range(ndim): # <<<<<<<<<<<<<< * if tmpslice.shape[i] == 1: * tmpslice.strides[i] = 0 @@ -17284,11 +17289,11 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __pyx_v_i = __pyx_t_6; /* "View.MemoryView":1234 - * + * * for i in range(ndim): * if tmpslice.shape[i] == 1: # <<<<<<<<<<<<<< * tmpslice.strides[i] = 0 - * + * */ __pyx_t_2 = ((__pyx_v_tmpslice->shape[__pyx_v_i]) == 1); if (__pyx_t_2) { @@ -17297,24 +17302,24 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, * for i in range(ndim): * if tmpslice.shape[i] == 1: * tmpslice.strides[i] = 0 # <<<<<<<<<<<<<< - * + * * if slice_is_contig(src[0], order, ndim): */ (__pyx_v_tmpslice->strides[__pyx_v_i]) = 0; /* "View.MemoryView":1234 - * + * * for i in range(ndim): * if tmpslice.shape[i] == 1: # <<<<<<<<<<<<<< * tmpslice.strides[i] = 0 - * + * */ } } /* "View.MemoryView":1237 * tmpslice.strides[i] = 0 - * + * * if slice_is_contig(src[0], order, ndim): # <<<<<<<<<<<<<< * memcpy(result, src.data, size) * else: @@ -17323,7 +17328,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, if (__pyx_t_2) { /* "View.MemoryView":1238 - * + * * if slice_is_contig(src[0], order, ndim): * memcpy(result, src.data, size) # <<<<<<<<<<<<<< * else: @@ -17333,7 +17338,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, /* "View.MemoryView":1237 * tmpslice.strides[i] = 0 - * + * * if slice_is_contig(src[0], order, ndim): # <<<<<<<<<<<<<< * memcpy(result, src.data, size) * else: @@ -17345,7 +17350,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, * memcpy(result, src.data, size) * else: * copy_strided_to_strided(src, tmpslice, ndim, itemsize) # <<<<<<<<<<<<<< - * + * * return result */ /*else*/ { @@ -17355,16 +17360,16 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, /* "View.MemoryView":1242 * copy_strided_to_strided(src, tmpslice, ndim, itemsize) - * + * * return result # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = __pyx_v_result; goto __pyx_L0; /* "View.MemoryView":1205 - * + * * @cname('__pyx_memoryview_copy_data_to_temp') * cdef void *copy_data_to_temp(__Pyx_memviewslice *src, # <<<<<<<<<<<<<< * __Pyx_memviewslice *tmpslice, @@ -17386,7 +17391,7 @@ static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, } /* "View.MemoryView":1247 - * + * * @cname('__pyx_memoryview_err_extents') * cdef int _err_extents(int i, Py_ssize_t extent1, # <<<<<<<<<<<<<< * Py_ssize_t extent2) except -1 with gil: @@ -17412,7 +17417,7 @@ static int __pyx_memoryview_err_extents(int __pyx_v_i, Py_ssize_t __pyx_v_extent * cdef int _err_extents(int i, Py_ssize_t extent1, * Py_ssize_t extent2) except -1 with gil: * raise ValueError, f"got differing extents in dimension {i} (got {extent1} and {extent2})" # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_err_dim') */ __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1249, __pyx_L1_error) @@ -17461,7 +17466,7 @@ static int __pyx_memoryview_err_extents(int __pyx_v_i, Py_ssize_t __pyx_v_extent __PYX_ERR(0, 1249, __pyx_L1_error) /* "View.MemoryView":1247 - * + * * @cname('__pyx_memoryview_err_extents') * cdef int _err_extents(int i, Py_ssize_t extent1, # <<<<<<<<<<<<<< * Py_ssize_t extent2) except -1 with gil: @@ -17482,11 +17487,11 @@ static int __pyx_memoryview_err_extents(int __pyx_v_i, Py_ssize_t __pyx_v_extent } /* "View.MemoryView":1252 - * + * * @cname('__pyx_memoryview_err_dim') * cdef int _err_dim(PyObject *error, str msg, int dim) except -1 with gil: # <<<<<<<<<<<<<< * raise error, msg % dim - * + * */ static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error, PyObject *__pyx_v_msg, int __pyx_v_dim) { @@ -17507,7 +17512,7 @@ static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error, PyObject *__pyx_v_m * @cname('__pyx_memoryview_err_dim') * cdef int _err_dim(PyObject *error, str msg, int dim) except -1 with gil: * raise error, msg % dim # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_err') */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_dim); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1253, __pyx_L1_error) @@ -17520,11 +17525,11 @@ static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error, PyObject *__pyx_v_m __PYX_ERR(0, 1253, __pyx_L1_error) /* "View.MemoryView":1252 - * + * * @cname('__pyx_memoryview_err_dim') * cdef int _err_dim(PyObject *error, str msg, int dim) except -1 with gil: # <<<<<<<<<<<<<< * raise error, msg % dim - * + * */ /* function exit code */ @@ -17542,11 +17547,11 @@ static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error, PyObject *__pyx_v_m } /* "View.MemoryView":1256 - * + * * @cname('__pyx_memoryview_err') * cdef int _err(PyObject *error, str msg) except -1 with gil: # <<<<<<<<<<<<<< * raise error, msg - * + * */ static int __pyx_memoryview_err(PyObject *__pyx_v_error, PyObject *__pyx_v_msg) { @@ -17565,18 +17570,18 @@ static int __pyx_memoryview_err(PyObject *__pyx_v_error, PyObject *__pyx_v_msg) * @cname('__pyx_memoryview_err') * cdef int _err(PyObject *error, str msg) except -1 with gil: * raise error, msg # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_err_no_memory') */ __Pyx_Raise(((PyObject *)__pyx_v_error), __pyx_v_msg, 0, 0); __PYX_ERR(0, 1257, __pyx_L1_error) /* "View.MemoryView":1256 - * + * * @cname('__pyx_memoryview_err') * cdef int _err(PyObject *error, str msg) except -1 with gil: # <<<<<<<<<<<<<< * raise error, msg - * + * */ /* function exit code */ @@ -17592,11 +17597,11 @@ static int __pyx_memoryview_err(PyObject *__pyx_v_error, PyObject *__pyx_v_msg) } /* "View.MemoryView":1260 - * + * * @cname('__pyx_memoryview_err_no_memory') * cdef int _err_no_memory() except -1 with gil: # <<<<<<<<<<<<<< * raise MemoryError - * + * */ static int __pyx_memoryview_err_no_memory(void) { @@ -17612,17 +17617,17 @@ static int __pyx_memoryview_err_no_memory(void) { * @cname('__pyx_memoryview_err_no_memory') * cdef int _err_no_memory() except -1 with gil: * raise MemoryError # <<<<<<<<<<<<<< - * - * + * + * */ PyErr_NoMemory(); __PYX_ERR(0, 1261, __pyx_L1_error) /* "View.MemoryView":1260 - * + * * @cname('__pyx_memoryview_err_no_memory') * cdef int _err_no_memory() except -1 with gil: # <<<<<<<<<<<<<< * raise MemoryError - * + * */ /* function exit code */ @@ -17636,7 +17641,7 @@ static int __pyx_memoryview_err_no_memory(void) { } /* "View.MemoryView":1265 - * + * * @cname('__pyx_memoryview_copy_contents') * cdef int memoryview_copy_contents(__Pyx_memviewslice src, # <<<<<<<<<<<<<< * __Pyx_memviewslice dst, @@ -17709,13 +17714,13 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * cdef bint broadcasting = False * cdef bint direct_copy = False # <<<<<<<<<<<<<< * cdef __Pyx_memviewslice tmp - * + * */ __pyx_v_direct_copy = 0; /* "View.MemoryView":1281 * cdef __Pyx_memviewslice tmp - * + * * if src_ndim < dst_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: @@ -17724,7 +17729,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ if (__pyx_t_2) { /* "View.MemoryView":1282 - * + * * if src_ndim < dst_ndim: * broadcast_leading(&src, src_ndim, dst_ndim) # <<<<<<<<<<<<<< * elif dst_ndim < src_ndim: @@ -17734,7 +17739,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ /* "View.MemoryView":1281 * cdef __Pyx_memviewslice tmp - * + * * if src_ndim < dst_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: @@ -17747,7 +17752,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&dst, dst_ndim, src_ndim) - * + * */ __pyx_t_2 = (__pyx_v_dst_ndim < __pyx_v_src_ndim); if (__pyx_t_2) { @@ -17756,7 +17761,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: * broadcast_leading(&dst, dst_ndim, src_ndim) # <<<<<<<<<<<<<< - * + * * cdef int ndim = max(src_ndim, dst_ndim) */ __pyx_memoryview_broadcast_leading((&__pyx_v_dst), __pyx_v_dst_ndim, __pyx_v_src_ndim); @@ -17766,16 +17771,16 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * broadcast_leading(&src, src_ndim, dst_ndim) * elif dst_ndim < src_ndim: # <<<<<<<<<<<<<< * broadcast_leading(&dst, dst_ndim, src_ndim) - * + * */ } __pyx_L3:; /* "View.MemoryView":1286 * broadcast_leading(&dst, dst_ndim, src_ndim) - * + * * cdef int ndim = max(src_ndim, dst_ndim) # <<<<<<<<<<<<<< - * + * * for i in range(ndim): */ __pyx_t_3 = __pyx_v_dst_ndim; @@ -17790,7 +17795,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ /* "View.MemoryView":1288 * cdef int ndim = max(src_ndim, dst_ndim) - * + * * for i in range(ndim): # <<<<<<<<<<<<<< * if src.shape[i] != dst.shape[i]: * if src.shape[i] == 1: @@ -17801,7 +17806,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ __pyx_v_i = __pyx_t_4; /* "View.MemoryView":1289 - * + * * for i in range(ndim): * if src.shape[i] != dst.shape[i]: # <<<<<<<<<<<<<< * if src.shape[i] == 1: @@ -17852,7 +17857,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * src.strides[i] = 0 * else: * _err_extents(i, dst.shape[i], src.shape[i]) # <<<<<<<<<<<<<< - * + * * if src.suboffsets[i] >= 0: */ /*else*/ { @@ -17861,7 +17866,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ __pyx_L7:; /* "View.MemoryView":1289 - * + * * for i in range(ndim): * if src.shape[i] != dst.shape[i]: # <<<<<<<<<<<<<< * if src.shape[i] == 1: @@ -17871,38 +17876,38 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ /* "View.MemoryView":1296 * _err_extents(i, dst.shape[i], src.shape[i]) - * + * * if src.suboffsets[i] >= 0: # <<<<<<<<<<<<<< * _err_dim(PyExc_ValueError, "Dimension %d is not direct", i) - * + * */ __pyx_t_2 = ((__pyx_v_src.suboffsets[__pyx_v_i]) >= 0); if (__pyx_t_2) { /* "View.MemoryView":1297 - * + * * if src.suboffsets[i] >= 0: * _err_dim(PyExc_ValueError, "Dimension %d is not direct", i) # <<<<<<<<<<<<<< - * + * * if slices_overlap(&src, &dst, ndim, itemsize): */ __pyx_t_6 = __pyx_memoryview_err_dim(PyExc_ValueError, __pyx_kp_s_Dimension_d_is_not_direct, __pyx_v_i); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1297, __pyx_L1_error) /* "View.MemoryView":1296 * _err_extents(i, dst.shape[i], src.shape[i]) - * + * * if src.suboffsets[i] >= 0: # <<<<<<<<<<<<<< * _err_dim(PyExc_ValueError, "Dimension %d is not direct", i) - * + * */ } } /* "View.MemoryView":1299 * _err_dim(PyExc_ValueError, "Dimension %d is not direct", i) - * + * * if slices_overlap(&src, &dst, ndim, itemsize): # <<<<<<<<<<<<<< - * + * * if not slice_is_contig(src, order, ndim): */ __pyx_t_2 = __pyx_slices_overlap((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize); @@ -17910,73 +17915,73 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ /* "View.MemoryView":1301 * if slices_overlap(&src, &dst, ndim, itemsize): - * + * * if not slice_is_contig(src, order, ndim): # <<<<<<<<<<<<<< * order = get_best_order(&dst, ndim) - * + * */ __pyx_t_2 = (!__pyx_memviewslice_is_contig(__pyx_v_src, __pyx_v_order, __pyx_v_ndim)); if (__pyx_t_2) { /* "View.MemoryView":1302 - * + * * if not slice_is_contig(src, order, ndim): * order = get_best_order(&dst, ndim) # <<<<<<<<<<<<<< - * + * * tmpdata = copy_data_to_temp(&src, &tmp, order, ndim) */ __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim); /* "View.MemoryView":1301 * if slices_overlap(&src, &dst, ndim, itemsize): - * + * * if not slice_is_contig(src, order, ndim): # <<<<<<<<<<<<<< * order = get_best_order(&dst, ndim) - * + * */ } /* "View.MemoryView":1304 * order = get_best_order(&dst, ndim) - * + * * tmpdata = copy_data_to_temp(&src, &tmp, order, ndim) # <<<<<<<<<<<<<< * src = tmp - * + * */ __pyx_t_7 = __pyx_memoryview_copy_data_to_temp((&__pyx_v_src), (&__pyx_v_tmp), __pyx_v_order, __pyx_v_ndim); if (unlikely(__pyx_t_7 == ((void *)NULL))) __PYX_ERR(0, 1304, __pyx_L1_error) __pyx_v_tmpdata = __pyx_t_7; /* "View.MemoryView":1305 - * + * * tmpdata = copy_data_to_temp(&src, &tmp, order, ndim) * src = tmp # <<<<<<<<<<<<<< - * + * * if not broadcasting: */ __pyx_v_src = __pyx_v_tmp; /* "View.MemoryView":1299 * _err_dim(PyExc_ValueError, "Dimension %d is not direct", i) - * + * * if slices_overlap(&src, &dst, ndim, itemsize): # <<<<<<<<<<<<<< - * + * * if not slice_is_contig(src, order, ndim): */ } /* "View.MemoryView":1307 * src = tmp - * + * * if not broadcasting: # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_2 = (!__pyx_v_broadcasting); if (__pyx_t_2) { /* "View.MemoryView":1310 - * - * + * + * * if slice_is_contig(src, 'C', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): @@ -17985,7 +17990,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ if (__pyx_t_2) { /* "View.MemoryView":1311 - * + * * if slice_is_contig(src, 'C', ndim): * direct_copy = slice_is_contig(dst, 'C', ndim) # <<<<<<<<<<<<<< * elif slice_is_contig(src, 'F', ndim): @@ -17994,8 +17999,8 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst, 'C', __pyx_v_ndim); /* "View.MemoryView":1310 - * - * + * + * * if slice_is_contig(src, 'C', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): @@ -18008,7 +18013,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'F', ndim) - * + * */ __pyx_t_2 = __pyx_memviewslice_is_contig(__pyx_v_src, 'F', __pyx_v_ndim); if (__pyx_t_2) { @@ -18017,7 +18022,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): * direct_copy = slice_is_contig(dst, 'F', ndim) # <<<<<<<<<<<<<< - * + * * if direct_copy: */ __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst, 'F', __pyx_v_ndim); @@ -18027,23 +18032,23 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * direct_copy = slice_is_contig(dst, 'C', ndim) * elif slice_is_contig(src, 'F', ndim): # <<<<<<<<<<<<<< * direct_copy = slice_is_contig(dst, 'F', ndim) - * + * */ } __pyx_L12:; /* "View.MemoryView":1315 * direct_copy = slice_is_contig(dst, 'F', ndim) - * + * * if direct_copy: # <<<<<<<<<<<<<< - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) */ if (__pyx_v_direct_copy) { /* "View.MemoryView":1317 * if direct_copy: - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) # <<<<<<<<<<<<<< * memcpy(dst.data, src.data, slice_get_size(&src, ndim)) * refcount_copying(&dst, dtype_is_object, ndim, inc=True) @@ -18051,7 +18056,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0); /* "View.MemoryView":1318 - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) * memcpy(dst.data, src.data, slice_get_size(&src, ndim)) # <<<<<<<<<<<<<< * refcount_copying(&dst, dtype_is_object, ndim, inc=True) @@ -18073,7 +18078,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * refcount_copying(&dst, dtype_is_object, ndim, inc=True) * free(tmpdata) # <<<<<<<<<<<<<< * return 0 - * + * */ free(__pyx_v_tmpdata); @@ -18081,7 +18086,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * refcount_copying(&dst, dtype_is_object, ndim, inc=True) * free(tmpdata) * return 0 # <<<<<<<<<<<<<< - * + * * if order == 'F' == get_best_order(&dst, ndim): */ __pyx_r = 0; @@ -18089,28 +18094,28 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ /* "View.MemoryView":1315 * direct_copy = slice_is_contig(dst, 'F', ndim) - * + * * if direct_copy: # <<<<<<<<<<<<<< - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) */ } /* "View.MemoryView":1307 * src = tmp - * + * * if not broadcasting: # <<<<<<<<<<<<<< - * - * + * + * */ } /* "View.MemoryView":1323 * return 0 - * + * * if order == 'F' == get_best_order(&dst, ndim): # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_2 = (__pyx_v_order == 'F'); if (__pyx_t_2) { @@ -18119,35 +18124,35 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ if (__pyx_t_2) { /* "View.MemoryView":1326 - * - * + * + * * transpose_memslice(&src) # <<<<<<<<<<<<<< * transpose_memslice(&dst) - * + * */ __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_src)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1326, __pyx_L1_error) /* "View.MemoryView":1327 - * + * * transpose_memslice(&src) * transpose_memslice(&dst) # <<<<<<<<<<<<<< - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) */ __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_dst)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1327, __pyx_L1_error) /* "View.MemoryView":1323 * return 0 - * + * * if order == 'F' == get_best_order(&dst, ndim): # <<<<<<<<<<<<<< - * - * + * + * */ } /* "View.MemoryView":1329 * transpose_memslice(&dst) - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) # <<<<<<<<<<<<<< * copy_strided_to_strided(&src, &dst, ndim, itemsize) * refcount_copying(&dst, dtype_is_object, ndim, inc=True) @@ -18155,11 +18160,11 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0); /* "View.MemoryView":1330 - * + * * refcount_copying(&dst, dtype_is_object, ndim, inc=False) * copy_strided_to_strided(&src, &dst, ndim, itemsize) # <<<<<<<<<<<<<< * refcount_copying(&dst, dtype_is_object, ndim, inc=True) - * + * */ copy_strided_to_strided((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize); @@ -18167,32 +18172,32 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ * refcount_copying(&dst, dtype_is_object, ndim, inc=False) * copy_strided_to_strided(&src, &dst, ndim, itemsize) * refcount_copying(&dst, dtype_is_object, ndim, inc=True) # <<<<<<<<<<<<<< - * + * * free(tmpdata) */ __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1); /* "View.MemoryView":1333 * refcount_copying(&dst, dtype_is_object, ndim, inc=True) - * + * * free(tmpdata) # <<<<<<<<<<<<<< * return 0 - * + * */ free(__pyx_v_tmpdata); /* "View.MemoryView":1334 - * + * * free(tmpdata) * return 0 # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_broadcast_leading') */ __pyx_r = 0; goto __pyx_L0; /* "View.MemoryView":1265 - * + * * @cname('__pyx_memoryview_copy_contents') * cdef int memoryview_copy_contents(__Pyx_memviewslice src, # <<<<<<<<<<<<<< * __Pyx_memviewslice dst, @@ -18214,7 +18219,7 @@ static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_ } /* "View.MemoryView":1337 - * + * * @cname('__pyx_memoryview_broadcast_leading') * cdef void broadcast_leading(__Pyx_memviewslice *mslice, # <<<<<<<<<<<<<< * int ndim, @@ -18232,14 +18237,14 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic * int ndim_other) noexcept nogil: * cdef int i * cdef int offset = ndim_other - ndim # <<<<<<<<<<<<<< - * + * * for i in range(ndim - 1, -1, -1): */ __pyx_v_offset = (__pyx_v_ndim_other - __pyx_v_ndim); /* "View.MemoryView":1343 * cdef int offset = ndim_other - ndim - * + * * for i in range(ndim - 1, -1, -1): # <<<<<<<<<<<<<< * mslice.shape[i + offset] = mslice.shape[i] * mslice.strides[i + offset] = mslice.strides[i] @@ -18248,7 +18253,7 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic __pyx_v_i = __pyx_t_1; /* "View.MemoryView":1344 - * + * * for i in range(ndim - 1, -1, -1): * mslice.shape[i + offset] = mslice.shape[i] # <<<<<<<<<<<<<< * mslice.strides[i + offset] = mslice.strides[i] @@ -18261,7 +18266,7 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic * mslice.shape[i + offset] = mslice.shape[i] * mslice.strides[i + offset] = mslice.strides[i] # <<<<<<<<<<<<<< * mslice.suboffsets[i + offset] = mslice.suboffsets[i] - * + * */ (__pyx_v_mslice->strides[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->strides[__pyx_v_i]); @@ -18269,7 +18274,7 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic * mslice.shape[i + offset] = mslice.shape[i] * mslice.strides[i + offset] = mslice.strides[i] * mslice.suboffsets[i + offset] = mslice.suboffsets[i] # <<<<<<<<<<<<<< - * + * * for i in range(offset): */ (__pyx_v_mslice->suboffsets[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->suboffsets[__pyx_v_i]); @@ -18277,7 +18282,7 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic /* "View.MemoryView":1348 * mslice.suboffsets[i + offset] = mslice.suboffsets[i] - * + * * for i in range(offset): # <<<<<<<<<<<<<< * mslice.shape[i] = 1 * mslice.strides[i] = mslice.strides[0] @@ -18288,7 +18293,7 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic __pyx_v_i = __pyx_t_3; /* "View.MemoryView":1349 - * + * * for i in range(offset): * mslice.shape[i] = 1 # <<<<<<<<<<<<<< * mslice.strides[i] = mslice.strides[0] @@ -18301,7 +18306,7 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic * mslice.shape[i] = 1 * mslice.strides[i] = mslice.strides[0] # <<<<<<<<<<<<<< * mslice.suboffsets[i] = -1 - * + * */ (__pyx_v_mslice->strides[__pyx_v_i]) = (__pyx_v_mslice->strides[0]); @@ -18309,14 +18314,14 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic * mslice.shape[i] = 1 * mslice.strides[i] = mslice.strides[0] * mslice.suboffsets[i] = -1 # <<<<<<<<<<<<<< - * - * + * + * */ (__pyx_v_mslice->suboffsets[__pyx_v_i]) = -1L; } /* "View.MemoryView":1337 - * + * * @cname('__pyx_memoryview_broadcast_leading') * cdef void broadcast_leading(__Pyx_memviewslice *mslice, # <<<<<<<<<<<<<< * int ndim, @@ -18327,10 +18332,10 @@ static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslic } /* "View.MemoryView":1359 - * + * * @cname('__pyx_memoryview_refcount_copying') * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object, int ndim, bint inc) noexcept nogil: # <<<<<<<<<<<<<< - * + * * if dtype_is_object: */ @@ -18338,36 +18343,36 @@ static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst, i /* "View.MemoryView":1361 * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object, int ndim, bint inc) noexcept nogil: - * + * * if dtype_is_object: # <<<<<<<<<<<<<< * refcount_objects_in_slice_with_gil(dst.data, dst.shape, dst.strides, ndim, inc) - * + * */ if (__pyx_v_dtype_is_object) { /* "View.MemoryView":1362 - * + * * if dtype_is_object: * refcount_objects_in_slice_with_gil(dst.data, dst.shape, dst.strides, ndim, inc) # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil') */ __pyx_memoryview_refcount_objects_in_slice_with_gil(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_inc); /* "View.MemoryView":1361 * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object, int ndim, bint inc) noexcept nogil: - * + * * if dtype_is_object: # <<<<<<<<<<<<<< * refcount_objects_in_slice_with_gil(dst.data, dst.shape, dst.strides, ndim, inc) - * + * */ } /* "View.MemoryView":1359 - * + * * @cname('__pyx_memoryview_refcount_copying') * cdef void refcount_copying(__Pyx_memviewslice *dst, bint dtype_is_object, int ndim, bint inc) noexcept nogil: # <<<<<<<<<<<<<< - * + * * if dtype_is_object: */ @@ -18375,7 +18380,7 @@ static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst, i } /* "View.MemoryView":1365 - * + * * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil') * cdef void refcount_objects_in_slice_with_gil(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, @@ -18391,13 +18396,13 @@ static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_da * Py_ssize_t *strides, int ndim, * bint inc) noexcept with gil: * refcount_objects_in_slice(data, shape, strides, ndim, inc) # <<<<<<<<<<<<<< - * + * * @cname('__pyx_memoryview_refcount_objects_in_slice') */ __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, __pyx_v_shape, __pyx_v_strides, __pyx_v_ndim, __pyx_v_inc); /* "View.MemoryView":1365 - * + * * @cname('__pyx_memoryview_refcount_objects_in_slice_with_gil') * cdef void refcount_objects_in_slice_with_gil(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, @@ -18411,7 +18416,7 @@ static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *__pyx_v_da } /* "View.MemoryView":1371 - * + * * @cname('__pyx_memoryview_refcount_objects_in_slice') * cdef void refcount_objects_in_slice(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, bint inc) noexcept: @@ -18430,14 +18435,14 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss * Py_ssize_t *strides, int ndim, bint inc) noexcept: * cdef Py_ssize_t i * cdef Py_ssize_t stride = strides[0] # <<<<<<<<<<<<<< - * + * * for i in range(shape[0]): */ __pyx_v_stride = (__pyx_v_strides[0]); /* "View.MemoryView":1376 * cdef Py_ssize_t stride = strides[0] - * + * * for i in range(shape[0]): # <<<<<<<<<<<<<< * if ndim == 1: * if inc: @@ -18448,7 +18453,7 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss __pyx_v_i = __pyx_t_3; /* "View.MemoryView":1377 - * + * * for i in range(shape[0]): * if ndim == 1: # <<<<<<<<<<<<<< * if inc: @@ -18498,7 +18503,7 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss __pyx_L6:; /* "View.MemoryView":1377 - * + * * for i in range(shape[0]): * if ndim == 1: # <<<<<<<<<<<<<< * if inc: @@ -18511,7 +18516,7 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss * Py_DECREF(( data)[0]) * else: * refcount_objects_in_slice(data, shape + 1, strides + 1, ndim - 1, inc) # <<<<<<<<<<<<<< - * + * * data += stride */ /*else*/ { @@ -18521,16 +18526,16 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss /* "View.MemoryView":1385 * refcount_objects_in_slice(data, shape + 1, strides + 1, ndim - 1, inc) - * + * * data += stride # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_v_data = (__pyx_v_data + __pyx_v_stride); } /* "View.MemoryView":1371 - * + * * @cname('__pyx_memoryview_refcount_objects_in_slice') * cdef void refcount_objects_in_slice(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, bint inc) noexcept: @@ -18541,7 +18546,7 @@ static void __pyx_memoryview_refcount_objects_in_slice(char *__pyx_v_data, Py_ss } /* "View.MemoryView":1391 - * + * * @cname('__pyx_memoryview_slice_assign_scalar') * cdef void slice_assign_scalar(__Pyx_memviewslice *dst, int ndim, # <<<<<<<<<<<<<< * size_t itemsize, void *item, @@ -18564,7 +18569,7 @@ static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst * refcount_copying(dst, dtype_is_object, ndim, inc=False) * _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim, itemsize, item) # <<<<<<<<<<<<<< * refcount_copying(dst, dtype_is_object, ndim, inc=True) - * + * */ __pyx_memoryview__slice_assign_scalar(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_itemsize, __pyx_v_item); @@ -18572,13 +18577,13 @@ static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst * refcount_copying(dst, dtype_is_object, ndim, inc=False) * _slice_assign_scalar(dst.data, dst.shape, dst.strides, ndim, itemsize, item) * refcount_copying(dst, dtype_is_object, ndim, inc=True) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 1); /* "View.MemoryView":1391 - * + * * @cname('__pyx_memoryview_slice_assign_scalar') * cdef void slice_assign_scalar(__Pyx_memviewslice *dst, int ndim, # <<<<<<<<<<<<<< * size_t itemsize, void *item, @@ -18589,7 +18594,7 @@ static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst } /* "View.MemoryView":1400 - * + * * @cname('__pyx_memoryview__slice_assign_scalar') * cdef void _slice_assign_scalar(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, @@ -18610,7 +18615,7 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t * cdef Py_ssize_t i * cdef Py_ssize_t stride = strides[0] # <<<<<<<<<<<<<< * cdef Py_ssize_t extent = shape[0] - * + * */ __pyx_v_stride = (__pyx_v_strides[0]); @@ -18618,14 +18623,14 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t * cdef Py_ssize_t i * cdef Py_ssize_t stride = strides[0] * cdef Py_ssize_t extent = shape[0] # <<<<<<<<<<<<<< - * + * * if ndim == 1: */ __pyx_v_extent = (__pyx_v_shape[0]); /* "View.MemoryView":1407 * cdef Py_ssize_t extent = shape[0] - * + * * if ndim == 1: # <<<<<<<<<<<<<< * for i in range(extent): * memcpy(data, item, itemsize) @@ -18634,7 +18639,7 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t if (__pyx_t_1) { /* "View.MemoryView":1408 - * + * * if ndim == 1: * for i in range(extent): # <<<<<<<<<<<<<< * memcpy(data, item, itemsize) @@ -18666,7 +18671,7 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t /* "View.MemoryView":1407 * cdef Py_ssize_t extent = shape[0] - * + * * if ndim == 1: # <<<<<<<<<<<<<< * for i in range(extent): * memcpy(data, item, itemsize) @@ -18692,7 +18697,7 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t * for i in range(extent): * _slice_assign_scalar(data, shape + 1, strides + 1, ndim - 1, itemsize, item) # <<<<<<<<<<<<<< * data += stride - * + * */ __pyx_memoryview__slice_assign_scalar(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize, __pyx_v_item); @@ -18700,8 +18705,8 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t * for i in range(extent): * _slice_assign_scalar(data, shape + 1, strides + 1, ndim - 1, itemsize, item) * data += stride # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_v_data = (__pyx_v_data + __pyx_v_stride); } @@ -18709,7 +18714,7 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t __pyx_L3:; /* "View.MemoryView":1400 - * + * * @cname('__pyx_memoryview__slice_assign_scalar') * cdef void _slice_assign_scalar(char *data, Py_ssize_t *shape, # <<<<<<<<<<<<<< * Py_ssize_t *strides, int ndim, @@ -18726,7 +18731,7 @@ static void __pyx_memoryview__slice_assign_scalar(char *__pyx_v_data, Py_ssize_t */ /* Python wrapper */ -static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, +static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -18734,7 +18739,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum = {"__pyx_unpickle_Enum", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, +static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -19162,8 +19167,8 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":245 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":245 + * * @property * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<< * """Returns a borrowed reference to the object owning the data/memory. @@ -19173,18 +19178,18 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject *__pyx_v_self) { PyObject *__pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":248 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":248 * """Returns a borrowed reference to the object owning the data/memory. * """ * return PyArray_BASE(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_BASE(__pyx_v_self); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":245 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":245 + * * @property * cdef inline PyObject* base(self) nogil: # <<<<<<<<<<<<<< * """Returns a borrowed reference to the object owning the data/memory. @@ -19196,8 +19201,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":251 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":251 + * * @property * cdef inline dtype descr(self): # <<<<<<<<<<<<<< * """Returns an owned reference to the dtype of the array. @@ -19210,11 +19215,11 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray PyArray_Descr *__pyx_t_1; __Pyx_RefNannySetupContext("descr", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":254 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":254 * """Returns an owned reference to the dtype of the array. * """ * return PyArray_DESCR(self) # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF((PyObject *)__pyx_r); @@ -19223,8 +19228,8 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray __pyx_r = ((PyArray_Descr *)__pyx_t_1); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":251 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":251 + * * @property * cdef inline dtype descr(self): # <<<<<<<<<<<<<< * """Returns an owned reference to the dtype of the array. @@ -19238,8 +19243,8 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":257 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":257 + * * @property * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<< * """Returns the number of dimensions in the array. @@ -19249,18 +19254,18 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx_v_self) { int __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":260 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":260 * """Returns the number of dimensions in the array. * """ * return PyArray_NDIM(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_NDIM(__pyx_v_self); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":257 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":257 + * * @property * cdef inline int ndim(self) nogil: # <<<<<<<<<<<<<< * """Returns the number of dimensions in the array. @@ -19272,8 +19277,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":263 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":263 + * * @property * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the dimensions/shape of the array. @@ -19283,18 +19288,18 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObject *__pyx_v_self) { npy_intp *__pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":268 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":268 * Can return NULL for 0-dimensional arrays. * """ * return PyArray_DIMS(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_DIMS(__pyx_v_self); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":263 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":263 + * * @property * cdef inline npy_intp *shape(self) nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the dimensions/shape of the array. @@ -19306,8 +19311,8 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":271 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":271 + * * @property * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the strides of the array. @@ -19317,18 +19322,18 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayObject *__pyx_v_self) { npy_intp *__pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":275 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":275 * The number of elements matches the number of dimensions of the array (ndim). * """ * return PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_STRIDES(__pyx_v_self); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":271 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":271 + * * @property * cdef inline npy_intp *strides(self) nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the strides of the array. @@ -19340,8 +19345,8 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":278 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":278 + * * @property * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<< * """Returns the total size (in number of elements) of the array. @@ -19351,18 +19356,18 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject *__pyx_v_self) { npy_intp __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":281 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":281 * """Returns the total size (in number of elements) of the array. * """ * return PyArray_SIZE(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_SIZE(__pyx_v_self); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":278 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":278 + * * @property * cdef inline npy_intp size(self) nogil: # <<<<<<<<<<<<<< * """Returns the total size (in number of elements) of the array. @@ -19374,8 +19379,8 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject * return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":284 - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":284 + * * @property * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<< * """The pointer to the data buffer as a char*. @@ -19385,18 +19390,18 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject * static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__pyx_v_self) { char *__pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":290 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":290 * of `PyArray_DATA()` instead, which returns a 'void*'. * """ * return PyArray_BYTES(self) # <<<<<<<<<<<<<< - * + * * ctypedef unsigned char npy_bool */ __pyx_r = PyArray_BYTES(__pyx_v_self); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":284 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":284 + * * @property * cdef inline char* data(self) nogil: # <<<<<<<<<<<<<< * """The pointer to the data buffer as a char*. @@ -19408,12 +19413,12 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":773 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":773 * ctypedef npy_cdouble complex_t - * + * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(1, a) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) { @@ -19425,11 +19430,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":774 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":774 + * * cdef inline object PyArray_MultiIterNew1(a): * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< - * + * * cdef inline object PyArray_MultiIterNew2(a, b): */ __Pyx_XDECREF(__pyx_r); @@ -19439,12 +19444,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":773 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":773 * ctypedef npy_cdouble complex_t - * + * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(1, a) - * + * */ /* function exit code */ @@ -19458,12 +19463,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":776 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":776 * return PyArray_MultiIterNew(1, a) - * + * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(2, a, b) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) { @@ -19475,11 +19480,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":777 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":777 + * * cdef inline object PyArray_MultiIterNew2(a, b): * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< - * + * * cdef inline object PyArray_MultiIterNew3(a, b, c): */ __Pyx_XDECREF(__pyx_r); @@ -19489,12 +19494,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":776 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":776 * return PyArray_MultiIterNew(1, a) - * + * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(2, a, b) - * + * */ /* function exit code */ @@ -19508,12 +19513,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":779 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":779 * return PyArray_MultiIterNew(2, a, b) - * + * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(3, a, b, c) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) { @@ -19525,11 +19530,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":780 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":780 + * * cdef inline object PyArray_MultiIterNew3(a, b, c): * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< - * + * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): */ __Pyx_XDECREF(__pyx_r); @@ -19539,12 +19544,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":779 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":779 * return PyArray_MultiIterNew(2, a, b) - * + * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(3, a, b, c) - * + * */ /* function exit code */ @@ -19558,12 +19563,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":782 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":782 * return PyArray_MultiIterNew(3, a, b, c) - * + * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(4, a, b, c, d) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) { @@ -19575,11 +19580,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":783 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":783 + * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< - * + * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): */ __Pyx_XDECREF(__pyx_r); @@ -19589,12 +19594,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":782 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":782 * return PyArray_MultiIterNew(3, a, b, c) - * + * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(4, a, b, c, d) - * + * */ /* function exit code */ @@ -19608,12 +19613,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":785 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":785 * return PyArray_MultiIterNew(4, a, b, c, d) - * + * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(5, a, b, c, d, e) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) { @@ -19625,11 +19630,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":786 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":786 + * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): */ __Pyx_XDECREF(__pyx_r); @@ -19639,12 +19644,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":785 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":785 * return PyArray_MultiIterNew(4, a, b, c, d) - * + * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(5, a, b, c, d, e) - * + * */ /* function exit code */ @@ -19658,9 +19663,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":788 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":788 * return PyArray_MultiIterNew(5, a, b, c, d, e) - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape @@ -19672,8 +19677,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ int __pyx_t_1; __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":789 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":789 + * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< * return d.subarray.shape @@ -19682,7 +19687,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __pyx_t_1 = PyDataType_HASSUBARRAY(__pyx_v_d); if (__pyx_t_1) { - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":790 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":790 * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape # <<<<<<<<<<<<<< @@ -19694,8 +19699,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":789 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":789 + * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< * return d.subarray.shape @@ -19703,12 +19708,12 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ */ } - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":792 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":792 * return d.subarray.shape * else: * return () # <<<<<<<<<<<<<< - * - * + * + * */ /*else*/ { __Pyx_XDECREF(__pyx_r); @@ -19717,9 +19722,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ goto __pyx_L0; } - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":788 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":788 * return PyArray_MultiIterNew(5, a, b, c, d, e) - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape @@ -19732,9 +19737,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":968 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":968 * int _import_umath() except -1 - * + * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) @@ -19746,27 +19751,27 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a const char *__pyx_filename = NULL; int __pyx_clineno = 0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":969 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":969 + * * cdef inline void set_array_base(ndarray arr, object base): * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<< * PyArray_SetBaseObject(arr, base) - * + * */ Py_INCREF(__pyx_v_base); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":970 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":970 * cdef inline void set_array_base(ndarray arr, object base): * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<< - * + * * cdef inline object get_array_base(ndarray arr): */ __pyx_t_1 = PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 970, __pyx_L1_error) - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":968 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":968 * int _import_umath() except -1 - * + * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) @@ -19779,9 +19784,9 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a __pyx_L0:; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":972 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":972 * PyArray_SetBaseObject(arr, base) - * + * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< * base = PyArray_BASE(arr) * if base is NULL: @@ -19794,8 +19799,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py int __pyx_t_1; __Pyx_RefNannySetupContext("get_array_base", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":973 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":973 + * * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) # <<<<<<<<<<<<<< * if base is NULL: @@ -19803,7 +19808,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py */ __pyx_v_base = PyArray_BASE(__pyx_v_arr); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":974 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":974 * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) * if base is NULL: # <<<<<<<<<<<<<< @@ -19813,18 +19818,18 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_t_1 = (__pyx_v_base == NULL); if (__pyx_t_1) { - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":975 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":975 * base = PyArray_BASE(arr) * if base is NULL: * return None # <<<<<<<<<<<<<< * return base - * + * */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":974 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":974 * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) * if base is NULL: # <<<<<<<<<<<<<< @@ -19833,11 +19838,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py */ } - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":976 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":976 * if base is NULL: * return None * return base # <<<<<<<<<<<<<< - * + * * # Versions of the import_* functions which are more suitable for */ __Pyx_XDECREF(__pyx_r); @@ -19845,9 +19850,9 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_r = ((PyObject *)__pyx_v_base); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":972 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":972 * PyArray_SetBaseObject(arr, base) - * + * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< * base = PyArray_BASE(arr) * if base is NULL: @@ -19860,7 +19865,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":980 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":980 * # Versions of the import_* functions which are more suitable for * # Cython code. * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< @@ -19884,7 +19889,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("import_array", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":981 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":981 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -19900,7 +19905,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":982 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":982 * cdef inline int import_array() except -1: * try: * __pyx_import_array() # <<<<<<<<<<<<<< @@ -19909,7 +19914,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { */ __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 982, __pyx_L3_error) - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":981 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":981 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -19923,12 +19928,12 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":983 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":983 * try: * __pyx_import_array() * except Exception: # <<<<<<<<<<<<<< * raise ImportError("numpy.core.multiarray failed to import") - * + * */ __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_4) { @@ -19938,11 +19943,11 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":984 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":984 * __pyx_import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< - * + * * cdef inline int import_umath() except -1: */ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 984, __pyx_L5_except_error) @@ -19953,7 +19958,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { } goto __pyx_L5_except_error; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":981 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":981 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -19969,7 +19974,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __pyx_L8_try_end:; } - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":980 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":980 * # Versions of the import_* functions which are more suitable for * # Cython code. * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< @@ -19992,9 +19997,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":986 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":986 * raise ImportError("numpy.core.multiarray failed to import") - * + * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20016,8 +20021,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("import_umath", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":987 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":987 + * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20032,7 +20037,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":988 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":988 * cdef inline int import_umath() except -1: * try: * _import_umath() # <<<<<<<<<<<<<< @@ -20041,8 +20046,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { */ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 988, __pyx_L3_error) - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":987 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":987 + * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20055,12 +20060,12 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":989 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":989 * try: * _import_umath() * except Exception: # <<<<<<<<<<<<<< * raise ImportError("numpy.core.umath failed to import") - * + * */ __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_4) { @@ -20070,11 +20075,11 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":990 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":990 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< - * + * * cdef inline int import_ufunc() except -1: */ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 990, __pyx_L5_except_error) @@ -20085,8 +20090,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { } goto __pyx_L5_except_error; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":987 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":987 + * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20101,9 +20106,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __pyx_L8_try_end:; } - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":986 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":986 * raise ImportError("numpy.core.multiarray failed to import") - * + * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20124,9 +20129,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":992 +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":992 * raise ImportError("numpy.core.umath failed to import") - * + * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20148,8 +20153,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("import_ufunc", 1); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":993 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":993 + * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20164,7 +20169,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":994 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":994 * cdef inline int import_ufunc() except -1: * try: * _import_umath() # <<<<<<<<<<<<<< @@ -20173,8 +20178,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { */ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 994, __pyx_L3_error) - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":993 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":993 + * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20187,12 +20192,12 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":995 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":995 * try: * _import_umath() * except Exception: # <<<<<<<<<<<<<< * raise ImportError("numpy.core.umath failed to import") - * + * */ __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_4) { @@ -20202,12 +20207,12 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":996 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":996 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 996, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_8); @@ -20217,8 +20222,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { } goto __pyx_L5_except_error; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":993 - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":993 + * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20233,9 +20238,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __pyx_L8_try_end:; } - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":992 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":992 * raise ImportError("numpy.core.umath failed to import") - * + * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20256,9 +20261,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":999 - * - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":999 + * + * * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.timedelta64)` @@ -20267,19 +20272,19 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) { int __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1011 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1011 * bool * """ * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type)); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":999 - * - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":999 + * + * * cdef inline bint is_timedelta64_object(object obj): # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.timedelta64)` @@ -20290,9 +20295,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1014 - * - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1014 + * + * * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.datetime64)` @@ -20301,19 +20306,19 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) { int __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1026 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1026 * bool * """ * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type)); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1014 - * - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1014 + * + * * cdef inline bint is_datetime64_object(object obj): # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.datetime64)` @@ -20324,9 +20329,9 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1029 - * - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1029 + * + * * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy datetime64 object @@ -20335,19 +20340,19 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) { npy_datetime __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1036 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1036 * also needed. That can be found using `get_datetime64_unit`. * """ * return (obj).obval # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1029 - * - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1029 + * + * * cdef inline npy_datetime get_datetime64_value(object obj) nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy datetime64 object @@ -20358,9 +20363,9 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1039 - * - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1039 + * + * * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy timedelta64 object @@ -20369,19 +20374,19 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) { npy_timedelta __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1043 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1043 * returns the int64 value underlying scalar numpy timedelta64 object * """ * return (obj).obval # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval; goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1039 - * - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1039 + * + * * cdef inline npy_timedelta get_timedelta64_value(object obj) nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy timedelta64 object @@ -20392,9 +20397,9 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject return __pyx_r; } -/* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1046 - * - * +/* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1046 + * + * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<< * """ * returns the unit part of the dtype for a numpy datetime64 object. @@ -20403,7 +20408,7 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) { NPY_DATETIMEUNIT __pyx_r; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1050 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1050 * returns the unit part of the dtype for a numpy datetime64 object. * """ * return (obj).obmeta.base # <<<<<<<<<<<<<< @@ -20411,9 +20416,9 @@ static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObjec __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base); goto __pyx_L0; - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":1046 - * - * + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1046 + * + * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) nogil: # <<<<<<<<<<<<<< * """ * returns the unit part of the dtype for a numpy datetime64 object. @@ -20426,10 +20431,10 @@ static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObjec /* "src/rds2py/lib/parser.pyx":28 * cdef uintptr_t ptr - * + * * def __cinit__(self, file): # <<<<<<<<<<<<<< * self.ptr = py_parser_rds_file(file.encode()) - * + * */ /* Python wrapper */ @@ -20526,10 +20531,10 @@ static int __pyx_pf_6rds2py_4core_14PyParsedObject___cinit__(struct __pyx_obj_6r __Pyx_RefNannySetupContext("__cinit__", 1); /* "src/rds2py/lib/parser.pyx":29 - * + * * def __cinit__(self, file): * self.ptr = py_parser_rds_file(file.encode()) # <<<<<<<<<<<<<< - * + * * def get_robject(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_file, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 29, __pyx_L1_error) @@ -20556,7 +20561,7 @@ static int __pyx_pf_6rds2py_4core_14PyParsedObject___cinit__(struct __pyx_obj_6r __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - __pyx_t_5 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 29, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 29, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; try { __pyx_t_6 = py_parser_rds_file(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_5)); @@ -20568,10 +20573,10 @@ static int __pyx_pf_6rds2py_4core_14PyParsedObject___cinit__(struct __pyx_obj_6r /* "src/rds2py/lib/parser.pyx":28 * cdef uintptr_t ptr - * + * * def __cinit__(self, file): # <<<<<<<<<<<<<< * self.ptr = py_parser_rds_file(file.encode()) - * + * */ /* function exit code */ @@ -20590,14 +20595,14 @@ static int __pyx_pf_6rds2py_4core_14PyParsedObject___cinit__(struct __pyx_obj_6r /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode()) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRObject(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_3get_robject(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_3get_robject(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -20605,7 +20610,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_14PyParsedObject_3get_robject = {"get_robject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_14PyParsedObject_3get_robject, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_3get_robject(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_3get_robject(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -20650,11 +20655,11 @@ static PyObject *__pyx_pf_6rds2py_4core_14PyParsedObject_2get_robject(struct __p __Pyx_RefNannySetupContext("get_robject", 1); /* "src/rds2py/lib/parser.pyx":32 - * + * * def get_robject(self): * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) # <<<<<<<<<<<<<< * return PyRObject(tmp) - * + * */ try { __pyx_t_1 = py_parser_extract_robject(__pyx_v_self->ptr); @@ -20668,7 +20673,7 @@ static PyObject *__pyx_pf_6rds2py_4core_14PyParsedObject_2get_robject(struct __p * def get_robject(self): * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRObject(tmp) # <<<<<<<<<<<<<< - * + * * cdef _map_ptr_to_view(uintptr_t ptr, shape, itemsize, format_type): */ __Pyx_XDECREF(__pyx_r); @@ -20683,7 +20688,7 @@ static PyObject *__pyx_pf_6rds2py_4core_14PyParsedObject_2get_robject(struct __p /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode()) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRObject(tmp) @@ -20708,7 +20713,7 @@ static PyObject *__pyx_pf_6rds2py_4core_14PyParsedObject_2get_robject(struct __p */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_5__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -20716,7 +20721,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_14PyParsedObject_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_14PyParsedObject_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_5__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -20788,7 +20793,7 @@ static PyObject *__pyx_pf_6rds2py_4core_14PyParsedObject_4__reduce_cython__(CYTH */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_7__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -20796,7 +20801,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_14PyParsedObject_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_14PyParsedObject_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_7__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_14PyParsedObject_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -20917,7 +20922,7 @@ static PyObject *__pyx_pf_6rds2py_4core_14PyParsedObject_6__setstate_cython__(CY /* "src/rds2py/lib/parser.pyx":35 * return PyRObject(tmp) - * + * * cdef _map_ptr_to_view(uintptr_t ptr, shape, itemsize, format_type): # <<<<<<<<<<<<<< * cdef view.array my_array = view.array(shape=shape, itemsize=itemsize, format=format_type) * my_array.data = ptr @@ -20937,7 +20942,7 @@ static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t __pyx_v_ptr, P __Pyx_RefNannySetupContext("_map_ptr_to_view", 1); /* "src/rds2py/lib/parser.pyx":36 - * + * * cdef _map_ptr_to_view(uintptr_t ptr, shape, itemsize, format_type): * cdef view.array my_array = view.array(shape=shape, itemsize=itemsize, format=format_type) # <<<<<<<<<<<<<< * my_array.data = ptr @@ -20959,7 +20964,7 @@ static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t __pyx_v_ptr, P * cdef view.array my_array = view.array(shape=shape, itemsize=itemsize, format=format_type) * my_array.data = ptr # <<<<<<<<<<<<<< * return np.asarray(my_array) - * + * */ __pyx_v_my_array->data = ((char *)__pyx_v_ptr); @@ -20967,7 +20972,7 @@ static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t __pyx_v_ptr, P * cdef view.array my_array = view.array(shape=shape, itemsize=itemsize, format=format_type) * my_array.data = ptr * return np.asarray(my_array) # <<<<<<<<<<<<<< - * + * * cdef class PyRObject: */ __Pyx_XDECREF(__pyx_r); @@ -21004,7 +21009,7 @@ static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t __pyx_v_ptr, P /* "src/rds2py/lib/parser.pyx":35 * return PyRObject(tmp) - * + * * cdef _map_ptr_to_view(uintptr_t ptr, shape, itemsize, format_type): # <<<<<<<<<<<<<< * cdef view.array my_array = view.array(shape=shape, itemsize=itemsize, format=format_type) * my_array.data = ptr @@ -21026,7 +21031,7 @@ static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t __pyx_v_ptr, P /* "src/rds2py/lib/parser.pyx":46 * R_MIN = -2147483648 - * + * * def __cinit__(self, p:uintptr_t): # <<<<<<<<<<<<<< * self.ptr = p * self.get_rtype() @@ -21124,7 +21129,7 @@ static int __pyx_pf_6rds2py_4core_9PyRObject___cinit__(struct __pyx_obj_6rds2py_ __Pyx_RefNannySetupContext("__cinit__", 1); /* "src/rds2py/lib/parser.pyx":47 - * + * * def __cinit__(self, p:uintptr_t): * self.ptr = p # <<<<<<<<<<<<<< * self.get_rtype() @@ -21137,7 +21142,7 @@ static int __pyx_pf_6rds2py_4core_9PyRObject___cinit__(struct __pyx_obj_6rds2py_ * self.ptr = p * self.get_rtype() # <<<<<<<<<<<<<< * self.get_rsize() - * + * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_rtype); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 48, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -21169,7 +21174,7 @@ static int __pyx_pf_6rds2py_4core_9PyRObject___cinit__(struct __pyx_obj_6rds2py_ * self.ptr = p * self.get_rtype() * self.get_rsize() # <<<<<<<<<<<<<< - * + * * def get_rtype(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_rsize); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 49, __pyx_L1_error) @@ -21200,7 +21205,7 @@ static int __pyx_pf_6rds2py_4core_9PyRObject___cinit__(struct __pyx_obj_6rds2py_ /* "src/rds2py/lib/parser.pyx":46 * R_MIN = -2147483648 - * + * * def __cinit__(self, p:uintptr_t): # <<<<<<<<<<<<<< * self.ptr = p * self.get_rtype() @@ -21222,14 +21227,14 @@ static int __pyx_pf_6rds2py_4core_9PyRObject___cinit__(struct __pyx_obj_6rds2py_ /* "src/rds2py/lib/parser.pyx":51 * self.get_rsize() - * + * * def get_rtype(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_3get_rtype(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_3get_rtype(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21237,7 +21242,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_3get_rtype = {"get_rtype", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_3get_rtype, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_3get_rtype(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_3get_rtype(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21282,7 +21287,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_2get_rtype(struct __pyx_obj_6 __Pyx_RefNannySetupContext("get_rtype", 1); /* "src/rds2py/lib/parser.pyx":52 - * + * * def get_rtype(self): * if not hasattr(self, "rtype"): # <<<<<<<<<<<<<< * self.rtype = py_robject_extract_type(self.ptr) @@ -21297,7 +21302,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_2get_rtype(struct __pyx_obj_6 * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) # <<<<<<<<<<<<<< * return self.rtype - * + * */ try { __pyx_t_3 = py_robject_extract_type(__pyx_v_self->ptr); @@ -21308,7 +21313,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_2get_rtype(struct __pyx_obj_6 __pyx_v_self->rtype = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_3); /* "src/rds2py/lib/parser.pyx":52 - * + * * def get_rtype(self): * if not hasattr(self, "rtype"): # <<<<<<<<<<<<<< * self.rtype = py_robject_extract_type(self.ptr) @@ -21320,11 +21325,11 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_2get_rtype(struct __pyx_obj_6 * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) * return self.rtype # <<<<<<<<<<<<<< - * + * * def get_rsize(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_self->rtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 54, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(__pyx_v_self->rtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 54, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; @@ -21332,7 +21337,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_2get_rtype(struct __pyx_obj_6 /* "src/rds2py/lib/parser.pyx":51 * self.get_rsize() - * + * * def get_rtype(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) @@ -21351,14 +21356,14 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_2get_rtype(struct __pyx_obj_6 /* "src/rds2py/lib/parser.pyx":56 * return self.rtype - * + * * def get_rsize(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rsize"): * self.rsize = py_robject_extract_size(self.ptr) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_5get_rsize(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_5get_rsize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21366,7 +21371,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_5get_rsize = {"get_rsize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_5get_rsize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_5get_rsize(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_5get_rsize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21411,7 +21416,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_4get_rsize(struct __pyx_obj_6 __Pyx_RefNannySetupContext("get_rsize", 1); /* "src/rds2py/lib/parser.pyx":57 - * + * * def get_rsize(self): * if not hasattr(self, "rsize"): # <<<<<<<<<<<<<< * self.rsize = py_robject_extract_size(self.ptr) @@ -21426,7 +21431,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_4get_rsize(struct __pyx_obj_6 * if not hasattr(self, "rsize"): * self.rsize = py_robject_extract_size(self.ptr) # <<<<<<<<<<<<<< * return self.rsize - * + * */ try { __pyx_t_3 = py_robject_extract_size(__pyx_v_self->ptr); @@ -21437,7 +21442,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_4get_rsize(struct __pyx_obj_6 __pyx_v_self->rsize = __pyx_t_3; /* "src/rds2py/lib/parser.pyx":57 - * + * * def get_rsize(self): * if not hasattr(self, "rsize"): # <<<<<<<<<<<<<< * self.rsize = py_robject_extract_size(self.ptr) @@ -21449,7 +21454,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_4get_rsize(struct __pyx_obj_6 * if not hasattr(self, "rsize"): * self.rsize = py_robject_extract_size(self.ptr) * return self.rsize # <<<<<<<<<<<<<< - * + * * def shennanigans_to_py_reprs(self, result): */ __Pyx_XDECREF(__pyx_r); @@ -21461,7 +21466,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_4get_rsize(struct __pyx_obj_6 /* "src/rds2py/lib/parser.pyx":56 * return self.rtype - * + * * def get_rsize(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rsize"): * self.rsize = py_robject_extract_size(self.ptr) @@ -21480,14 +21485,14 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_4get_rsize(struct __pyx_obj_6 /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< - * if result is None: - * return result + * # if result is None: + * # return result */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21495,7 +21500,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs = {"shennanigans_to_py_reprs", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21585,8 +21590,8 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_6shennanigans_to_py_reprs(struct __pyx_obj_6rds2py_4core_PyRObject *__pyx_v_self, PyObject *__pyx_v_result) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_1 = NULL; + int __pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; @@ -21595,127 +21600,96 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_6shennanigans_to_py_reprs(str int __pyx_clineno = 0; __Pyx_RefNannySetupContext("shennanigans_to_py_reprs", 1); - /* "src/rds2py/lib/parser.pyx":62 - * - * def shennanigans_to_py_reprs(self, result): - * if result is None: # <<<<<<<<<<<<<< - * return result - * - */ - __pyx_t_1 = (__pyx_v_result == Py_None); - if (__pyx_t_1) { - - /* "src/rds2py/lib/parser.pyx":63 - * def shennanigans_to_py_reprs(self, result): - * if result is None: - * return result # <<<<<<<<<<<<<< - * - * if self.rtype.decode() in ["integer"]: - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_result); - __pyx_r = __pyx_v_result; - goto __pyx_L0; - - /* "src/rds2py/lib/parser.pyx":62 - * - * def shennanigans_to_py_reprs(self, result): - * if result is None: # <<<<<<<<<<<<<< - * return result - * - */ - } - /* "src/rds2py/lib/parser.pyx":65 - * return result - * + * # return result + * * if self.rtype.decode() in ["integer"]: # <<<<<<<<<<<<<< * if self.rsize == 2 and result["data"][0] == self.R_MIN and result["data"][1] < 0: * result["data"] = range(result["data"][1] * -1) */ - __pyx_t_2 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 65, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_integer, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 65, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_3 = __pyx_t_1; + __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 65, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_integer, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 65, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = __pyx_t_2; if (__pyx_t_3) { /* "src/rds2py/lib/parser.pyx":66 - * + * * if self.rtype.decode() in ["integer"]: * if self.rsize == 2 and result["data"][0] == self.R_MIN and result["data"][1] < 0: # <<<<<<<<<<<<<< * result["data"] = range(result["data"][1] * -1) - * + * */ - __pyx_t_1 = (__pyx_v_self->rsize == 2); - if (__pyx_t_1) { + __pyx_t_2 = (__pyx_v_self->rsize == 2); + if (__pyx_t_2) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L6_bool_binop_done; + __pyx_t_3 = __pyx_t_2; + goto __pyx_L5_bool_binop_done; } - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_n_u_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 66, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 66, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_n_u_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 66, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_R_MIN); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 66, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_4, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 66, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_R_MIN); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 66, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_4, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 66, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (__pyx_t_1) { + if (__pyx_t_2) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L6_bool_binop_done; + __pyx_t_3 = __pyx_t_2; + goto __pyx_L5_bool_binop_done; } __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_n_u_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 66, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 66, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 66, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 66, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 66, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 66, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 66, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_3 = __pyx_t_1; - __pyx_L6_bool_binop_done:; + __pyx_t_3 = __pyx_t_2; + __pyx_L5_bool_binop_done:; if (__pyx_t_3) { /* "src/rds2py/lib/parser.pyx":67 * if self.rtype.decode() in ["integer"]: * if self.rsize == 2 and result["data"][0] == self.R_MIN and result["data"][1] < 0: * result["data"] = range(result["data"][1] * -1) # <<<<<<<<<<<<<< - * + * * return result */ __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_n_u_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 67, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyInt_MultiplyObjC(__pyx_t_2, __pyx_int_neg_1, -1L, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 67, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_MultiplyObjC(__pyx_t_1, __pyx_int_neg_1, -1L, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 67, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 67, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely((PyObject_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_2) < 0))) __PYX_ERR(1, 67, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely((PyObject_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 67, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "src/rds2py/lib/parser.pyx":66 - * + * * if self.rtype.decode() in ["integer"]: * if self.rsize == 2 and result["data"][0] == self.R_MIN and result["data"][1] < 0: # <<<<<<<<<<<<<< * result["data"] = range(result["data"][1] * -1) - * + * */ } /* "src/rds2py/lib/parser.pyx":65 - * return result - * + * # return result + * * if self.rtype.decode() in ["integer"]: # <<<<<<<<<<<<<< * if self.rsize == 2 and result["data"][0] == self.R_MIN and result["data"][1] < 0: * result["data"] = range(result["data"][1] * -1) @@ -21724,9 +21698,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_6shennanigans_to_py_reprs(str /* "src/rds2py/lib/parser.pyx":69 * result["data"] = range(result["data"][1] * -1) - * + * * return result # <<<<<<<<<<<<<< - * + * * def realize_value(self): */ __Pyx_XDECREF(__pyx_r); @@ -21736,15 +21710,15 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_6shennanigans_to_py_reprs(str /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< - * if result is None: - * return result + * # if result is None: + * # return result */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("rds2py.core.PyRObject.shennanigans_to_py_reprs", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -21757,14 +21731,14 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_6shennanigans_to_py_reprs(str /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: + * result = { + * "data": None, */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_9realize_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_9realize_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21772,7 +21746,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_9realize_value = {"realize_value", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_9realize_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_9realize_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_9realize_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21810,9 +21784,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; - int __pyx_t_2; + PyObject *__pyx_t_2 = NULL; int __pyx_t_3; - PyObject *__pyx_t_4 = NULL; + int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; @@ -21824,235 +21798,386 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o int __pyx_clineno = 0; __Pyx_RefNannySetupContext("realize_value", 1); - /* "src/rds2py/lib/parser.pyx":72 - * + /* "src/rds2py/lib/parser.pyx":73 * def realize_value(self): - * result = {} # <<<<<<<<<<<<<< - * if self.rtype.decode() in ["integer", "boolean"]: - * result["data"] = self._get_int_or_bool_arr() + * result = { + * "data": None, # <<<<<<<<<<<<<< + * "attributes": None, + * "class_name": None, */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 72, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_data, Py_None) < 0) __PYX_ERR(1, 73, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":74 + * result = { + * "data": None, + * "attributes": None, # <<<<<<<<<<<<<< + * "class_name": None, + * "package_name": None, + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_attributes, Py_None) < 0) __PYX_ERR(1, 73, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":75 + * "data": None, + * "attributes": None, + * "class_name": None, # <<<<<<<<<<<<<< + * "package_name": None, + * "rtype": self.rtype.decode('UTF-8') + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_class_name, Py_None) < 0) __PYX_ERR(1, 73, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":76 + * "attributes": None, + * "class_name": None, + * "package_name": None, # <<<<<<<<<<<<<< + * "rtype": self.rtype.decode('UTF-8') + * } + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_package_name, Py_None) < 0) __PYX_ERR(1, 73, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":77 + * "class_name": None, + * "package_name": None, + * "rtype": self.rtype.decode('UTF-8') # <<<<<<<<<<<<<< + * } + * + */ + __pyx_t_2 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 77, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_rtype, __pyx_t_2) < 0) __PYX_ERR(1, 73, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_result = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":73 - * def realize_value(self): - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: # <<<<<<<<<<<<<< + /* "src/rds2py/lib/parser.pyx":80 + * } + * + * if result["rtype"] in ["integer"]: # <<<<<<<<<<<<<< * result["data"] = self._get_int_or_bool_arr() * result["attributes"] = self.realize_attr_value() */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 73, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_integer, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 73, __pyx_L1_error) - if (!__pyx_t_3) { - } else { - __pyx_t_2 = __pyx_t_3; - goto __pyx_L4_bool_binop_done; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_integer, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 80, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_4 = __pyx_t_3; + if (__pyx_t_4) { + + /* "src/rds2py/lib/parser.pyx":81 + * + * if result["rtype"] in ["integer"]: + * result["data"] = self._get_int_or_bool_arr() # <<<<<<<<<<<<<< + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = "integer_vector" + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_int_or_bool_arr); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 81, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = NULL; + __pyx_t_6 = 0; + #if CYTHON_UNPACK_METHODS + if (likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + __pyx_t_6 = 1; + } + } + #endif + { + PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 81, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 81, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "src/rds2py/lib/parser.pyx":82 + * if result["rtype"] in ["integer"]: + * result["data"] = self._get_int_or_bool_arr() + * result["attributes"] = self.realize_attr_value() # <<<<<<<<<<<<<< + * result["class_name"] = "integer_vector" + * elif result["rtype"] in ["boolean"]: + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 82, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = NULL; + __pyx_t_6 = 0; + #if CYTHON_UNPACK_METHODS + if (likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + __pyx_t_6 = 1; + } + } + #endif + { + PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 82, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 82, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "src/rds2py/lib/parser.pyx":83 + * result["data"] = self._get_int_or_bool_arr() + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = "integer_vector" # <<<<<<<<<<<<<< + * elif result["rtype"] in ["boolean"]: + * result["data"] = self._get_int_or_bool_arr() + */ + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_class_name, __pyx_n_u_integer_vector) < 0))) __PYX_ERR(1, 83, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":80 + * } + * + * if result["rtype"] in ["integer"]: # <<<<<<<<<<<<<< + * result["data"] = self._get_int_or_bool_arr() + * result["attributes"] = self.realize_attr_value() + */ + goto __pyx_L3; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_boolean, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 73, __pyx_L1_error) - __pyx_t_2 = __pyx_t_3; - __pyx_L4_bool_binop_done:; + + /* "src/rds2py/lib/parser.pyx":84 + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = "integer_vector" + * elif result["rtype"] in ["boolean"]: # <<<<<<<<<<<<<< + * result["data"] = self._get_int_or_bool_arr() + * result["attributes"] = self.realize_attr_value() + */ + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 84, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_boolean, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 84, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __pyx_t_2; + __pyx_t_3 = __pyx_t_4; if (__pyx_t_3) { - /* "src/rds2py/lib/parser.pyx":74 - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: + /* "src/rds2py/lib/parser.pyx":85 + * result["class_name"] = "integer_vector" + * elif result["rtype"] in ["boolean"]: * result["data"] = self._get_int_or_bool_arr() # <<<<<<<<<<<<<< * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["double"]: + * result["class_name"] = "boolean_vector" */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_int_or_bool_arr); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 74, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_int_or_bool_arr); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 85, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS - if (likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; - __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 74, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 74, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 85, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":75 - * if self.rtype.decode() in ["integer", "boolean"]: + /* "src/rds2py/lib/parser.pyx":86 + * elif result["rtype"] in ["boolean"]: * result["data"] = self._get_int_or_bool_arr() * result["attributes"] = self.realize_attr_value() # <<<<<<<<<<<<<< - * elif self.rtype.decode('UTF-8') in ["double"]: - * result["data"] = self._get_double_arr() + * result["class_name"] = "boolean_vector" + * elif result["rtype"] in ["double"]: */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 75, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 86, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS - if (likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; - __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 75, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 75, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":73 - * def realize_value(self): - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: # <<<<<<<<<<<<<< + /* "src/rds2py/lib/parser.pyx":87 + * result["data"] = self._get_int_or_bool_arr() + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = "boolean_vector" # <<<<<<<<<<<<<< + * elif result["rtype"] in ["double"]: + * result["data"] = self._get_double_arr() + */ + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_class_name, __pyx_n_u_boolean_vector) < 0))) __PYX_ERR(1, 87, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":84 + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = "integer_vector" + * elif result["rtype"] in ["boolean"]: # <<<<<<<<<<<<<< * result["data"] = self._get_int_or_bool_arr() * result["attributes"] = self.realize_attr_value() */ goto __pyx_L3; } - /* "src/rds2py/lib/parser.pyx":76 - * result["data"] = self._get_int_or_bool_arr() + /* "src/rds2py/lib/parser.pyx":88 * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["double"]: # <<<<<<<<<<<<<< + * result["class_name"] = "boolean_vector" + * elif result["rtype"] in ["double"]: # <<<<<<<<<<<<<< * result["data"] = self._get_double_arr() * result["attributes"] = self.realize_attr_value() */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 76, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_double, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 76, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_double, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 88, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_2 = __pyx_t_3; - if (__pyx_t_2) { + __pyx_t_4 = __pyx_t_3; + if (__pyx_t_4) { - /* "src/rds2py/lib/parser.pyx":77 - * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["double"]: + /* "src/rds2py/lib/parser.pyx":89 + * result["class_name"] = "boolean_vector" + * elif result["rtype"] in ["double"]: * result["data"] = self._get_double_arr() # <<<<<<<<<<<<<< * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["string"]: + * result["class_name"] = "double_vector" */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_double_arr); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 77, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_double_arr); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 89, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS - if (likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; - __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 77, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 89, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 77, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 89, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":78 - * elif self.rtype.decode('UTF-8') in ["double"]: + /* "src/rds2py/lib/parser.pyx":90 + * elif result["rtype"] in ["double"]: * result["data"] = self._get_double_arr() * result["attributes"] = self.realize_attr_value() # <<<<<<<<<<<<<< - * elif self.rtype.decode('UTF-8') in ["string"]: - * result["data"] = [s.decode() for s in self._get_string_arr()] + * result["class_name"] = "double_vector" + * elif result["rtype"] in ["string"]: */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 78, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 90, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS - if (likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; - __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 78, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 90, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 78, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 90, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":76 - * result["data"] = self._get_int_or_bool_arr() + /* "src/rds2py/lib/parser.pyx":91 + * result["data"] = self._get_double_arr() + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = "double_vector" # <<<<<<<<<<<<<< + * elif result["rtype"] in ["string"]: + * result["data"] = [s.decode() for s in self._get_string_arr()] + */ + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_class_name, __pyx_n_u_double_vector) < 0))) __PYX_ERR(1, 91, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":88 * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["double"]: # <<<<<<<<<<<<<< + * result["class_name"] = "boolean_vector" + * elif result["rtype"] in ["double"]: # <<<<<<<<<<<<<< * result["data"] = self._get_double_arr() * result["attributes"] = self.realize_attr_value() */ goto __pyx_L3; } - /* "src/rds2py/lib/parser.pyx":79 - * result["data"] = self._get_double_arr() + /* "src/rds2py/lib/parser.pyx":92 * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["string"]: # <<<<<<<<<<<<<< + * result["class_name"] = "double_vector" + * elif result["rtype"] in ["string"]: # <<<<<<<<<<<<<< * result["data"] = [s.decode() for s in self._get_string_arr()] - * elif self.rtype.decode('UTF-8') in ["vector"]: + * result["class_name"] = "string_vector" */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 79, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 92, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_string, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 79, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_string, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 92, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __pyx_t_2; + __pyx_t_3 = __pyx_t_4; if (__pyx_t_3) { - /* "src/rds2py/lib/parser.pyx":80 - * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["string"]: + /* "src/rds2py/lib/parser.pyx":93 + * result["class_name"] = "double_vector" + * elif result["rtype"] in ["string"]: * result["data"] = [s.decode() for s in self._get_string_arr()] # <<<<<<<<<<<<<< - * elif self.rtype.decode('UTF-8') in ["vector"]: - * result["data"] = self._get_vector_arr() + * result["class_name"] = "string_vector" + * elif result["rtype"] in ["vector"]: */ { /* enter inner scope */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 80, __pyx_L8_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_string_arr); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 80, __pyx_L8_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_string_arr); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_6 = 0; @@ -22070,68 +22195,68 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; - __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 80, __pyx_L8_error) - __Pyx_GOTREF(__pyx_t_4); + if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 93, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) { - __pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); + if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { + __pyx_t_5 = __pyx_t_2; __Pyx_INCREF(__pyx_t_5); __pyx_t_8 = 0; __pyx_t_9 = NULL; } else { - __pyx_t_8 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 80, __pyx_L8_error) + __pyx_t_8 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 80, __pyx_L8_error) + __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 93, __pyx_L6_error) } - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; for (;;) { if (likely(!__pyx_t_9)) { if (likely(PyList_CheckExact(__pyx_t_5))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5); #if !CYTHON_ASSUME_SAFE_MACROS - if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 80, __pyx_L8_error) + if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 93, __pyx_L6_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_4); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 80, __pyx_L8_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 93, __pyx_L6_error) #else - __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 80, __pyx_L8_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 93, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_2); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5); #if !CYTHON_ASSUME_SAFE_MACROS - if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 80, __pyx_L8_error) + if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 93, __pyx_L6_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_4); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 80, __pyx_L8_error) + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 93, __pyx_L6_error) #else - __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 80, __pyx_L8_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 93, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_2); #endif } } else { - __pyx_t_4 = __pyx_t_9(__pyx_t_5); - if (unlikely(!__pyx_t_4)) { + __pyx_t_2 = __pyx_t_9(__pyx_t_5); + if (unlikely(!__pyx_t_2)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(1, 80, __pyx_L8_error) + else __PYX_ERR(1, 93, __pyx_L6_error) } break; } - __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); } - __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_s, __pyx_t_4); - __pyx_t_4 = 0; - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_7genexpr__pyx_v_s, __pyx_n_s_decode); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 80, __pyx_L8_error) + __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_s, __pyx_t_2); + __pyx_t_2 = 0; + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_7genexpr__pyx_v_s, __pyx_n_s_decode); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 93, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = NULL; __pyx_t_6 = 0; @@ -22149,67 +22274,76 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL}; - __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 80, __pyx_L8_error) - __Pyx_GOTREF(__pyx_t_4); + if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 93, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) __PYX_ERR(1, 80, __pyx_L8_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(1, 93, __pyx_L6_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_7genexpr__pyx_v_s); __pyx_7genexpr__pyx_v_s = 0; - goto __pyx_L12_exit_scope; - __pyx_L8_error:; + goto __pyx_L10_exit_scope; + __pyx_L6_error:; __Pyx_XDECREF(__pyx_7genexpr__pyx_v_s); __pyx_7genexpr__pyx_v_s = 0; goto __pyx_L1_error; - __pyx_L12_exit_scope:; + __pyx_L10_exit_scope:; } /* exit inner scope */ - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 80, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 93, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":79 - * result["data"] = self._get_double_arr() + /* "src/rds2py/lib/parser.pyx":94 + * elif result["rtype"] in ["string"]: + * result["data"] = [s.decode() for s in self._get_string_arr()] + * result["class_name"] = "string_vector" # <<<<<<<<<<<<<< + * elif result["rtype"] in ["vector"]: + * result["data"] = self._get_vector_arr() + */ + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_class_name, __pyx_n_u_string_vector) < 0))) __PYX_ERR(1, 94, __pyx_L1_error) + + /* "src/rds2py/lib/parser.pyx":92 * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["string"]: # <<<<<<<<<<<<<< + * result["class_name"] = "double_vector" + * elif result["rtype"] in ["string"]: # <<<<<<<<<<<<<< * result["data"] = [s.decode() for s in self._get_string_arr()] - * elif self.rtype.decode('UTF-8') in ["vector"]: + * result["class_name"] = "string_vector" */ goto __pyx_L3; } - /* "src/rds2py/lib/parser.pyx":81 - * elif self.rtype.decode('UTF-8') in ["string"]: + /* "src/rds2py/lib/parser.pyx":95 * result["data"] = [s.decode() for s in self._get_string_arr()] - * elif self.rtype.decode('UTF-8') in ["vector"]: # <<<<<<<<<<<<<< + * result["class_name"] = "string_vector" + * elif result["rtype"] in ["vector"]: # <<<<<<<<<<<<<< * result["data"] = self._get_vector_arr() * result["attributes"] = self.realize_attr_value() */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 81, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_vector, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 81, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_vector, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_2 = __pyx_t_3; - if (__pyx_t_2) { + __pyx_t_4 = __pyx_t_3; + if (__pyx_t_4) { - /* "src/rds2py/lib/parser.pyx":82 - * result["data"] = [s.decode() for s in self._get_string_arr()] - * elif self.rtype.decode('UTF-8') in ["vector"]: + /* "src/rds2py/lib/parser.pyx":96 + * result["class_name"] = "string_vector" + * elif result["rtype"] in ["vector"]: * result["data"] = self._get_vector_arr() # <<<<<<<<<<<<<< * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["null"]: + * result["class_name"] = self.get_class_name() */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_vector_arr); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 82, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_vector_arr); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = NULL; + __pyx_t_2 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; @@ -22217,33 +22351,33 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o } #endif { - PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; + PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 82, __pyx_L1_error) + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 82, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_data, __pyx_t_1) < 0))) __PYX_ERR(1, 96, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":83 - * elif self.rtype.decode('UTF-8') in ["vector"]: + /* "src/rds2py/lib/parser.pyx":97 + * elif result["rtype"] in ["vector"]: * result["data"] = self._get_vector_arr() * result["attributes"] = self.realize_attr_value() # <<<<<<<<<<<<<< - * elif self.rtype.decode('UTF-8') in ["null"]: - * return None + * result["class_name"] = self.get_class_name() + * elif result["rtype"] in ["null"]: */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 83, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = NULL; + __pyx_t_2 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; @@ -22251,172 +22385,194 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o } #endif { - PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; + PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 83, __pyx_L1_error) + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 83, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 97, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":81 - * elif self.rtype.decode('UTF-8') in ["string"]: - * result["data"] = [s.decode() for s in self._get_string_arr()] - * elif self.rtype.decode('UTF-8') in ["vector"]: # <<<<<<<<<<<<<< + /* "src/rds2py/lib/parser.pyx":98 * result["data"] = self._get_vector_arr() * result["attributes"] = self.realize_attr_value() + * result["class_name"] = self.get_class_name() # <<<<<<<<<<<<<< + * elif result["rtype"] in ["null"]: + * return result */ - goto __pyx_L3; - } - - /* "src/rds2py/lib/parser.pyx":84 + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_class_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 98, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_2 = NULL; + __pyx_t_6 = 0; + #if CYTHON_UNPACK_METHODS + if (likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + __pyx_t_6 = 1; + } + } + #endif + { + PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 98, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_class_name, __pyx_t_1) < 0))) __PYX_ERR(1, 98, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "src/rds2py/lib/parser.pyx":95 + * result["data"] = [s.decode() for s in self._get_string_arr()] + * result["class_name"] = "string_vector" + * elif result["rtype"] in ["vector"]: # <<<<<<<<<<<<<< * result["data"] = self._get_vector_arr() * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["null"]: # <<<<<<<<<<<<<< - * return None - * elif self.rtype.decode('UTF-8') in ["S4"]: */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 84, __pyx_L1_error) + goto __pyx_L3; + } + + /* "src/rds2py/lib/parser.pyx":99 + * result["attributes"] = self.realize_attr_value() + * result["class_name"] = self.get_class_name() + * elif result["rtype"] in ["null"]: # <<<<<<<<<<<<<< + * return result + * elif result["rtype"] in ["S4"]: + */ + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_null, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 84, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_null, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 99, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __pyx_t_2; + __pyx_t_3 = __pyx_t_4; if (__pyx_t_3) { - /* "src/rds2py/lib/parser.pyx":85 - * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["null"]: - * return None # <<<<<<<<<<<<<< - * elif self.rtype.decode('UTF-8') in ["S4"]: - * result = { + /* "src/rds2py/lib/parser.pyx":100 + * result["class_name"] = self.get_class_name() + * elif result["rtype"] in ["null"]: + * return result # <<<<<<<<<<<<<< + * elif result["rtype"] in ["S4"]: + * result["package_name"] = self.get_package_name() */ __Pyx_XDECREF(__pyx_r); - __pyx_r = Py_None; __Pyx_INCREF(Py_None); + __Pyx_INCREF(__pyx_v_result); + __pyx_r = __pyx_v_result; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":84 - * result["data"] = self._get_vector_arr() + /* "src/rds2py/lib/parser.pyx":99 * result["attributes"] = self.realize_attr_value() - * elif self.rtype.decode('UTF-8') in ["null"]: # <<<<<<<<<<<<<< - * return None - * elif self.rtype.decode('UTF-8') in ["S4"]: + * result["class_name"] = self.get_class_name() + * elif result["rtype"] in ["null"]: # <<<<<<<<<<<<<< + * return result + * elif result["rtype"] in ["S4"]: */ } - /* "src/rds2py/lib/parser.pyx":86 - * elif self.rtype.decode('UTF-8') in ["null"]: - * return None - * elif self.rtype.decode('UTF-8') in ["S4"]: # <<<<<<<<<<<<<< - * result = { - * "data": None, + /* "src/rds2py/lib/parser.pyx":101 + * elif result["rtype"] in ["null"]: + * return result + * elif result["rtype"] in ["S4"]: # <<<<<<<<<<<<<< + * result["package_name"] = self.get_package_name() + * result["class_name"] = self.get_class_name() */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 86, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_result, __pyx_n_u_rtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_S4, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_S4, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(1, 101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_2 = __pyx_t_3; - if (__pyx_t_2) { - - /* "src/rds2py/lib/parser.pyx":88 - * elif self.rtype.decode('UTF-8') in ["S4"]: - * result = { - * "data": None, # <<<<<<<<<<<<<< - * "package_name": self.get_package_name(), - * "class_name": self.get_class_name() - */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 88, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_data, Py_None) < 0) __PYX_ERR(1, 88, __pyx_L1_error) + __pyx_t_4 = __pyx_t_3; + if (likely(__pyx_t_4)) { - /* "src/rds2py/lib/parser.pyx":89 - * result = { - * "data": None, - * "package_name": self.get_package_name(), # <<<<<<<<<<<<<< - * "class_name": self.get_class_name() - * } + /* "src/rds2py/lib/parser.pyx":102 + * return result + * elif result["rtype"] in ["S4"]: + * result["package_name"] = self.get_package_name() # <<<<<<<<<<<<<< + * result["class_name"] = self.get_class_name() + * result["attributes"] = self.realize_attr_value() */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_package_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 89, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = NULL; + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_package_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 102, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_2 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS - if (likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_7); + if (likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { - PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; - __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 89, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 102, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_package_name, __pyx_t_5) < 0) __PYX_ERR(1, 88, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_package_name, __pyx_t_1) < 0))) __PYX_ERR(1, 102, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":90 - * "data": None, - * "package_name": self.get_package_name(), - * "class_name": self.get_class_name() # <<<<<<<<<<<<<< - * } + /* "src/rds2py/lib/parser.pyx":103 + * elif result["rtype"] in ["S4"]: + * result["package_name"] = self.get_package_name() + * result["class_name"] = self.get_class_name() # <<<<<<<<<<<<<< * result["attributes"] = self.realize_attr_value() + * return result */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_class_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 90, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = NULL; + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_class_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_2 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS - if (likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_7); + if (likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); + __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { - PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; - __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 90, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; + __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_class_name, __pyx_t_5) < 0) __PYX_ERR(1, 88, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_1)); - __pyx_t_1 = 0; + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_class_name, __pyx_t_1) < 0))) __PYX_ERR(1, 103, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":92 - * "class_name": self.get_class_name() - * } + /* "src/rds2py/lib/parser.pyx":104 + * result["package_name"] = self.get_package_name() + * result["class_name"] = self.get_class_name() * result["attributes"] = self.realize_attr_value() # <<<<<<<<<<<<<< + * return result * else: - * return { */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 92, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_realize_attr_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = NULL; + __pyx_t_2 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; @@ -22424,79 +22580,77 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o } #endif { - PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; + PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 92, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_n_u_attributes, __pyx_t_1) < 0))) __PYX_ERR(1, 104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":86 - * elif self.rtype.decode('UTF-8') in ["null"]: - * return None - * elif self.rtype.decode('UTF-8') in ["S4"]: # <<<<<<<<<<<<<< - * result = { - * "data": None, - */ - goto __pyx_L3; - } - - /* "src/rds2py/lib/parser.pyx":94 + /* "src/rds2py/lib/parser.pyx":105 + * result["class_name"] = self.get_class_name() * result["attributes"] = self.realize_attr_value() + * return result # <<<<<<<<<<<<<< * else: - * return { # <<<<<<<<<<<<<< - * "data": None, - * "attributes": None + * # return result */ - /*else*/ { __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_result); + __pyx_r = __pyx_v_result; + goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":95 - * else: - * return { - * "data": None, # <<<<<<<<<<<<<< - * "attributes": None - * } + /* "src/rds2py/lib/parser.pyx":101 + * elif result["rtype"] in ["null"]: + * return result + * elif result["rtype"] in ["S4"]: # <<<<<<<<<<<<<< + * result["package_name"] = self.get_package_name() + * result["class_name"] = self.get_class_name() */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 95, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_data, Py_None) < 0) __PYX_ERR(1, 95, __pyx_L1_error) + } - /* "src/rds2py/lib/parser.pyx":96 - * return { - * "data": None, - * "attributes": None # <<<<<<<<<<<<<< - * } - * # raise Exception(f'Cannot realize {self.rtype.decode()}') + /* "src/rds2py/lib/parser.pyx":108 + * else: + * # return result + * raise Exception(f'Cannot realize {self.rtype.decode()}') # <<<<<<<<<<<<<< + * + * return self.shennanigans_to_py_reprs(result) */ - if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_attributes, Py_None) < 0) __PYX_ERR(1, 95, __pyx_L1_error) - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; + /*else*/ { + __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Cannot_realize, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_Raise(__pyx_t_1, 0, 0, 0); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __PYX_ERR(1, 108, __pyx_L1_error) } __pyx_L3:; - /* "src/rds2py/lib/parser.pyx":100 - * # raise Exception(f'Cannot realize {self.rtype.decode()}') - * + /* "src/rds2py/lib/parser.pyx":110 + * raise Exception(f'Cannot realize {self.rtype.decode()}') + * * return self.shennanigans_to_py_reprs(result) # <<<<<<<<<<<<<< - * + * * def _get_vector_arr(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_shennanigans_to_py_reprs); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 100, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_shennanigans_to_py_reprs); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = NULL; + __pyx_t_2 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; @@ -22504,10 +22658,10 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o } #endif { - PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_result}; + PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_result}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 100, __pyx_L1_error) + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -22517,16 +22671,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: + * result = { + * "data": None, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_10); @@ -22540,16 +22694,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_8realize_value(struct __pyx_o return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":102 +/* "src/rds2py/lib/parser.pyx":112 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_11_get_vector_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_11_get_vector_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22557,7 +22711,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_11_get_vector_arr = {"_get_vector_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_11_get_vector_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_11_get_vector_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_11_get_vector_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22610,19 +22764,19 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_10_get_vector_arr(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_vector_arr", 1); - /* "src/rds2py/lib/parser.pyx":103 - * + /* "src/rds2py/lib/parser.pyx":113 + * * def _get_vector_arr(self): * vec = [] # <<<<<<<<<<<<<< * for i in range(self.rsize): * v_obj = self.load_vec_element(i) */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 103, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_vec = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":104 + /* "src/rds2py/lib/parser.pyx":114 * def _get_vector_arr(self): * vec = [] * for i in range(self.rsize): # <<<<<<<<<<<<<< @@ -22634,16 +22788,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_10_get_vector_arr(struct __py for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "src/rds2py/lib/parser.pyx":105 + /* "src/rds2py/lib/parser.pyx":115 * vec = [] * for i in range(self.rsize): * v_obj = self.load_vec_element(i) # <<<<<<<<<<<<<< * v_obj_val = v_obj.realize_value() * vec.append(v_obj_val) */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_load_vec_element); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 105, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_load_vec_element); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 105, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -22664,21 +22818,21 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_10_get_vector_arr(struct __py __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 105, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_XDECREF_SET(__pyx_v_v_obj, __pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":106 + /* "src/rds2py/lib/parser.pyx":116 * for i in range(self.rsize): * v_obj = self.load_vec_element(i) * v_obj_val = v_obj.realize_value() # <<<<<<<<<<<<<< * vec.append(v_obj_val) - * + * */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_v_obj, __pyx_n_s_realize_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 106, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_v_obj, __pyx_n_s_realize_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_8 = 0; @@ -22698,28 +22852,28 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_10_get_vector_arr(struct __py PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 106, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_XDECREF_SET(__pyx_v_v_obj_val, __pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":107 + /* "src/rds2py/lib/parser.pyx":117 * v_obj = self.load_vec_element(i) * v_obj_val = v_obj.realize_value() * vec.append(v_obj_val) # <<<<<<<<<<<<<< - * + * * return vec */ - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_vec, __pyx_v_v_obj_val); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 107, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_vec, __pyx_v_v_obj_val); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 117, __pyx_L1_error) } - /* "src/rds2py/lib/parser.pyx":109 + /* "src/rds2py/lib/parser.pyx":119 * vec.append(v_obj_val) - * + * * return vec # <<<<<<<<<<<<<< - * + * * def _get_int_or_bool_arr(self): */ __Pyx_XDECREF(__pyx_r); @@ -22727,9 +22881,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_10_get_vector_arr(struct __py __pyx_r = __pyx_v_vec; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":102 + /* "src/rds2py/lib/parser.pyx":112 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): @@ -22752,16 +22906,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_10_get_vector_arr(struct __py return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":111 +/* "src/rds2py/lib/parser.pyx":121 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22769,7 +22923,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr = {"_get_int_or_bool_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22816,8 +22970,8 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_int_or_bool_arr", 1); - /* "src/rds2py/lib/parser.pyx":112 - * + /* "src/rds2py/lib/parser.pyx":122 + * * def _get_int_or_bool_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype=int) @@ -22826,7 +22980,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct __pyx_t_1 = (__pyx_v_self->rsize == 0); if (__pyx_t_1) { - /* "src/rds2py/lib/parser.pyx":113 + /* "src/rds2py/lib/parser.pyx":123 * def _get_int_or_bool_arr(self): * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) # <<<<<<<<<<<<<< @@ -22834,24 +22988,24 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 113, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 113, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 113, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 113, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 113, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); - if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4)) __PYX_ERR(1, 113, __pyx_L1_error); + if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4)) __PYX_ERR(1, 123, __pyx_L1_error); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_shape, __pyx_t_5) < 0) __PYX_ERR(1, 113, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_shape, __pyx_t_5) < 0) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)(&PyInt_Type))) < 0) __PYX_ERR(1, 113, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 113, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, ((PyObject *)(&PyInt_Type))) < 0) __PYX_ERR(1, 123, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -22859,8 +23013,8 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct __pyx_t_5 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":112 - * + /* "src/rds2py/lib/parser.pyx":122 + * * def _get_int_or_bool_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype=int) @@ -22868,39 +23022,39 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct */ } - /* "src/rds2py/lib/parser.pyx":114 + /* "src/rds2py/lib/parser.pyx":124 * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) * cdef uintptr_t arr_ptr = parse_robject_int_vector(self.ptr) # <<<<<<<<<<<<<< * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") - * + * */ try { __pyx_t_6 = parse_robject_int_vector(__pyx_v_self->ptr); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 114, __pyx_L1_error) + __PYX_ERR(1, 124, __pyx_L1_error) } __pyx_v_arr_ptr = __pyx_t_6; - /* "src/rds2py/lib/parser.pyx":115 + /* "src/rds2py/lib/parser.pyx":125 * return np.empty(shape=(self.rsize,), dtype=int) * cdef uintptr_t arr_ptr = parse_robject_int_vector(self.ptr) * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") # <<<<<<<<<<<<<< - * + * * def _get_double_arr(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 115, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 115, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); - if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5)) __PYX_ERR(1, 115, __pyx_L1_error); + if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5)) __PYX_ERR(1, 125, __pyx_L1_error); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 115, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_3 = __pyx_f_6rds2py_4core__map_ptr_to_view(__pyx_v_arr_ptr, __pyx_t_2, __pyx_t_5, __pyx_n_u_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 115, __pyx_L1_error) + __pyx_t_3 = __pyx_f_6rds2py_4core__map_ptr_to_view(__pyx_v_arr_ptr, __pyx_t_2, __pyx_t_5, __pyx_n_u_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -22908,9 +23062,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct __pyx_t_3 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":111 + /* "src/rds2py/lib/parser.pyx":121 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) @@ -22930,16 +23084,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_12_get_int_or_bool_arr(struct return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":117 +/* "src/rds2py/lib/parser.pyx":127 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") - * + * * def _get_double_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype="f8") */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_15_get_double_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_15_get_double_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22947,7 +23101,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_15_get_double_arr = {"_get_double_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_15_get_double_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_15_get_double_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_15_get_double_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22994,8 +23148,8 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_double_arr", 1); - /* "src/rds2py/lib/parser.pyx":118 - * + /* "src/rds2py/lib/parser.pyx":128 + * * def _get_double_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype="f8") @@ -23004,7 +23158,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py __pyx_t_1 = (__pyx_v_self->rsize == 0); if (__pyx_t_1) { - /* "src/rds2py/lib/parser.pyx":119 + /* "src/rds2py/lib/parser.pyx":129 * def _get_double_arr(self): * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype="f8") # <<<<<<<<<<<<<< @@ -23012,24 +23166,24 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 119, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 119, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 119, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 119, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 119, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_4); - if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4)) __PYX_ERR(1, 119, __pyx_L1_error); + if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4)) __PYX_ERR(1, 129, __pyx_L1_error); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_shape, __pyx_t_5) < 0) __PYX_ERR(1, 119, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_shape, __pyx_t_5) < 0) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_n_u_f8) < 0) __PYX_ERR(1, 119, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 119, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_n_u_f8) < 0) __PYX_ERR(1, 129, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -23037,8 +23191,8 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py __pyx_t_5 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":118 - * + /* "src/rds2py/lib/parser.pyx":128 + * * def _get_double_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype="f8") @@ -23046,39 +23200,39 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py */ } - /* "src/rds2py/lib/parser.pyx":120 + /* "src/rds2py/lib/parser.pyx":130 * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype="f8") * cdef uintptr_t arr_ptr = parse_robject_int_vector(self.ptr) # <<<<<<<<<<<<<< * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") - * + * */ try { __pyx_t_6 = parse_robject_int_vector(__pyx_v_self->ptr); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 120, __pyx_L1_error) + __PYX_ERR(1, 130, __pyx_L1_error) } __pyx_v_arr_ptr = __pyx_t_6; - /* "src/rds2py/lib/parser.pyx":121 + /* "src/rds2py/lib/parser.pyx":131 * return np.empty(shape=(self.rsize,), dtype="f8") * cdef uintptr_t arr_ptr = parse_robject_int_vector(self.ptr) * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") # <<<<<<<<<<<<<< - * + * * def _get_string_arr(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 121, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->rsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_5); - if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5)) __PYX_ERR(1, 121, __pyx_L1_error); + if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5)) __PYX_ERR(1, 131, __pyx_L1_error); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(double))); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 121, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(double))); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_3 = __pyx_f_6rds2py_4core__map_ptr_to_view(__pyx_v_arr_ptr, __pyx_t_2, __pyx_t_5, __pyx_n_u_d); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 121, __pyx_L1_error) + __pyx_t_3 = __pyx_f_6rds2py_4core__map_ptr_to_view(__pyx_v_arr_ptr, __pyx_t_2, __pyx_t_5, __pyx_n_u_d); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -23086,9 +23240,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py __pyx_t_3 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":117 + /* "src/rds2py/lib/parser.pyx":127 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") - * + * * def _get_double_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype="f8") @@ -23108,16 +23262,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_14_get_double_arr(struct __py return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":123 +/* "src/rds2py/lib/parser.pyx":133 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") - * + * * def _get_string_arr(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_string_vector(self.ptr) * return arr_str */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_17_get_string_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_17_get_string_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23125,7 +23279,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_17_get_string_arr = {"_get_string_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_17_get_string_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_17_get_string_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_17_get_string_arr(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23168,38 +23322,38 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_16_get_string_arr(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_string_arr", 1); - /* "src/rds2py/lib/parser.pyx":124 - * + /* "src/rds2py/lib/parser.pyx":134 + * * def _get_string_arr(self): * cdef vector[string_c] arr_str = parse_robject_string_vector(self.ptr) # <<<<<<<<<<<<<< * return arr_str - * + * */ try { __pyx_t_1 = parse_robject_string_vector(__pyx_v_self->ptr); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 124, __pyx_L1_error) + __PYX_ERR(1, 134, __pyx_L1_error) } __pyx_v_arr_str = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_1); - /* "src/rds2py/lib/parser.pyx":125 + /* "src/rds2py/lib/parser.pyx":135 * def _get_string_arr(self): * cdef vector[string_c] arr_str = parse_robject_string_vector(self.ptr) * return arr_str # <<<<<<<<<<<<<< - * + * * def get_attribute_names(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_arr_str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 125, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_arr_str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":123 + /* "src/rds2py/lib/parser.pyx":133 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") - * + * * def _get_string_arr(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_string_vector(self.ptr) * return arr_str @@ -23216,16 +23370,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_16_get_string_arr(struct __py return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":127 +/* "src/rds2py/lib/parser.pyx":137 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_19get_attribute_names(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_19get_attribute_names(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23233,7 +23387,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_19get_attribute_names = {"get_attribute_names", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_19get_attribute_names, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_19get_attribute_names(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_19get_attribute_names(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23276,38 +23430,38 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_18get_attribute_names(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_attribute_names", 1); - /* "src/rds2py/lib/parser.pyx":128 - * + /* "src/rds2py/lib/parser.pyx":138 + * * def get_attribute_names(self): * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) # <<<<<<<<<<<<<< * return arr_str - * + * */ try { __pyx_t_1 = parse_robject_attribute_names(__pyx_v_self->ptr); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 128, __pyx_L1_error) + __PYX_ERR(1, 138, __pyx_L1_error) } __pyx_v_arr_str = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_1); - /* "src/rds2py/lib/parser.pyx":129 + /* "src/rds2py/lib/parser.pyx":139 * def get_attribute_names(self): * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str # <<<<<<<<<<<<<< - * + * * def find_attribute(self, name): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_arr_str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 129, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_arr_str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":127 + /* "src/rds2py/lib/parser.pyx":137 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str @@ -23324,16 +23478,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_18get_attribute_names(struct return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":131 +/* "src/rds2py/lib/parser.pyx":141 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_21find_attribute(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_21find_attribute(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23341,7 +23495,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_21find_attribute = {"find_attribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_21find_attribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_21find_attribute(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_21find_attribute(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23385,12 +23539,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } - else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 131, __pyx_L3_error) + else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 141, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "find_attribute") < 0)) __PYX_ERR(1, 131, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "find_attribute") < 0)) __PYX_ERR(1, 141, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; @@ -23401,7 +23555,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("find_attribute", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 131, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("find_attribute", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 141, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -23441,15 +23595,15 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_20find_attribute(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("find_attribute", 1); - /* "src/rds2py/lib/parser.pyx":132 - * + /* "src/rds2py/lib/parser.pyx":142 + * * def find_attribute(self, name): * return parse_robject_find_attribute(self.ptr, name.encode()) # <<<<<<<<<<<<<< - * + * * def load_attribute_by_index(self, index): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 132, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -23469,30 +23623,30 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_20find_attribute(struct __pyx PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 132, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - __pyx_t_5 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 132, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; try { __pyx_t_4 = parse_robject_find_attribute(__pyx_v_self->ptr, __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_5)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 132, __pyx_L1_error) + __PYX_ERR(1, 142, __pyx_L1_error) } - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 132, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":131 + /* "src/rds2py/lib/parser.pyx":141 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * */ /* function exit code */ @@ -23508,16 +23662,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_20find_attribute(struct __pyx return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":134 +/* "src/rds2py/lib/parser.pyx":144 * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRObject(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_23load_attribute_by_index(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_23load_attribute_by_index(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23525,7 +23679,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_23load_attribute_by_index = {"load_attribute_by_index", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_23load_attribute_by_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_23load_attribute_by_index(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_23load_attribute_by_index(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23569,12 +23723,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } - else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 134, __pyx_L3_error) + else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 144, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "load_attribute_by_index") < 0)) __PYX_ERR(1, 134, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "load_attribute_by_index") < 0)) __PYX_ERR(1, 144, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; @@ -23585,7 +23739,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("load_attribute_by_index", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 134, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("load_attribute_by_index", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 144, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -23625,42 +23779,42 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_22load_attribute_by_index(str int __pyx_clineno = 0; __Pyx_RefNannySetupContext("load_attribute_by_index", 1); - /* "src/rds2py/lib/parser.pyx":135 - * + /* "src/rds2py/lib/parser.pyx":145 + * * def load_attribute_by_index(self, index): * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) # <<<<<<<<<<<<<< * return PyRObject(tmp) - * + * */ - __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 135, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 145, __pyx_L1_error) try { __pyx_t_2 = parse_robject_load_attribute_by_index(__pyx_v_self->ptr, __pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 135, __pyx_L1_error) + __PYX_ERR(1, 145, __pyx_L1_error) } __pyx_v_tmp = __pyx_t_2; - /* "src/rds2py/lib/parser.pyx":136 + /* "src/rds2py/lib/parser.pyx":146 * def load_attribute_by_index(self, index): * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRObject(tmp) # <<<<<<<<<<<<<< - * + * * def load_attribute_by_name(self, name): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_tmp); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 136, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_tmp); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 136, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":134 + /* "src/rds2py/lib/parser.pyx":144 * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRObject(tmp) @@ -23678,16 +23832,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_22load_attribute_by_index(str return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":138 +/* "src/rds2py/lib/parser.pyx":148 * return PyRObject(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode()) * return PyRObject(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_25load_attribute_by_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_25load_attribute_by_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23695,7 +23849,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_25load_attribute_by_name = {"load_attribute_by_name", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_25load_attribute_by_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_25load_attribute_by_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_25load_attribute_by_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23739,12 +23893,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } - else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 138, __pyx_L3_error) + else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 148, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "load_attribute_by_name") < 0)) __PYX_ERR(1, 138, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "load_attribute_by_name") < 0)) __PYX_ERR(1, 148, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; @@ -23755,7 +23909,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("load_attribute_by_name", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 138, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("load_attribute_by_name", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 148, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -23797,14 +23951,14 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_24load_attribute_by_name(stru int __pyx_clineno = 0; __Pyx_RefNannySetupContext("load_attribute_by_name", 1); - /* "src/rds2py/lib/parser.pyx":139 - * + /* "src/rds2py/lib/parser.pyx":149 + * * def load_attribute_by_name(self, name): * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode()) # <<<<<<<<<<<<<< * return PyRObject(tmp) - * + * */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 139, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -23824,40 +23978,40 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_24load_attribute_by_name(stru PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 139, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } - __pyx_t_5 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 139, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; try { __pyx_t_6 = parse_robject_load_attribute_by_name(__pyx_v_self->ptr, __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_5)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 139, __pyx_L1_error) + __PYX_ERR(1, 149, __pyx_L1_error) } __pyx_v_tmp = __pyx_t_6; - /* "src/rds2py/lib/parser.pyx":140 + /* "src/rds2py/lib/parser.pyx":150 * def load_attribute_by_name(self, name): * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode()) * return PyRObject(tmp) # <<<<<<<<<<<<<< - * + * * def load_vec_element(self, i): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_tmp); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 140, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_tmp); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 140, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":138 + /* "src/rds2py/lib/parser.pyx":148 * return PyRObject(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode()) * return PyRObject(tmp) @@ -23876,16 +24030,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_24load_attribute_by_name(stru return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":142 +/* "src/rds2py/lib/parser.pyx":152 * return PyRObject(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRObject(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_27load_vec_element(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_27load_vec_element(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23893,7 +24047,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_27load_vec_element = {"load_vec_element", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_27load_vec_element, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_27load_vec_element(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_27load_vec_element(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23937,12 +24091,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } - else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 142, __pyx_L3_error) + else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 152, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "load_vec_element") < 0)) __PYX_ERR(1, 142, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "load_vec_element") < 0)) __PYX_ERR(1, 152, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; @@ -23953,7 +24107,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("load_vec_element", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 142, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("load_vec_element", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 152, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -23993,42 +24147,42 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_26load_vec_element(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("load_vec_element", 1); - /* "src/rds2py/lib/parser.pyx":143 - * + /* "src/rds2py/lib/parser.pyx":153 + * * def load_vec_element(self, i): * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) # <<<<<<<<<<<<<< * return PyRObject(tmp) - * + * */ - __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 143, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 153, __pyx_L1_error) try { __pyx_t_2 = parse_robject_load_vec_element(__pyx_v_self->ptr, __pyx_t_1); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 143, __pyx_L1_error) + __PYX_ERR(1, 153, __pyx_L1_error) } __pyx_v_tmp = __pyx_t_2; - /* "src/rds2py/lib/parser.pyx":144 + /* "src/rds2py/lib/parser.pyx":154 * def load_vec_element(self, i): * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRObject(tmp) # <<<<<<<<<<<<<< - * + * * def get_package_name(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_tmp); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 144, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_tmp); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 144, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":142 + /* "src/rds2py/lib/parser.pyx":152 * return PyRObject(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRObject(tmp) @@ -24046,16 +24200,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_26load_vec_element(struct __p return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":146 +/* "src/rds2py/lib/parser.pyx":156 * return PyRObject(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode() == "S4": * return parse_robject_package_name(self.ptr).decode() */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_29get_package_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_29get_package_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24063,7 +24217,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_29get_package_name = {"get_package_name", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_29get_package_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_29get_package_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_29get_package_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24106,24 +24260,24 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_28get_package_name(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_package_name", 1); - /* "src/rds2py/lib/parser.pyx":147 - * + /* "src/rds2py/lib/parser.pyx":157 + * * def get_package_name(self): * if self.rtype.decode() == "S4": # <<<<<<<<<<<<<< * return parse_robject_package_name(self.ptr).decode() - * + * */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 147, __pyx_L1_error) + __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_S4, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 147, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_S4, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 157, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "src/rds2py/lib/parser.pyx":148 + /* "src/rds2py/lib/parser.pyx":158 * def get_package_name(self): * if self.rtype.decode() == "S4": * return parse_robject_package_name(self.ptr).decode() # <<<<<<<<<<<<<< - * + * * raise Exception(f'package name does not exist on non-S4 classes') */ __Pyx_XDECREF(__pyx_r); @@ -24131,39 +24285,39 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_28get_package_name(struct __p __pyx_t_3 = parse_robject_package_name(__pyx_v_self->ptr); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 148, __pyx_L1_error) + __PYX_ERR(1, 158, __pyx_L1_error) } - __pyx_t_1 = __Pyx_decode_cpp_string(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_3), 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 148, __pyx_L1_error) + __pyx_t_1 = __Pyx_decode_cpp_string(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_3), 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":147 - * + /* "src/rds2py/lib/parser.pyx":157 + * * def get_package_name(self): * if self.rtype.decode() == "S4": # <<<<<<<<<<<<<< * return parse_robject_package_name(self.ptr).decode() - * + * */ } - /* "src/rds2py/lib/parser.pyx":150 + /* "src/rds2py/lib/parser.pyx":160 * return parse_robject_package_name(self.ptr).decode() - * + * * raise Exception(f'package name does not exist on non-S4 classes') # <<<<<<<<<<<<<< - * + * * def get_class_name(self): */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 150, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 150, __pyx_L1_error) + __PYX_ERR(1, 160, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":146 + /* "src/rds2py/lib/parser.pyx":156 * return PyRObject(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode() == "S4": * return parse_robject_package_name(self.ptr).decode() @@ -24180,16 +24334,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_28get_package_name(struct __p return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":152 +/* "src/rds2py/lib/parser.pyx":162 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< - * if self.rtype.decode() == "S4": - * return parse_robject_class_name(self.ptr).decode() + * # if self.rtype.decode() == "S4": + * return parse_robject_class_name(self.ptr).decode() */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_31get_class_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_31get_class_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24197,7 +24351,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_31get_class_name = {"get_class_name", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_31get_class_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_31get_class_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_31get_class_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24232,80 +24386,44 @@ PyObject *__pyx_args, PyObject *__pyx_kwds static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_30get_class_name(struct __pyx_obj_6rds2py_4core_PyRObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_t_2; - std::string __pyx_t_3; + std::string __pyx_t_1; + PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_class_name", 1); - /* "src/rds2py/lib/parser.pyx":153 - * - * def get_class_name(self): - * if self.rtype.decode() == "S4": # <<<<<<<<<<<<<< - * return parse_robject_class_name(self.ptr).decode() - * - */ - __pyx_t_1 = __Pyx_decode_cpp_string(__pyx_v_self->rtype, 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 153, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_n_u_S4, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 153, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (__pyx_t_2) { - - /* "src/rds2py/lib/parser.pyx":154 - * def get_class_name(self): - * if self.rtype.decode() == "S4": - * return parse_robject_class_name(self.ptr).decode() # <<<<<<<<<<<<<< - * - * raise Exception(f'class name does not exist on non-S4 classes') - */ - __Pyx_XDECREF(__pyx_r); - try { - __pyx_t_3 = parse_robject_class_name(__pyx_v_self->ptr); - } catch(...) { - __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 154, __pyx_L1_error) - } - __pyx_t_1 = __Pyx_decode_cpp_string(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_3), 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "src/rds2py/lib/parser.pyx":153 - * + /* "src/rds2py/lib/parser.pyx":164 * def get_class_name(self): - * if self.rtype.decode() == "S4": # <<<<<<<<<<<<<< - * return parse_robject_class_name(self.ptr).decode() - * + * # if self.rtype.decode() == "S4": + * return parse_robject_class_name(self.ptr).decode() # <<<<<<<<<<<<<< + * # raise Exception(f'class name does not exist on non-S4 classes') + * */ + __Pyx_XDECREF(__pyx_r); + try { + __pyx_t_1 = parse_robject_class_name(__pyx_v_self->ptr); + } catch(...) { + __Pyx_CppExn2PyErr(); + __PYX_ERR(1, 164, __pyx_L1_error) } + __pyx_t_2 = __Pyx_decode_cpp_string(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_1), 0, PY_SSIZE_T_MAX, NULL, NULL, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 164, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":156 - * return parse_robject_class_name(self.ptr).decode() - * - * raise Exception(f'class name does not exist on non-S4 classes') # <<<<<<<<<<<<<< - * - * def get_dimensions(self): - */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 156, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 156, __pyx_L1_error) - - /* "src/rds2py/lib/parser.pyx":152 + /* "src/rds2py/lib/parser.pyx":162 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< - * if self.rtype.decode() == "S4": - * return parse_robject_class_name(self.ptr).decode() + * # if self.rtype.decode() == "S4": + * return parse_robject_class_name(self.ptr).decode() */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("rds2py.core.PyRObject.get_class_name", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -24314,16 +24432,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_30get_class_name(struct __pyx return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":158 - * raise Exception(f'class name does not exist on non-S4 classes') - * +/* "src/rds2py/lib/parser.pyx":167 + * # raise Exception(f'class name does not exist on non-S4 classes') + * * def get_dimensions(self): # <<<<<<<<<<<<<< * return parse_robject_dimensions(self.ptr) - * + * */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_33get_dimensions(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_33get_dimensions(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24331,7 +24449,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_33get_dimensions = {"get_dimensions", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_33get_dimensions, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_33get_dimensions(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_33get_dimensions(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24373,11 +24491,11 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_32get_dimensions(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_dimensions", 1); - /* "src/rds2py/lib/parser.pyx":159 - * + /* "src/rds2py/lib/parser.pyx":168 + * * def get_dimensions(self): * return parse_robject_dimensions(self.ptr) # <<<<<<<<<<<<<< - * + * * def realize_attr_value(self): */ __Pyx_XDECREF(__pyx_r); @@ -24385,20 +24503,20 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_32get_dimensions(struct __pyx __pyx_t_1 = parse_robject_dimensions(__pyx_v_self->ptr); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(1, 159, __pyx_L1_error) + __PYX_ERR(1, 168, __pyx_L1_error) } - __pyx_t_2 = __pyx_convert_pair_to_py_int____int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 159, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_pair_to_py_int____int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":158 - * raise Exception(f'class name does not exist on non-S4 classes') - * + /* "src/rds2py/lib/parser.pyx":167 + * # raise Exception(f'class name does not exist on non-S4 classes') + * * def get_dimensions(self): # <<<<<<<<<<<<<< * return parse_robject_dimensions(self.ptr) - * + * */ /* function exit code */ @@ -24412,16 +24530,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_32get_dimensions(struct __pyx return __pyx_r; } -/* "src/rds2py/lib/parser.pyx":161 +/* "src/rds2py/lib/parser.pyx":170 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_35realize_attr_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_35realize_attr_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24429,7 +24547,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_35realize_attr_value = {"realize_attr_value", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_35realize_attr_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_35realize_attr_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_35realize_attr_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24481,26 +24599,26 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("realize_attr_value", 1); - /* "src/rds2py/lib/parser.pyx":162 - * + /* "src/rds2py/lib/parser.pyx":171 + * * def realize_attr_value(self): * result = {} # <<<<<<<<<<<<<< - * + * * for ro_attr in self.get_attribute_names(): */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 162, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_result = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":164 + /* "src/rds2py/lib/parser.pyx":173 * result = {} - * + * * for ro_attr in self.get_attribute_names(): # <<<<<<<<<<<<<< * tmp_obj = self.load_attribute_by_name(ro_attr.decode()) * result[ro_attr.decode()] = tmp_obj.realize_value() */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_attribute_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_attribute_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -24520,7 +24638,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 164, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } @@ -24529,9 +24647,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ __pyx_t_5 = 0; __pyx_t_6 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 173, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { @@ -24540,28 +24658,28 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS - if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 164, __pyx_L1_error) + if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 173, __pyx_L1_error) #endif if (__pyx_t_5 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(1, 173, __pyx_L1_error) #else - __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS - if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 164, __pyx_L1_error) + if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 173, __pyx_L1_error) #endif if (__pyx_t_5 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(1, 173, __pyx_L1_error) #else - __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 164, __pyx_L1_error) + __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } @@ -24571,7 +24689,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(1, 164, __pyx_L1_error) + else __PYX_ERR(1, 173, __pyx_L1_error) } break; } @@ -24580,16 +24698,16 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ __Pyx_XDECREF_SET(__pyx_v_ro_attr, __pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":165 - * + /* "src/rds2py/lib/parser.pyx":174 + * * for ro_attr in self.get_attribute_names(): * tmp_obj = self.load_attribute_by_name(ro_attr.decode()) # <<<<<<<<<<<<<< * result[ro_attr.decode()] = tmp_obj.realize_value() - * + * */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_load_attribute_by_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 165, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_load_attribute_by_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_ro_attr, __pyx_n_s_decode); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 165, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_ro_attr, __pyx_n_s_decode); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_4 = 0; @@ -24609,7 +24727,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 165, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } @@ -24632,21 +24750,21 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 165, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_XDECREF_SET(__pyx_v_tmp_obj, __pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":166 + /* "src/rds2py/lib/parser.pyx":175 * for ro_attr in self.get_attribute_names(): * tmp_obj = self.load_attribute_by_name(ro_attr.decode()) * result[ro_attr.decode()] = tmp_obj.realize_value() # <<<<<<<<<<<<<< - * + * * return result */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tmp_obj, __pyx_n_s_realize_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 166, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tmp_obj, __pyx_n_s_realize_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_4 = 0; @@ -24666,11 +24784,11 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 166, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ro_attr, __pyx_n_s_decode); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 166, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_ro_attr, __pyx_n_s_decode); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_4 = 0; @@ -24690,17 +24808,17 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 166, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_t_3, __pyx_t_1) < 0))) __PYX_ERR(1, 166, __pyx_L1_error) + if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_t_3, __pyx_t_1) < 0))) __PYX_ERR(1, 175, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/rds2py/lib/parser.pyx":164 + /* "src/rds2py/lib/parser.pyx":173 * result = {} - * + * * for ro_attr in self.get_attribute_names(): # <<<<<<<<<<<<<< * tmp_obj = self.load_attribute_by_name(ro_attr.decode()) * result[ro_attr.decode()] = tmp_obj.realize_value() @@ -24708,9 +24826,9 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/rds2py/lib/parser.pyx":168 + /* "src/rds2py/lib/parser.pyx":177 * result[ro_attr.decode()] = tmp_obj.realize_value() - * + * * return result # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); @@ -24718,12 +24836,12 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ __pyx_r = __pyx_v_result; goto __pyx_L0; - /* "src/rds2py/lib/parser.pyx":161 + /* "src/rds2py/lib/parser.pyx":170 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ /* function exit code */ @@ -24752,7 +24870,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_34realize_attr_value(struct _ */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_37__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_37__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24760,7 +24878,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_37__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_37__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_37__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_37__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24832,7 +24950,7 @@ static PyObject *__pyx_pf_6rds2py_4core_9PyRObject_36__reduce_cython__(CYTHON_UN */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_39__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_39__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24840,7 +24958,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_9PyRObject_39__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_9PyRObject_39__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_39__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_9PyRObject_39__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -26237,6 +26355,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) { {&__pyx_kp_s_Cannot_assign_to_read_only_memor, __pyx_k_Cannot_assign_to_read_only_memor, sizeof(__pyx_k_Cannot_assign_to_read_only_memor), 0, 0, 1, 0}, {&__pyx_kp_s_Cannot_create_writable_memory_vi, __pyx_k_Cannot_create_writable_memory_vi, sizeof(__pyx_k_Cannot_create_writable_memory_vi), 0, 0, 1, 0}, {&__pyx_kp_u_Cannot_index_with_type, __pyx_k_Cannot_index_with_type, sizeof(__pyx_k_Cannot_index_with_type), 0, 1, 0, 0}, + {&__pyx_kp_u_Cannot_realize, __pyx_k_Cannot_realize, sizeof(__pyx_k_Cannot_realize), 0, 1, 0, 0}, {&__pyx_kp_s_Cannot_transpose_memoryview_with, __pyx_k_Cannot_transpose_memoryview_with, sizeof(__pyx_k_Cannot_transpose_memoryview_with), 0, 0, 1, 0}, {&__pyx_kp_s_Dimension_d_is_not_direct, __pyx_k_Dimension_d_is_not_direct, sizeof(__pyx_k_Dimension_d_is_not_direct), 0, 0, 1, 0}, {&__pyx_n_s_Ellipsis, __pyx_k_Ellipsis, sizeof(__pyx_k_Ellipsis), 0, 0, 1, 1}, @@ -26288,7 +26407,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) { {&__pyx_n_s_View_MemoryView, __pyx_k_View_MemoryView, sizeof(__pyx_k_View_MemoryView), 0, 0, 1, 1}, {&__pyx_kp_u__2, __pyx_k__2, sizeof(__pyx_k__2), 0, 1, 0, 0}, {&__pyx_n_s__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 0, 1, 1}, - {&__pyx_n_s__59, __pyx_k__59, sizeof(__pyx_k__59), 0, 0, 1, 1}, + {&__pyx_n_s__58, __pyx_k__58, sizeof(__pyx_k__58), 0, 0, 1, 1}, {&__pyx_kp_u__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 1, 0, 0}, {&__pyx_kp_u__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 1, 0, 0}, {&__pyx_n_s_abc, __pyx_k_abc, sizeof(__pyx_k_abc), 0, 0, 1, 1}, @@ -26301,12 +26420,12 @@ static int __Pyx_CreateStringTabAndInitStrings(void) { {&__pyx_n_u_attributes, __pyx_k_attributes, sizeof(__pyx_k_attributes), 0, 1, 0, 1}, {&__pyx_n_s_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 0, 1, 1}, {&__pyx_n_u_boolean, __pyx_k_boolean, sizeof(__pyx_k_boolean), 0, 1, 0, 1}, + {&__pyx_n_u_boolean_vector, __pyx_k_boolean_vector, sizeof(__pyx_k_boolean_vector), 0, 1, 0, 1}, {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, {&__pyx_n_u_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 1, 0, 1}, {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1}, {&__pyx_n_s_class_getitem, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1}, {&__pyx_n_u_class_name, __pyx_k_class_name, sizeof(__pyx_k_class_name), 0, 1, 0, 1}, - {&__pyx_kp_u_class_name_does_not_exist_on_non, __pyx_k_class_name_does_not_exist_on_non, sizeof(__pyx_k_class_name_does_not_exist_on_non), 0, 1, 0, 0}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_collections, __pyx_k_collections, sizeof(__pyx_k_collections), 0, 0, 1, 1}, {&__pyx_kp_s_collections_abc, __pyx_k_collections_abc, sizeof(__pyx_k_collections_abc), 0, 0, 1, 0}, @@ -26319,6 +26438,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) { {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1}, {&__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0}, {&__pyx_n_u_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 1, 0, 1}, + {&__pyx_n_u_double_vector, __pyx_k_double_vector, sizeof(__pyx_k_double_vector), 0, 1, 0, 1}, {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1}, {&__pyx_n_s_dtype_is_object, __pyx_k_dtype_is_object, sizeof(__pyx_k_dtype_is_object), 0, 0, 1, 1}, {&__pyx_n_s_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 0, 1, 1}, @@ -26355,6 +26475,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) { {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_n_s_initializing, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1}, {&__pyx_n_u_integer, __pyx_k_integer, sizeof(__pyx_k_integer), 0, 1, 0, 1}, + {&__pyx_n_u_integer_vector, __pyx_k_integer_vector, sizeof(__pyx_k_integer_vector), 0, 1, 0, 1}, {&__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1}, {&__pyx_kp_u_isenabled, __pyx_k_isenabled, sizeof(__pyx_k_isenabled), 0, 1, 0, 0}, {&__pyx_n_s_itemsize, __pyx_k_itemsize, sizeof(__pyx_k_itemsize), 0, 0, 1, 1}, @@ -26416,6 +26537,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) { {&__pyx_kp_s_strided_and_direct_or_indirect, __pyx_k_strided_and_direct_or_indirect, sizeof(__pyx_k_strided_and_direct_or_indirect), 0, 0, 1, 0}, {&__pyx_kp_s_strided_and_indirect, __pyx_k_strided_and_indirect, sizeof(__pyx_k_strided_and_indirect), 0, 0, 1, 0}, {&__pyx_n_u_string, __pyx_k_string, sizeof(__pyx_k_string), 0, 1, 0, 1}, + {&__pyx_n_u_string_vector, __pyx_k_string_vector, sizeof(__pyx_k_string_vector), 0, 1, 0, 1}, {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0}, {&__pyx_n_s_struct, __pyx_k_struct, sizeof(__pyx_k_struct), 0, 0, 1, 1}, {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1}, @@ -26462,7 +26584,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def suboffsets(self): * if self.view.suboffsets == NULL: * return (-1,) * self.view.ndim # <<<<<<<<<<<<<< - * + * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) */ __pyx_tuple__4 = PyTuple_New(1); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 582, __pyx_L1_error) @@ -26474,7 +26596,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "View.MemoryView":679 * tup = index if isinstance(index, tuple) else (index,) - * + * * result = [slice(None)] * ndim # <<<<<<<<<<<<<< * have_slices = False * seen_ellipsis = False @@ -26494,50 +26616,39 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":984 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":984 * __pyx_import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< - * + * * cdef inline int import_umath() except -1: */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 984, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); - /* ".tox/.pkg/lib/python3.9/site-packages/numpy/__init__.cython-30.pxd":990 + /* "../../../../../../opt/miniconda3/envs/biocpy/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":990 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< - * + * * cdef inline int import_ufunc() except -1: */ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 990, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); - /* "src/rds2py/lib/parser.pyx":150 + /* "src/rds2py/lib/parser.pyx":160 * return parse_robject_package_name(self.ptr).decode() - * + * * raise Exception(f'package name does not exist on non-S4 classes') # <<<<<<<<<<<<<< - * + * * def get_class_name(self): */ - __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u_package_name_does_not_exist_on_n); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(1, 150, __pyx_L1_error) + __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u_package_name_does_not_exist_on_n); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(1, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); - /* "src/rds2py/lib/parser.pyx":156 - * return parse_robject_class_name(self.ptr).decode() - * - * raise Exception(f'class name does not exist on non-S4 classes') # <<<<<<<<<<<<<< - * - * def get_dimensions(self): - */ - __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_u_class_name_does_not_exist_on_non); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(1, 156, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__12); - __Pyx_GIVEREF(__pyx_tuple__12); - /* "View.MemoryView":100 * cdef object __pyx_collections_abc_Sequence "__pyx_collections_abc_Sequence" * try: @@ -26545,12 +26656,12 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * __pyx_collections_abc_Sequence = __import__("collections.abc").abc.Sequence * else: */ - __pyx_tuple__13 = PyTuple_Pack(1, __pyx_n_s_sys); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 100, __pyx_L1_error) + __pyx_tuple__12 = PyTuple_Pack(1, __pyx_n_s_sys); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__12); + __Pyx_GIVEREF(__pyx_tuple__12); + __pyx_tuple__13 = PyTuple_Pack(2, __pyx_int_3, __pyx_int_3); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); - __pyx_tuple__14 = PyTuple_Pack(2, __pyx_int_3, __pyx_int_3); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__14); - __Pyx_GIVEREF(__pyx_tuple__14); /* "View.MemoryView":101 * try: @@ -26559,107 +26670,107 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence */ - __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_collections_abc); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 101, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__15); - __Pyx_GIVEREF(__pyx_tuple__15); + __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_collections_abc); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__14); + __Pyx_GIVEREF(__pyx_tuple__14); /* "View.MemoryView":103 * __pyx_collections_abc_Sequence = __import__("collections.abc").abc.Sequence * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence # <<<<<<<<<<<<<< * except: - * + * */ - __pyx_tuple__16 = PyTuple_Pack(1, __pyx_n_s_collections); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 103, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__16); - __Pyx_GIVEREF(__pyx_tuple__16); + __pyx_tuple__15 = PyTuple_Pack(1, __pyx_n_s_collections); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__15); + __Pyx_GIVEREF(__pyx_tuple__15); /* "View.MemoryView":309 * return self.name - * + * * cdef generic = Enum("") # <<<<<<<<<<<<<< * cdef strided = Enum("") # default * cdef indirect = Enum("") */ - __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 309, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__17); - __Pyx_GIVEREF(__pyx_tuple__17); + __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__16); + __Pyx_GIVEREF(__pyx_tuple__16); /* "View.MemoryView":310 - * + * * cdef generic = Enum("") * cdef strided = Enum("") # default # <<<<<<<<<<<<<< * cdef indirect = Enum("") - * + * */ - __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 310, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__18); - __Pyx_GIVEREF(__pyx_tuple__18); + __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 310, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__17); + __Pyx_GIVEREF(__pyx_tuple__17); /* "View.MemoryView":311 * cdef generic = Enum("") * cdef strided = Enum("") # default * cdef indirect = Enum("") # <<<<<<<<<<<<<< - * - * + * + * */ - __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 311, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__19); - __Pyx_GIVEREF(__pyx_tuple__19); + __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__18); + __Pyx_GIVEREF(__pyx_tuple__18); /* "View.MemoryView":314 - * - * + * + * * cdef contiguous = Enum("") # <<<<<<<<<<<<<< * cdef indirect_contiguous = Enum("") - * + * */ - __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 314, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__20); - __Pyx_GIVEREF(__pyx_tuple__20); + __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__19); + __Pyx_GIVEREF(__pyx_tuple__19); /* "View.MemoryView":315 - * + * * cdef contiguous = Enum("") * cdef indirect_contiguous = Enum("") # <<<<<<<<<<<<<< - * - * + * + * */ - __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 315, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__21); - __Pyx_GIVEREF(__pyx_tuple__21); + __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__20); + __Pyx_GIVEREF(__pyx_tuple__20); /* "(tree fragment)":1 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ - __pyx_tuple__22 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__22); - __Pyx_GIVEREF(__pyx_tuple__22); - __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__22, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_tuple__21 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__21); + __Pyx_GIVEREF(__pyx_tuple__21); + __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 1, __pyx_L1_error) /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode()) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRObject(tmp) */ - __pyx_tuple__24 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(1, 31, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__24); - __Pyx_GIVEREF(__pyx_tuple__24); - __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_robject, 31, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(1, 31, __pyx_L1_error) + __pyx_tuple__23 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(1, 31, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__23); + __Pyx_GIVEREF(__pyx_tuple__23); + __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_robject, 31, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(1, 31, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_tuple__26 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__26); - __Pyx_GIVEREF(__pyx_tuple__26); - __pyx_codeobj__27 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__27)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_tuple__25 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__25); + __Pyx_GIVEREF(__pyx_tuple__25); + __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 1, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): @@ -26667,200 +26778,200 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_tuple__28 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 3, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__28); - __Pyx_GIVEREF(__pyx_tuple__28); - __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__28, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_tuple__27 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 3, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__27); + __Pyx_GIVEREF(__pyx_tuple__27); + __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 3, __pyx_L1_error) /* "src/rds2py/lib/parser.pyx":51 * self.get_rsize() - * + * * def get_rtype(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) */ - __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_rtype, 51, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(1, 51, __pyx_L1_error) + __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_rtype, 51, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) __PYX_ERR(1, 51, __pyx_L1_error) /* "src/rds2py/lib/parser.pyx":56 * return self.rtype - * + * * def get_rsize(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rsize"): * self.rsize = py_robject_extract_size(self.ptr) */ - __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_rsize, 56, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(1, 56, __pyx_L1_error) + __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_rsize, 56, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(1, 56, __pyx_L1_error) /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< - * if result is None: - * return result + * # if result is None: + * # return result */ - __pyx_tuple__32 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_result); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(1, 61, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__32); - __Pyx_GIVEREF(__pyx_tuple__32); - __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_shennanigans_to_py_reprs, 61, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) __PYX_ERR(1, 61, __pyx_L1_error) + __pyx_tuple__31 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_result); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(1, 61, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__31); + __Pyx_GIVEREF(__pyx_tuple__31); + __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_shennanigans_to_py_reprs, 61, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(1, 61, __pyx_L1_error) /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: + * result = { + * "data": None, */ - __pyx_tuple__34 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_result, __pyx_n_s_s); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(1, 71, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__34); - __Pyx_GIVEREF(__pyx_tuple__34); - __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_realize_value, 71, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(1, 71, __pyx_L1_error) + __pyx_tuple__33 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_result, __pyx_n_s_s); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(1, 71, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__33); + __Pyx_GIVEREF(__pyx_tuple__33); + __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_realize_value, 71, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(1, 71, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":102 + /* "src/rds2py/lib/parser.pyx":112 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): */ - __pyx_tuple__36 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_vec, __pyx_n_s_i, __pyx_n_s_v_obj, __pyx_n_s_v_obj_val); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(1, 102, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__36); - __Pyx_GIVEREF(__pyx_tuple__36); - __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_vector_arr, 102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(1, 102, __pyx_L1_error) + __pyx_tuple__35 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_vec, __pyx_n_s_i, __pyx_n_s_v_obj, __pyx_n_s_v_obj_val); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__35); + __Pyx_GIVEREF(__pyx_tuple__35); + __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_vector_arr, 112, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(1, 112, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":111 + /* "src/rds2py/lib/parser.pyx":121 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) */ - __pyx_tuple__38 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_arr_ptr); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(1, 111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__38); - __Pyx_GIVEREF(__pyx_tuple__38); - __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_int_or_bool_arr, 111, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(1, 111, __pyx_L1_error) + __pyx_tuple__37 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_arr_ptr); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__37); + __Pyx_GIVEREF(__pyx_tuple__37); + __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_int_or_bool_arr, 121, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(1, 121, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":117 + /* "src/rds2py/lib/parser.pyx":127 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") - * + * * def _get_double_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype="f8") */ - __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_double_arr, 117, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(1, 117, __pyx_L1_error) + __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_double_arr, 127, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(1, 127, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":123 + /* "src/rds2py/lib/parser.pyx":133 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") - * + * * def _get_string_arr(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_string_vector(self.ptr) * return arr_str */ - __pyx_tuple__41 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_arr_str); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(1, 123, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__41); - __Pyx_GIVEREF(__pyx_tuple__41); - __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_string_arr, 123, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(1, 123, __pyx_L1_error) + __pyx_tuple__40 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_arr_str); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(1, 133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__40); + __Pyx_GIVEREF(__pyx_tuple__40); + __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_string_arr, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(1, 133, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":127 + /* "src/rds2py/lib/parser.pyx":137 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str */ - __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_attribute_names, 127, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(1, 127, __pyx_L1_error) + __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_attribute_names, 137, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(1, 137, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":131 + /* "src/rds2py/lib/parser.pyx":141 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * */ - __pyx_tuple__44 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(1, 131, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__44); - __Pyx_GIVEREF(__pyx_tuple__44); - __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_find_attribute, 131, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(1, 131, __pyx_L1_error) + __pyx_tuple__43 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(1, 141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__43); + __Pyx_GIVEREF(__pyx_tuple__43); + __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_find_attribute, 141, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(1, 141, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":134 + /* "src/rds2py/lib/parser.pyx":144 * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRObject(tmp) */ - __pyx_tuple__46 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_index, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(1, 134, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__46); - __Pyx_GIVEREF(__pyx_tuple__46); - __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_load_attribute_by_index, 134, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(1, 134, __pyx_L1_error) + __pyx_tuple__45 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_index, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(1, 144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__45); + __Pyx_GIVEREF(__pyx_tuple__45); + __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_load_attribute_by_index, 144, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(1, 144, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":138 + /* "src/rds2py/lib/parser.pyx":148 * return PyRObject(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode()) * return PyRObject(tmp) */ - __pyx_tuple__48 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(1, 138, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__48); - __Pyx_GIVEREF(__pyx_tuple__48); - __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_load_attribute_by_name, 138, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) __PYX_ERR(1, 138, __pyx_L1_error) + __pyx_tuple__47 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(1, 148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__47); + __Pyx_GIVEREF(__pyx_tuple__47); + __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_load_attribute_by_name, 148, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(1, 148, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":142 + /* "src/rds2py/lib/parser.pyx":152 * return PyRObject(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRObject(tmp) */ - __pyx_tuple__50 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(1, 142, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__50); - __Pyx_GIVEREF(__pyx_tuple__50); - __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_load_vec_element, 142, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(1, 142, __pyx_L1_error) + __pyx_tuple__49 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_tmp); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(1, 152, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__49); + __Pyx_GIVEREF(__pyx_tuple__49); + __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_load_vec_element, 152, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(1, 152, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":146 + /* "src/rds2py/lib/parser.pyx":156 * return PyRObject(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode() == "S4": * return parse_robject_package_name(self.ptr).decode() */ - __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_package_name, 146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(1, 146, __pyx_L1_error) + __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_package_name, 156, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(1, 156, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":152 + /* "src/rds2py/lib/parser.pyx":162 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< - * if self.rtype.decode() == "S4": - * return parse_robject_class_name(self.ptr).decode() + * # if self.rtype.decode() == "S4": + * return parse_robject_class_name(self.ptr).decode() */ - __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_class_name, 152, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(1, 152, __pyx_L1_error) + __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_class_name, 162, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(1, 162, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":158 - * raise Exception(f'class name does not exist on non-S4 classes') - * + /* "src/rds2py/lib/parser.pyx":167 + * # raise Exception(f'class name does not exist on non-S4 classes') + * * def get_dimensions(self): # <<<<<<<<<<<<<< * return parse_robject_dimensions(self.ptr) - * + * */ - __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_dimensions, 158, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(1, 158, __pyx_L1_error) + __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_get_dimensions, 167, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(1, 167, __pyx_L1_error) - /* "src/rds2py/lib/parser.pyx":161 + /* "src/rds2py/lib/parser.pyx":170 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ - __pyx_tuple__55 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_result, __pyx_n_s_ro_attr, __pyx_n_s_tmp_obj); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(1, 161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__55); - __Pyx_GIVEREF(__pyx_tuple__55); - __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__55, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_realize_attr_value, 161, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(1, 161, __pyx_L1_error) + __pyx_tuple__54 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_result, __pyx_n_s_ro_attr, __pyx_n_s_tmp_obj); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(1, 170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__54); + __Pyx_GIVEREF(__pyx_tuple__54); + __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_rds2py_lib_parser_pyx, __pyx_n_s_realize_attr_value, 170, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(1, 170, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 1, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): @@ -26868,7 +26979,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__28, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -27174,33 +27285,33 @@ static int __Pyx_modinit_type_import_code(void) { /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_7(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", + __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_9(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 - sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyTypeObject), + sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyTypeObject), #elif CYTHON_COMPILING_IN_LIMITED_API - sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyTypeObject), + sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyTypeObject), #else - sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyHeapTypeObject), + sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyHeapTypeObject), #endif - __Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error) + __Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_7); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 202, __pyx_L1_error) - __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_7); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 225, __pyx_L1_error) - __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_7); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 229, __pyx_L1_error) - __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_7); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 238, __pyx_L1_error) - __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 809, __pyx_L1_error) - __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 811, __pyx_L1_error) - __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 813, __pyx_L1_error) - __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 815, __pyx_L1_error) - __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 817, __pyx_L1_error) - __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 819, __pyx_L1_error) - __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 821, __pyx_L1_error) - __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 823, __pyx_L1_error) - __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 825, __pyx_L1_error) - __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 827, __pyx_L1_error) - __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_7(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_7); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 866, __pyx_L1_error) + __pyx_ptype_5numpy_dtype = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyArray_Descr),__Pyx_ImportType_CheckSize_Ignore_3_0_9); if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 202, __pyx_L1_error) + __pyx_ptype_5numpy_flatiter = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyArrayIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_9); if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 225, __pyx_L1_error) + __pyx_ptype_5numpy_broadcast = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyArrayMultiIterObject),__Pyx_ImportType_CheckSize_Ignore_3_0_9); if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 229, __pyx_L1_error) + __pyx_ptype_5numpy_ndarray = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyArrayObject),__Pyx_ImportType_CheckSize_Ignore_3_0_9); if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 238, __pyx_L1_error) + __pyx_ptype_5numpy_generic = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "generic", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 809, __pyx_L1_error) + __pyx_ptype_5numpy_number = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "number", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 811, __pyx_L1_error) + __pyx_ptype_5numpy_integer = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "integer", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 813, __pyx_L1_error) + __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "signedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 815, __pyx_L1_error) + __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "unsignedinteger", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 817, __pyx_L1_error) + __pyx_ptype_5numpy_inexact = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "inexact", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 819, __pyx_L1_error) + __pyx_ptype_5numpy_floating = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "floating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 821, __pyx_L1_error) + __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "complexfloating", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 823, __pyx_L1_error) + __pyx_ptype_5numpy_flexible = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "flexible", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 825, __pyx_L1_error) + __pyx_ptype_5numpy_character = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "character", sizeof(PyObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyObject),__Pyx_ImportType_CheckSize_Warn_3_0_9); if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 827, __pyx_L1_error) + __pyx_ptype_5numpy_ufunc = __Pyx_ImportType_3_0_9(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_9(PyUFuncObject),__Pyx_ImportType_CheckSize_Ignore_3_0_9); if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 866, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; @@ -27511,7 +27622,7 @@ if (!__Pyx_RefNanny) { #endif /* "View.MemoryView":99 - * + * * cdef object __pyx_collections_abc_Sequence "__pyx_collections_abc_Sequence" * try: # <<<<<<<<<<<<<< * if __import__("sys").version_info >= (3, 3): @@ -27533,12 +27644,12 @@ if (!__Pyx_RefNanny) { * __pyx_collections_abc_Sequence = __import__("collections.abc").abc.Sequence * else: */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin___import__, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L2_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin___import__, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_version_info); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 100, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = PyObject_RichCompare(__pyx_t_5, __pyx_tuple__14, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L2_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_5, __pyx_tuple__13, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 100, __pyx_L2_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 100, __pyx_L2_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -27551,7 +27662,7 @@ if (!__Pyx_RefNanny) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin___import__, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L2_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin___import__, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_abc); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 101, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_5); @@ -27579,10 +27690,10 @@ if (!__Pyx_RefNanny) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence # <<<<<<<<<<<<<< * except: - * + * */ /*else*/ { - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin___import__, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L2_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin___import__, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 103, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Sequence); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 103, __pyx_L2_error) __Pyx_GOTREF(__pyx_t_5); @@ -27595,7 +27706,7 @@ if (!__Pyx_RefNanny) { __pyx_L8:; /* "View.MemoryView":99 - * + * * cdef object __pyx_collections_abc_Sequence "__pyx_collections_abc_Sequence" * try: # <<<<<<<<<<<<<< * if __import__("sys").version_info >= (3, 3): @@ -27614,7 +27725,7 @@ if (!__Pyx_RefNanny) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence * except: # <<<<<<<<<<<<<< - * + * * __pyx_collections_abc_Sequence = None */ /*except:*/ { @@ -27626,10 +27737,10 @@ if (!__Pyx_RefNanny) { /* "View.MemoryView":106 * except: - * + * * __pyx_collections_abc_Sequence = None # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_INCREF(Py_None); __Pyx_XGOTREF(__pyx_collections_abc_Sequence); @@ -27642,7 +27753,7 @@ if (!__Pyx_RefNanny) { } /* "View.MemoryView":99 - * + * * cdef object __pyx_collections_abc_Sequence "__pyx_collections_abc_Sequence" * try: # <<<<<<<<<<<<<< * if __import__("sys").version_info >= (3, 3): @@ -27663,8 +27774,8 @@ if (!__Pyx_RefNanny) { } /* "View.MemoryView":241 - * - * + * + * * try: # <<<<<<<<<<<<<< * count = __pyx_collections_abc_Sequence.count * index = __pyx_collections_abc_Sequence.index @@ -27679,7 +27790,7 @@ if (!__Pyx_RefNanny) { /*try:*/ { /* "View.MemoryView":242 - * + * * try: * count = __pyx_collections_abc_Sequence.count # <<<<<<<<<<<<<< * index = __pyx_collections_abc_Sequence.index @@ -27705,8 +27816,8 @@ if (!__Pyx_RefNanny) { PyType_Modified(__pyx_array_type); /* "View.MemoryView":241 - * - * + * + * * try: # <<<<<<<<<<<<<< * count = __pyx_collections_abc_Sequence.count * index = __pyx_collections_abc_Sequence.index @@ -27726,7 +27837,7 @@ if (!__Pyx_RefNanny) { * index = __pyx_collections_abc_Sequence.index * except: # <<<<<<<<<<<<<< * pass - * + * */ /*except:*/ { __Pyx_ErrRestore(0,0,0); @@ -27742,12 +27853,12 @@ if (!__Pyx_RefNanny) { /* "View.MemoryView":309 * return self.name - * + * * cdef generic = Enum("") # <<<<<<<<<<<<<< * cdef strided = Enum("") # default * cdef indirect = Enum("") */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 309, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XGOTREF(generic); __Pyx_DECREF_SET(generic, __pyx_t_7); @@ -27755,13 +27866,13 @@ if (!__Pyx_RefNanny) { __pyx_t_7 = 0; /* "View.MemoryView":310 - * + * * cdef generic = Enum("") * cdef strided = Enum("") # default # <<<<<<<<<<<<<< * cdef indirect = Enum("") - * + * */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 310, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XGOTREF(strided); __Pyx_DECREF_SET(strided, __pyx_t_7); @@ -27772,10 +27883,10 @@ if (!__Pyx_RefNanny) { * cdef generic = Enum("") * cdef strided = Enum("") # default * cdef indirect = Enum("") # <<<<<<<<<<<<<< - * - * + * + * */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 311, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XGOTREF(indirect); __Pyx_DECREF_SET(indirect, __pyx_t_7); @@ -27783,13 +27894,13 @@ if (!__Pyx_RefNanny) { __pyx_t_7 = 0; /* "View.MemoryView":314 - * - * + * + * * cdef contiguous = Enum("") # <<<<<<<<<<<<<< * cdef indirect_contiguous = Enum("") - * + * */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 314, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XGOTREF(contiguous); __Pyx_DECREF_SET(contiguous, __pyx_t_7); @@ -27797,13 +27908,13 @@ if (!__Pyx_RefNanny) { __pyx_t_7 = 0; /* "View.MemoryView":315 - * + * * cdef contiguous = Enum("") * cdef indirect_contiguous = Enum("") # <<<<<<<<<<<<<< - * - * + * + * */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XGOTREF(indirect_contiguous); __Pyx_DECREF_SET(indirect_contiguous, __pyx_t_7); @@ -27811,8 +27922,8 @@ if (!__Pyx_RefNanny) { __pyx_t_7 = 0; /* "View.MemoryView":323 - * - * + * + * * cdef int __pyx_memoryview_thread_locks_used = 0 # <<<<<<<<<<<<<< * cdef PyThread_type_lock[8] __pyx_memoryview_thread_locks = [ * PyThread_allocate_lock(), @@ -27820,7 +27931,7 @@ if (!__Pyx_RefNanny) { __pyx_memoryview_thread_locks_used = 0; /* "View.MemoryView":324 - * + * * cdef int __pyx_memoryview_thread_locks_used = 0 * cdef PyThread_type_lock[8] __pyx_memoryview_thread_locks = [ # <<<<<<<<<<<<<< * PyThread_allocate_lock(), @@ -27837,8 +27948,8 @@ if (!__Pyx_RefNanny) { memcpy(&(__pyx_memoryview_thread_locks[0]), __pyx_t_8, sizeof(__pyx_memoryview_thread_locks[0]) * (8)); /* "View.MemoryView":982 - * - * + * + * * try: # <<<<<<<<<<<<<< * count = __pyx_collections_abc_Sequence.count * index = __pyx_collections_abc_Sequence.index @@ -27853,7 +27964,7 @@ if (!__Pyx_RefNanny) { /*try:*/ { /* "View.MemoryView":983 - * + * * try: * count = __pyx_collections_abc_Sequence.count # <<<<<<<<<<<<<< * index = __pyx_collections_abc_Sequence.index @@ -27879,8 +27990,8 @@ if (!__Pyx_RefNanny) { PyType_Modified(__pyx_memoryviewslice_type); /* "View.MemoryView":982 - * - * + * + * * try: # <<<<<<<<<<<<<< * count = __pyx_collections_abc_Sequence.count * index = __pyx_collections_abc_Sequence.index @@ -27900,7 +28011,7 @@ if (!__Pyx_RefNanny) { * index = __pyx_collections_abc_Sequence.index * except: # <<<<<<<<<<<<<< * pass - * + * */ /*except:*/ { __Pyx_ErrRestore(0,0,0); @@ -27916,10 +28027,10 @@ if (!__Pyx_RefNanny) { /* "View.MemoryView":988 * pass - * + * * try: # <<<<<<<<<<<<<< * if __pyx_collections_abc_Sequence: - * + * */ { __Pyx_PyThreadState_declare @@ -27931,18 +28042,18 @@ if (!__Pyx_RefNanny) { /*try:*/ { /* "View.MemoryView":989 - * + * * try: * if __pyx_collections_abc_Sequence: # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_collections_abc_Sequence); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 989, __pyx_L23_error) if (__pyx_t_6) { /* "View.MemoryView":993 - * - * + * + * * __pyx_collections_abc_Sequence.register(_memoryviewslice) # <<<<<<<<<<<<<< * __pyx_collections_abc_Sequence.register(array) * except: @@ -27955,7 +28066,7 @@ if (!__Pyx_RefNanny) { __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "View.MemoryView":994 - * + * * __pyx_collections_abc_Sequence.register(_memoryviewslice) * __pyx_collections_abc_Sequence.register(array) # <<<<<<<<<<<<<< * except: @@ -27969,20 +28080,20 @@ if (!__Pyx_RefNanny) { __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "View.MemoryView":989 - * + * * try: * if __pyx_collections_abc_Sequence: # <<<<<<<<<<<<<< - * - * + * + * */ } /* "View.MemoryView":988 * pass - * + * * try: # <<<<<<<<<<<<<< * if __pyx_collections_abc_Sequence: - * + * */ } __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -27999,7 +28110,7 @@ if (!__Pyx_RefNanny) { * __pyx_collections_abc_Sequence.register(array) * except: # <<<<<<<<<<<<<< * pass # ignore failure, it's a minor issue - * + * */ /*except:*/ { __Pyx_ErrRestore(0,0,0); @@ -28024,10 +28135,10 @@ if (!__Pyx_RefNanny) { __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "src/rds2py/lib/parser.pyx":23 - * + * * cimport numpy as np * import numpy as np # <<<<<<<<<<<<<< - * + * * cdef class PyParsedObject: */ __pyx_t_7 = __Pyx_ImportDottedModule(__pyx_n_s_numpy, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 23, __pyx_L1_error) @@ -28037,12 +28148,12 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode()) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRObject(tmp) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_14PyParsedObject_3get_robject, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyParsedObject_get_robject, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__25)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 31, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_14PyParsedObject_3get_robject, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyParsedObject_get_robject, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyParsedObject, __pyx_n_s_get_robject, __pyx_t_7) < 0) __PYX_ERR(1, 31, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28053,7 +28164,7 @@ if (!__Pyx_RefNanny) { * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_14PyParsedObject_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyParsedObject___reduce_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__27)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_14PyParsedObject_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyParsedObject___reduce_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_7) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28064,7 +28175,7 @@ if (!__Pyx_RefNanny) { * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_14PyParsedObject_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyParsedObject___setstate_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__29)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_14PyParsedObject_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyParsedObject___setstate_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_7) < 0) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28073,7 +28184,7 @@ if (!__Pyx_RefNanny) { * cdef string_c rtype * cdef int rsize * R_MIN = -2147483648 # <<<<<<<<<<<<<< - * + * * def __cinit__(self, p:uintptr_t): */ if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_R_MIN, __pyx_int_neg_2147483648) < 0) __PYX_ERR(1, 44, __pyx_L1_error) @@ -28081,12 +28192,12 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":51 * self.get_rsize() - * + * * def get_rtype(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_3get_rtype, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_rtype, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__30)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 51, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_3get_rtype, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_rtype, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__29)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_rtype, __pyx_t_7) < 0) __PYX_ERR(1, 51, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28094,12 +28205,12 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":56 * return self.rtype - * + * * def get_rsize(self): # <<<<<<<<<<<<<< * if not hasattr(self, "rsize"): * self.rsize = py_robject_extract_size(self.ptr) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_5get_rsize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_rsize, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 56, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_5get_rsize, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_rsize, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__30)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_rsize, __pyx_t_7) < 0) __PYX_ERR(1, 56, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28107,12 +28218,12 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< - * if result is None: - * return result + * # if result is None: + * # return result */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_shennanigans_to_py_rep, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 61, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_7shennanigans_to_py_reprs, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_shennanigans_to_py_rep, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__32)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_shennanigans_to_py_reprs, __pyx_t_7) < 0) __PYX_ERR(1, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28120,183 +28231,183 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< - * result = {} - * if self.rtype.decode() in ["integer", "boolean"]: + * result = { + * "data": None, */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_9realize_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_realize_value, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 71, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_9realize_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_realize_value, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__34)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_realize_value, __pyx_t_7) < 0) __PYX_ERR(1, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":102 + /* "src/rds2py/lib/parser.pyx":112 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_11_get_vector_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_vector_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 102, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_11_get_vector_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_vector_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__36)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_vector_arr, __pyx_t_7) < 0) __PYX_ERR(1, 102, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_vector_arr, __pyx_t_7) < 0) __PYX_ERR(1, 112, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":111 + /* "src/rds2py/lib/parser.pyx":121 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_int_or_bool_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__39)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 111, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_13_get_int_or_bool_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_int_or_bool_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__38)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_int_or_bool_arr, __pyx_t_7) < 0) __PYX_ERR(1, 111, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_int_or_bool_arr, __pyx_t_7) < 0) __PYX_ERR(1, 121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":117 + /* "src/rds2py/lib/parser.pyx":127 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(int), format_type="i") - * + * * def _get_double_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype="f8") */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_15_get_double_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_double_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__40)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 117, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_15_get_double_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_double_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__39)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_double_arr, __pyx_t_7) < 0) __PYX_ERR(1, 117, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_double_arr, __pyx_t_7) < 0) __PYX_ERR(1, 127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":123 + /* "src/rds2py/lib/parser.pyx":133 * return _map_ptr_to_view(arr_ptr, shape=(self.rsize,), itemsize=sizeof(double), format_type="d") - * + * * def _get_string_arr(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_string_vector(self.ptr) * return arr_str */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_17_get_string_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_string_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 123, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_17_get_string_arr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject__get_string_arr, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__41)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_string_arr, __pyx_t_7) < 0) __PYX_ERR(1, 123, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_string_arr, __pyx_t_7) < 0) __PYX_ERR(1, 133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":127 + /* "src/rds2py/lib/parser.pyx":137 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_19get_attribute_names, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_attribute_names, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__43)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 127, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_19get_attribute_names, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_attribute_names, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_attribute_names, __pyx_t_7) < 0) __PYX_ERR(1, 127, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_attribute_names, __pyx_t_7) < 0) __PYX_ERR(1, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":131 + /* "src/rds2py/lib/parser.pyx":141 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_21find_attribute, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_find_attribute, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 131, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_21find_attribute, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_find_attribute, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__44)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_find_attribute, __pyx_t_7) < 0) __PYX_ERR(1, 131, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_find_attribute, __pyx_t_7) < 0) __PYX_ERR(1, 141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":134 + /* "src/rds2py/lib/parser.pyx":144 * return parse_robject_find_attribute(self.ptr, name.encode()) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRObject(tmp) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_23load_attribute_by_index, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_load_attribute_by_inde, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 134, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_23load_attribute_by_index, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_load_attribute_by_inde, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__46)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_load_attribute_by_index, __pyx_t_7) < 0) __PYX_ERR(1, 134, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_load_attribute_by_index, __pyx_t_7) < 0) __PYX_ERR(1, 144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":138 + /* "src/rds2py/lib/parser.pyx":148 * return PyRObject(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode()) * return PyRObject(tmp) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_25load_attribute_by_name, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_load_attribute_by_name, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__49)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 138, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_25load_attribute_by_name, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_load_attribute_by_name, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__48)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_load_attribute_by_name, __pyx_t_7) < 0) __PYX_ERR(1, 138, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_load_attribute_by_name, __pyx_t_7) < 0) __PYX_ERR(1, 148, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":142 + /* "src/rds2py/lib/parser.pyx":152 * return PyRObject(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRObject(tmp) */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_27load_vec_element, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_load_vec_element, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__51)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 142, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_27load_vec_element, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_load_vec_element, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__50)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_load_vec_element, __pyx_t_7) < 0) __PYX_ERR(1, 142, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_load_vec_element, __pyx_t_7) < 0) __PYX_ERR(1, 152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":146 + /* "src/rds2py/lib/parser.pyx":156 * return PyRObject(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode() == "S4": * return parse_robject_package_name(self.ptr).decode() */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_29get_package_name, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_package_name, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__52)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 146, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_29get_package_name, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_package_name, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__51)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_package_name, __pyx_t_7) < 0) __PYX_ERR(1, 146, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_package_name, __pyx_t_7) < 0) __PYX_ERR(1, 156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":152 + /* "src/rds2py/lib/parser.pyx":162 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< - * if self.rtype.decode() == "S4": - * return parse_robject_class_name(self.ptr).decode() + * # if self.rtype.decode() == "S4": + * return parse_robject_class_name(self.ptr).decode() */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_31get_class_name, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_class_name, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 152, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_31get_class_name, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_class_name, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__52)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_class_name, __pyx_t_7) < 0) __PYX_ERR(1, 152, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_class_name, __pyx_t_7) < 0) __PYX_ERR(1, 162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":158 - * raise Exception(f'class name does not exist on non-S4 classes') - * + /* "src/rds2py/lib/parser.pyx":167 + * # raise Exception(f'class name does not exist on non-S4 classes') + * * def get_dimensions(self): # <<<<<<<<<<<<<< * return parse_robject_dimensions(self.ptr) - * + * */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_33get_dimensions, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_dimensions, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__54)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 158, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_33get_dimensions, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_get_dimensions, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_dimensions, __pyx_t_7) < 0) __PYX_ERR(1, 158, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_get_dimensions, __pyx_t_7) < 0) __PYX_ERR(1, 167, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); - /* "src/rds2py/lib/parser.pyx":161 + /* "src/rds2py/lib/parser.pyx":170 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_35realize_attr_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_realize_attr_value, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__56)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 161, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_35realize_attr_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject_realize_attr_value, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_realize_attr_value, __pyx_t_7) < 0) __PYX_ERR(1, 161, __pyx_L1_error) + if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_6rds2py_4core_PyRObject, __pyx_n_s_realize_attr_value, __pyx_t_7) < 0) __PYX_ERR(1, 170, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; PyType_Modified(__pyx_ptype_6rds2py_4core_PyRObject); @@ -28305,7 +28416,7 @@ if (!__Pyx_RefNanny) { * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" * def __setstate_cython__(self, __pyx_state): */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_37__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject___reduce_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_37__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject___reduce_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__56)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_7) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -28316,14 +28427,14 @@ if (!__Pyx_RefNanny) { * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError, "no default __reduce__ due to non-trivial __cinit__" */ - __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_39__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject___setstate_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__58)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3, __pyx_L1_error) + __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_9PyRObject_39__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRObject___setstate_cython, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_7) < 0) __PYX_ERR(0, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "src/rds2py/lib/parser.pyx":1 * # pretty basic Cython wrapper # <<<<<<<<<<<<<< - * + * * from parser cimport ( */ __pyx_t_7 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1, __pyx_L1_error) @@ -28759,11 +28870,11 @@ static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyO { int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ); if (unlikely(eq != 0)) { - if (unlikely(eq < 0)) return NULL; // error + if (unlikely(eq < 0)) return NULL; return kwvalues[i]; } } - return NULL; // not found (no exception set) + return NULL; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) { @@ -28876,7 +28987,7 @@ static int __Pyx_ParseOptionalKeywords( if (*name) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - Py_INCREF(value); // transfer ownership of value to values + Py_INCREF(value); Py_DECREF(key); #endif key = NULL; @@ -28895,7 +29006,7 @@ static int __Pyx_ParseOptionalKeywords( && _PyString_Eq(**name, key)) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - value = NULL; // ownership transferred to values + value = NULL; #endif break; } @@ -28927,7 +29038,7 @@ static int __Pyx_ParseOptionalKeywords( if (cmp == 0) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - value = NULL; // ownership transferred to values + value = NULL; #endif break; } @@ -30878,7 +30989,7 @@ static PyObject* __Pyx_PyInt_MultiplyObjC(PyObject *op1, PyObject *op2, long int if (likely(PyInt_CheckExact(op1))) { const long b = intval; long a = PyInt_AS_LONG(op1); - + #ifdef HAVE_LONG_LONG if (sizeof(PY_LONG_LONG) > sizeof(long)) { PY_LONG_LONG result = (PY_LONG_LONG)a * (PY_LONG_LONG)b; @@ -30993,8 +31104,8 @@ static PyObject* __Pyx_PyInt_MultiplyObjC(PyObject *op1, PyObject *op2, long int llx = lla * llb; return PyLong_FromLongLong(llx); #endif - - + + } #endif if (PyFloat_CheckExact(op1)) { @@ -31005,7 +31116,7 @@ static PyObject* __Pyx_PyInt_MultiplyObjC(PyObject *op1, PyObject *op2, long int double a = PyFloat_AS_DOUBLE(op1); #endif double result; - + PyFPE_START_PROTECT("multiply", return NULL) result = ((double)a) * (double)b; PyFPE_END_PROTECT(result) @@ -31633,10 +31744,10 @@ static int __Pyx_MergeVtables(PyTypeObject *type) { #endif /* TypeImport */ -#ifndef __PYX_HAVE_RT_ImportType_3_0_7 -#define __PYX_HAVE_RT_ImportType_3_0_7 -static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject *module, const char *module_name, const char *class_name, - size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_7 check_size) +#ifndef __PYX_HAVE_RT_ImportType_3_0_9 +#define __PYX_HAVE_RT_ImportType_3_0_9 +static PyTypeObject *__Pyx_ImportType_3_0_9(PyObject *module, const char *module_name, const char *class_name, + size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_9 check_size) { PyObject *result = 0; char warning[200]; @@ -31690,7 +31801,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject *module, const char *module module_name, class_name, size, basicsize+itemsize); goto bad; } - if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_7 && + if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_9 && ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " @@ -31698,7 +31809,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject *module, const char *module module_name, class_name, size, basicsize, basicsize+itemsize); goto bad; } - else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_7 && (size_t)basicsize > size) { + else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_9 && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", @@ -32698,7 +32809,7 @@ static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, default: return NULL; } - return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); + return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); } static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { @@ -33157,7 +33268,7 @@ static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( #else py_code = PyCode_NewEmpty(filename, funcname, py_line); #endif - Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline + Py_XDECREF(py_funcname); return py_code; bad: Py_XDECREF(py_funcname); @@ -35053,7 +35164,7 @@ __Pyx_PyType_GetName(PyTypeObject* tp) if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) { PyErr_Clear(); Py_XDECREF(name); - name = __Pyx_NewRef(__pyx_n_s__59); + name = __Pyx_NewRef(__pyx_n_s__58); } return name; } diff --git a/src/rds2py/lib/parser.pxd b/src/rds2py/lib/parser.pxd index 7ac6cba..6a4df6c 100644 --- a/src/rds2py/lib/parser.pxd +++ b/src/rds2py/lib/parser.pxd @@ -5,7 +5,7 @@ from libc.stdint cimport uintptr_t from libcpp.vector cimport vector from libcpp.utility cimport pair -cdef extern from "rds_parser.cpp": +cdef extern from "rds2cpp_wrapper.cpp": uintptr_t py_parser_rds_file(string_c file) nogil except + uintptr_t py_parser_extract_robject(int ptr) nogil except + diff --git a/src/rds2py/lib/parser.pyx b/src/rds2py/lib/parser.pyx index 467404f..704d226 100644 --- a/src/rds2py/lib/parser.pyx +++ b/src/rds2py/lib/parser.pyx @@ -59,8 +59,8 @@ cdef class PyRObject: return self.rsize def shennanigans_to_py_reprs(self, result): - if result is None: - return result + # if result is None: + # return result if self.rtype.decode() in ["integer"]: if self.rsize == 2 and result["data"][0] == self.R_MIN and result["data"][1] < 0: @@ -69,33 +69,44 @@ cdef class PyRObject: return result def realize_value(self): - result = {} - if self.rtype.decode() in ["integer", "boolean"]: + result = { + "data": None, + "attributes": None, + "class_name": None, + "package_name": None, + "rtype": self.rtype.decode('UTF-8') + } + + if result["rtype"] in ["integer"]: result["data"] = self._get_int_or_bool_arr() result["attributes"] = self.realize_attr_value() - elif self.rtype.decode('UTF-8') in ["double"]: + result["class_name"] = "integer_vector" + elif result["rtype"] in ["boolean"]: + result["data"] = self._get_int_or_bool_arr() + result["attributes"] = self.realize_attr_value() + result["class_name"] = "boolean_vector" + elif result["rtype"] in ["double"]: result["data"] = self._get_double_arr() result["attributes"] = self.realize_attr_value() - elif self.rtype.decode('UTF-8') in ["string"]: + result["class_name"] = "double_vector" + elif result["rtype"] in ["string"]: result["data"] = [s.decode() for s in self._get_string_arr()] - elif self.rtype.decode('UTF-8') in ["vector"]: + result["attributes"] = self.realize_attr_value() + result["class_name"] = "string_vector" + elif result["rtype"] in ["vector"]: result["data"] = self._get_vector_arr() result["attributes"] = self.realize_attr_value() - elif self.rtype.decode('UTF-8') in ["null"]: - return None - elif self.rtype.decode('UTF-8') in ["S4"]: - result = { - "data": None, - "package_name": self.get_package_name(), - "class_name": self.get_class_name() - } + result["class_name"] = self.get_class_name() + elif result["rtype"] in ["null"]: + return result + elif result["rtype"] in ["S4"]: + result["package_name"] = self.get_package_name() + result["class_name"] = self.get_class_name() result["attributes"] = self.realize_attr_value() + return result else: - return { - "data": None, - "attributes": None - } - # raise Exception(f'Cannot realize {self.rtype.decode()}') + # return result + raise Exception(f'Cannot realize {self.rtype.decode()}') return self.shennanigans_to_py_reprs(result) @@ -150,10 +161,9 @@ cdef class PyRObject: raise Exception(f'package name does not exist on non-S4 classes') def get_class_name(self): - if self.rtype.decode() == "S4": - return parse_robject_class_name(self.ptr).decode() - - raise Exception(f'class name does not exist on non-S4 classes') + # if self.rtype.decode() == "S4": + return parse_robject_class_name(self.ptr).decode() + # raise Exception(f'class name does not exist on non-S4 classes') def get_dimensions(self): return parse_robject_dimensions(self.ptr) diff --git a/src/rds2py/lib/rds_parser.cpp b/src/rds2py/lib/rds2cpp_wrapper.cpp similarity index 99% rename from src/rds2py/lib/rds_parser.cpp rename to src/rds2py/lib/rds2cpp_wrapper.cpp index b1d1409..18e7a7c 100644 --- a/src/rds2py/lib/rds_parser.cpp +++ b/src/rds2py/lib/rds2cpp_wrapper.cpp @@ -194,7 +194,7 @@ inline uintptr_t parse_robject_load_attribute_by_index(uintptr_t ptr, int i) { case rds2cpp::SEXPType::INT: return _load_attr_idx_(parsed, i); case rds2cpp::SEXPType::REAL: - return _load_attr_idx_(parsed, i); + return _load_attr_idx_(parsed, i); case rds2cpp::SEXPType::LGL: return _load_attr_idx_(parsed, i); case rds2cpp::SEXPType::STR: diff --git a/src/rds2py/rds_interface.py b/src/rds2py/rdsutils.py similarity index 89% rename from src/rds2py/rds_interface.py rename to src/rds2py/rdsutils.py index efdf00d..29fe80a 100644 --- a/src/rds2py/rds_interface.py +++ b/src/rds2py/rdsutils.py @@ -5,8 +5,8 @@ __license__ = "MIT" -def load_rds(path: str) -> dict: - """Read an RDS file as a :py:class:`~dict`. +def parse_rds(path: str) -> dict: + """Parse an RDS file as a :py:class:`~dict`. Args: path: @@ -45,6 +45,4 @@ def get_class(robj: dict) -> str: if "dim" in obj_attr: return "densematrix" - return None - -def save_rds(r_obj, path): + return None \ No newline at end of file diff --git a/src/rds2py/read_atomic_vector.py b/src/rds2py/read_atomic_vector.py new file mode 100644 index 0000000..91a9c5a --- /dev/null +++ b/src/rds2py/read_atomic_vector.py @@ -0,0 +1,42 @@ +from biocutils import BooleanList, FloatList, IntegerList, StringList + +__author__ = "jkanche" +__copyright__ = "jkanche" +__license__ = "MIT" + + +def _extract_names(robject: dict): + _names = None + if "attributes" in robject and robject["attributes"] is not None: + if "names" in robject["attributes"]: + _names = list(parse_string_vector(robject["attributes"]["names"])) + + return _names + + +def parse_boolean_vector(robject: dict): + _names = _extract_names(robject) + + obj = BooleanList(robject["data"], names=_names) + return obj + + +def parse_integer_vector(robject: dict, **kwargs): + _names = _extract_names(robject) + + obj = IntegerList(robject["data"], names=_names) + return obj + + +def parse_string_vector(robject: dict, **kwargs): + _names = _extract_names(robject) + + obj = StringList(robject["data"], names=_names) + return obj + + +def parse_double_vector(robject: dict, **kwargs): + _names = _extract_names(robject) + + obj = FloatList(robject["data"], names=_names) + return obj diff --git a/tests/data/atomic_ints_with_names.rds b/tests/data/atomic_ints_with_names.rds new file mode 100644 index 0000000000000000000000000000000000000000..de8b7a30fb1ec21484805e292535aede2b12e473 GIT binary patch literal 264 zcmV+j0r&nNiwFP!0000018q>-4#7YW9o_DBwW@x^yEmSE0f`5R6iYlP+J3kA0_<`o z8I4UQJ2U6Znae6AB1N%^NNMkqUM}Y22~m{$;OZ^$X1o>f1FMf*0)K#bfH(tYk;^_! zz8V1!O(Wo3AHytuBXl{|z!Sl<&`X4#`7@*JWe|rMa?EEiW8e?*XJURWcvjqjYk1xi z^;Yyv!Pnr81kO7ckxOBGN7m)Od=J)FLR*VEAID+Gp05a8U6p6oc;}Ag87TJd;Og4# zH%(igs$&O^w`JqRy?WT;iCkB1xVxOM<*wbFs 0 -# assert len(attr_names) is not None -# assert len(attr_values) is not None +# assert obj is not None diff --git a/tests/test_atomic-bool.py b/tests/test_atomic-bool.py index 02bfa78..d1aead4 100644 --- a/tests/test_atomic-bool.py +++ b/tests/test_atomic-bool.py @@ -1,6 +1,7 @@ import pytest -from rds2py.core import PyParsedObject +from rds2py import read_rds +from biocutils import BooleanList __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,18 +9,16 @@ def test_read_atomic_logical(): - parsed_obj = PyParsedObject("tests/data/atomic_logical.rds") - robject_obj = parsed_obj.get_robject() - array = robject_obj.realize_value() + arr = read_rds("tests/data/atomic_logical.rds") - assert array is not None - assert array["data"].shape[0] > 0 + assert arr is not None + assert isinstance(arr, BooleanList) + assert len(arr) > 0 def test_read_atomic_logical_na(): - parsed_obj = PyParsedObject("tests/data/atomic_logical_wNA.rds") - robject_obj = parsed_obj.get_robject() - array = robject_obj.realize_value() + arr = read_rds("tests/data/atomic_logical_wNA.rds") - assert array is not None - assert array["data"].shape[0] > 0 + assert arr is not None + assert isinstance(arr, BooleanList) + assert len(arr) > 0 diff --git a/tests/test_atomic-double.py b/tests/test_atomic-double.py index 5ec7087..af29abf 100644 --- a/tests/test_atomic-double.py +++ b/tests/test_atomic-double.py @@ -1,16 +1,16 @@ -# import pytest +import pytest -# from rds2py.core import PyParsedObject +from rds2py import read_rds +from biocutils import FloatList -# __author__ = "jkanche" -# __copyright__ = "jkanche" -# __license__ = "MIT" +__author__ = "jkanche" +__copyright__ = "jkanche" +__license__ = "MIT" -# def test_read_atomic_double(): -# parsed_obj = PyParsedObject("tests/data/atomic_double.rds") -# robject_obj = parsed_obj.get_robject() -# array = robject_obj.realize_value() +def test_read_atomic_double(): + obj = read_rds("tests/data/atomic_double.rds") -# assert array is not None -# assert array["data"].shape[0] == 99 + assert obj is not None + assert isinstance(obj, FloatList) + assert len(obj) == 99 diff --git a/tests/test_atomic-int.py b/tests/test_atomic-int.py index 044fc9e..8e88f87 100644 --- a/tests/test_atomic-int.py +++ b/tests/test_atomic-int.py @@ -1,16 +1,24 @@ -# import pytest +import pytest -# from rds2py.core import PyParsedObject +from rds2py import read_rds +from biocutils import IntegerList -# __author__ = "jkanche" -# __copyright__ = "jkanche" -# __license__ = "MIT" +__author__ = "jkanche" +__copyright__ = "jkanche" +__license__ = "MIT" -# def test_read_atomic_ints(): -# parsed_obj = PyParsedObject("tests/data/atomic_ints.rds") -# robject_obj = parsed_obj.get_robject() -# array = robject_obj.realize_value() +def test_read_atomic_ints(): + arr = read_rds("tests/data/atomic_ints.rds") -# assert array is not None -# assert array["data"].shape[0] == 112 + assert arr is not None + assert isinstance(arr, IntegerList) + assert len(arr) == 112 + +def test_read_atomic_ints_with_names(): + arr = read_rds("tests/data/atomic_ints_with_names.rds") + + assert arr is not None + assert isinstance(arr, IntegerList) + assert arr.names is not None + assert len(arr) == 112 diff --git a/tests/test_atomic-str.py b/tests/test_atomic-str.py index 1a610e1..2584a86 100644 --- a/tests/test_atomic-str.py +++ b/tests/test_atomic-str.py @@ -1,25 +1,24 @@ -# import pytest +import pytest -# from rds2py.core import PyParsedObject +from rds2py import read_rds +from biocutils import StringList -# __author__ = "jkanche" -# __copyright__ = "jkanche" -# __license__ = "MIT" +__author__ = "jkanche" +__copyright__ = "jkanche" +__license__ = "MIT" -# def test_read_atomic_chars(): -# parsed_obj = PyParsedObject("tests/data/atomic_chars.rds") -# robject_obj = parsed_obj.get_robject() -# array = robject_obj.realize_value() +def test_read_atomic_chars(): + arr = read_rds("tests/data/atomic_chars.rds") -# assert array is not None -# assert len(array["data"]) == 26 + assert arr is not None + assert isinstance(arr, StringList) + assert len(arr) == 26 -# def test_read_atomic_chars_unicode(): -# parsed_obj = PyParsedObject("tests/data/atomic_chars_unicode.rds") -# robject_obj = parsed_obj.get_robject() -# array = robject_obj.realize_value() +def test_read_atomic_chars_unicode(): + arr = read_rds("tests/data/atomic_chars_unicode.rds") -# assert array is not None -# assert len(array["data"]) == 4 + assert arr is not None + assert isinstance(arr, StringList) + assert len(arr) == 4