From 4d375532d34027d911e7988063134ca4cd8dc5a3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:57:26 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/rds2py/granges.py | 72 +- src/rds2py/lib/parser.cpp | 2996 +++++++++++++++--------------- src/rds2py/save_atomic_vector.py | 4 +- 3 files changed, 1536 insertions(+), 1536 deletions(-) diff --git a/src/rds2py/granges.py b/src/rds2py/granges.py index 7e265bf..489d8aa 100644 --- a/src/rds2py/granges.py +++ b/src/rds2py/granges.py @@ -36,33 +36,33 @@ # _seqnames = _as_list(robj["attributes"]["seqnames"]) - # _strands = robj["attributes"]["strand"] - # _fstrand = None - # if "attributes" in _strands: - # _lengths = _strands["attributes"]["lengths"]["data"] - # _factors = _strands["attributes"]["values"]["data"] - # _levels = _strands["attributes"]["values"]["attributes"]["levels"]["data"] - # _strds = [_levels[x - 1] for x in _factors] - # _fstrand = [] - # for i, x in enumerate(_lengths): - # _fstrand.extend([_strds[i]] * x) - - # _seqinfo_seqnames = robj["attributes"]["seqinfo"]["attributes"]["seqnames"]["data"] - # _seqinfo_seqlengths = robj["attributes"]["seqinfo"]["attributes"]["seqlengths"][ - # "data" - # ] - # _seqinfo_is_circular = robj["attributes"]["seqinfo"]["attributes"]["is_circular"][ - # "data" - # ] - # _seqinfo_genome = robj["attributes"]["seqinfo"]["attributes"]["genome"]["data"] - # _seqinfo = SeqInfo( - # seqnames=_seqinfo_seqnames, - # seqlengths=[None if x == -2147483648 else int(x) for x in _seqinfo_seqlengths], - # is_circular=[ - # None if x == -2147483648 else bool(x) for x in _seqinfo_is_circular - # ], - # genome=_seqinfo_genome, - # ) +# _strands = robj["attributes"]["strand"] +# _fstrand = None +# if "attributes" in _strands: +# _lengths = _strands["attributes"]["lengths"]["data"] +# _factors = _strands["attributes"]["values"]["data"] +# _levels = _strands["attributes"]["values"]["attributes"]["levels"]["data"] +# _strds = [_levels[x - 1] for x in _factors] +# _fstrand = [] +# for i, x in enumerate(_lengths): +# _fstrand.extend([_strds[i]] * x) + +# _seqinfo_seqnames = robj["attributes"]["seqinfo"]["attributes"]["seqnames"]["data"] +# _seqinfo_seqlengths = robj["attributes"]["seqinfo"]["attributes"]["seqlengths"][ +# "data" +# ] +# _seqinfo_is_circular = robj["attributes"]["seqinfo"]["attributes"]["is_circular"][ +# "data" +# ] +# _seqinfo_genome = robj["attributes"]["seqinfo"]["attributes"]["genome"]["data"] +# _seqinfo = SeqInfo( +# seqnames=_seqinfo_seqnames, +# seqlengths=[None if x == -2147483648 else int(x) for x in _seqinfo_seqlengths], +# is_circular=[ +# None if x == -2147483648 else bool(x) for x in _seqinfo_is_circular +# ], +# genome=_seqinfo_genome, +# ) # _mcols = BiocFrame.from_pandas( # as_pandas_from_dframe(robj["attributes"]["elementMetadata"]) @@ -72,14 +72,14 @@ # if "NAMES" in robj["attributes"]: # _gr_names = robj["attributes"]["NAMES"]["data"] - # return GenomicRanges( - # seqnames=_seqnames, - # ranges=_ranges, - # strand=_fstrand, - # names=_gr_names, - # mcols=_mcols, - # seqinfo=_seqinfo, - # ) +# return GenomicRanges( +# seqnames=_seqnames, +# ranges=_ranges, +# strand=_fstrand, +# names=_gr_names, +# mcols=_mcols, +# seqinfo=_seqinfo, +# ) # def _as_list(robj): @@ -115,7 +115,7 @@ # _data = _final - # return _data +# return _data # def as_granges_list(robj): diff --git a/src/rds2py/lib/parser.cpp b/src/rds2py/lib/parser.cpp index e6fe790..2cb2753 100644 --- a/src/rds2py/lib/parser.cpp +++ b/src/rds2py/lib/parser.cpp @@ -1285,12 +1285,12 @@ static CYTHON_INLINE float __PYX_NAN() { } #endif - + #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" @@ -1719,7 +1719,7 @@ typedef struct { /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":770 * # 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 @@ -1727,7 +1727,7 @@ typedef struct { typedef npy_int8 __pyx_t_5numpy_int8_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":771 - * + * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< * ctypedef npy_int32 int32_t @@ -1755,7 +1755,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":777 * #ctypedef npy_int128 int128_t - * + * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t @@ -1763,7 +1763,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t; typedef npy_uint8 __pyx_t_5numpy_uint8_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":778 - * + * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< * ctypedef npy_uint32 uint32_t @@ -1791,7 +1791,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":784 * #ctypedef npy_uint128 uint128_t - * + * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< * ctypedef npy_float64 float64_t * #ctypedef npy_float80 float80_t @@ -1799,7 +1799,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t; typedef npy_float32 __pyx_t_5numpy_float32_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":785 - * + * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< * #ctypedef npy_float80 float80_t @@ -1809,43 +1809,43 @@ typedef npy_float64 __pyx_t_5numpy_float64_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":792 * ctypedef double complex complex128_t - * + * * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< * ctypedef npy_ulonglong ulonglong_t - * + * */ typedef npy_longlong __pyx_t_5numpy_longlong_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":793 - * + * * ctypedef npy_longlong longlong_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< - * + * * ctypedef npy_intp intp_t */ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":795 * 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.11/site-packages/numpy/__init__.cython-30.pxd":796 - * + * * 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.11/site-packages/numpy/__init__.cython-30.pxd":798 * ctypedef npy_uintp uintp_t - * + * * ctypedef npy_double float_t # <<<<<<<<<<<<<< * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t @@ -1853,11 +1853,11 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t; typedef npy_double __pyx_t_5numpy_float_t; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":799 - * + * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< * ctypedef npy_longdouble longdouble_t - * + * */ typedef npy_double __pyx_t_5numpy_double_t; @@ -1865,7 +1865,7 @@ typedef npy_double __pyx_t_5numpy_double_t; * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< - * + * * ctypedef float complex cfloat_t */ typedef npy_longdouble __pyx_t_5numpy_longdouble_t; @@ -1917,11 +1917,11 @@ struct __pyx_memoryview_obj; struct __pyx_memoryviewslice_obj; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1096 - * + * * # Iterator API added in v1.6 * ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil # <<<<<<<<<<<<<< * ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil - * + * */ typedef int (*__pyx_t_5numpy_NpyIter_IterNextFunc)(NpyIter *); @@ -1929,17 +1929,17 @@ typedef int (*__pyx_t_5numpy_NpyIter_IterNextFunc)(NpyIter *); * # Iterator API added in v1.6 * ctypedef int (*NpyIter_IterNextFunc)(NpyIter* it) noexcept nogil * ctypedef void (*NpyIter_GetMultiIndexFunc)(NpyIter* it, npy_intp* outcoords) noexcept nogil # <<<<<<<<<<<<<< - * + * * cdef extern from "numpy/arrayobject.h": */ typedef void (*__pyx_t_5numpy_NpyIter_GetMultiIndexFunc)(NpyIter *, npy_intp *); /* "src/rds2py/lib/parser.pyx":25 * import numpy as np - * + * * cdef class PyRdsObject: # <<<<<<<<<<<<<< * cdef uintptr_t ptr - * + * */ struct __pyx_obj_6rds2py_4core_PyRdsObject { PyObject_HEAD @@ -1949,7 +1949,7 @@ struct __pyx_obj_6rds2py_4core_PyRdsObject { /* "src/rds2py/lib/parser.pyx":40 * return np.asarray(my_array) - * + * * cdef class PyRdsReader: # <<<<<<<<<<<<<< * cdef uintptr_t ptr * cdef string_c rtype @@ -1966,7 +1966,7 @@ struct __pyx_obj_6rds2py_4core_PyRdsReader { * @cython.collection_type("sequence") * @cname("__pyx_array") * cdef class array: # <<<<<<<<<<<<<< - * + * * cdef: */ struct __pyx_array_obj { @@ -1988,7 +1988,7 @@ struct __pyx_array_obj { /* "View.MemoryView":302 - * + * * @cname('__pyx_MemviewEnum') * cdef class Enum(object): # <<<<<<<<<<<<<< * cdef object name @@ -2001,10 +2001,10 @@ struct __pyx_MemviewEnum_obj { /* "View.MemoryView":337 - * + * * @cname('__pyx_memoryview') * cdef class memoryview: # <<<<<<<<<<<<<< - * + * * cdef object obj */ struct __pyx_memoryview_obj { @@ -2027,7 +2027,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; @@ -2043,7 +2043,7 @@ struct __pyx_memoryviewslice_obj { * @cython.collection_type("sequence") * @cname("__pyx_array") * cdef class array: # <<<<<<<<<<<<<< - * + * * cdef: */ @@ -2054,10 +2054,10 @@ static struct __pyx_vtabstruct_array *__pyx_vtabptr_array; /* "View.MemoryView":337 - * + * * @cname('__pyx_memoryview') * cdef class memoryview: # <<<<<<<<<<<<<< - * + * * cdef object obj */ @@ -2079,7 +2079,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 { @@ -5077,7 +5077,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { /* #### Code section: module_code ### */ /* "string.from_py":13 - * + * * @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 @@ -5108,7 +5108,7 @@ static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(P * 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; @@ -5117,8 +5117,8 @@ static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(P * 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); @@ -5130,7 +5130,7 @@ static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(P goto __pyx_L0; /* "string.from_py":13 - * + * * @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 @@ -5146,7 +5146,7 @@ static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(P } /* "string.to_py":31 - * + * * @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()) @@ -5177,7 +5177,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6stri goto __pyx_L0; /* "string.to_py":31 - * + * * @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()) @@ -5196,7 +5196,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6stri } /* "string.to_py":37 - * + * * @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()) @@ -5227,7 +5227,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6str goto __pyx_L0; /* "string.to_py":37 - * + * * @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()) @@ -5246,7 +5246,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6str } /* "string.to_py":43 - * + * * @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()) @@ -5277,7 +5277,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_ goto __pyx_L0; /* "string.to_py":43 - * + * * @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()) @@ -5296,7 +5296,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_ } /* "string.to_py":49 - * + * * @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()) @@ -5327,7 +5327,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6strin goto __pyx_L0; /* "string.to_py":49 - * + * * @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()) @@ -5346,11 +5346,11 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6strin } /* "string.to_py":55 - * + * * @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_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { @@ -5366,7 +5366,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6s * @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) @@ -5376,11 +5376,11 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6s goto __pyx_L0; /* "string.to_py":55 - * + * * @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 */ @@ -5395,7 +5395,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6s } /* "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: @@ -5434,7 +5434,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) @@ -5451,16 +5451,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) @@ -5470,7 +5470,7 @@ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector PY_SSIZE_T_MAX: @@ -5544,11 +5544,11 @@ static PyObject *__pyx_convert_vector_to_py_std_3a__3a_string(std::vector const &__pyx_v_p) { @@ -5566,8 +5566,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) @@ -5587,11 +5587,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 */ @@ -5609,10 +5609,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 */ @@ -5727,10 +5727,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); @@ -5760,10 +5760,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 */ @@ -5805,10 +5805,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()"); @@ -5818,29 +5818,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); @@ -5848,28 +5848,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); @@ -5877,26 +5877,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 @@ -5931,7 +5931,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 @@ -5943,7 +5943,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; @@ -5958,8 +5958,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"); @@ -5969,55 +5969,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}." @@ -6046,7 +6046,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}." @@ -6060,7 +6060,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); @@ -6098,7 +6098,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}." @@ -6110,14 +6110,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}." @@ -6126,7 +6126,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' @@ -6158,7 +6158,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' @@ -6213,7 +6213,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*/ { @@ -6230,27 +6230,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) @@ -6260,37 +6260,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 */ @@ -6310,7 +6310,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 @@ -6471,7 +6471,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; @@ -6480,7 +6480,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; @@ -6488,7 +6488,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 @@ -6497,7 +6497,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 @@ -6528,7 +6528,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 @@ -6551,7 +6551,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) { @@ -6565,7 +6565,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; @@ -6574,7 +6574,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 @@ -6582,7 +6582,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 @@ -6605,7 +6605,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) { @@ -6619,7 +6619,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); @@ -6630,7 +6630,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 @@ -6659,7 +6659,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) @@ -6683,7 +6683,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) @@ -6702,7 +6702,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) @@ -6760,7 +6760,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); @@ -6778,14 +6778,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) @@ -6796,7 +6796,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() @@ -6830,7 +6830,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); @@ -6842,7 +6842,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() @@ -6860,7 +6860,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 @@ -6884,7 +6884,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); @@ -6892,7 +6892,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); @@ -6919,7 +6919,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 @@ -6941,10 +6941,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 */ @@ -6966,10 +6966,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]); @@ -6977,10 +6977,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 */ @@ -6990,10 +6990,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 */ @@ -7022,10 +7022,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); @@ -7040,10 +7040,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 */ @@ -7060,10 +7060,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 */ @@ -7092,10 +7092,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); @@ -7110,10 +7110,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 */ @@ -7130,10 +7130,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 */ @@ -7161,11 +7161,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); @@ -7174,10 +7174,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 */ @@ -7199,14 +7199,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 @@ -7278,14 +7278,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 @@ -7405,11 +7405,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) { @@ -7426,7 +7426,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: @@ -7434,7 +7434,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: @@ -7447,7 +7447,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)) { @@ -7456,7 +7456,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); @@ -7467,13 +7467,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): @@ -7481,7 +7481,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): @@ -7523,14 +7523,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): @@ -7541,18 +7541,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 */ @@ -7564,7 +7564,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 @@ -7589,7 +7589,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'); @@ -7605,7 +7605,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: @@ -7614,7 +7614,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: @@ -7646,7 +7646,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: @@ -7659,7 +7659,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) @@ -7694,7 +7694,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; @@ -7703,10 +7703,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); @@ -7714,7 +7714,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 @@ -7860,7 +7860,7 @@ static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struc * self.name = name * def __repr__(self): # <<<<<<<<<<<<<< * return self.name - * + * */ /* Python wrapper */ @@ -7887,7 +7887,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); @@ -7900,7 +7900,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 */ @@ -7917,14 +7917,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 @@ -8176,14 +8176,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 @@ -8311,7 +8311,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 @@ -8444,7 +8444,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 @@ -8507,7 +8507,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; @@ -8515,7 +8515,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); @@ -8540,7 +8540,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: @@ -8609,7 +8609,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)) { @@ -8618,7 +8618,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) @@ -8628,7 +8628,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit_ * self.lock = PyThread_allocate_lock() * if self.lock is NULL: # <<<<<<<<<<<<<< * raise MemoryError - * + * */ } @@ -8643,7 +8643,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: @@ -8652,7 +8652,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: @@ -8661,7 +8661,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: @@ -8680,7 +8680,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: @@ -8692,7 +8692,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*/ { @@ -8702,10 +8702,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())) { @@ -8726,17 +8726,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 @@ -8755,7 +8755,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) @@ -8784,7 +8784,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) @@ -8798,12 +8798,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) @@ -8816,7 +8816,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); @@ -8824,18 +8824,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); @@ -8844,7 +8844,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 */ } @@ -8954,7 +8954,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); @@ -8972,7 +8972,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) @@ -8983,7 +8983,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 @@ -9011,17 +9011,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)) { @@ -9082,10 +9082,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) @@ -9094,27 +9094,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 @@ -9133,8 +9133,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 @@ -9172,11 +9172,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) { @@ -9185,7 +9185,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); @@ -9194,19 +9194,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) @@ -9220,8 +9220,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 @@ -9240,7 +9240,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) @@ -9264,7 +9264,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) @@ -9277,7 +9277,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) @@ -9287,7 +9287,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); @@ -9299,8 +9299,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 @@ -9323,7 +9323,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" @@ -9360,11 +9360,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)) { @@ -9372,26 +9372,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) @@ -9405,8 +9405,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 @@ -9426,7 +9426,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: @@ -9435,7 +9435,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: @@ -9500,7 +9500,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: @@ -9512,7 +9512,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*/ { @@ -9524,7 +9524,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" @@ -9549,7 +9549,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: @@ -9574,13 +9574,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) { @@ -9666,7 +9666,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) { @@ -9680,7 +9680,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); @@ -9715,7 +9715,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: @@ -9725,9 +9725,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); @@ -9737,7 +9737,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: @@ -9759,7 +9759,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 @@ -9787,7 +9787,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) @@ -9797,7 +9797,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) @@ -9806,9 +9806,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) @@ -9823,7 +9823,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 @@ -9844,7 +9844,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 @@ -9880,7 +9880,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; @@ -9888,7 +9888,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) @@ -9896,7 +9896,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: @@ -9905,7 +9905,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: @@ -9952,7 +9952,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: @@ -9964,7 +9964,7 @@ static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memor * item = tmp * else: * item = array # <<<<<<<<<<<<<< - * + * * try: */ /*else*/ { @@ -9974,7 +9974,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 @@ -9982,7 +9982,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 @@ -10000,7 +10000,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 @@ -10013,8 +10013,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) @@ -10024,8 +10024,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, @@ -10034,7 +10034,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, @@ -10043,8 +10043,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, @@ -10065,7 +10065,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:*/ { @@ -10110,7 +10110,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 @@ -10131,7 +10131,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) @@ -10149,11 +10149,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; @@ -10162,7 +10162,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) @@ -10171,7 +10171,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) @@ -10192,7 +10192,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""" @@ -10224,7 +10224,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); @@ -10233,7 +10233,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) @@ -10244,7 +10244,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) @@ -10297,7 +10297,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) @@ -10322,7 +10322,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) @@ -10344,7 +10344,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); @@ -10392,7 +10392,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) @@ -10414,7 +10414,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""" @@ -10439,7 +10439,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""" @@ -10483,16 +10483,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: @@ -10523,7 +10523,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: @@ -10535,7 +10535,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*/ { @@ -10574,10 +10574,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)) { @@ -10593,28 +10593,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; @@ -10623,7 +10623,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""" @@ -10650,7 +10650,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: @@ -10697,7 +10697,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) { @@ -10713,7 +10713,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); @@ -10724,13 +10724,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: @@ -10739,7 +10739,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: @@ -10750,7 +10750,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: @@ -10762,7 +10762,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*/ { @@ -10772,7 +10772,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: @@ -10781,7 +10781,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: @@ -10792,7 +10792,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: @@ -10804,7 +10804,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*/ { @@ -10814,7 +10814,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: @@ -10823,7 +10823,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: @@ -10834,7 +10834,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: @@ -10846,7 +10846,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*/ { @@ -10856,7 +10856,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: @@ -10865,7 +10865,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: @@ -10876,7 +10876,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: @@ -10888,7 +10888,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*/ { @@ -10898,7 +10898,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 @@ -10907,7 +10907,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 @@ -10941,7 +10941,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; @@ -10950,8 +10950,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); @@ -10961,7 +10961,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: @@ -10989,8 +10989,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) @@ -11040,7 +11040,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) @@ -11048,7 +11048,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); @@ -11057,8 +11057,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) @@ -11078,7 +11078,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() @@ -11112,7 +11112,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); @@ -11124,7 +11124,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() @@ -11143,10 +11143,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) { @@ -11155,10 +11155,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); @@ -11168,10 +11168,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 */ @@ -11183,7 +11183,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]]) @@ -11222,7 +11222,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); @@ -11248,7 +11248,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]]) @@ -11268,7 +11268,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: @@ -11308,7 +11308,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); @@ -11316,9 +11316,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); @@ -11328,16 +11328,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); @@ -11363,7 +11363,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: @@ -11383,7 +11383,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: @@ -11424,7 +11424,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) { @@ -11433,7 +11433,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); @@ -11448,15 +11448,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); @@ -11482,7 +11482,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: @@ -11502,7 +11502,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 @@ -11536,7 +11536,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); @@ -11548,7 +11548,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 @@ -11567,7 +11567,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 @@ -11601,7 +11601,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); @@ -11613,7 +11613,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 @@ -11632,7 +11632,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 @@ -11668,7 +11668,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); @@ -11686,7 +11686,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 @@ -11707,7 +11707,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: @@ -11748,7 +11748,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) { @@ -11757,7 +11757,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); @@ -11765,10 +11765,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++) { @@ -11779,10 +11779,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) @@ -11793,9 +11793,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); @@ -11809,15 +11809,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); @@ -11827,7 +11827,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: @@ -11848,7 +11848,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] @@ -11874,11 +11874,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) { @@ -11887,26 +11887,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; @@ -11914,7 +11914,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] @@ -11927,7 +11927,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)) @@ -11960,11 +11960,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) @@ -11980,18 +11980,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); @@ -12010,7 +12010,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)) @@ -12031,10 +12031,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 */ @@ -12063,11 +12063,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) @@ -12092,10 +12092,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 */ @@ -12111,22 +12111,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 @@ -12175,7 +12175,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; @@ -12184,7 +12184,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); @@ -12195,8 +12195,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 @@ -12215,21 +12215,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 @@ -12278,7 +12278,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; @@ -12287,7 +12287,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); @@ -12299,7 +12299,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 @@ -12318,21 +12318,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 @@ -12380,14 +12380,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, @@ -12395,7 +12395,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, @@ -12406,9 +12406,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); @@ -12420,7 +12420,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 @@ -12439,21 +12439,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 @@ -12502,14 +12502,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, @@ -12517,7 +12517,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, @@ -12528,10 +12528,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) @@ -12542,7 +12542,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 @@ -12566,14 +12566,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 @@ -12645,14 +12645,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 @@ -12772,7 +12772,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) @@ -12824,7 +12824,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; @@ -12832,7 +12832,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); @@ -12841,7 +12841,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) @@ -12863,11 +12863,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) { @@ -12878,19 +12878,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 */ @@ -12900,7 +12900,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 @@ -12932,10 +12932,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; @@ -12953,7 +12953,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 @@ -12971,7 +12971,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 @@ -13106,7 +13106,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 @@ -13186,7 +13186,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) } @@ -13196,7 +13196,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); @@ -13213,18 +13213,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); @@ -13257,7 +13257,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 @@ -13281,7 +13281,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: @@ -13299,7 +13299,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: @@ -13325,7 +13325,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) @@ -13344,15 +13344,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: @@ -13367,7 +13367,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 @@ -13421,19 +13421,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 @@ -13450,16 +13450,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 @@ -13482,7 +13482,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 @@ -13495,7 +13495,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)); @@ -13504,36 +13504,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 @@ -13541,7 +13541,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 @@ -13551,7 +13551,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 @@ -13615,7 +13615,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 @@ -13644,7 +13644,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 @@ -13737,7 +13737,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); @@ -13758,7 +13758,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) @@ -13778,7 +13778,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 @@ -13790,11 +13790,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); @@ -13806,7 +13806,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) @@ -13817,7 +13817,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, @@ -13828,7 +13828,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); @@ -13837,7 +13837,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 @@ -13847,16 +13847,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, @@ -13883,7 +13883,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, @@ -13898,7 +13898,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, @@ -13910,7 +13910,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); @@ -13919,8 +13919,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); @@ -13930,7 +13930,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); @@ -13939,7 +13939,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 @@ -13961,7 +13961,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, @@ -13984,9 +13984,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); @@ -13994,7 +13994,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: @@ -14003,7 +14003,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: @@ -14013,7 +14013,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: @@ -14039,7 +14039,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) @@ -14054,9 +14054,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; @@ -14064,7 +14064,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: @@ -14074,7 +14074,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: @@ -14112,7 +14112,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: @@ -14125,7 +14125,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * else: * negative_step = False # <<<<<<<<<<<<<< * step = 1 - * + * */ /*else*/ { __pyx_v_negative_step = 0; @@ -14134,16 +14134,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 @@ -14152,7 +14152,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 @@ -14199,7 +14199,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, } /* "View.MemoryView":831 - * + * * if have_start: * if start < 0: # <<<<<<<<<<<<<< * start += shape @@ -14269,8 +14269,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 @@ -14311,7 +14311,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * start = shape - 1 * else: * start = 0 # <<<<<<<<<<<<<< - * + * * if have_stop: */ /*else*/ { @@ -14323,7 +14323,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 @@ -14332,7 +14332,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 @@ -14379,7 +14379,7 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, } /* "View.MemoryView":847 - * + * * if have_stop: * if stop < 0: # <<<<<<<<<<<<<< * stop += shape @@ -14419,7 +14419,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 @@ -14460,8 +14460,8 @@ static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, * stop = -1 * else: * stop = shape # <<<<<<<<<<<<<< - * - * + * + * */ /*else*/ { __pyx_v_stop = __pyx_v_shape; @@ -14471,73 +14471,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 @@ -14545,11 +14545,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; @@ -14557,16 +14557,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: @@ -14575,7 +14575,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: @@ -14584,8 +14584,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: @@ -14597,7 +14597,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*/ { @@ -14608,7 +14608,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: @@ -14617,7 +14617,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: @@ -14676,7 +14676,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: @@ -14689,7 +14689,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*/ { @@ -14699,7 +14699,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: @@ -14708,16 +14708,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, @@ -14739,7 +14739,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: @@ -14778,14 +14778,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 @@ -14794,7 +14794,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 @@ -14821,7 +14821,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 @@ -14853,7 +14853,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) { @@ -14862,7 +14862,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]); @@ -14872,7 +14872,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] - * + * */ } } @@ -14880,7 +14880,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: @@ -14889,7 +14889,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: @@ -14902,7 +14902,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)) { @@ -14911,7 +14911,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) @@ -14944,13 +14944,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: @@ -14959,19 +14959,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) @@ -15001,16 +15001,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 @@ -15018,11 +15018,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) { @@ -15031,32 +15031,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: @@ -15075,11 +15075,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) { @@ -15109,7 +15109,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; @@ -15117,26 +15117,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 @@ -15161,7 +15161,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]); @@ -15172,7 +15172,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]); @@ -15182,10 +15182,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) { @@ -15199,40 +15199,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 */ @@ -15251,10 +15251,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 */ @@ -15273,20 +15273,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 */ @@ -15294,7 +15294,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) @@ -15311,7 +15311,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) @@ -15335,7 +15335,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) @@ -15347,7 +15347,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*/ { @@ -15361,7 +15361,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) @@ -15380,7 +15380,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) @@ -15398,7 +15398,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) @@ -15417,7 +15417,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) @@ -15430,7 +15430,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*/ { @@ -15442,7 +15442,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) @@ -15463,10 +15463,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) { @@ -15475,11 +15475,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); @@ -15488,10 +15488,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 */ @@ -15508,14 +15508,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 @@ -15587,14 +15587,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 @@ -15714,7 +15714,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, @@ -15743,20 +15743,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); @@ -15764,18 +15764,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) @@ -15799,28 +15799,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); @@ -15831,10 +15831,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; @@ -15842,7 +15842,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 @@ -15851,7 +15851,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 @@ -15873,7 +15873,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; @@ -15881,14 +15881,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: @@ -15897,7 +15897,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: @@ -15907,7 +15907,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: @@ -15919,7 +15919,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*/ { @@ -15929,25 +15929,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: @@ -15955,7 +15955,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: @@ -15981,7 +15981,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); @@ -15989,7 +15989,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; @@ -16007,7 +16007,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 @@ -16016,11 +16016,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++) { @@ -16034,7 +16034,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) @@ -16049,27 +16049,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); @@ -16078,7 +16078,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, @@ -16100,7 +16100,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: @@ -16125,7 +16125,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 @@ -16165,7 +16165,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); @@ -16174,7 +16174,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; @@ -16182,7 +16182,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: @@ -16201,7 +16201,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 @@ -16222,7 +16222,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 @@ -16231,11 +16231,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; @@ -16244,7 +16244,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; @@ -16252,25 +16252,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] @@ -16281,7 +16281,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] @@ -16294,7 +16294,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]); @@ -16302,7 +16302,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); @@ -16315,7 +16315,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 @@ -16326,7 +16326,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" @@ -16348,7 +16348,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)); @@ -16356,7 +16356,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); @@ -16367,7 +16367,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" @@ -16386,7 +16386,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): # <<<<<<<<<<<<<< * """ @@ -16409,16 +16409,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 @@ -16439,7 +16439,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 @@ -16452,7 +16452,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; @@ -16461,7 +16461,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; @@ -16470,7 +16470,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) @@ -16481,8 +16481,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); @@ -16491,7 +16491,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): # <<<<<<<<<<<<<< * """ @@ -16510,11 +16510,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) { @@ -16523,10 +16523,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); @@ -16539,11 +16539,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 */ @@ -16552,7 +16552,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: # <<<<<<<<<<<<<< * """ @@ -16574,7 +16574,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; @@ -16582,14 +16582,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] @@ -16598,7 +16598,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] @@ -16612,7 +16612,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]); @@ -16620,13 +16620,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] @@ -16638,7 +16638,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] @@ -16649,7 +16649,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] @@ -16663,7 +16663,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]); @@ -16671,13 +16671,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] @@ -16689,7 +16689,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: @@ -16698,7 +16698,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: @@ -16709,7 +16709,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: @@ -16720,7 +16720,7 @@ static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice, int _ * return 'C' * else: * return 'F' # <<<<<<<<<<<<<< - * + * * @cython.cdivision(True) */ /*else*/ { @@ -16729,7 +16729,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: # <<<<<<<<<<<<<< * """ @@ -16742,7 +16742,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, @@ -16762,7 +16762,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] @@ -16784,7 +16784,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]); @@ -16792,14 +16792,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): @@ -16808,7 +16808,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): @@ -16842,7 +16842,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): @@ -16860,7 +16860,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): @@ -16914,7 +16914,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): @@ -16949,7 +16949,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); @@ -16957,7 +16957,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); @@ -16966,7 +16966,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, @@ -16978,7 +16978,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: @@ -16991,13 +16991,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: @@ -17007,7 +17007,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" @@ -17027,7 +17027,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; @@ -17035,10 +17035,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++) { @@ -17046,10 +17046,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); @@ -17057,16 +17057,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" @@ -17079,7 +17079,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, @@ -17096,7 +17096,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 @@ -17105,7 +17105,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 @@ -17137,7 +17137,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 @@ -17161,7 +17161,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; @@ -17169,7 +17169,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])); @@ -17179,16 +17179,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, @@ -17201,7 +17201,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, @@ -17229,26 +17229,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() @@ -17256,11 +17256,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) { @@ -17269,23 +17269,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): @@ -17293,7 +17293,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): @@ -17319,7 +17319,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]); @@ -17327,7 +17327,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; @@ -17335,16 +17335,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 @@ -17355,11 +17355,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) { @@ -17368,24 +17368,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: @@ -17394,7 +17394,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: @@ -17404,7 +17404,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: @@ -17416,7 +17416,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*/ { @@ -17426,16 +17426,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, @@ -17457,7 +17457,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: @@ -17483,7 +17483,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) @@ -17532,7 +17532,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: @@ -17553,11 +17553,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) { @@ -17578,7 +17578,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) @@ -17591,11 +17591,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 */ @@ -17613,11 +17613,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) { @@ -17636,18 +17636,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 */ @@ -17663,11 +17663,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) { @@ -17683,17 +17683,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 */ @@ -17707,7 +17707,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, @@ -17780,13 +17780,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: @@ -17795,7 +17795,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: @@ -17805,7 +17805,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: @@ -17818,7 +17818,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) { @@ -17827,7 +17827,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); @@ -17837,16 +17837,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; @@ -17861,7 +17861,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: @@ -17872,7 +17872,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: @@ -17923,7 +17923,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*/ { @@ -17932,7 +17932,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: @@ -17942,38 +17942,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); @@ -17981,73 +17981,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): @@ -18056,7 +18056,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): @@ -18065,8 +18065,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): @@ -18079,7 +18079,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) { @@ -18088,7 +18088,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); @@ -18098,23 +18098,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) @@ -18122,7 +18122,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) @@ -18144,7 +18144,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); @@ -18152,7 +18152,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; @@ -18160,28 +18160,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) { @@ -18190,35 +18190,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) @@ -18226,11 +18226,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); @@ -18238,32 +18238,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, @@ -18285,7 +18285,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, @@ -18303,14 +18303,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] @@ -18319,7 +18319,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] @@ -18332,7 +18332,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]); @@ -18340,7 +18340,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]); @@ -18348,7 +18348,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] @@ -18359,7 +18359,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] @@ -18372,7 +18372,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]); @@ -18380,14 +18380,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, @@ -18398,10 +18398,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: */ @@ -18409,36 +18409,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: */ @@ -18446,7 +18446,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, @@ -18462,13 +18462,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, @@ -18482,7 +18482,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: @@ -18501,14 +18501,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: @@ -18519,7 +18519,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: @@ -18569,7 +18569,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: @@ -18582,7 +18582,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*/ { @@ -18592,16 +18592,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: @@ -18612,7 +18612,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, @@ -18635,7 +18635,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); @@ -18643,13 +18643,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, @@ -18660,7 +18660,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, @@ -18681,7 +18681,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]); @@ -18689,14 +18689,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) @@ -18705,7 +18705,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) @@ -18737,7 +18737,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) @@ -18763,7 +18763,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); @@ -18771,8 +18771,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); } @@ -18780,7 +18780,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, @@ -18797,7 +18797,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 @@ -18805,7 +18805,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 @@ -19234,11 +19234,11 @@ static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *__ } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":286 - * + * * @property * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<< * return PyDataType_ELSIZE(self) - * + * */ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr *__pyx_v_self) { @@ -19248,18 +19248,18 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_D * @property * cdef inline npy_intp itemsize(self) noexcept nogil: * return PyDataType_ELSIZE(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyDataType_ELSIZE(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":286 - * + * * @property * cdef inline npy_intp itemsize(self) noexcept nogil: # <<<<<<<<<<<<<< * return PyDataType_ELSIZE(self) - * + * */ /* function exit code */ @@ -19268,11 +19268,11 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_D } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":290 - * + * * @property * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<< * return PyDataType_ALIGNMENT(self) - * + * */ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr *__pyx_v_self) { @@ -19282,18 +19282,18 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray * @property * cdef inline npy_intp alignment(self) noexcept nogil: * return PyDataType_ALIGNMENT(self) # <<<<<<<<<<<<<< - * + * * # Use fields/names with care as they may be NULL. You must check */ __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":290 - * + * * @property * cdef inline npy_intp alignment(self) noexcept nogil: # <<<<<<<<<<<<<< * return PyDataType_ALIGNMENT(self) - * + * */ /* function exit code */ @@ -19306,7 +19306,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray * @property * cdef inline object fields(self): # <<<<<<<<<<<<<< * return PyDataType_FIELDS(self) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr *__pyx_v_self) { @@ -19319,7 +19319,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Desc * @property * cdef inline object fields(self): * return PyDataType_FIELDS(self) # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF(__pyx_r); @@ -19333,7 +19333,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Desc * @property * cdef inline object fields(self): # <<<<<<<<<<<<<< * return PyDataType_FIELDS(self) - * + * */ /* function exit code */ @@ -19344,11 +19344,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_6fields_fields(PyArray_Desc } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":300 - * + * * @property * cdef inline tuple names(self): # <<<<<<<<<<<<<< * return PyDataType_NAMES(self) - * + * */ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr *__pyx_v_self) { @@ -19361,7 +19361,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr * @property * cdef inline tuple names(self): * return PyDataType_NAMES(self) # <<<<<<<<<<<<<< - * + * * # Use PyDataType_HASSUBARRAY to test whether this field is */ __Pyx_XDECREF(__pyx_r); @@ -19371,11 +19371,11 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":300 - * + * * @property * cdef inline tuple names(self): # <<<<<<<<<<<<<< * return PyDataType_NAMES(self) - * + * */ /* function exit code */ @@ -19390,7 +19390,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_5dtype_5names_names(PyArray_Descr * @property * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<< * return PyDataType_SUBARRAY(self) - * + * */ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr *__pyx_v_self) { @@ -19400,7 +19400,7 @@ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarra * @property * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: * return PyDataType_SUBARRAY(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyDataType_SUBARRAY(__pyx_v_self); @@ -19411,7 +19411,7 @@ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarra * @property * cdef inline PyArray_ArrayDescr* subarray(self) noexcept nogil: # <<<<<<<<<<<<<< * return PyDataType_SUBARRAY(self) - * + * */ /* function exit code */ @@ -19420,7 +19420,7 @@ static CYTHON_INLINE PyArray_ArrayDescr *__pyx_f_5numpy_5dtype_8subarray_subarra } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":311 - * + * * @property * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<< * """The data types flags.""" @@ -19434,14 +19434,14 @@ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr * cdef inline npy_uint64 flags(self) noexcept nogil: * """The data types flags.""" * return PyDataType_FLAGS(self) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyDataType_FLAGS(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":311 - * + * * @property * cdef inline npy_uint64 flags(self) noexcept nogil: # <<<<<<<<<<<<<< * """The data types flags.""" @@ -19454,7 +19454,7 @@ static CYTHON_INLINE npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":323 - * + * * @property * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<< * """The number of arrays that need to be broadcast to the same shape.""" @@ -19468,14 +19468,14 @@ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMulti * cdef inline int numiter(self) noexcept nogil: * """The number of arrays that need to be broadcast to the same shape.""" * return PyArray_MultiIter_NUMITER(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":323 - * + * * @property * cdef inline int numiter(self) noexcept nogil: # <<<<<<<<<<<<<< * """The number of arrays that need to be broadcast to the same shape.""" @@ -19488,7 +19488,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMulti } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":328 - * + * * @property * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<< * """The total broadcasted size.""" @@ -19502,14 +19502,14 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiI * cdef inline npy_intp size(self) noexcept nogil: * """The total broadcasted size.""" * return PyArray_MultiIter_SIZE(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":328 - * + * * @property * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<< * """The total broadcasted size.""" @@ -19522,7 +19522,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiI } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":333 - * + * * @property * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<< * """The current (1-d) index into the broadcasted result.""" @@ -19536,14 +19536,14 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMult * cdef inline npy_intp index(self) noexcept nogil: * """The current (1-d) index into the broadcasted result.""" * return PyArray_MultiIter_INDEX(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":333 - * + * * @property * cdef inline npy_intp index(self) noexcept nogil: # <<<<<<<<<<<<<< * """The current (1-d) index into the broadcasted result.""" @@ -19556,7 +19556,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMult } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":338 - * + * * @property * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<< * """The number of dimensions in the broadcasted result.""" @@ -19570,14 +19570,14 @@ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject * cdef inline int nd(self) noexcept nogil: * """The number of dimensions in the broadcasted result.""" * return PyArray_MultiIter_NDIM(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":338 - * + * * @property * cdef inline int nd(self) noexcept nogil: # <<<<<<<<<<<<<< * """The number of dimensions in the broadcasted result.""" @@ -19590,7 +19590,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":343 - * + * * @property * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<< * """The shape of the broadcasted result.""" @@ -19604,14 +19604,14 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions * cdef inline npy_intp* dimensions(self) noexcept nogil: * """The shape of the broadcasted result.""" * return PyArray_MultiIter_DIMS(self) # <<<<<<<<<<<<<< - * + * * @property */ __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":343 - * + * * @property * cdef inline npy_intp* dimensions(self) noexcept nogil: # <<<<<<<<<<<<<< * """The shape of the broadcasted result.""" @@ -19624,7 +19624,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_9broadcast_10dimensions_dimensions } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":348 - * + * * @property * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<< * """An array of iterator objects that holds the iterators for the arrays to be broadcast together. @@ -19638,14 +19638,14 @@ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiI * """An array of iterator objects that holds the iterators for the arrays to be broadcast together. * On return, the iterators are adjusted for broadcasting.""" * return PyArray_MultiIter_ITERS(self) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":348 - * + * * @property * cdef inline void** iters(self) noexcept nogil: # <<<<<<<<<<<<<< * """An array of iterator objects that holds the iterators for the arrays to be broadcast together. @@ -19658,7 +19658,7 @@ static CYTHON_INLINE void **__pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiI } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":366 - * + * * @property * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns a borrowed reference to the object owning the data/memory. @@ -19672,14 +19672,14 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject * """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.11/site-packages/numpy/__init__.cython-30.pxd":366 - * + * * @property * cdef inline PyObject* base(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns a borrowed reference to the object owning the data/memory. @@ -19692,7 +19692,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_7ndarray_4base_base(PyArrayObject } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":372 - * + * * @property * cdef inline dtype descr(self): # <<<<<<<<<<<<<< * """Returns an owned reference to the dtype of the array. @@ -19709,7 +19709,7 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray * """Returns an owned reference to the dtype of the array. * """ * return PyArray_DESCR(self) # <<<<<<<<<<<<<< - * + * * @property */ __Pyx_XDECREF((PyObject *)__pyx_r); @@ -19719,7 +19719,7 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":372 - * + * * @property * cdef inline dtype descr(self): # <<<<<<<<<<<<<< * """Returns an owned reference to the dtype of the array. @@ -19734,7 +19734,7 @@ static CYTHON_INLINE PyArray_Descr *__pyx_f_5numpy_7ndarray_5descr_descr(PyArray } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":378 - * + * * @property * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns the number of dimensions in the array. @@ -19748,14 +19748,14 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx * """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.11/site-packages/numpy/__init__.cython-30.pxd":378 - * + * * @property * cdef inline int ndim(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns the number of dimensions in the array. @@ -19768,7 +19768,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_7ndarray_4ndim_ndim(PyArrayObject *__pyx } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":384 - * + * * @property * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the dimensions/shape of the array. @@ -19782,14 +19782,14 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec * 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.11/site-packages/numpy/__init__.cython-30.pxd":384 - * + * * @property * cdef inline npy_intp *shape(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the dimensions/shape of the array. @@ -19802,7 +19802,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_5shape_shape(PyArrayObjec } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":392 - * + * * @property * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the strides of the array. @@ -19816,14 +19816,14 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO * 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.11/site-packages/numpy/__init__.cython-30.pxd":392 - * + * * @property * cdef inline npy_intp *strides(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns a pointer to the strides of the array. @@ -19836,7 +19836,7 @@ static CYTHON_INLINE npy_intp *__pyx_f_5numpy_7ndarray_7strides_strides(PyArrayO } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":399 - * + * * @property * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns the total size (in number of elements) of the array. @@ -19850,14 +19850,14 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject * * """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.11/site-packages/numpy/__init__.cython-30.pxd":399 - * + * * @property * cdef inline npy_intp size(self) noexcept nogil: # <<<<<<<<<<<<<< * """Returns the total size (in number of elements) of the array. @@ -19870,7 +19870,7 @@ static CYTHON_INLINE npy_intp __pyx_f_5numpy_7ndarray_4size_size(PyArrayObject * } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":405 - * + * * @property * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<< * """The pointer to the data buffer as a char*. @@ -19884,14 +19884,14 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p * of `PyArray_DATA()` instead, which returns a 'void*'. * """ * return PyArray_BYTES(self) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyArray_BYTES(__pyx_v_self); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":405 - * + * * @property * cdef inline char* data(self) noexcept nogil: # <<<<<<<<<<<<<< * """The pointer to the data buffer as a char*. @@ -19905,10 +19905,10 @@ static CYTHON_INLINE char *__pyx_f_5numpy_7ndarray_4data_data(PyArrayObject *__p /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":807 * ctypedef long double complex clongdouble_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) { @@ -19921,10 +19921,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":808 - * + * * cdef inline object PyArray_MultiIterNew1(a): * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< - * + * * cdef inline object PyArray_MultiIterNew2(a, b): */ __Pyx_XDECREF(__pyx_r); @@ -19936,10 +19936,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":807 * ctypedef long double complex clongdouble_t - * + * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(1, a) - * + * */ /* function exit code */ @@ -19955,10 +19955,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":810 * 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) { @@ -19971,10 +19971,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":811 - * + * * 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); @@ -19986,10 +19986,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":810 * return PyArray_MultiIterNew(1, a) - * + * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(2, a, b) - * + * */ /* function exit code */ @@ -20005,10 +20005,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":813 * 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) { @@ -20021,10 +20021,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":814 - * + * * 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); @@ -20036,10 +20036,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":813 * return PyArray_MultiIterNew(2, a, b) - * + * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< * return PyArray_MultiIterNew(3, a, b, c) - * + * */ /* function exit code */ @@ -20055,10 +20055,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":816 * 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) { @@ -20071,10 +20071,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":817 - * + * * 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); @@ -20086,10 +20086,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":816 * 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 */ @@ -20105,10 +20105,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":819 * 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) { @@ -20121,10 +20121,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":820 - * + * * 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); @@ -20136,10 +20136,10 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":819 * 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 */ @@ -20155,7 +20155,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":822 * return PyArray_MultiIterNew(5, a, b, c, d, e) - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape @@ -20169,7 +20169,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __Pyx_RefNannySetupContext("PyDataType_SHAPE", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":823 - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< * return d.subarray.shape @@ -20192,7 +20192,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":823 - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< * return d.subarray.shape @@ -20204,8 +20204,8 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ * return d.subarray.shape * else: * return () # <<<<<<<<<<<<<< - * - * + * + * */ /*else*/ { __Pyx_XDECREF(__pyx_r); @@ -20216,7 +20216,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":822 * return PyArray_MultiIterNew(5, a, b, c, d, e) - * + * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape @@ -20231,7 +20231,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1010 * int _import_umath() except -1 - * + * * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<< * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) @@ -20244,11 +20244,11 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a int __pyx_clineno = 0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1011 - * + * * cdef inline void set_array_base(ndarray arr, object base) except *: * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<< * PyArray_SetBaseObject(arr, base) - * + * */ Py_INCREF(__pyx_v_base); @@ -20256,14 +20256,14 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a * cdef inline void set_array_base(ndarray arr, object base) except *: * 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, 1012, __pyx_L1_error) /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1010 * int _import_umath() except -1 - * + * * cdef inline void set_array_base(ndarray arr, object base) except *: # <<<<<<<<<<<<<< * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) @@ -20278,7 +20278,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1014 * PyArray_SetBaseObject(arr, base) - * + * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< * base = PyArray_BASE(arr) * if base is NULL: @@ -20292,7 +20292,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __Pyx_RefNannySetupContext("get_array_base", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1015 - * + * * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) # <<<<<<<<<<<<<< * if base is NULL: @@ -20315,7 +20315,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py * if base is NULL: * return None # <<<<<<<<<<<<<< * return base - * + * */ __Pyx_XDECREF(__pyx_r); __pyx_r = Py_None; __Pyx_INCREF(Py_None); @@ -20334,7 +20334,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py * if base is NULL: * return None * return base # <<<<<<<<<<<<<< - * + * * # Versions of the import_* functions which are more suitable for */ __Pyx_XDECREF(__pyx_r); @@ -20344,7 +20344,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1014 * PyArray_SetBaseObject(arr, base) - * + * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< * base = PyArray_BASE(arr) * if base is NULL: @@ -20425,7 +20425,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { * __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) { @@ -20439,7 +20439,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { * __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, 1026, __pyx_L5_except_error) @@ -20491,7 +20491,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1028 * raise ImportError("numpy._core.multiarray failed to import") - * + * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20514,7 +20514,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_RefNannySetupContext("import_umath", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1029 - * + * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20539,7 +20539,7 @@ 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, 1030, __pyx_L3_error) /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1029 - * + * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20557,7 +20557,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { * _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) { @@ -20571,7 +20571,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { * _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, 1032, __pyx_L5_except_error) @@ -20583,7 +20583,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { goto __pyx_L5_except_error; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1029 - * + * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20600,7 +20600,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1028 * raise ImportError("numpy._core.multiarray failed to import") - * + * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20623,7 +20623,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1034 * raise ImportError("numpy._core.umath failed to import") - * + * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20646,7 +20646,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_RefNannySetupContext("import_ufunc", 1); /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1035 - * + * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20671,7 +20671,7 @@ 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, 1036, __pyx_L3_error) /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1035 - * + * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20689,7 +20689,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { * _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) { @@ -20703,8 +20703,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { * _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, 1038, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_8); @@ -20715,7 +20715,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { goto __pyx_L5_except_error; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1035 - * + * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< * _import_umath() @@ -20732,7 +20732,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1034 * raise ImportError("numpy._core.umath failed to import") - * + * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< * try: * _import_umath() @@ -20754,8 +20754,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1041 - * - * + * + * * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.timedelta64)` @@ -20768,15 +20768,15 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ * bool * """ * return PyObject_TypeCheck(obj, &PyTimedeltaArrType_Type) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type)); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1041 - * - * + * + * * cdef inline bint is_timedelta64_object(object obj) noexcept: # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.timedelta64)` @@ -20788,8 +20788,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_ } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1056 - * - * + * + * * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.datetime64)` @@ -20802,15 +20802,15 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o * bool * """ * return PyObject_TypeCheck(obj, &PyDatetimeArrType_Type) # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type)); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1056 - * - * + * + * * cdef inline bint is_datetime64_object(object obj) noexcept: # <<<<<<<<<<<<<< * """ * Cython equivalent of `isinstance(obj, np.datetime64)` @@ -20822,8 +20822,8 @@ static CYTHON_INLINE int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_o } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1071 - * - * + * + * * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy datetime64 object @@ -20836,15 +20836,15 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * * 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.11/site-packages/numpy/__init__.cython-30.pxd":1071 - * - * + * + * * cdef inline npy_datetime get_datetime64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy datetime64 object @@ -20856,8 +20856,8 @@ static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject * } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1081 - * - * + * + * * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy timedelta64 object @@ -20870,15 +20870,15 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject * 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.11/site-packages/numpy/__init__.cython-30.pxd":1081 - * - * + * + * * cdef inline npy_timedelta get_timedelta64_value(object obj) noexcept nogil: # <<<<<<<<<<<<<< * """ * returns the int64 value underlying scalar numpy timedelta64 object @@ -20890,8 +20890,8 @@ static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject } /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1088 - * - * + * + * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<< * """ * returns the unit part of the dtype for a numpy datetime64 object. @@ -20904,15 +20904,15 @@ static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObjec * returns the unit part of the dtype for a numpy datetime64 object. * """ * return (obj).obmeta.base # <<<<<<<<<<<<<< - * - * + * + * */ __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base); goto __pyx_L0; /* ".tox/.pkg/lib/python3.11/site-packages/numpy/__init__.cython-30.pxd":1088 - * - * + * + * * cdef inline NPY_DATETIMEUNIT get_datetime64_unit(object obj) noexcept nogil: # <<<<<<<<<<<<<< * """ * returns the unit part of the dtype for a numpy datetime64 object. @@ -20925,10 +20925,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('UTF-8')) - * + * */ /* Python wrapper */ @@ -21025,10 +21025,10 @@ static int __pyx_pf_6rds2py_4core_11PyRdsObject___cinit__(struct __pyx_obj_6rds2 __Pyx_RefNannySetupContext("__cinit__", 1); /* "src/rds2py/lib/parser.pyx":29 - * + * * def __cinit__(self, file): * self.ptr = py_parser_rds_file(file.encode('UTF-8')) # <<<<<<<<<<<<<< - * + * * 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) @@ -21067,10 +21067,10 @@ static int __pyx_pf_6rds2py_4core_11PyRdsObject___cinit__(struct __pyx_obj_6rds2 /* "src/rds2py/lib/parser.pyx":28 * cdef uintptr_t ptr - * + * * def __cinit__(self, file): # <<<<<<<<<<<<<< * self.ptr = py_parser_rds_file(file.encode('UTF-8')) - * + * */ /* function exit code */ @@ -21089,14 +21089,14 @@ static int __pyx_pf_6rds2py_4core_11PyRdsObject___cinit__(struct __pyx_obj_6rds2 /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode('UTF-8')) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRdsReader(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_3get_robject(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_3get_robject(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21104,7 +21104,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsObject_3get_robject = {"get_robject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsObject_3get_robject, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_3get_robject(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_3get_robject(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21149,11 +21149,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsObject_2get_robject(struct __pyx_ __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 PyRdsReader(tmp) - * + * */ try { __pyx_t_1 = py_parser_extract_robject(__pyx_v_self->ptr); @@ -21167,7 +21167,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsObject_2get_robject(struct __pyx_ * def get_robject(self): * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRdsReader(tmp) # <<<<<<<<<<<<<< - * + * * cdef _map_ptr_to_view(uintptr_t ptr, shape, itemsize, format_type): */ __Pyx_XDECREF(__pyx_r); @@ -21182,7 +21182,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsObject_2get_robject(struct __pyx_ /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode('UTF-8')) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRdsReader(tmp) @@ -21207,7 +21207,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsObject_2get_robject(struct __pyx_ */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_5__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21215,7 +21215,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsObject_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsObject_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_5__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_5__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21287,7 +21287,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsObject_4__reduce_cython__(CYTHON_ */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_7__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21295,7 +21295,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsObject_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsObject_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_7__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsObject_7__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21416,7 +21416,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsObject_6__setstate_cython__(CYTHO /* "src/rds2py/lib/parser.pyx":35 * return PyRdsReader(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 @@ -21436,7 +21436,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 @@ -21458,7 +21458,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); @@ -21466,7 +21466,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 PyRdsReader: */ __Pyx_XDECREF(__pyx_r); @@ -21503,7 +21503,7 @@ static PyObject *__pyx_f_6rds2py_4core__map_ptr_to_view(uintptr_t __pyx_v_ptr, P /* "src/rds2py/lib/parser.pyx":35 * return PyRdsReader(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 @@ -21525,7 +21525,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() @@ -21623,7 +21623,7 @@ static int __pyx_pf_6rds2py_4core_11PyRdsReader___cinit__(struct __pyx_obj_6rds2 __Pyx_RefNannySetupContext("__cinit__", 1); /* "src/rds2py/lib/parser.pyx":47 - * + * * def __cinit__(self, p:uintptr_t): * self.ptr = p # <<<<<<<<<<<<<< * self.get_rtype() @@ -21636,7 +21636,7 @@ static int __pyx_pf_6rds2py_4core_11PyRdsReader___cinit__(struct __pyx_obj_6rds2 * 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); @@ -21668,7 +21668,7 @@ static int __pyx_pf_6rds2py_4core_11PyRdsReader___cinit__(struct __pyx_obj_6rds2 * 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) @@ -21699,7 +21699,7 @@ static int __pyx_pf_6rds2py_4core_11PyRdsReader___cinit__(struct __pyx_obj_6rds2 /* "src/rds2py/lib/parser.pyx":46 * R_MIN = -2147483648 - * + * * def __cinit__(self, p:uintptr_t): # <<<<<<<<<<<<<< * self.ptr = p * self.get_rtype() @@ -21721,14 +21721,14 @@ static int __pyx_pf_6rds2py_4core_11PyRdsReader___cinit__(struct __pyx_obj_6rds2 /* "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_11PyRdsReader_3get_rtype(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_3get_rtype(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21736,7 +21736,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_3get_rtype = {"get_rtype", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_3get_rtype, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_3get_rtype(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_3get_rtype(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21781,7 +21781,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_2get_rtype(struct __pyx_ob __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) @@ -21796,7 +21796,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_2get_rtype(struct __pyx_ob * 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); @@ -21807,7 +21807,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_2get_rtype(struct __pyx_ob __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) @@ -21819,7 +21819,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_2get_rtype(struct __pyx_ob * if not hasattr(self, "rtype"): * self.rtype = py_robject_extract_type(self.ptr) * return self.rtype # <<<<<<<<<<<<<< - * + * * def get_rsize(self): */ __Pyx_XDECREF(__pyx_r); @@ -21831,7 +21831,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_2get_rtype(struct __pyx_ob /* "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) @@ -21850,14 +21850,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_2get_rtype(struct __pyx_ob /* "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_11PyRdsReader_5get_rsize(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_5get_rsize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21865,7 +21865,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_5get_rsize = {"get_rsize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_5get_rsize, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_5get_rsize(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_5get_rsize(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -21910,7 +21910,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_4get_rsize(struct __pyx_ob __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) @@ -21925,7 +21925,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_4get_rsize(struct __pyx_ob * 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); @@ -21936,7 +21936,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_4get_rsize(struct __pyx_ob __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) @@ -21948,7 +21948,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_4get_rsize(struct __pyx_ob * 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); @@ -21960,7 +21960,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_4get_rsize(struct __pyx_ob /* "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) @@ -21979,14 +21979,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_4get_rsize(struct __pyx_ob /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< * # if result is None: * # return result */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_7shennanigans_to_py_reprs(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -21994,7 +21994,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_7shennanigans_to_py_reprs = {"shennanigans_to_py_reprs", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_7shennanigans_to_py_reprs, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_7shennanigans_to_py_reprs(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -22096,7 +22096,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( /* "src/rds2py/lib/parser.pyx":65 * # return result - * + * * if self.rtype.decode('UTF-8') 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) @@ -22109,11 +22109,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( if (__pyx_t_3) { /* "src/rds2py/lib/parser.pyx":66 - * + * * if self.rtype.decode('UTF-8') 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_v_self->rsize == 2); if (__pyx_t_2) { @@ -22155,7 +22155,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( * if self.rtype.decode('UTF-8') 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) @@ -22173,17 +22173,17 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "src/rds2py/lib/parser.pyx":66 - * + * * if self.rtype.decode('UTF-8') 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 - * + * * if self.rtype.decode('UTF-8') 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) @@ -22192,9 +22192,9 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( /* "src/rds2py/lib/parser.pyx":69 * result["data"] = range(result["data"][1] * -1) - * + * * return result # <<<<<<<<<<<<<< - * + * * def realize_value(self): */ __Pyx_XDECREF(__pyx_r); @@ -22204,7 +22204,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< * # if result is None: * # return result @@ -22225,14 +22225,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_6shennanigans_to_py_reprs( /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< * _rtype = self.rtype.decode('UTF-8') * result = { */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_9realize_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_9realize_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22240,7 +22240,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_9realize_value = {"realize_value", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_9realize_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_9realize_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_9realize_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -22294,7 +22294,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py __Pyx_RefNannySetupContext("realize_value", 1); /* "src/rds2py/lib/parser.pyx":72 - * + * * def realize_value(self): * _rtype = self.rtype.decode('UTF-8') # <<<<<<<<<<<<<< * result = { @@ -22310,7 +22310,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py * result = { * "rtype": _rtype # <<<<<<<<<<<<<< * } - * + * */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); @@ -22320,7 +22320,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py /* "src/rds2py/lib/parser.pyx":77 * } - * + * * if _rtype in ["integer"]: # <<<<<<<<<<<<<< * result["data"] = self._get_int_or_bool_arr() * result["attributes"] = self.realize_attr_value() @@ -22333,7 +22333,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py if (__pyx_t_3) { /* "src/rds2py/lib/parser.pyx":78 - * + * * if _rtype in ["integer"]: * result["data"] = self._get_int_or_bool_arr() # <<<<<<<<<<<<<< * result["attributes"] = self.realize_attr_value() @@ -22411,7 +22411,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py /* "src/rds2py/lib/parser.pyx":77 * } - * + * * if _rtype in ["integer"]: # <<<<<<<<<<<<<< * result["data"] = self._get_int_or_bool_arr() * result["attributes"] = self.realize_attr_value() @@ -23083,7 +23083,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py * else: * # return result * raise Exception('Cannot realize object of type: ', _rtype) # <<<<<<<<<<<<<< - * + * * return self.shennanigans_to_py_reprs(result) */ /*else*/ { @@ -23106,9 +23106,9 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py /* "src/rds2py/lib/parser.pyx":108 * raise Exception('Cannot realize object of type: ', _rtype) - * + * * return self.shennanigans_to_py_reprs(result) # <<<<<<<<<<<<<< - * + * * def _get_vector_arr(self): */ __Pyx_XDECREF(__pyx_r); @@ -23142,7 +23142,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< * _rtype = self.rtype.decode('UTF-8') * result = { @@ -23168,14 +23168,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_8realize_value(struct __py /* "src/rds2py/lib/parser.pyx":110 * 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_11PyRdsReader_11_get_vector_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23183,7 +23183,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_11_get_vector_arr = {"_get_vector_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_11_get_vector_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_11_get_vector_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23237,7 +23237,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_10_get_vector_arr(struct _ __Pyx_RefNannySetupContext("_get_vector_arr", 1); /* "src/rds2py/lib/parser.pyx":111 - * + * * def _get_vector_arr(self): * vec = [] # <<<<<<<<<<<<<< * for i in range(self.rsize): @@ -23302,7 +23302,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_10_get_vector_arr(struct _ * 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, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -23335,7 +23335,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_10_get_vector_arr(struct _ * 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, 115, __pyx_L1_error) @@ -23343,9 +23343,9 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_10_get_vector_arr(struct _ /* "src/rds2py/lib/parser.pyx":117 * vec.append(v_obj_val) - * + * * return vec # <<<<<<<<<<<<<< - * + * * def _get_int_or_bool_arr(self): */ __Pyx_XDECREF(__pyx_r); @@ -23355,7 +23355,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_10_get_vector_arr(struct _ /* "src/rds2py/lib/parser.pyx":110 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): @@ -23380,14 +23380,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_10_get_vector_arr(struct _ /* "src/rds2py/lib/parser.pyx":119 * 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_11PyRdsReader_13_get_int_or_bool_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23395,7 +23395,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_13_get_int_or_bool_arr = {"_get_int_or_bool_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_13_get_int_or_bool_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_13_get_int_or_bool_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23443,7 +23443,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_12_get_int_or_bool_arr(str __Pyx_RefNannySetupContext("_get_int_or_bool_arr", 1); /* "src/rds2py/lib/parser.pyx":120 - * + * * def _get_int_or_bool_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype=int) @@ -23486,7 +23486,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_12_get_int_or_bool_arr(str goto __pyx_L0; /* "src/rds2py/lib/parser.pyx":120 - * + * * def _get_int_or_bool_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype=int) @@ -23499,7 +23499,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_12_get_int_or_bool_arr(str * 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); @@ -23513,7 +23513,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_12_get_int_or_bool_arr(str * 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); @@ -23536,7 +23536,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_12_get_int_or_bool_arr(str /* "src/rds2py/lib/parser.pyx":119 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) @@ -23558,14 +23558,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_12_get_int_or_bool_arr(str /* "src/rds2py/lib/parser.pyx":125 * 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_11PyRdsReader_15_get_double_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23573,7 +23573,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_15_get_double_arr = {"_get_double_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_15_get_double_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_15_get_double_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23621,7 +23621,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_14_get_double_arr(struct _ __Pyx_RefNannySetupContext("_get_double_arr", 1); /* "src/rds2py/lib/parser.pyx":126 - * + * * def _get_double_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype="f8") @@ -23664,7 +23664,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_14_get_double_arr(struct _ goto __pyx_L0; /* "src/rds2py/lib/parser.pyx":126 - * + * * def _get_double_arr(self): * if self.rsize == 0: # <<<<<<<<<<<<<< * return np.empty(shape=(self.rsize,), dtype="f8") @@ -23677,7 +23677,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_14_get_double_arr(struct _ * 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); @@ -23691,7 +23691,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_14_get_double_arr(struct _ * 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); @@ -23714,7 +23714,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_14_get_double_arr(struct _ /* "src/rds2py/lib/parser.pyx":125 * 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") @@ -23736,14 +23736,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_14_get_double_arr(struct _ /* "src/rds2py/lib/parser.pyx":131 * 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_11PyRdsReader_17_get_string_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23751,7 +23751,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_17_get_string_arr = {"_get_string_arr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_17_get_string_arr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_17_get_string_arr(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -23795,11 +23795,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_16_get_string_arr(struct _ __Pyx_RefNannySetupContext("_get_string_arr", 1); /* "src/rds2py/lib/parser.pyx":132 - * + * * 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); @@ -23813,7 +23813,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_16_get_string_arr(struct _ * 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); @@ -23825,7 +23825,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_16_get_string_arr(struct _ /* "src/rds2py/lib/parser.pyx":131 * 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 @@ -23844,14 +23844,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_16_get_string_arr(struct _ /* "src/rds2py/lib/parser.pyx":135 * 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_11PyRdsReader_19get_attribute_names(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_19get_attribute_names(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23859,7 +23859,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_19get_attribute_names = {"get_attribute_names", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_19get_attribute_names, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_19get_attribute_names(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_19get_attribute_names(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23903,11 +23903,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_18get_attribute_names(stru __Pyx_RefNannySetupContext("get_attribute_names", 1); /* "src/rds2py/lib/parser.pyx":136 - * + * * 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); @@ -23921,7 +23921,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_18get_attribute_names(stru * 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); @@ -23933,7 +23933,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_18get_attribute_names(stru /* "src/rds2py/lib/parser.pyx":135 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str @@ -23952,14 +23952,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_18get_attribute_names(stru /* "src/rds2py/lib/parser.pyx":139 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_21find_attribute(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_21find_attribute(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -23967,7 +23967,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_21find_attribute = {"find_attribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_21find_attribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_21find_attribute(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_21find_attribute(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24068,10 +24068,10 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_20find_attribute(struct __ __Pyx_RefNannySetupContext("find_attribute", 1); /* "src/rds2py/lib/parser.pyx":140 - * + * * def find_attribute(self, name): * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) # <<<<<<<<<<<<<< - * + * * def load_attribute_by_index(self, index): */ __Pyx_XDECREF(__pyx_r); @@ -24115,10 +24115,10 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_20find_attribute(struct __ /* "src/rds2py/lib/parser.pyx":139 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * */ /* function exit code */ @@ -24136,14 +24136,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_20find_attribute(struct __ /* "src/rds2py/lib/parser.pyx":142 * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRdsReader(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_23load_attribute_by_index(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -24151,7 +24151,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_23load_attribute_by_index = {"load_attribute_by_index", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_23load_attribute_by_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_23load_attribute_by_index(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -24252,11 +24252,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_22load_attribute_by_index( __Pyx_RefNannySetupContext("load_attribute_by_index", 1); /* "src/rds2py/lib/parser.pyx":143 - * + * * def load_attribute_by_index(self, index): * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) # <<<<<<<<<<<<<< * return PyRdsReader(tmp) - * + * */ __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 143, __pyx_L1_error) try { @@ -24271,7 +24271,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_22load_attribute_by_index( * def load_attribute_by_index(self, index): * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRdsReader(tmp) # <<<<<<<<<<<<<< - * + * * def load_attribute_by_name(self, name): */ __Pyx_XDECREF(__pyx_r); @@ -24286,7 +24286,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_22load_attribute_by_index( /* "src/rds2py/lib/parser.pyx":142 * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRdsReader(tmp) @@ -24306,14 +24306,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_22load_attribute_by_index( /* "src/rds2py/lib/parser.pyx":146 * return PyRdsReader(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode('UTF-8')) * return PyRdsReader(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_25load_attribute_by_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -24321,7 +24321,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_25load_attribute_by_name = {"load_attribute_by_name", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_25load_attribute_by_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_25load_attribute_by_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_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 @@ -24424,11 +24424,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_24load_attribute_by_name(s __Pyx_RefNannySetupContext("load_attribute_by_name", 1); /* "src/rds2py/lib/parser.pyx":147 - * + * * def load_attribute_by_name(self, name): * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode('UTF-8')) # <<<<<<<<<<<<<< * return PyRdsReader(tmp) - * + * */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -24468,7 +24468,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_24load_attribute_by_name(s * def load_attribute_by_name(self, name): * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode('UTF-8')) * return PyRdsReader(tmp) # <<<<<<<<<<<<<< - * + * * def load_vec_element(self, i): */ __Pyx_XDECREF(__pyx_r); @@ -24483,7 +24483,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_24load_attribute_by_name(s /* "src/rds2py/lib/parser.pyx":146 * return PyRdsReader(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode('UTF-8')) * return PyRdsReader(tmp) @@ -24504,14 +24504,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_24load_attribute_by_name(s /* "src/rds2py/lib/parser.pyx":150 * return PyRdsReader(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRdsReader(tmp) */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_27load_vec_element(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_27load_vec_element(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24519,7 +24519,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_27load_vec_element = {"load_vec_element", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_27load_vec_element, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_27load_vec_element(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_27load_vec_element(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24620,11 +24620,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_26load_vec_element(struct __Pyx_RefNannySetupContext("load_vec_element", 1); /* "src/rds2py/lib/parser.pyx":151 - * + * * def load_vec_element(self, i): * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) # <<<<<<<<<<<<<< * return PyRdsReader(tmp) - * + * */ __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 151, __pyx_L1_error) try { @@ -24639,7 +24639,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_26load_vec_element(struct * def load_vec_element(self, i): * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRdsReader(tmp) # <<<<<<<<<<<<<< - * + * * def get_package_name(self): */ __Pyx_XDECREF(__pyx_r); @@ -24654,7 +24654,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_26load_vec_element(struct /* "src/rds2py/lib/parser.pyx":150 * return PyRdsReader(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRdsReader(tmp) @@ -24674,14 +24674,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_26load_vec_element(struct /* "src/rds2py/lib/parser.pyx":154 * return PyRdsReader(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode('UTF-8') == "S4": * return parse_robject_package_name(self.ptr).decode('UTF-8') */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_29get_package_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_29get_package_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24689,7 +24689,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_29get_package_name = {"get_package_name", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_29get_package_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_29get_package_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_29get_package_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24733,11 +24733,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_28get_package_name(struct __Pyx_RefNannySetupContext("get_package_name", 1); /* "src/rds2py/lib/parser.pyx":155 - * + * * def get_package_name(self): * if self.rtype.decode('UTF-8') == "S4": # <<<<<<<<<<<<<< * return parse_robject_package_name(self.ptr).decode('UTF-8') - * + * */ __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, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); @@ -24749,7 +24749,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_28get_package_name(struct * def get_package_name(self): * if self.rtype.decode('UTF-8') == "S4": * return parse_robject_package_name(self.ptr).decode('UTF-8') # <<<<<<<<<<<<<< - * + * * raise Exception(f'package name does not exist on non-S4 classes') */ __Pyx_XDECREF(__pyx_r); @@ -24766,19 +24766,19 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_28get_package_name(struct goto __pyx_L0; /* "src/rds2py/lib/parser.pyx":155 - * + * * def get_package_name(self): * if self.rtype.decode('UTF-8') == "S4": # <<<<<<<<<<<<<< * return parse_robject_package_name(self.ptr).decode('UTF-8') - * + * */ } /* "src/rds2py/lib/parser.pyx":158 * return parse_robject_package_name(self.ptr).decode('UTF-8') - * + * * 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, 158, __pyx_L1_error) @@ -24789,7 +24789,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_28get_package_name(struct /* "src/rds2py/lib/parser.pyx":154 * return PyRdsReader(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode('UTF-8') == "S4": * return parse_robject_package_name(self.ptr).decode('UTF-8') @@ -24808,14 +24808,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_28get_package_name(struct /* "src/rds2py/lib/parser.pyx":160 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< * # if self.rtype.decode('UTF-8') == "S4": * return parse_robject_class_name(self.ptr).decode('UTF-8') */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_31get_class_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_31get_class_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24823,7 +24823,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_31get_class_name = {"get_class_name", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_31get_class_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_31get_class_name(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_31get_class_name(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24870,7 +24870,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_30get_class_name(struct __ * # if self.rtype.decode('UTF-8') == "S4": * return parse_robject_class_name(self.ptr).decode('UTF-8') # <<<<<<<<<<<<<< * # raise Exception(f'class name does not exist on non-S4 classes') - * + * */ __Pyx_XDECREF(__pyx_r); try { @@ -24887,7 +24887,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_30get_class_name(struct __ /* "src/rds2py/lib/parser.pyx":160 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< * # if self.rtype.decode('UTF-8') == "S4": * return parse_robject_class_name(self.ptr).decode('UTF-8') @@ -24906,14 +24906,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_30get_class_name(struct __ /* "src/rds2py/lib/parser.pyx":165 * # 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_11PyRdsReader_33get_dimensions(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_33get_dimensions(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24921,7 +24921,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_33get_dimensions = {"get_dimensions", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_33get_dimensions, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_33get_dimensions(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_33get_dimensions(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -24964,10 +24964,10 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_32get_dimensions(struct __ __Pyx_RefNannySetupContext("get_dimensions", 1); /* "src/rds2py/lib/parser.pyx":166 - * + * * def get_dimensions(self): * return parse_robject_dimensions(self.ptr) # <<<<<<<<<<<<<< - * + * * def realize_attr_value(self): */ __Pyx_XDECREF(__pyx_r); @@ -24985,10 +24985,10 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_32get_dimensions(struct __ /* "src/rds2py/lib/parser.pyx":165 * # 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 */ @@ -25004,14 +25004,14 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_32get_dimensions(struct __ /* "src/rds2py/lib/parser.pyx":168 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_35realize_attr_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_35realize_attr_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -25019,7 +25019,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_35realize_attr_value = {"realize_attr_value", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_35realize_attr_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_35realize_attr_value(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_35realize_attr_value(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -25072,10 +25072,10 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc __Pyx_RefNannySetupContext("realize_attr_value", 1); /* "src/rds2py/lib/parser.pyx":169 - * + * * 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, 169, __pyx_L1_error) @@ -25085,7 +25085,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc /* "src/rds2py/lib/parser.pyx":171 * result = {} - * + * * for ro_attr in self.get_attribute_names(): # <<<<<<<<<<<<<< * tmp_obj = self.load_attribute_by_name(ro_attr.decode('UTF-8')) * result[ro_attr.decode('UTF-8')] = tmp_obj.realize_value() @@ -25171,11 +25171,11 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc __pyx_t_1 = 0; /* "src/rds2py/lib/parser.pyx":172 - * + * * for ro_attr in self.get_attribute_names(): * tmp_obj = self.load_attribute_by_name(ro_attr.decode('UTF-8')) # <<<<<<<<<<<<<< * result[ro_attr.decode('UTF-8')] = 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, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -25233,7 +25233,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc * for ro_attr in self.get_attribute_names(): * tmp_obj = self.load_attribute_by_name(ro_attr.decode('UTF-8')) * result[ro_attr.decode('UTF-8')] = 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, 173, __pyx_L1_error) @@ -25290,7 +25290,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc /* "src/rds2py/lib/parser.pyx":171 * result = {} - * + * * for ro_attr in self.get_attribute_names(): # <<<<<<<<<<<<<< * tmp_obj = self.load_attribute_by_name(ro_attr.decode('UTF-8')) * result[ro_attr.decode('UTF-8')] = tmp_obj.realize_value() @@ -25300,7 +25300,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc /* "src/rds2py/lib/parser.pyx":175 * result[ro_attr.decode('UTF-8')] = tmp_obj.realize_value() - * + * * return result # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); @@ -25310,10 +25310,10 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc /* "src/rds2py/lib/parser.pyx":168 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ /* function exit code */ @@ -25342,7 +25342,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_34realize_attr_value(struc */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_37__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_37__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -25350,7 +25350,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_37__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_37__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_37__reduce_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_37__reduce_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -25422,7 +25422,7 @@ static PyObject *__pyx_pf_6rds2py_4core_11PyRdsReader_36__reduce_cython__(CYTHON */ /* Python wrapper */ -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_39__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_39__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -25430,7 +25430,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ static PyMethodDef __pyx_mdef_6rds2py_4core_11PyRdsReader_39__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6rds2py_4core_11PyRdsReader_39__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_39__setstate_cython__(PyObject *__pyx_v_self, +static PyObject *__pyx_pw_6rds2py_4core_11PyRdsReader_39__setstate_cython__(PyObject *__pyx_v_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else @@ -27058,7 +27058,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) @@ -27070,7 +27070,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 @@ -27094,7 +27094,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * __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, 1026, __pyx_L1_error) @@ -27105,7 +27105,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * _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_impo); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 1032, __pyx_L1_error) @@ -27114,9 +27114,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":158 * return parse_robject_package_name(self.ptr).decode('UTF-8') - * + * * 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, 158, __pyx_L1_error) @@ -27153,7 +27153,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence # <<<<<<<<<<<<<< * except: - * + * */ __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); @@ -27161,7 +27161,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "View.MemoryView":309 * return self.name - * + * * cdef generic = Enum("") # <<<<<<<<<<<<<< * cdef strided = Enum("") # default * cdef indirect = Enum("") @@ -27171,11 +27171,11 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__16); /* "View.MemoryView":310 - * + * * cdef generic = Enum("") * cdef strided = Enum("") # default # <<<<<<<<<<<<<< * cdef indirect = Enum("") - * + * */ __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); @@ -27185,30 +27185,30 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * cdef generic = Enum("") * cdef strided = Enum("") # default * cdef indirect = Enum("") # <<<<<<<<<<<<<< - * - * + * + * */ __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__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__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); @@ -27226,7 +27226,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode('UTF-8')) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRdsReader(tmp) @@ -27259,7 +27259,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "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) @@ -27268,7 +27268,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "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) @@ -27277,7 +27277,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":61 * return self.rsize - * + * * def shennanigans_to_py_reprs(self, result): # <<<<<<<<<<<<<< * # if result is None: * # return result @@ -27289,7 +27289,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< * _rtype = self.rtype.decode('UTF-8') * result = { @@ -27301,7 +27301,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":110 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): @@ -27313,7 +27313,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":119 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) @@ -27325,7 +27325,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":125 * 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") @@ -27334,7 +27334,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":131 * 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 @@ -27346,7 +27346,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":135 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str @@ -27355,10 +27355,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":139 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * */ __pyx_tuple__43 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(1, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__43); @@ -27367,7 +27367,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":142 * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRdsReader(tmp) @@ -27379,7 +27379,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":146 * return PyRdsReader(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode('UTF-8')) * return PyRdsReader(tmp) @@ -27391,7 +27391,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":150 * return PyRdsReader(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRdsReader(tmp) @@ -27403,7 +27403,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":154 * return PyRdsReader(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode('UTF-8') == "S4": * return parse_robject_package_name(self.ptr).decode('UTF-8') @@ -27412,7 +27412,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":160 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< * # if self.rtype.decode('UTF-8') == "S4": * return parse_robject_class_name(self.ptr).decode('UTF-8') @@ -27421,19 +27421,19 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { /* "src/rds2py/lib/parser.pyx":165 * # raise Exception(f'class name does not exist on non-S4 classes') - * + * * def get_dimensions(self): # <<<<<<<<<<<<<< * return parse_robject_dimensions(self.ptr) - * + * */ __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, 165, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(1, 165, __pyx_L1_error) /* "src/rds2py/lib/parser.pyx":168 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ __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, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); @@ -27759,7 +27759,7 @@ 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_10(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", + __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_10(__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_10(PyTypeObject), #elif CYTHON_COMPILING_IN_LIMITED_API @@ -28096,7 +28096,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): @@ -28164,7 +28164,7 @@ if (!__Pyx_RefNanny) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence # <<<<<<<<<<<<<< * except: - * + * */ /*else*/ { __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) @@ -28180,7 +28180,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): @@ -28199,7 +28199,7 @@ if (!__Pyx_RefNanny) { * else: * __pyx_collections_abc_Sequence = __import__("collections").Sequence * except: # <<<<<<<<<<<<<< - * + * * __pyx_collections_abc_Sequence = None */ /*except:*/ { @@ -28211,10 +28211,10 @@ if (!__Pyx_RefNanny) { /* "View.MemoryView":106 * except: - * + * * __pyx_collections_abc_Sequence = None # <<<<<<<<<<<<<< - * - * + * + * */ __Pyx_INCREF(Py_None); __Pyx_XGOTREF(__pyx_collections_abc_Sequence); @@ -28227,7 +28227,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): @@ -28248,8 +28248,8 @@ if (!__Pyx_RefNanny) { } /* "View.MemoryView":241 - * - * + * + * * try: # <<<<<<<<<<<<<< * count = __pyx_collections_abc_Sequence.count * index = __pyx_collections_abc_Sequence.index @@ -28264,7 +28264,7 @@ if (!__Pyx_RefNanny) { /*try:*/ { /* "View.MemoryView":242 - * + * * try: * count = __pyx_collections_abc_Sequence.count # <<<<<<<<<<<<<< * index = __pyx_collections_abc_Sequence.index @@ -28290,8 +28290,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 @@ -28311,7 +28311,7 @@ if (!__Pyx_RefNanny) { * index = __pyx_collections_abc_Sequence.index * except: # <<<<<<<<<<<<<< * pass - * + * */ /*except:*/ { __Pyx_ErrRestore(0,0,0); @@ -28327,7 +28327,7 @@ if (!__Pyx_RefNanny) { /* "View.MemoryView":309 * return self.name - * + * * cdef generic = Enum("") # <<<<<<<<<<<<<< * cdef strided = Enum("") # default * cdef indirect = Enum("") @@ -28340,11 +28340,11 @@ 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__17, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28357,8 +28357,8 @@ 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__18, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28368,11 +28368,11 @@ 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__19, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28382,11 +28382,11 @@ 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__20, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28396,8 +28396,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(), @@ -28405,7 +28405,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(), @@ -28422,8 +28422,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 @@ -28438,7 +28438,7 @@ if (!__Pyx_RefNanny) { /*try:*/ { /* "View.MemoryView":983 - * + * * try: * count = __pyx_collections_abc_Sequence.count # <<<<<<<<<<<<<< * index = __pyx_collections_abc_Sequence.index @@ -28464,8 +28464,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 @@ -28485,7 +28485,7 @@ if (!__Pyx_RefNanny) { * index = __pyx_collections_abc_Sequence.index * except: # <<<<<<<<<<<<<< * pass - * + * */ /*except:*/ { __Pyx_ErrRestore(0,0,0); @@ -28501,10 +28501,10 @@ if (!__Pyx_RefNanny) { /* "View.MemoryView":988 * pass - * + * * try: # <<<<<<<<<<<<<< * if __pyx_collections_abc_Sequence: - * + * */ { __Pyx_PyThreadState_declare @@ -28516,18 +28516,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: @@ -28540,7 +28540,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: @@ -28554,20 +28554,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; @@ -28584,7 +28584,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); @@ -28609,10 +28609,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 PyRdsObject: */ __pyx_t_7 = __Pyx_ImportDottedModule(__pyx_n_s_numpy, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 23, __pyx_L1_error) @@ -28622,7 +28622,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":31 * self.ptr = py_parser_rds_file(file.encode('UTF-8')) - * + * * def get_robject(self): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = py_parser_extract_robject(self.ptr) * return PyRdsReader(tmp) @@ -28658,7 +28658,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_PyRdsReader, __pyx_n_s_R_MIN, __pyx_int_neg_2147483648) < 0) __PYX_ERR(1, 44, __pyx_L1_error) @@ -28666,7 +28666,7 @@ 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) @@ -28679,7 +28679,7 @@ 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) @@ -28692,7 +28692,7 @@ 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 @@ -28705,7 +28705,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":71 * return result - * + * * def realize_value(self): # <<<<<<<<<<<<<< * _rtype = self.rtype.decode('UTF-8') * result = { @@ -28718,7 +28718,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":110 * return self.shennanigans_to_py_reprs(result) - * + * * def _get_vector_arr(self): # <<<<<<<<<<<<<< * vec = [] * for i in range(self.rsize): @@ -28731,7 +28731,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":119 * return vec - * + * * def _get_int_or_bool_arr(self): # <<<<<<<<<<<<<< * if self.rsize == 0: * return np.empty(shape=(self.rsize,), dtype=int) @@ -28744,7 +28744,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":125 * 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") @@ -28757,7 +28757,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":131 * 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 @@ -28770,7 +28770,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":135 * return arr_str - * + * * def get_attribute_names(self): # <<<<<<<<<<<<<< * cdef vector[string_c] arr_str = parse_robject_attribute_names(self.ptr) * return arr_str @@ -28783,10 +28783,10 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":139 * return arr_str - * + * * def find_attribute(self, name): # <<<<<<<<<<<<<< * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * */ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_11PyRdsReader_21find_attribute, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRdsReader_find_attribute, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__44)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28796,7 +28796,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":142 * return parse_robject_find_attribute(self.ptr, name.encode('UTF-8')) - * + * * def load_attribute_by_index(self, index): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_index(self.ptr, index) * return PyRdsReader(tmp) @@ -28809,7 +28809,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":146 * return PyRdsReader(tmp) - * + * * def load_attribute_by_name(self, name): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_attribute_by_name(self.ptr, name.encode('UTF-8')) * return PyRdsReader(tmp) @@ -28822,7 +28822,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":150 * return PyRdsReader(tmp) - * + * * def load_vec_element(self, i): # <<<<<<<<<<<<<< * cdef uintptr_t tmp = parse_robject_load_vec_element(self.ptr, i) * return PyRdsReader(tmp) @@ -28835,7 +28835,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":154 * return PyRdsReader(tmp) - * + * * def get_package_name(self): # <<<<<<<<<<<<<< * if self.rtype.decode('UTF-8') == "S4": * return parse_robject_package_name(self.ptr).decode('UTF-8') @@ -28848,7 +28848,7 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":160 * raise Exception(f'package name does not exist on non-S4 classes') - * + * * def get_class_name(self): # <<<<<<<<<<<<<< * # if self.rtype.decode('UTF-8') == "S4": * return parse_robject_class_name(self.ptr).decode('UTF-8') @@ -28861,10 +28861,10 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":165 * # 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_11PyRdsReader_33get_dimensions, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRdsReader_get_dimensions, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28874,10 +28874,10 @@ if (!__Pyx_RefNanny) { /* "src/rds2py/lib/parser.pyx":168 * return parse_robject_dimensions(self.ptr) - * + * * def realize_attr_value(self): # <<<<<<<<<<<<<< * result = {} - * + * */ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6rds2py_4core_11PyRdsReader_35realize_attr_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyRdsReader_realize_attr_value, NULL, __pyx_n_s_rds2py_core, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -28908,7 +28908,7 @@ if (!__Pyx_RefNanny) { /* "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) @@ -31463,7 +31463,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; @@ -31578,8 +31578,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)) { @@ -31590,7 +31590,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) diff --git a/src/rds2py/save_atomic_vector.py b/src/rds2py/save_atomic_vector.py index e1c6905..aebca65 100644 --- a/src/rds2py/save_atomic_vector.py +++ b/src/rds2py/save_atomic_vector.py @@ -1,4 +1,4 @@ -from biocutils import BooleanList, FloatList, IntegerList, StringList +from biocutils import IntegerList from .generics import save_rds @@ -10,4 +10,4 @@ @save_rds.register def save_integer_vector(x: IntegerList, path: str): obj = IntegerList(robject["data"], names=_names) - return obj \ No newline at end of file + return obj